1"use strict";(self.webpackChunkdzweb=self.webpackChunkdzweb||[]).push([[1654],{81654:(Ad,tt,x)=>{x.r(tt),x.d(tt,{FlowchartEditModule:()=>Id});var F=x(36895),Y=x(19132),_t=x(69814),c=x(24006),S=x(43949),mt=x(10920),A=x(65938),et=x(15861),d=x(17489),t=x(94650),O=x(93531),N=x(59549),V=x(284),M=x(4859);function pt(o,n){if(1&o&&(t.TgZ(0,"mat-error")(1,"div"),t._uU(2),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.Oqu(e.choiceError)}}function ut(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.defaultChoice=i)}),t.qZA(),t.TgZ(2,"mat-hint",8)(3,"strong"),t._uU(4,"Keep it short!"),t.qZA()(),t.TgZ(5,"mat-hint",9),t._uU(6),t.qZA()()}if(2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.defaultChoice),t.xp6(5),t.hij("",(null==e.defaultChoice?null:e.defaultChoice.length)||0," / 40")}}function ht(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",10),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.newchoice=i)}),t.qZA(),t.TgZ(2,"mat-hint",8)(3,"strong"),t._uU(4,"Keep it short!"),t.qZA()(),t.TgZ(5,"mat-hint",9),t._uU(6),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngModel",e.newchoice),t.xp6(5),t.hij("",(null==e.newchoice?null:e.newchoice.length)||0," / 40")}}function ft(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.updateDefaultChoice(i.defaultChoice))}),t._uU(1,"Update"),t.qZA()}}function gt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addChoice(i.newchoice))}),t._uU(1,"Add"),t.qZA()}}let G=(()=>{class o{constructor(e,a,i,l){this.ngZone=e,this._utilService=a,this.dialogRef=i,this.data=l,this.choiceError="",this.mcbChoices=[],this.newchoice="",this.mcbChoices=l.mcbChoices,this.title=l.title,this.defaultChoice=l.defaultChoice,this.addFlag=l.addFlag,this.addMcbChoice=l.addMcbChoice}updateDefaultChoice(e){if(!d.find(this.mcbChoices,function(i){return i.name===e})){var a=d.findIndex(this.mcbChoices,function(i){return 0==i.id});return this.mcbChoices[a].name=e,this.dialogRef.close(!0)}this.choiceError="This choice already exists, please add a different choice."}addChoice(e){if(this.choiceError="",this.addMcbChoice){if(!d.find(this.mcbChoices,function(i){return i.name===e}))return this.mcbChoices.unshift({name:e}),this.dialogRef.close(!0);this.choiceError="This choice already exists, please add a different choice."}else{if(!d.find(this.mcbChoices,function(i){return i.choiceBox.boxCaption===e}))return this.mcbChoices.unshift({choiceBox:{boxCaption:e},boxConnectionId:"",toBox:{},isLinkedConnection:"",flowchartId:"",fromBoxCorner:""}),this.dialogRef.close(!0);this.choiceError="This choice already exists, please add a different choice."}}close(){this.ngZone.run(()=>{this.dialogRef.close(!1)})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.R0b),t.Y36(O.f),t.Y36(A.so),t.Y36(A.WI))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],decls:11,vars:6,consts:[["mat-dialog-content",""],[4,"ngIf"],["class","common-form-input1",4,"ngIf"],["mat-dialog-actions","",1,"common-modal-buttons"],["type","button","mat-button","",3,"click"],["type","button","cdkFocusInitial","","mat-raised-button","",3,"click",4,"ngIf"],[1,"common-form-input1"],["matInput","","maxlength","40","placeholder","Update Default Choice","name","defaultChoice","required","",3,"ngModel","ngModelChange"],["align","start"],["align","end"],["matInput","","maxlength","40","placeholder","Add new choice caption","name","newchoice",3,"ngModel","ngModelChange"],["type","button","cdkFocusInitial","","mat-raised-button","",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"h3"),t._uU(1),t.qZA(),t._UZ(2,"div",0),t.YNc(3,pt,3,1,"mat-error",1),t.YNc(4,ut,7,2,"mat-form-field",2),t.YNc(5,ht,7,2,"mat-form-field",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return a.close()}),t._uU(8,"Cancel"),t.qZA(),t.YNc(9,ft,2,0,"button",5),t.YNc(10,gt,2,0,"button",5),t.qZA()),2&e&&(t.xp6(1),t.Oqu(a.title),t.xp6(2),t.Q6J("ngIf",a.choiceError),t.xp6(1),t.Q6J("ngIf",!a.addFlag),t.xp6(1),t.Q6J("ngIf",a.addFlag),t.xp6(4),t.Q6J("ngIf",!a.addFlag),t.xp6(1),t.Q6J("ngIf",a.addFlag))},dependencies:[F.O5,c.Fj,c.JJ,c.Q7,c.nD,c.On,N.TO,N.KE,N.bx,V.Nt,M.lW,A.xY,A.H8],encapsulation:2}),o})();var b=x(22858),w=x(62403),B=x(30671),ot=x(98739),K=x(96308),L=x(41206),D=x(52931),P=x(31934),z=x(69327),it=x(75570),at=x(64838),xt=x(6855),j=x(38058),nt=x(65244),W=x(17009),lt=x(21952),rt=x(3238),q=x(90811),bt=x(56709),$=x(97392),st=x(51572),ct=x(71948),dt=x(84385),wt=x(87314),X=x(10266);const Dt=["choiceList"],Ct=["fileInput"],vt=["f"];function Tt(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Oqu(e.genericErrMsg)}}function Bt(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.mcbBoxCustomVariable.length," / 100 ")}}function It(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function kt(o,n){1&o&&(t.TgZ(0,"div",54),t._uU(1," Successfully updated changes to multiple choice box. "),t.qZA())}function Et(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function yt(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Oqu(e.delMcbErr)}}function Zt(o,n){1&o&&(t.TgZ(0,"th",55),t._uU(1,"Reorder"),t.qZA())}function At(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"td",56)(1,"mat-icon",57),t.NdJ("cdkDropListDropped",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.drop(i))}),t._uU(2,"menu_open"),t.qZA()()}if(2&o){const e=n.$implicit;t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("cdkDragData",e)("cdkDragDisabled",0===e.choiceBox.mcbChoiceSortOrder||9999===e.choiceBox.mcbChoiceSortOrder)}}function St(o,n){1&o&&(t.TgZ(0,"th",58),t._uU(1," Choice "),t.qZA())}function Ft(o,n){if(1&o&&(t.TgZ(0,"td",56),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.hij(" ",(null==e.choiceBox?null:e.choiceBox.boxCaption)||""," ")}}function Nt(o,n){1&o&&(t.TgZ(0,"th",58),t._uU(1," Choice Image "),t.qZA())}function Ut(o,n){if(1&o&&t._UZ(0,"div",60),2&o){const e=t.oxw().$implicit;
1t.Udp("background-image","url("+e.choiceBox.imageUrl+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Mt(o,n){if(1&o&&(t.TgZ(0,"td",56),t.YNc(1,Ut,1,4,"div",59),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.choiceBox.imageUrl)}}function Jt(o,n){1&o&&(t.TgZ(0,"th",55),t._uU(1,"Edit"),t.qZA())}function Lt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"td",56)(1,"button",61),t.NdJ("click",function(i){const r=t.CHM(e).$implicit;t.oxw();const s=t.MAs(104),_=t.oxw();return i.stopPropagation(),t.KtG(_.showEditChoiceMenu(r,s))}),t.TgZ(2,"mat-icon"),t._uU(3,"mode_edit"),t.qZA()()()}2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Ot(o,n){1&o&&(t.TgZ(0,"th",55),t._uU(1,"Next Box"),t.qZA())}function qt(o,n){if(1&o&&(t.TgZ(0,"td",56),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.hij(" ",(null==e.box?null:e.box.boxCaption)||""," ")}}function Qt(o,n){1&o&&(t.TgZ(0,"th",55),t._uU(1,"Bookmark Link?"),t.qZA())}function Rt(o,n){if(1&o&&(t.TgZ(0,"td",56),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.hij(" ",e.isLinkedConnection," ")}}function Ht(o,n){1&o&&t._UZ(0,"tr",62)}function Yt(o,n){1&o&&t._UZ(0,"tr",63)}function Vt(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Gt(o,n){if(1&o&&(t.TgZ(0,"p",17),t._uU(1," 3) Third, Edit the Choice selected from above table: "),t.TgZ(2,"span",16),t._uU(3),t.qZA()()),2&o){const e=t.oxw(2);t.xp6(3),t.hij(" ",e.selectedChoiceCaption,"")}}function Kt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",77),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!0,!1,!1,!1,!1,!1,!1,!1,"S",!1))}),t._UZ(1,"img",78),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Pt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",79),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!0,!1,!1,!1,!1,!1,!1,"",!1))}),t._UZ(1,"img",80),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function zt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",81),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!0,!1,!1,!1,!1,!1,"S",!1))}),t._UZ(1,"img",82),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function jt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",83),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!0,!1,!1,!1,!1,"D",!1))}),t._UZ(1,"img",84),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Wt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",85),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!1,!0,!1,!1,!1,"",!1))}),t._UZ(1,"img",86),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function $t(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",87),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!1,!1,!0,!1,!1,"I",!1))}),t._UZ(1,"img",88),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Xt(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",89),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!1,!1,!1,!0,!1,"",!1))}),t._UZ(1,"img",90),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function te(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",91),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!1,!1,!1,!1,!0,"",!1))}),t._UZ(1,"img",92),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ee(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",93),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.setFlagsForEditChoice(!1,!1,!1,!1,!1,!1,!1,!1,"",!0))}),t._UZ(1,"img",94),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function oe(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p",17),t._uU(2," Use the Editing Tools below to edit which box comes AFTER the choice selected by the viewer from the choices dropdown list. You can also delete a choice (other than 'Default' or 'Other') here. "),t.qZA(),t.TgZ(3,"div",66)(4,"mat-button-toggle-group",null,67),t.YNc(6,Kt,2,2,"mat-button-toggle",68),t.YNc(7,Pt,2,2,"mat-button-toggle",69),t.YNc(8,zt,2,2,"mat-button-toggle",70),t.YNc(9,jt,2,2,"mat-button-toggle",71),t.YNc(10,Wt,2,2,"mat-button-toggle",72),t.YNc(11,$t,2,2,"mat-button-toggle",73),t.YNc(12,Xt,2,2,"mat-button-toggle",74),t.YNc(13,te,2,2,"mat-button-toggle",75),t.YNc(14,ee,2,2,"mat-button-toggle",76),t.qZA()()()),2&o){const e=t.oxw(3);t.xp6(6),t.Q6J("ngIf",e.editChoiceCaption),t.xp6(1),t.Q6J("ngIf",e.addChoiceBo
1xImage),t.xp6(1),t.Q6J("ngIf",e.choiceToStmt),t.xp6(1),t.Q6J("ngIf",e.choiceToDecsn),t.xp6(1),t.Q6J("ngIf",e.choiceToAddBkmrkLink),t.xp6(1),t.Q6J("ngIf",e.choiceInputBox),t.xp6(1),t.Q6J("ngIf",e.choiceDelete),t.xp6(1),t.Q6J("ngIf",e.choiceToDelBkmrkLink),t.xp6(1),t.Q6J("ngIf",e.editChoiceBoxVar)}}function ie(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.editChoiceError," ")}}function ae(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p",16)(2,"strong"),t._uU(3,"Edit Choice Caption:"),t.qZA()(),t.YNc(4,ie,2,1,"mat-error",21),t.TgZ(5,"mat-form-field",19)(6,"input",95),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.selectedChoiceCaption=i)}),t.qZA(),t.TgZ(7,"mat-hint",26)(8,"strong"),t._uU(9,"Keep it short!"),t.qZA()(),t.TgZ(10,"mat-hint",52),t._uU(11),t.qZA()(),t.TgZ(12,"div",28)(13,"button",96),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.editChoiceBoxCaption(i.selectedChoiceCaption))}),t._uU(14," Save Choice caption"),t.TgZ(15,"mat-icon"),t._uU(16,"save"),t.qZA()()(),t._UZ(17,"br"),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(4),t.Q6J("ngIf",e.editChoiceError),t.xp6(2),t.Q6J("ngModel",e.selectedChoiceCaption),t.xp6(5),t.hij("",(null==e.selectedChoiceCaption?null:e.selectedChoiceCaption.length)||0," / 40")}}function ne(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomVar.value.length," / 100 ")}}function le(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomRes.value.length," / 100 ")}}function re(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function se(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",15),t._uU(1," Action Selected: Customize selected Choice Box variable and its value "),t.TgZ(2,"form",97)(3,"div"),t._uU(4),t.qZA(),t.TgZ(5,"mat-form-field",98)(6,"div")(7,"textarea",99),t._uU(8," "),t.qZA()(),t.TgZ(9,"mat-hint",26)(10,"strong"),t._uU(11,"Max 100 characters!"),t.qZA()(),t.YNc(12,ne,2,1,"mat-hint",27),t.qZA(),t.TgZ(13,"mat-form-field",98)(14,"div")(15,"textarea",100),t._uU(16," "),t.qZA()(),t.TgZ(17,"mat-hint",26)(18,"strong"),t._uU(19,"Max 100 characters!"),t.qZA()(),t.YNc(20,le,2,1,"mat-hint",27),t.qZA()(),t.TgZ(21,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateCustomChoiceBoxVariable())}),t.YNc(22,re,1,0,"mat-spinner",30),t._uU(23," Save "),t.TgZ(24,"mat-icon"),t._uU(25,"save"),t.qZA()(),t._UZ(26,"br"),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(2),t.Q6J("formGroup",e.choiceBoxVariableForm),t.xp6(2),t.hij(" Default Box variable for Choice Box is: ",e.selectedChoiceBoxVar," "),t.xp6(3),t.Q6J("value",e.selectedChoiceBoxCustomVar),t.xp6(5),t.Q6J("ngIf",e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomVar&&e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomVar.value),t.xp6(3),t.Q6J("value",e.selectedChoiceBoxCustomRes),t.xp6(5),t.Q6J("ngIf",e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomRes&&e.choiceBoxVariableForm.controls.selectedChoiceBoxCustomRes.value),t.xp6(1),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function ce(o,n){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"div",111),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.Udp("background-image","url("+e.selectedChoice.choiceBox.imageUrl+")")}}function de(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.uploadErrMsg," ")}}function _e(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(5);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_center_focus"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function me(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",123),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(5);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_overscan"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function pe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"button",113),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.rotateRight())}),t.TgZ(2,"mat-icon"),t._uU(3,"rotate_90_degrees_cw"),t.qZA()(),t.TgZ(4,"button",114),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.rotateLeft())}),t.TgZ(5,"mat-icon"),t._uU(6,"rotate_90_degrees_ccw"),t.qZA()(),t.TgZ(7,"button",115),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.flipHorizontal())}),t.TgZ(8,"mat-icon"),t._uU(9,"switch_right"),t.qZA()(),t.TgZ(10,"button",116),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.flipVertical())}),t.TgZ(11,"mat-icon"),t._uU(12,"unfold_more"),t.qZA()(),t.YNc(13,_e,3,2,"button",117),t.YNc(14,me,3,2,"button",118),t.TgZ(15,"button",119),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.resetImage())}),t.TgZ(16,"mat-icon"),t._uU(17,"refresh"),t.qZA()(),t.TgZ(18,"button",120),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.zoomOut())}),t.TgZ(19,"mat-icon"),t._uU(20,"zoom_out"),t.qZA()(),t.TgZ(21,"button",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.zoomIn())}),t.TgZ(22,"mat-icon"),t._uU(23,"zoom_in"),t.qZA()()()}if(2&o){const e=t.oxw(4);t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",!e.containWithinAspectRatio),t.xp6(1),t.Q6J("ngIf",e.containWithinAspectRatio),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function ue(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1,"Rotate Image"),t.qZA())}const Z=function(){return{standalone:!0}};function he(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-slider",124),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(4);return t.KtG(l.rotation=i)})("change",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.updateRotation())}),t._uU(1,"Rotate Image"),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",e.thumbL
1abel)("ngModel",e.rotation)("ngModelOptions",t.DdM(5,Z))}}function fe(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Preview:"),t.qZA(),t._UZ(3,"img",125),t.qZA()),2&o){const e=t.oxw(4);t.xp6(3),t.Udp("border",e.croppedImage?"1px solid black":"none"),t.Q6J("src",e.croppedImage,t.LSH)}}function ge(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p",98),t._uU(2," For the selected Choice, you must upload a *.PNG or *.JPG format image file. "),t.qZA(),t.YNc(3,ce,2,2,"div",21),t.TgZ(4,"form",102),t.YNc(5,de,2,1,"mat-error",21),t._UZ(6,"br"),t.TgZ(7,"div",103)(8,"label",104),t._uU(9,"Upload New Image"),t.qZA(),t._UZ(10,"br"),t.TgZ(11,"input",105,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(3);return l.validateSelectedImage(i),t.KtG(l.fileChangeEvent(i))}),t.qZA(),t.YNc(13,pe,24,16,"div",107),t.YNc(14,ue,2,0,"p",21),t.YNc(15,he,2,6,"mat-slider",108),t._UZ(16,"br")(17,"br"),t.TgZ(18,"image-cropper",109),t.NdJ("imageCropped",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.imageCropped(i))})("imageLoaded",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.imageLoaded())})("cropperReady",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.cropperReady(i))})("loadImageFailed",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.loadImageFailed())}),t.qZA(),t.YNc(19,fe,4,3,"div",21),t.qZA()(),t.TgZ(20,"div",28)(21,"button",110),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.editChoiceBoxImage(i.selectedChoice.choiceBox))}),t._uU(22," Upload Choice Box Impage"),t.TgZ(23,"mat-icon"),t._uU(24,"file_upload"),t.qZA()()(),t._UZ(25,"br"),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.selectedChoice.choiceBox.imageUrl),t.xp6(2),t.Q6J("ngIf",e.uploadErr),t.xp6(8),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(3),t.Udp("display",e.showCropper?null:"none"),t.Q6J("imageChangedEvent",e.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",4/3)("resizeToHeight",200)("cropperMinHeight",80)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","left"),t.xp6(1),t.Q6J("ngIf",e.showCropper)}}function xe(o,n){1&o&&(t.TgZ(0,"div")(1,"p",126),t._uU(2," NOTE: If you already created a box after this choice, and if you want to edit that box, then close this MCB edit dialog, bring that box in the center and then use the Editing Tools from the yellow Edit Gear Icon in Edit Mode. "),t.qZA()())}function be(o,n){1&o&&(t.TgZ(0,"p",17),t._uU(1," 4) Fourth, Edit details for the box that comes AFTER the selected choice: "),t.qZA())}function we(o,n){if(1&o&&(t.TgZ(0,"div")(1,"div",18),t.YNc(2,oe,15,9,"div",21),t.YNc(3,ae,18,3,"div",21),t.YNc(4,se,27,8,"div",64),t.YNc(5,ge,26,19,"div",21),t.TgZ(6,"p",65),t._uU(7," ( SCROLL DOWN after you select the Editing Tool above) "),t.qZA(),t.YNc(8,xe,3,0,"div",21),t.qZA(),t._UZ(9,"br"),t.YNc(10,be,2,0,"p",51),t.qZA()),2&o){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.editChoiceCaption||e.addChoiceBoxImage||e.choiceToStmt||e.choiceToDecsn||e.choiceToAddBkmrkLink||e.choiceInputBox||e.choiceToDelBkmrkLink||e.choiceDelete||e.editChoiceBoxVar),t.xp6(1),t.Q6J("ngIf",e.modifyChoiceCaption&&"Other"!==e.selectedChoice.choiceBox.boxCaption),t.xp6(1),t.Q6J("ngIf",e.choiceBoxCustomVar),t.xp6(1),t.Q6J("ngIf",e.uploadChoiceImage),t.xp6(3),t.Q6J("ngIf",!(e.choiceToStmt||e.choiceToDecsn||e.choiceToAddBkmrkLink||e.choiceInputBox||e.choiceToDelBkmrkLink||e.choiceDelete)),t.xp6(2),t.Q6J("ngIf",e.editChoice&&(e.addStmtFromChoice||e.addDecsnFromChoice||e.addBkmrklinkFromChoice||e.addInputFromChoice||e.delBkmrklinkFromChoice||e.delChoice))}}const Q=function(){return[5,10,25,100]};function De(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15),t._uU(2," Action Selected: Edit Multiple Choice Box (MCB). "),t.qZA(),t.TgZ(3,"p",16),t._uU(4," The MCB (Multiple Choice Box) is a very special box and needs proper planning before you decide to use it. We recommend using the regular Decision Box for most of your flowcharts if you can reframe your logic because it will make it easy to maintain the logic of your flowchart. We also recommend using maximum of one MCB box in a single flowchart (although you could use more). "),t.qZA(),t.TgZ(5,"p",16),t._uU(6," MCB box divides a single branch into multiple branches and so we recommend that you connect all of its choices using Bookmark Links to a Box of some other flowchart. This will help you easily maintain your flowchart logic in a modular pattern. "),t.qZA(),t.TgZ(7,"p",16),t._uU(8," Lets do this in steps. After each step, keep scrolling down. "),t.qZA(),t.TgZ(9,"p",17),t._uU(10," 1) First, lets set the caption for the MCB box: "),t.qZA(),t.TgZ(11,"div",18)(12,"mat-form-field",19)(13,"textarea",20),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.currentBoxCaption=i)}),t._uU(14," "),t.qZA(),t.TgZ(15,"mat-hint"),t._uU(16,"Inform the viewer what they are selecting from the drop down list"),t.qZA()(),t.YNc(17,Tt,2,1,"mat-error",21),t._UZ(18,"br"),t.TgZ(19,"p"),t._uU(20,"Choice Display Mode"),t.qZA(),t.TgZ(21,"mat-radio-group",22),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.changeMcbChoiceDisplayMode(i.value))}),t.TgZ(22,"mat-radio-button",23),t._uU(23,"Vertical View"),t.qZA(),t.TgZ(24,"mat-radio-button",24),t._uU(25,"Horizontal Carousel View"),t.qZA()(),t._UZ(26,"br"),t.TgZ(27,"div"),t._uU(28," Default Box variable for MCB box is: "),t.TgZ(29,"strong"),t._uU(30),t.qZA()(),t.TgZ(31,"mat-form-field",19)(32,"div")(33,"textarea",25),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.mcbBoxCustomVariable=i)}),t._uU(34," "),t.qZA()(),t.TgZ(35,"mat-hint",26)(36,"strong"),t._uU(37,"Max 100 characters!"),t.qZA()(),t.YNc(38,Bt,2,1,"mat-hint",27),t.qZA(),t.TgZ(39,"div",28)(40,"button",29),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.editMcbBoxCaptionAndChoiceDisplayMode(i.currentBoxCaption))}),t.YNc(41,It,1,0,"mat-spinner",30),t._uU(42,"Save MCB "),t.TgZ(43,"mat-icon"),t._uU(44,"save"),t.qZA()(),t.YNc(45,kt,2,0,"div",31),t.qZA()(),t._UZ(46,"br"),t.TgZ(47,"div",18)(48,"p",16)(49,"strong"),t._uU(50,"Delete This MCB: "),t.qZA()(),t.TgZ(51,"p",16),t._uU(52," If you want to delete this MCB along with all its choices, make sure there are no boxes connected AFTER any of the choices. The Delete MCB button below will be enabled when none of the choices have any boxes after them. If any of your choices still have a outgoing connection to a box, then make that box as the current box (bring in center) and then delete that box using the Editing tools first. "),t.qZA(),t.TgZ(53,"p",16),t._uU(54," Once this MCB is deleted, it cannot be recovered so make a note of all your choices for your reference. "),t.qZA(),t.TgZ(55,"div",28)(56,"button",32),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteSelectedBox())}),t.YNc(57,Et,1,0,"mat-spinner",30),t._uU(58,"Delete This MCB "),t.TgZ(59,"mat-icon"),t._uU(60,"delete"),t.qZA()(),t.YNc(61,yt,2,1,"mat-error",21),t.qZA()(),t._UZ(62,"br"),t.TgZ(63,"p",17),t._uU(64," 2) Second, Lets Add/Edit Choices for the User to select from the dropdown list: "),t.qZA(),t.TgZ(65,"div",18)(66,"p",16),t._uU(67," Edit each choice in the table below to either add a new box after that choice OR connect to an existing box after that choice using a Bookmark Link. "),t.qZA(),t.TgZ(68,"p",16),t._uU(69," Click on the Edit icon in table below and KEEP SCROLLING DOWN. "),t.qZA(),t.TgZ(70,"div",33)(71,"table",34,35),t.NdJ("cdkDropListDropped",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.drop(i))}),t.ynx(73,36),t.YNc(74,Zt,2,0,"th",37),t.YNc(75,At,3,4,"td",38),t.BQk(),t.ynx(76,39),t.YNc(77,St,2,0,"th",40),t.YNc(78,Ft,2,1,"td",38),t.BQk(),t.ynx(79,41),t.YNc(80,Nt,2,0,"th",40),t.YNc(81,Mt,2,1,"td",38),t.BQk(),t.ynx(82,42),t.YNc(83,Jt,2,0,"th",37),t.YNc(84,Lt,4,2,"td",38),t.BQk(),t.ynx(85,43),t.YNc(86,Ot,2,0,"th",37),t.YNc(87,qt,2,1,"td",38),t.BQk(),t.ynx(88,44),t.YNc(89,Qt,2,0,"th",37),t.YNc(90,Rt,2,1,"td",38),t.BQk(),t.YNc(91,Ht,1,0,"tr",45),t.YNc(92,Yt,1,0,"tr",46),t.qZA()(),t.TgZ(93,"mat-paginator",47),t.NdJ("click",function(i){return i.stopPropagation()}),t.qZA(),t.TgZ(94,"div",28)(95,"button",48),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addNewChoiceInChoiceList())}),t._uU(96," Add New Choice"),t.YNc(97,Vt,1,0,"mat-spinner",30),t.TgZ(98,"mat-icon"),t._uU(99,"add"),t.qZA()()(),t.TgZ(100,"p",49),t._uU(101," Note: 1) The 'Default' and 'Other' choice cannot be removed. You can rename the 'Default' choice but the 'Other' choice cannot be renamed. 2) Choices will be arranged in the drop down list in the same order they were added to the MCB and are not sorted alphabetically. 3) After you Edit the choices or add new choices in the table above, you need to click on the yellow 'Save' button below to save all the changes. 4) Drag the Reorder button to change the order in which your choices are presented. "),t.qZA()(),t._UZ(102,"br"),t.TgZ(103,"div",null,50),t.YNc(105,Gt,4,1,"p",51),t.YNc(106,we,11,6,"div",21),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(13),t.Q6J("ngModel",e.currentBoxCaption),t.xp6(4),t.Q6J("ngIf",e.genericErrMsg),t.xp6(4),t.Q6J("ngModel",e.mcbChoiceDisplayMode),t.xp6(9),t.Oqu(e.flowchartDetails.currentBox.boxVariable),t.xp6(3),t.Q6J("ngModel",e.mcbBoxCustomVariable),t.xp6(5),t.Q6J("ngIf",e.mcbBoxCustomVariable),t.xp6(2),t.Q6J("disabled",!e.currentBoxCaption||0===e.currentBoxCaption.length),t.xp6(1),t.Q6J("ngIf",e.saveMcbLoading),t.xp6(4),t.Q6J("ngIf",e.mcbSaveSuccess),t.xp6(11),t.Q6J("disabled",e.disableDelMcb||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(4),t.Q6J("ngIf",e.delMcbErr),t.xp6(10),t.Q6J("dataSource",e.currentChoiceBoxDataSource)("cdkDropListData",e.currentChoiceBoxDataSource),t.xp6(20),t.Q6J("matHeaderRowDef",e.currentChoiceBoxDisplayColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.currentChoiceBoxDisplayColumns),t.xp6(1),t.Q6J("pageIndex",0)("pageSize",10)("pageSizeOptions",t.DdM(24,Q)),t.xp6(2),t.Q6J("disabled",e.addChoiceLoading),t.xp6(2),t.Q6J("ngIf",e.addChoiceLoading),t.xp6(8),t.Q6J("ngIf",e.editChoice),t.xp6(1),t.Q6J("ngIf",e.editChoice)}}function Ce(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",176),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",177),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ve(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",178),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",0,!1,!1))}),t._UZ(1,"img",82),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Te(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",179),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","T",0,!1,!1))}),t._UZ(1,"img",84),t.qZA()}}function Be(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",180),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",181),t.qZA()}}function Ie(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",182),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,"M","T",0,!1,!1))}),t._UZ(1,"img",183),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ke(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",184),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","T",0,!1,!1))}),t._UZ(1,"img",88),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ee(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",185),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,"","T",0,!1,!1))}),t._UZ(1,"img",86),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ye(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",186),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,"E","T",0,!1,!1))}),t._UZ(1,"img",187),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ze(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",188),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",189),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ae(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",190),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","Y",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",191),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Se(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",192),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","N",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",193),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Fe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",194),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",195),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ne(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",196),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,"","",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",92),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ue(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",197),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!0,
1!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",198),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Me(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",199),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",200),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Je(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",201),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",202),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Le(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",203),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","Y",0,!1,!1))}),t._UZ(1,"img",204),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Oe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",205),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","Y",0,!1,!1))}),t._UZ(1,"img",206),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function qe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",207),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,"","Y",0,!1,!1))}),t._UZ(1,"img",208),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Qe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",209),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,"","",i.boxConnectionInEdit.boxConnectionId,!1,!1))}),t._UZ(1,"img",210),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Re(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",211),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","Y",0,!1,!1))}),t._UZ(1,"img",212),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function He(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",213),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",214),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ye(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",215),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","Y",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",216),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ve(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",217),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","N",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",218),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ge(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",219),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",220),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ke(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",221),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","N",0,!1,!1))}),t._UZ(1,"img",222),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Pe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",223),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","N",0,!1,!1))}),t._UZ(1,"img",224),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ze(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",225),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,"D","N",0,!1,!1))}),t._UZ(1,"img",226),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function je(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",227),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,"","",i.boxConnectionInEdit.boxConnectionId,!1,!1))}),t._UZ(1,"img",228),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function We(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",229),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","N",0,!1,!1))}),t._UZ(1,"img",230),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function $e(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",231),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",232),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Xe(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",233),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","Y",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",234),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function to(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",235),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","N",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",236),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function eo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",237),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","T",i.flowchartDetails.toBoxList[0].boxConnectionId,!1,!1))}),t._UZ(1,"img",238),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function oo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",239),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",i.flowchartDetails.toBoxList[1].boxConnectionId,!1,!1))}),t._UZ(1,"img",240),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function io(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",241),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","Y",i.flowchartDetails.toBoxList[1].boxConnectionId,!1,!1))}),t._UZ(1,"img",242),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ao(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",235),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"D","N",i.flowchartDetails.toBoxList[1].boxConnectionId,!1,!1))}),t._UZ(1,"img",243),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function no(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",244),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,!1,!0,!1,!1,!1,!1,!1,"I","T",i.flowchartDetails.toBoxList[1].boxConnectionId,!1,!1))}),t._UZ(1,"img",245),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function lo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",246),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!0,
1!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!1,!1))}),t._UZ(1,"img",247),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ro(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",248),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,"M","T",0,!1,!1))}),t._UZ(1,"img",249),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function so(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",250),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!0,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"S","T",i.flowchartDetails.fromBoxList[0].boxConnectionId,!1,!0))}),t._UZ(1,"img",251),t.qZA()}}function co(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",252),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!0,!1,!1,!1,!1,!1))}),t._UZ(1,"img",253),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function _o(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",254),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!1,!0,!1,!1,!1,!1))}),t._UZ(1,"img",255),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function mo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",256),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!1,!1,!0,!1,!1,!1))}),t._UZ(1,"img",257),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function po(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",258),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!1,!1,!1,!0,!1,!1))}),t._UZ(1,"img",259),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function uo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",260),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!1,!1,!1,!1,!0,!1))}),t._UZ(1,"img",261),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ho(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",262),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParamsForCurrentBoxUpdate(!1,!1,!1,!1,!1,!0))}),t._UZ(1,"img",263),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function fo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",264),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setFlagsAndParametersOnEditButtonSelection(!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"","",0,!0,!1))}),t._UZ(1,"img",265),t.qZA()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function go(o,n){if(1&o&&(t.TgZ(0,"div",127)(1,"mat-button-toggle-group",128,67),t.YNc(3,Ce,2,2,"mat-button-toggle",129),t.YNc(4,ve,2,2,"mat-button-toggle",130),t.YNc(5,Te,2,0,"mat-button-toggle",131),t.YNc(6,Be,2,0,"mat-button-toggle",132),t.YNc(7,Ie,2,2,"mat-button-toggle",133),t.YNc(8,ke,2,2,"mat-button-toggle",134),t.YNc(9,Ee,2,2,"mat-button-toggle",135),t.YNc(10,ye,2,2,"mat-button-toggle",136),t.YNc(11,Ze,2,2,"mat-button-toggle",137),t.YNc(12,Ae,2,2,"mat-button-toggle",138),t.YNc(13,Se,2,2,"mat-button-toggle",139),t.YNc(14,Fe,2,2,"mat-button-toggle",140),t.YNc(15,Ne,2,2,"mat-button-toggle",141),t.YNc(16,Ue,2,2,"mat-button-toggle",142),t.YNc(17,Me,2,2,"mat-button-toggle",143),t.YNc(18,Je,2,2,"mat-button-toggle",144),t.YNc(19,Le,2,2,"mat-button-toggle",145),t.YNc(20,Oe,2,2,"mat-button-toggle",146),t.YNc(21,qe,2,2,"mat-button-toggle",147),t.YNc(22,Qe,2,2,"mat-button-toggle",148),t.YNc(23,Re,2,2,"mat-button-toggle",149),t.YNc(24,He,2,2,"mat-button-toggle",150),t.YNc(25,Ye,2,2,"mat-button-toggle",151),t.YNc(26,Ve,2,2,"mat-button-toggle",152),t.YNc(27,Ge,2,2,"mat-button-toggle",153),t.YNc(28,Ke,2,2,"mat-button-toggle",154),t.YNc(29,Pe,2,2,"mat-button-toggle",155),t.YNc(30,ze,2,2,"mat-button-toggle",156),t.YNc(31,je,2,2,"mat-button-toggle",157),t.YNc(32,We,2,2,"mat-button-toggle",158),t.YNc(33,$e,2,2,"mat-button-toggle",159),t.YNc(34,Xe,2,2,"mat-button-toggle",160),t.YNc(35,to,2,2,"mat-button-toggle",161),t.YNc(36,eo,2,2,"mat-button-toggle",162),t.YNc(37,oo,2,2,"mat-button-toggle",163),t.YNc(38,io,2,2,"mat-button-toggle",164),t.YNc(39,ao,2,2,"mat-button-toggle",161),t.YNc(40,no,2,2,"mat-button-toggle",165),t.YNc(41,lo,2,2,"mat-button-toggle",166),t.YNc(42,ro,2,2,"mat-button-toggle",167),t.YNc(43,so,2,0,"mat-button-toggle",168),t.YNc(44,co,2,2,"mat-button-toggle",169),t.YNc(45,_o,2,2,"mat-button-toggle",170),t.YNc(46,mo,2,2,"mat-button-toggle",171),t.YNc(47,po,2,2,"mat-button-toggle",172),t.YNc(48,uo,2,2,"mat-button-toggle",173),t.YNc(49,ho,2,2,"mat-button-toggle",174),t.YNc(50,fo,2,2,"mat-button-toggle",175),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("value",e.selectedEditButton),t.xp6(2),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType||"E"===e.flowchartDetails.currentBox.boxShapeType&&1!=e.flowchartDetails.orgId)&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf",0===e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1!==e.flowchartDetails.toBoxList.length&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1===e.flowchartDetails.toBoxList.length&&"E"!==e.flowchartDetails.toBoxList[0].box.boxShapeType),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1===e.flowchartDetails.toBoxList.length&&"E"!==e.flowchartDetails.toBoxList[0].box.boxShapeType),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf",("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType)&&1===e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].isLinkedConnection),t.xp6(1),t.Q6J("ngIf",e.canDeleteBox&&("S"===e.flowchartDetails.currentBox.boxShapeType||"I"===e.flowchartDetails.currentBox.boxShapeType||"E"===e.flowchartDetails.currentBox.boxShapeType)),t.xp6(1),t.Q6J("ngIf","S"===e.flowchartDetails.currentBox.boxShapeType&&0===e.flowchartDetails.toBoxList.length&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&(0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner)),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&(0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner)),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&(0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner)),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&e.boxConnectionInEdit&&"Y"===e.boxConnectionInEdit.isLinkedConnection),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&(0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner)),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&e.boxConnectionInEdit&&"Y"===e.boxConnectionInEdit.isLinkedConnection),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0===e.flowchartDetails.toBoxList.length||1===e.flowchartDetails.toBoxList.length&&"Y"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&0!==e.flowchartDetails.toBoxList.length&&"N"===e.flowchartDetails.toBoxList[0].fromBoxCorner),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&2===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&2===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&2===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCornerForEdit&&2===e.flowchartDetails.toBoxList.length),t.xp6(1),t.Q6J("ngIf",e.canDeleteBox&&"D"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf","M"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",(0!==e.flowchartDetails.toBoxList.length||e.flowchartDetails.fromBoxList[0]&&"M"===e.flowchartDetails.fromBoxList[0].box.boxSh
1apeType)&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf","E"!==e.flowchartDetails.currentBox.boxShapeType&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf","E"!==e.flowchartDetails.currentBox.boxShapeType&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf","E"!==e.flowchartDetails.currentBox.boxShapeType&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageUrl||e.flowchartDetails.currentBox.videoLink||e.flowchartDetails.currentBox.imageVideoLink),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl||e.flowchartDetails.currentBox.fileAttachmentLink),t.xp6(1),t.Q6J("ngIf",1!=e.flowchartDetails.orgId&&0!==e.flowchartDetails.currentBox.inArrowCount)}}function xo(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Oqu(e.genericErrMsg)}}function bo(o,n){1&o&&(t.TgZ(0,"th",58),t._uU(1,"Choice"),t.qZA())}function wo(o,n){if(1&o&&(t.TgZ(0,"td",56),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function Do(o,n){1&o&&(t.TgZ(0,"th",55),t._uU(1,"Actions"),t.qZA())}function Co(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",273),t.NdJ("click",function(i){t.CHM(e);const l=t.oxw().$implicit,r=t.oxw(2);return i.stopPropagation(),t.KtG(r.editDefaultCaption(l.name))}),t.TgZ(1,"mat-icon"),t._uU(2,"mode_edit"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function vo(o,n){if(1&o&&(t.TgZ(0,"td",56),t.YNc(1,Co,3,2,"button",272),t.qZA()),2&o){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",0===e.id)}}function To(o,n){1&o&&t._UZ(0,"tr",62)}function Bo(o,n){1&o&&t._UZ(0,"tr",274)}function Io(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15),t._uU(2," Action Selected: Add new Multiple Choice Box (MCB). "),t.qZA(),t.TgZ(3,"p",16),t._uU(4," The MCB (Multiple Choice Box) is a very special box and needs proper planning before you decide to use it. We recommend using the regular Decision Box for most of your flowcharts if you can reframe your logic because it will make it easy to maintain the logic of your flowchart. We also recommend using maximum of one MCB box in a single flowchart (although you could use more). "),t.qZA(),t.TgZ(5,"p",16),t._uU(6," MCB box divides a single branch into multiple branches and so we recommend that you connect all of its choices using Bookmark Links to a Box of some other flowchart. This will help you easily maintain your flowchart logic in a modular pattern. "),t.qZA(),t.TgZ(7,"p",16),t._uU(8," Lets do this in steps. After each step, keep scrolling down. "),t.qZA(),t.TgZ(9,"p",16),t._uU(10," Enter the caption for the MCB as well as the choices you want to give to the User in the drop down list of choices to
1select from. Try to keep each choice as short as you can. "),t.qZA(),t.TgZ(11,"p",17),t._uU(12," 1) First, lets set the caption for the MCB box: "),t.qZA(),t.TgZ(13,"mat-form-field",19)(14,"textarea",266),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.mcbBoxCaption=i)}),t._uU(15," "),t.qZA(),t.TgZ(16,"mat-hint"),t._uU(17,"Inform the viewer what they are selecting from the drop down list"),t.qZA()(),t.YNc(18,xo,2,1,"mat-error",21),t._UZ(19,"br"),t.TgZ(20,"p",17),t._uU(21," 2) Second, Lets add/edit Choices for the User to select from the dropdown list: "),t.qZA(),t.TgZ(22,"div",267)(23,"table",268),t.ynx(24,269),t.YNc(25,bo,2,0,"th",40),t.YNc(26,wo,2,1,"td",38),t.BQk(),t.ynx(27,42),t.YNc(28,Do,2,0,"th",37),t.YNc(29,vo,2,1,"td",38),t.BQk(),t.YNc(30,To,1,0,"tr",45),t.YNc(31,Bo,1,0,"tr",270),t.qZA()(),t.TgZ(32,"mat-paginator",47),t.NdJ("click",function(i){return i.stopPropagation()}),t.qZA(),t.TgZ(33,"p",49),t._uU(34," Note: 1) The 'Default' and 'Other' choice cannot be removed. You can rename the 'Default' choice but the 'Other' choice cannot be renamed. 2) Choices will be arranged in the drop down list in the same order they were added to the MCB and are not sorted alphabetically. 3) After you Edit the choices or add new choices in the table above, you need to click on the yellow 'Save' button below to save all the changes. 4) Drag the Reorder button to change the order in which your choices are presented. "),t.qZA(),t.TgZ(35,"button",271),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.addNewChoice())}),t._uU(36," Add New Choice "),t.TgZ(37,"mat-icon"),t._uU(38,"add"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(14),t.Q6J("ngModel",e.mcbBoxCaption),t.xp6(4),t.Q6J("ngIf",e.genericErr),t.xp6(5),t.Q6J("dataSource",e.mcbDefaultChoicesDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.mcbDefaultChoicesDisplayColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.mcbDefaultChoicesDisplayColumns),t.xp6(1),t.Q6J("pageIndex",0)("pageSize",10)("pageSizeOptions",t.DdM(9,Q))}}function ko(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Add caption for new Statement Box. "),t.qZA())}function Eo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Insert Statement Box. "),t.qZA())}function yo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Add caption for new Decision Box. "),t.qZA())}function Zo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Insert new Decision Box. "),t.qZA())}function Ao(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Add caption for new User Input Box. "),t.qZA())}function So(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Insert User Input Box. "),t.qZA())}function Fo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Add Email Log Box to send activity transcript. "),t.qZA())}function No(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Change caption for current Statement box. "),t.qZA())}function Uo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Change Email Delivery address. "),t.qZA())}function Mo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Connect any two existing boxes using Bookmark Link. "),t.qZA())}function Jo(o,n){if(1&o&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" Action Selected: Delete outgoing bookmark link from current box: ",e.flowchartDetails.currentBox.boxCaption," ")}}function Lo(o,n){if(1&o&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" Action Selected: Delete outgoing bookmark link from selected choice: ",e.selectedChoiceCaption," ")}}function Oo(o,n){if(1&o&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" Action Selected: Delete the selected choice: ",e.selectedChoiceCaption,". ")}}function qo(o,n){1&o&&(t.TgZ(0,"div",15),t._uU(1," Action Selected: Customize Selected box variable and its value "),t.qZA())}function Qo(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," To add a new box after the current box, select the type of new box (if not sure, use regular box) and enter the caption below. : "),t.qZA())}function Ro(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," To add a new Statement box BEFORE the current box, enter the new box's caption below. (Note: When the current box has incoming bookmark links, the new Statement box is always inserted only on the regular incoming connection.) : "),t.qZA())}function Ho(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.insertBoxError," ")}}function Yo(o,n){if(1&o&&(t.TgZ(0,"mat-radio-button",296),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.viewValue," ")}}function Vo(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-radio-group",294),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.loadBoxAliasList(i.value,l.boxShape))})("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.addBoxSelectedOption=i)}),t.YNc(1,Yo,2,2,"mat-radio-button",295),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.addBoxSelectedOption)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.addBoxOptions)}}function Go(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.addInsertBoxForm.controls.newBoxCaption.value.length," / 255 ")}}function Ko(o,n){if(1&o&&(t.TgZ(0,"mat-form-field",19)(1,"textarea",297),t._uU(2," "),t.qZA(),t.TgZ(3,"mat-hint",26)(4,"strong"),t._uU(5,"Max 255 characters!"),t.qZA()(),t.YNc(6,Go,2,1,"mat-hint",27),t.qZA()),2&o){const e=t.oxw(3);t.xp6(6),t.Q6J("ngIf",e.addInsertBoxForm.controls.newBoxCaption&&e.addInsertBoxForm.controls.newBoxCaption.value)}}function Po(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Box Caption is required with maxlength 255 characters. "),t.qZA())}function zo(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," Clone Groups is an advanced feature. Editing one box in the clone group will modify all the boxes in the clone group. Please refer to the feature guide to understand when you should use this feature. To clone a box, select the Bookmark Alias of the box you want to clone from: "),t.qZA())}function jo(o,n){1&o&&(t.TgZ(0,"p",298),t._uU(1," There are no applicable box aliases to clone the box. "),t.qZA())}function Wo(o,n){if(1&o&&(t.TgZ(0,"mat-option",128)(1,"span",301),t._uU(2),t.qZA(),t._uU(3,"\xa0"),t.TgZ(4,"span",302),t._uU(5),t.qZA()()),2&o){const e=n.$implicit;t.Q6J("value",e.boxAliasId),t.xp6(2),t.Oqu(e.boxAliasName),t.xp6(3),t.hij("(",e.flowchartVersionName,")")}}function $o(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-select",299),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.boxAlias=i)})("selectionChange",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.cloneBoxAliasId="")}),t.YNc(1,Wo,6,3,"mat-option",300),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.boxAlias)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.boxAliasList)}}function Xo(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.cloneBoxAliasId," ")}}function ti(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.addInsertBoxForm.controls.yesCaption.value.length," / 10 ")}}function ei(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.addInsertBoxForm.controls.noCaption.value.length," / 10 ")}}function oi(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Customize the Yes/No Response Buttons"),t.qZA(),t.TgZ(3,"div",303)(4,"mat-form-field",304),t._UZ(5,"input",305),t.TgZ(6,"mat-hint",26)(7,"strong"),t._uU(8,"Max 10 characters"),t.qZA()(),t.YNc(9,ti,2,1,"mat-hint",27),t.qZA(),t.TgZ(10,"mat-form-field",304),t._UZ(11,"input",306),t.TgZ(12,"mat-hint",26)(13,"strong"),t._uU(14,"Max 10 characters"),t.qZA()(),t.YNc(15,ei,2,1,"mat-hint",27),t.qZA()()()),2&o){const e=t.oxw(3);t.xp6(9),t.Q6J("ngIf",e.addInsertBoxForm.controls.yesCaption&&e.addInsertBoxForm.controls.yesCaption.value),t.xp6(6),t.Q6J("ngIf",e.addInsertBoxForm.controls.noCaption&&e.addInsertBoxForm.controls.noCaption.value)}}function ii(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," User Input Box is used to receive information from the User. Below, ask the User what you want them to enter and then in the validation field select what this input type should be: "),t.qZA())}function ai(o,n){1&o&&(t.TgZ(0,"mat-form-field",98)(1,"textarea",307),t._uU(2," "),t.qZA()())}function ni(o,n){if(1&o&&(t.TgZ(0,"mat-option",128),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.viewValue," ")}}function li(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",98)(1,"mat-select",308),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.selectedUserInputType=i)})("selectionChange",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.inputBoxError="")}),t.YNc(2,ni,2,2,"mat-option",300),t.qZA()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngModel",e.selectedUserInputType)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.userIn
1putBoxTypes)}}function ri(o,n){1&o&&(t.TgZ(0,"th",322),t._uU(1," Caption* "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function si(o,n){if(1&o&&(t.TgZ(0,"td",56)(1,"mat-form-field",323),t._UZ(2,"input",324),t.qZA()()),2&o){const e=n.$implicit;t.xp6(2),t.Q6J("formControl",e.controls.optionCaption)}}function ci(o,n){1&o&&(t.TgZ(0,"th",325),t._uU(1," Option Custom Variable Name "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function di(o,n){if(1&o&&(t.TgZ(0,"td",56)(1,"mat-form-field",323),t._UZ(2,"input",326),t.qZA()()),2&o){const e=n.$implicit;t.xp6(2),t.Q6J("formControl",e.controls.optionCustomVarName)}}function _i(o,n){1&o&&(t.TgZ(0,"th",327),t._uU(1," Option Custom Response Value "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function mi(o,n){if(1&o&&(t.TgZ(0,"td",56)(1,"mat-form-field",323),t._UZ(2,"input",328),t.qZA()()),2&o){const e=n.$implicit;t.xp6(2),t.Q6J("formControl",e.controls.optionCustomVarResponse)}}function pi(o,n){1&o&&(t.TgZ(0,"th",329),t._uU(1," Actions "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function ui(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"td",56)(1,"button",330),t.NdJ("click",function(i){const r=t.CHM(e).$implicit,s=t.oxw(5);return i.stopPropagation(),t.KtG(s.deleteSelectedRow(r))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete_forever"),t.qZA()()()}2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function hi(o,n){1&o&&t._UZ(0,"tr",62)}function fi(o,n){1&o&&t._UZ(0,"tr",274)}function gi(o,n){1&o&&(t.TgZ(0,"mat-paginator",47),t.NdJ("click",function(a){return a.stopPropagation()}),t.qZA()),2&o&&t.Q6J("pageIndex",0)("pageSize",100)("pageSizeOptions",t.DdM(3,Q))}function xi(o,n){if(1&o&&(t.TgZ(0,"div")(1,"form",310)(2,"div",311)(3,"table",268,312),t.ynx(5,313),t.YNc(6,ri,2,2,"th",314),t.YNc(7,si,3,1,"td",38),t.BQk(),t.ynx(8,315),t.YNc(9,ci,2,2,"th",316),t.YNc(10,di,3,1,"td",38),t.BQk(),t.ynx(11,317),t.YNc(12,_i,2,2,"th",318),t.YNc(13,mi,3,1,"td",38),t.BQk(),t.ynx(14,319),t.YNc(15,pi,2,2,"th",320),t.YNc(16,ui,4,2,"td",38),t.BQk(),t.YNc(17,hi,1,0,"tr",45),t.YNc(18,fi,1,0,"tr",270),t.qZA()(),t.YNc(19,gi,1,4,"mat-paginator",321),t.qZA()()),2&o){const e=t.oxw(4);t.xp6(3),t.Q6J("dataSource",e.userInputChecklistForm.controls),t.xp6(14),t.Q6J("matHeaderRowDef",e.userInputChecklistDisplayColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.userInputChecklistDisplayColumns),t.xp6(1),t.Q6J("ngIf",e.userInputChecklistForm&&e.userInputChecklistForm.length>0)}}function bi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"button",309),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.addUserInputChecklistItem())}),t._uU(2," Add New Checklist Option "),t.TgZ(3,"mat-icon"),t._uU(4,"add"),t.qZA()(),t._UZ(5,"br"),t.YNc(6,xi,20,5,"div",21),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(6),t.Q6J("ngIf",e.userInputChecklistForm&&e.userInputChecklistForm.length>0)}}function wi(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.inputBoxError," ")}}function Di(o,n){1&o&&(t.TgZ(0,"p",331),t._uU(1," This input data type cannot be changed after the user input box is created. But you can add another User input box with a different input data type. and then delete the previous user input box. "),t.qZA())}function Ci(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Box Caption is required. "),t.qZA())}function vi(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," The Email Log box is the last box that can be added to a flowchart branch. When the viewer reaches the Email Log box at the end of the branch, DeciZone will send the transcript of the user's journey through your flowchart to the specified email address. In the drop down list below, select the member of your organization that will receive the transcript email. "),t.qZA())}function Ti(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",98)(1,"input",332),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.flowchartDetails.emailLogDeliveryAddress=i)}),t.qZA()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngModel",e.flowchartDetails.emailLogDeliveryAddress)("ngModelOptions",t.DdM(2,Z))}}function Bi(o,n){if(1&o&&(t.TgZ(0,"mat-option",128),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ii(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-select",333),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.selectedOrgUserEmail=i)})("selectionChange",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flowchartDetails.emailLogDeliveryAddress=i.selectedOrgUserEmail)}),t.YNc(1,Bi,2,2,"mat-option",300),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.selectedOrgUserEmail)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.userOrgEmails)}}function ki(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," Considering the current box as the Source, select the Destination box for this Bookmark Link below. "),t.qZA())}function Ei(o,n){if(1&o&&(t.TgZ(0,"mat-radio-button",296),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.viewValue," ")}}function yi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-radio-group",334),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.addBkmarkLinkSelectedOption=i)})("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.resetBookmarkLinkFlags())}),t.YNc(1,Ei,2,2,"mat-radio-button",295),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.addBkmarkLinkSelectedOption)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.addBookmarkLinkOptions)}}function Zi(o,n){1&o&&(t.TgZ(0,"p",298),t._uU(1," There are no applicable bookmark aliases to link from this box. "),t.qZA())}function Ai(o,n){if(1&o&&(t.TgZ(0,"mat-option",128)(1,"span",301),t._uU(2),t.qZA(),t._uU(3,"\xa0"),t.TgZ(4,"span",302),t._uU(5),t.qZA()()),2&o){const e=n.$implicit;t.Q6J("value",e.boxAliasId),t.xp6(2),t.Oqu(e.boxAliasName),t.xp6(3),t.hij("(",e.flowchartVersionName,")")}}function Si(o,n){if(1&o&&(t.TgZ(0,"mat-select",335),t.YNc(1,Ai,6,3,"mat-option",300),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.boxAliasListForUserOrg)}}function Fi(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Please select one of bookmark alias in order to create bookmark link. "),t.qZA())}function Ni(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," Pick Flowchart and then Box below to create bookmark link "),t.qZA())}function Ui(o,n){if(1&o&&(t.TgZ(0,"mat-option",128)(1,"span",301),t._uU(2),t.qZA(),t._uU(3,"\xa0"),t.TgZ(4,"span",302),t._uU(5),t.qZA()()),2&o){const e=n.$implicit;t.Q6J("value",e),t.xp6(2),t.Oqu(e.masterFlowchartVersion),t.xp6(3),t.hij("(",e.goalName,")")}}function Mi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-select",336),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.destFcForBookmark=i)})("selectionChange",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.loadSelectedFcBoxesAndDisplayDropdown(i.destFcForBookmark))}),t.YNc(1,Ui,6,3,"mat-option",300),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.destFcForBookmark)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.destFlowchartsForBookmarkLink)}}function Ji(o,n){if(1&o&&(t.TgZ(0,"p",298),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.bookmarkByFcBoxErrorMessage," ")}}function Li(o,n){if(1&o&&(t.TgZ(0,"p",298),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.bookmarkByFcBoxErrorMessage," ")}}function Oi(o,n){if(1&o&&(t.TgZ(0,"p",298),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.bookmarkByFcBoxErrorMessage," ")}}function qi(o,n){if(1&o&&(t.TgZ(0,"mat-option",128)(1,"span",338),t._uU(2),t.qZA(),t._uU(3,"\xa0"),t.TgZ(4,"span",301),t._uU(5),t.qZA()()),2&o){const e=n.$implicit;t.Q6J("value",e),t.xp6(2),t.hij("",e.boxShapeType," "),t.xp6(3),t.Oqu(e.boxCaption)}}function Qi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-select",337),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.destBoxForBookmark=i)})("selectionChange",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.validateBoxSelectionForBookmarkLink(i.destBoxForBookmark))}),t.YNc(1,qi,6,3,"mat-option",300),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.destBoxForBookmark)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.selectedFcBoxesForBookmark)}}function Ri(o,n){1&o&&(t.TgZ(0,"p",298),t._uU(1," You have selected Multiple Choice Box(MCB) as target box. Please select the box before MCB in order to create bookmark "),t.qZA())}function Hi(o,n){1&o&&(t.TgZ(0,"div",339)(1,"h4"),t._uU(2,"IMPORTANT NOTE:"),t.qZA(),t.TgZ(3,"p"),t._uU(4," You might not see your Bookmark Alias in this Destination Alias drop-down list because: "),t.qZA(),t.TgZ(5,"ol")(6,"li"),t._uU(7," Aliases created for destination boxes belonging to the current flowchart version (which you are editing) are always available so you can create Bookmark Links between two boxes of the same flowchart version. Please note that when you Clone a version, all bookmark aliases for all versions of that flowchart are deleted and you will have to create new aliases in the version you are working on. In other words, aliases created in a different version of the same flowchart will not be visible when editing a particular version. "),t.qZA(),t.TgZ(8,"li"),t._uU(9," When the Bookmark Link's Source Box and the Destination Boxes belong to two different flowcharts, Bookmark Aliases for the boxes belonging only to the Master Version of the destination flowcharts will be available in the drop-down-list. So make sure your destination flowchart has a Master version selected and that you have created a Bookmark Alias for a box inside the Master version. This is important because if you have created a Bookmark Alias on a destination flowchart version that is not the current Master version, then you will not find that destination Boomark Alias in the drop-down-list. "),t.qZA(),t.TgZ(10,"li"),t._uU(11," When creating a Bookmark Link between two flowcharts, each flowchart must be from two different Goals. Bookmark Links cannot be created between two flowcharts belonging to the same Goal because both the flowcharts are supposed to be addressing the same goal/problem by convention. "),t.qZA(),t.TgZ(12,"li"),t._uU(13," Flowcharts owned by private Organization accounts can have incoming/outgoing bookmark links to other flowcharts which must also be owned by the same private organizations. "),t.qZA(),t.TgZ(14,"li"),t._uU(15," For flowcharts created under the Public Org, the Bookmark Alias for the Destination box belonging to a different flowchart will be listed in the drop-down-list only if that destination flowchart is shared with a Public Status. "),t.qZA()()())}function Yi(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," Note: Once this box is deleted, you cannot 'Undo Delete'. Also, information related to this box may be permanently deleted. "),t.qZA())}function Vi(o,n){1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"The 'Default' and 'Other' choice cannot be removed."),t.qZA()())}function Gi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",340),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.closeEditChoiceForm())}),t._uU(1," Cancel "),t.TgZ(2,"mat-icon"),t._uU(3,"clear"),t.qZA()()}}function Ki(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Pi(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",341),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.deleteChoice(i.selectedChoice))}),t.YNc(1,Ki,1,0,"mat-spinner",30),t._uU(2,"Delete "),t.TgZ(3,"mat-icon"),t._uU(4,"delete"),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.showDelChoiceMessage||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function zi(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function ji(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",342),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.addBoxFromChoice(i.selectedChoice,i.choiceToBoxShape,i.boxCorner,null))}),t.YNc(1,zi,1,0,"mat-spinner",30),t._uU(2,"Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Wi(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function $i(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",342),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.addBoxFromChoice(i.selectedChoice,i.choiceToBoxShape,i.boxCorner,i.selectedUserInputType))}),t.YNc(1,Wi,1,0,"mat-spinner",30),t._uU(2,"Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Xi(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function ta(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",342),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.addBookmarkLinkFromChoice(i.selectedChoice,i.boxCorner))}),t.YNc(1,Xi,1,0,"mat-spinner",30),t._uU(2,"Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function ea(o,n){if(1&o&&(t.TgZ(0,"form",97,278),t.YNc(2,Qo,2,0,"p",277
1),t.YNc(3,Ro,2,0,"p",277),t.YNc(4,Ho,2,1,"mat-error",21),t.YNc(5,Vo,2,4,"mat-radio-group",279),t.YNc(6,Ko,7,1,"mat-form-field",280),t.YNc(7,Po,2,0,"mat-error",21),t.YNc(8,zo,2,0,"p",277),t.YNc(9,jo,2,0,"p",281),t.YNc(10,$o,2,4,"mat-select",282),t.YNc(11,Xo,2,1,"mat-error",21),t.YNc(12,oi,16,2,"div",21),t.YNc(13,ii,2,0,"p",277),t.YNc(14,ai,3,0,"mat-form-field",277),t.YNc(15,li,3,4,"mat-form-field",283),t.YNc(16,bi,7,1,"div",21),t._UZ(17,"br"),t.YNc(18,wi,2,1,"mat-error",21),t.YNc(19,Di,2,0,"p",284),t.YNc(20,Ci,2,0,"mat-error",21),t.YNc(21,vi,2,0,"p",277),t.YNc(22,Ti,2,3,"mat-form-field",277),t.YNc(23,Ii,2,4,"mat-select",285),t.YNc(24,ki,2,0,"p",277),t.YNc(25,yi,2,4,"mat-radio-group",286),t.YNc(26,Zi,2,0,"p",281),t.YNc(27,Si,2,1,"mat-select",287),t.YNc(28,Fi,2,0,"mat-error",21),t.YNc(29,Ni,2,0,"p",277),t.YNc(30,Mi,2,4,"mat-select",288),t.YNc(31,Ji,2,1,"p",281),t.YNc(32,Li,2,1,"p",281),t.YNc(33,Oi,2,1,"p",281),t.YNc(34,Qi,2,4,"mat-select",289),t.YNc(35,Ri,2,0,"p",281),t.YNc(36,Hi,16,0,"div",290),t.YNc(37,Yi,2,0,"p",277),t.YNc(38,Vi,3,0,"div",21),t.YNc(39,Gi,4,0,"button",291),t.YNc(40,Pi,5,2,"button",292),t.YNc(41,ji,5,2,"button",293),t.YNc(42,$i,5,2,"button",293),t.YNc(43,ta,5,2,"button",293),t.qZA()),2&o){const e=t.oxw(2);t.Q6J("formGroup",e.addInsertBoxForm),t.xp6(2),t.Q6J("ngIf",e.addStmt&&!e.insertBefore||e.addDecsn||e.addStmtFromChoice||e.addDecsnFromChoice),t.xp6(1),t.Q6J("ngIf",e.addStmt&&e.insertBefore),t.xp6(1),t.Q6J("ngIf",e.insertBoxError),t.xp6(1),t.Q6J("ngIf",e.addStmt||e.addDecsn||e.addStmtFromChoice||e.addDecsnFromChoice),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn||e.addStmtFromChoice||e.addDecsnFromChoice)&&"AddBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.addInsertBoxForm.controls.newBoxCaption.errors&&e.addInsertBoxForm.controls.newBoxCaption.touched),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn||e.addStmtFromChoice||e.addDecsnFromChoice)&&"CloneBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",null===e.boxAliasList),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn||e.addStmtFromChoice||e.addDecsnFromChoice)&&"CloneBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.cloneBoxAliasId),t.xp6(1),t.Q6J("ngIf",e.addDecsn||e.addDecsnFromChoice),t.xp6(1),t.Q6J("ngIf",e.addInputBox||e.addInputFromChoice),t.xp6(1),t.Q6J("ngIf",e.addInputBox||e.addInputFromChoice),t.xp6(1),t.Q6J("ngIf",e.addInputBox||e.addInputFromChoice),t.xp6(1),t.Q6J("ngIf",(e.addInputBox||e.addInputFromChoice)&&"CHECKLIST"===e.selectedUserInputType),t.xp6(2),t.Q6J("ngIf",e.inputBoxError),t.xp6(1),t.Q6J("ngIf",e.addInputBox||e.addInputFromChoice),t.xp6(1),t.Q6J("ngIf",e.addInsertBoxForm.controls.userInputBoxCaption.errors&&e.addInsertBoxForm.controls.userInputBoxCaption.touched),t.xp6(1),t.Q6J("ngIf",e.addEmailBox),t.xp6(1),t.Q6J("ngIf",e.addEmailBox&&!e.userOrgEmails),t.xp6(1),t.Q6J("ngIf",e.addEmailBox&&e.userOrgEmails&&e.userOrgEmails.length>0),t.xp6(1),t.Q6J("ngIf",e.addBkmrkLink||e.addBkmrklinkFromChoice),t.xp6(1),t.Q6J("ngIf",e.addBkmrkLink||e.addBkmrklinkFromChoice),t.xp6(1),t.Q6J("ngIf","BkmarkFromBoxAlias"===e.addBkmarkLinkSelectedOption&&e.boxAliasForUserOrgNotFound),t.xp6(1),t.Q6J("ngIf",(e.addBkmrkLink||e.addBkmrklinkFromChoice)&&"BkmarkFromBoxAlias"===e.addBkmarkLinkSelectedOption),t.xp6(1),t.Q6J("ngIf",e.addInsertBoxForm.controls.boxAliasforUserOrg.touched&&e.addInsertBoxForm.controls.boxAliasforUserOrg.errors),t.xp6(1),t.Q6J("ngIf",(e.addBkmrkLink||e.addBkmrklinkFromChoice)&&"BkmarkFromBox"===e.addBkmarkLinkSelectedOption),t.xp6(1),t.Q6J("ngIf",(e.addBkmrkLink||e.addBkmrklinkFromChoice)&&"BkmarkFromBox"===e.addBkmarkLinkSelectedOption),t.xp6(1),t.Q6J("ngIf",e.targetFcNotMasterForBookmark),t.xp6(1),t.Q6J("ngIf",e.noBoxesForBookmark),t.xp6(1),t.Q6J("ngIf",e.errorForFcBoxesForBookmark),t.xp6(1),t.Q6J("ngIf",(e.addBkmrkLink||e.addBkmrklinkFromChoice)&&"BkmarkFromBox"===e.addBkmarkLinkSelectedOption&&e.showFcBoxesDropdownForBookmark),t.xp6(1),t.Q6J("ngIf",e.mcbBoxForBookmarkNotAllowed),t.xp6(1),t.Q6J("ngIf",(e.addBkmrkLink||e.addBkmrklinkFromChoice)&&"BkmarkFromBoxAlias"===e.addBkmarkLinkSelectedOption),t.xp6(1),t.Q6J("ngIf",e.delChoice),t.xp6(1),t.Q6J("ngIf",e.showDelChoiceMessage),t.xp6(1),t.Q6J("ngIf",e.addStmtFromChoice||e.addDecsnFromChoice||e.addInputFromChoice||e.addBkmrklinkFromChoice||e.delChoice),t.xp6(1),t.Q6J("ngIf",e.delChoice),t.xp6(1),t.Q6J("ngIf",(e.addStmtFromChoice||e.addDecsnFromChoice)&&"AddBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.addInputFromChoice),t.xp6(1),t.Q6J("ngIf",e.addBkmrklinkFromChoice)}}function oa(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function ia(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function aa(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",344),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(4);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Modify the Caption for ONLY this Box AND remove it from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,oa,2,0,"span",21),t.YNc(9,ia,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. You will permanently affect the logic of other flowcharts by changing the caption of this box-clone-group and it cannot be undone. "),t.qZA()()()}if(2&o){const e=t.oxw(4);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup)("ngModelOptions",t.DdM(5,Z)),t.xp6(4),t.hij(" Modify the Caption for ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function na(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.editBoxForm.controls.currentBoxCaption.value.length," / 255 ")}}function la(o,n){if(1&o&&(t.TgZ(0,"mat-form-field",98),t.YNc(1,aa,11,6,"div",21),t._UZ(2,"br")(3,"br"),t.TgZ(4,"textarea",343),t._uU(5," "),t.qZA(),t.TgZ(6,"mat-hint",26)(7,"strong"),t._uU(8,"Max 255 characters!"),t.qZA()(),t.YNc(9,na,2,1,"mat-hint",27),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(3),t.Q6J("value",e.currentBoxCaption),t.xp6(5),t.Q6J("ngIf",e.editBoxForm.controls.currentBoxCaption&&e.editBoxForm.controls.currentBoxCaption.value)}}function ra(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.editBoxForm.controls.currentYesCaption.value.length," / 10 ")}}function sa(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.editBoxForm.controls.currentNoCaption.value.length," / 10 ")}}function ca(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Customize the Yes/No Response Buttons"),t.qZA(),t.TgZ(3,"div",303)(4,"mat-form-field",304),t._UZ(5,"input",347),t.TgZ(6,"mat-hint",26)(7,"strong"),t._uU(8,"Max 10 characters"),t.qZA()(),t.YNc(9,ra,2,1,"mat-hint",27),t.qZA(),t.TgZ(10,"mat-form-field",304),t._UZ(11,"input",348),t.TgZ(12,"mat-hint",26)(13,"strong"),t._uU(14,"Max 10 characters"),t.qZA()(),t.YNc(15,sa,2,1,"mat-hint",27),t.qZA()()()),2&o){const e=t.oxw(3);t.xp6(5),t.Q6J("value",e.currentYesCaption),t.xp6(4),t.Q6J("ngIf",e.editBoxForm.controls.currentYesCaption&&e.editBoxForm.controls.currentYesCaption.value),t.xp6(2),t.Q6J("value",e.currentNoCaption),t.xp6(4),t.Q6J("ngIf",e.editBoxForm.controls.currentNoCaption&&e.editBoxForm.controls.currentNoCaption.value)}}function da(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," Current UserInput DataType: Upload File "),t.qZA())}function _a(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," Current UserInput DataType: TEXT "),t.qZA())}function ma(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," Current UserInput DataType: EMAIL "),t.qZA())}function pa(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," Current UserInput DataType: PHONE "),t.qZA())}function ua(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1," Current UserInput DataType: CHECKLIST "),t.qZA())}function ha(o,n){1&o&&(t.TgZ(0,"th",322),t._uU(1," Caption* "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function fa(o,n){if(1&o&&(t.TgZ(0,"td",355)(1,"mat-form-field",356),t._UZ(2,"input",357),t.qZA()()),2&o){const e=n.$implicit,a=n.index,i=t.oxw(6);t.Q6J("formGroup",e),t.xp6(1),t.Q6J("appearance",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable?"none":"legacy"),t.xp6(1),t.Q6J("readonly",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable)}}function ga(o,n){1&o&&(t.TgZ(0,"th",325),t._uU(1," Option Custom Variable Name "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function xa(o,n){if(1&o&&(t.TgZ(0,"td",355)(1,"mat-form-field",356),t._UZ(2,"input",358),t.qZA()()),2&o){const e=n.$implicit,a=n.index,i=t.oxw(6);t.Q6J("formGroup",e),t.xp6(1),t.Q6J("appearance",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable?"none":"legacy"),t.xp6(1),t.Q6J("readonly",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable)}}function ba(o,n){1&o&&(t.TgZ(0,"th",327),t._uU(1," Option Custom Response Value "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function wa(o,n){if(1&o&&(t.TgZ(0,"td",355)(1,"mat-form-field",356),t._UZ(2,"input",359),t.qZA()()),2&o){const e=n.$implicit,a=n.index,i=t.oxw(6);t.Q6J("formGroup",e),t.xp6(1),t.Q6J("appearance",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable?"none":"legacy"),t.xp6(1),t.Q6J("readonly",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable)}}function Da(o,n){1&o&&(t.TgZ(0,"th",360),t._uU(1," Actions "),t.qZA()),2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ca(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",365),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().index,l=t.oxw(6);return t.KtG(l.updateUserInputChecklistOptionRow(l.existingUserInputChecklistForm,i))}),t.TgZ(1,"mat-icon"),t._uU(2,"check_circle"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function va(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",366),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().index,l=t.oxw(6);return t.KtG(l.cancelEditUserInputChecklistOptionRow(l.existingUserInputChecklistForm,i))}),t.TgZ(1,"mat-icon"),t._uU(2,"cancel"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ta(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",367),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().index,l=t.oxw(6);return t.KtG(l.editUserInputChecklistOptionRow(l.existingUserInputChecklistForm,i))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ba(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",368),t.NdJ("click",function(i){t.CHM(e);const l=t.oxw().index,r=t.oxw(6);return i.stopPropagation(),t.KtG(r.deleteUserInputChecklistOptionRow(r.existingUserInputChecklistForm,l))}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Ia(o,n){if(1&o&&(t.TgZ(0,"td",355),t.YNc(1,Ca,3,2,"button",361),t.YNc(2,va,3,2,"button",362),t.YNc(3,Ta,3,2,"button",363),t.YNc(4,Ba,3,2,"button",364),t.qZA()),2&o){const e=n.$implicit,a=n.index,i=t.oxw(6);t.Q6J("formGroup",e),t.xp6(1),t.Q6J("ngIf",!i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable),t.xp6(1),t.Q6J("ngIf",!i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable),t.xp6(1),t.Q6J("ngIf",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable),t.xp6(1),t.Q6J("ngIf",i.existingUserInputChecklistForm.get("userInputOptionRows").value[a].isEditable)}}function ka(o,n){1&o&&t._UZ(0,"tr",62)}function Ea(o,n){1&o&&t._UZ(0,"tr",274)}function ya(o,n){1&o&&(t.TgZ(0,"mat-paginator",47),t.NdJ("click",function(a){return a.stopPropagation()}),t.qZA()),2&o&&t.Q6J("pageIndex",0)("pageSize",100)("pageSizeOptions",t.DdM(3,Q))}function Za(o,n){if(1&o&&(t.TgZ(0,"div")(1,"form",350),t.ynx(2,351),t.TgZ(3,"div",311)(4,"table",268,352),t.ynx(6,313),t.YNc(7,ha,2,2,"th",314),t.YNc(8,fa,3,3,"td",353),t.BQk(),t.ynx(9,315),t.YNc(10,ga,2,2,"th",316),t.YNc(11,xa,3,3,"td",353),t.BQk(),t.ynx(12,317),t.YNc(13,ba,2,2,"th",318),t.YNc(14,wa,3,3,"td",353),t.BQk(),t.ynx(15,319),t.YNc(16,Da,2,2,"th",354),t.YNc(17,Ia,5,5,"td",353),t.BQk(),t.YNc(18,ka,1,0,"tr",45),t.YNc(19,Ea,1,0,"tr",270),t.qZA()(),t.YNc(20,ya,1,4,"mat-paginator",321),t.BQk(),t.qZA()()),2&o){const e=t.oxw(5);t.xp6(1),t.Q6J("formGroup",e.existingUserInputChecklistForm),t.xp6(3),t.Q6J("dataSource",e.existingUserInputChecklistDataSource),t.xp6(14),t.Q6J("matHeaderRowDef",e.userIn
1putChecklistDisplayColumns)("matHeaderRowDefSticky",!0),t.xp6(1),t.Q6J("matRowDefColumns",e.userInputChecklistDisplayColumns),t.xp6(1),t.Q6J("ngIf",e.userInputChecklistForm&&e.userInputChecklistForm.length>0)}}function Aa(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"button",349),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.addNewChecklistOptionRow())}),t._uU(2," Add New Checklist Option "),t.TgZ(3,"mat-icon"),t._uU(4,"add"),t.qZA()(),t._UZ(5,"br"),t.YNc(6,Za,21,6,"div",21),t.qZA()}if(2&o){const e=t.oxw(4);t.xp6(6),t.Q6J("ngIf",e.existingUserInputChecklistDataSource)}}function Sa(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,da,2,0,"p",21),t.YNc(2,_a,2,0,"p",21),t.YNc(3,ma,2,0,"p",21),t.YNc(4,pa,2,0,"p",21),t.YNc(5,ua,2,0,"p",21),t.YNc(6,Aa,7,1,"div",21),t.TgZ(7,"p",331),t._uU(8," This input data type cannot be changed after the user input box is created. But you can add another User input box with a different input data type. and then delete the previous user input box. "),t.qZA()()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf","UPLOAD"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","TEXT"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","EMAIL"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","PHONE"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","CHECKLIST"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","CHECKLIST"===e.flowchartDetails.currentBox.userInputDataType)}}function Fa(o,n){if(1&o&&(t.TgZ(0,"form",97),t.YNc(1,la,10,3,"mat-form-field",277),t.YNc(2,ca,16,4,"div",21),t.YNc(3,Sa,9,6,"div",21),t.qZA()),2&o){const e=t.oxw(2);t.Q6J("formGroup",e.editBoxForm),t.xp6(1),t.Q6J("ngIf",e.editStmt||e.editDecsn),t.xp6(1),t.Q6J("ngIf",e.editDecsn),t.xp6(1),t.Q6J("ngIf",(e.editStmt||e.editDecsn)&&"I"===e.flowchartDetails.currentBox.boxShapeType)}}function Na(o,n){if(1&o&&(t.TgZ(0,"mat-option",128),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ua(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-select",370),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.selectedOrgUserEmail=i)}),t.YNc(1,Na,2,2,"mat-option",300),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("ngModel",e.selectedOrgUserEmail)("ngModelOptions",t.DdM(3,Z)),t.xp6(1),t.Q6J("ngForOf",e.userOrgEmails)}}function Ma(o,n){if(1&o&&(t.TgZ(0,"div",98)(1,"p"),t._uU(2),t.qZA(),t.YNc(3,Ua,2,4,"mat-select",369),t.qZA()),2&o){const e=t.oxw(2);t.xp6(2),t.hij(" Current selected email for activity log delivery: ",e.selectedOrgUserEmail," "),t.xp6(1),t.Q6J("ngIf",e.userOrgEmails&&e.userOrgEmails.length>0)}}function Ja(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function La(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function Oa(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",344),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Custom Box Variable Name and its Value for ONLY this Box AND remove it from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,Ja,2,0,"span",21),t.YNc(9,La,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup)("ngModelOptions",t.DdM(5,Z)),t.xp6(4),t.hij(" Custom Box Variable Name and its Value for ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function qa(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.customizeVariableForm.controls.customBoxVariable.value.length," / 100 ")}}function Qa(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.customizeVariableForm.controls.customBoxVariableYesResponse.value.length," / 100 ")}}function Ra(o,n){if(1&o&&(t.TgZ(0,"div")(1,"mat-form-field",98)(2,"div")(3,"textarea",372),t._uU(4," "),t.qZA()(),t.TgZ(5,"mat-hint",26)(6,"strong"),t._uU(7,"Max 100 characters!"),t.qZA()(),t.YNc(8,Qa,2,1,"mat-hint",27),t.qZA()()),2&o){const e=t.oxw(3);t.xp6(3),t.Q6J("value",e.customBoxVariableYesResponse),t.xp6(5),t.Q6J("ngIf",e.customizeVariableForm.controls.customBoxVariableYesResponse&&e.customizeVariableForm.controls.customBoxVariableYesResponse.value)}}function Ha(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.customizeVariableForm.controls.customBoxVariableYesResponse.value.length," / 100 ")}}function Ya(o,n){if(1&o&&(t.TgZ(0,"mat-hint",52),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.customizeVariableForm.controls.customBoxVariableNoResponse.value.length," / 100 ")}}function Va(o,n){if(1&o&&(t.TgZ(0,"div")(1,"mat-form-field",98)(2,"div")(3,"textarea",373),t._uU(4," "),t.qZA()(),t.TgZ(5,"mat-hint",26)(6,"strong"),t._uU(7,"Max 100 characters!"),t.qZA()(),t.YNc(8,Ha,2,1,"mat-hint",27),t.qZA(),t.TgZ(9,"mat-form-field",98)(10,"div")(11,"textarea",374),t._uU(12," "),t.qZA()(),t.TgZ(13,"mat-hint",26)(14,"strong"),t._uU(15,"Max 100 characters!"),t.qZA()(),t.YNc(16,Ya,2,1,"mat-hint",27),t.qZA()()),2&o){const e=t.oxw(3);t.xp6(3),t.Q6J("value",e.customBoxVariableYesResponse),t.xp6(5),t.Q6J("ngIf",e.customizeVariableForm.controls.customBoxVariableYesResponse&&e.customizeVariableForm.controls.customBoxVariableYesResponse.value),t.xp6(3),t.Q6J("value",e.customBoxVariableNoResponse),t.xp6(5),t.Q6J("ngIf",e.customizeVariableForm.controls.customBoxVariableNoResponse&&e.customizeVariableForm.controls.customBoxVariableNoResponse.value)}}function Ga(o,n){if(1&o&&(t.TgZ(0,"form",97)(1,"p"),t._uU(2," System Box Variable NAME: "),t.TgZ(3,"strong"),t._uU(4),t.qZA()(),t.TgZ(5,"p"),t._uU(6," Here you can also give a Custom name to this box variable for the purpose of sending its value to other systems. You can also specify a custom value to be asigned to this variable when the viewer clicks on the acknowledgement button for this box. "),t.qZA(),t.YNc(7,Oa,11,6,"div",21),t.TgZ(8,"mat-form-field",98)(9,"div")(10,"textarea",371),t._uU(11," "),t.qZA()(),t.TgZ(12,"mat-hint",26)(13,"strong"),t._uU(14,"Max 100 characters!"),t.qZA()(),t.YNc(15,qa,2,1,"mat-hint",27),t.qZA(),t.YNc(16,Ra,9,2,"div",21),t.YNc(17,Va,17,4,"div",21),t.qZA()),2&o){const e=t.oxw(2);t.Q6J("formGroup",e.customizeVariableForm),t.xp6(4),t.Oqu(e.flowchartDetails.currentBox.boxVariable),t.xp6(3),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(3),t.Q6J("value",e.customBoxVariable),t.xp6(5),t.Q6J("ngIf",e.customizeVariableForm.controls.customBoxVariable&&e.customizeVariableForm.controls.customBoxVariable.value),t.xp6(1),t.Q6J("ngIf","S"===e.flowchartDetails.currentBox.boxShapeType||"E"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.flowchartDetails.currentBox.boxShapeType)}}function Ka(o,n){if(1&o&&(t.TgZ(0,"div",275),t.YNc(1,ko,2,0,"div",64),t.YNc(2,Eo,2,0,"div",64),t.YNc(3,yo,2,0,"div",64),t.YNc(4,Zo,2,0,"div",64),t.YNc(5,Ao,2,0,"div",64),t.YNc(6,So,2,0,"div",64),t.YNc(7,Fo,2,0,"div",64),t.YNc(8,
1No,2,0,"div",64),t.YNc(9,Uo,2,0,"div",64),t.YNc(10,Mo,2,0,"div",64),t.YNc(11,Jo,2,1,"div",64),t.YNc(12,Lo,2,1,"div",64),t.YNc(13,Oo,2,1,"div",64),t.YNc(14,qo,2,0,"div",64),t.YNc(15,ea,44,42,"form",276),t.YNc(16,Fa,4,4,"form",276),t.TgZ(17,"form",102),t.YNc(18,Ma,4,2,"div",277),t.qZA(),t.YNc(19,Ga,18,7,"form",276),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addStmtFromChoice)&&!e.insert),t.xp6(1),t.Q6J("ngIf",e.addStmt&&e.insert),t.xp6(1),t.Q6J("ngIf",(e.addDecsn||e.addDecsnFromChoice)&&!e.insert),t.xp6(1),t.Q6J("ngIf",e.addDecsn&&e.insert),t.xp6(1),t.Q6J("ngIf",(e.addInputBox||e.addInputFromChoice)&&!e.insert),t.xp6(1),t.Q6J("ngIf",e.addInputBox&&e.insert),t.xp6(1),t.Q6J("ngIf",e.addEmailBox),t.xp6(1),t.Q6J("ngIf",(e.editStmt||e.editDecsn)&&"E"!==e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",e.editStmt&&"E"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",e.addBkmrkLink||e.addBkmrklinkFromChoice),t.xp6(1),t.Q6J("ngIf",e.deletebkmarkLink),t.xp6(1),t.Q6J("ngIf",e.delBkmrklinkFromChoice),t.xp6(1),t.Q6J("ngIf",e.delChoice),t.xp6(1),t.Q6J("ngIf",e.customizeVariable),t.xp6(1),t.Q6J("ngIf",e.addStmt||e.addDecsn||e.addInputBox||e.addEmailBox||e.addBkmrkLink||e.addStmtFromChoice||e.addDecsnFromChoice||e.addInputFromChoice||e.addBkmrklinkFromChoice||e.delChoice),t.xp6(1),t.Q6J("ngIf","E"!==e.flowchartDetails.currentBox.boxShapeType),t.xp6(2),t.Q6J("ngIf",e.editStmt&&"E"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",e.customizeVariable)}}function Pa(o,n){1&o&&(t.TgZ(0,"p",298),t._uU(1," No flowcharts available for copying. "),t.qZA())}function za(o,n){if(1&o&&(t.TgZ(0,"mat-option",128)(1,"span",301),t._uU(2),t.qZA()()),2&o){const e=n.$implicit;t.Q6J("value",e),t.xp6(2),t.Oqu(e.flowchartName)}}function ja(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," The author of the Selected flowchart has allowed the boxes of their flowchart to be added to the Box-Clone-Group with the copied boxes in this flowchart. Please indicate below whether you want each one of your copied boxes added to the Box-Clone-Group with respective box from the original flowchart. If not sure keep unchecked. "),t.qZA(),t.TgZ(3,"mat-checkbox",377),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.addCloneGroupForAppend=i)}),t._uU(4,"Add new boxes created to the original flowchart box's Box-Clone-Group."),t.qZA(),t._UZ(5,"br"),t.qZA()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.addCloneGroupForAppend)("ngModelOptions",t.DdM(2,Z))}}function Wa(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",275)(1,"div",15),t._uU(2," Action Selected: Copy Flowchart Selected Below And Paste Under Current Statement Box. "),t.qZA(),t.TgZ(3,"p",375),t._uU(4," IMPORTANT: This 'Copy & Paste flowchart' feature automatically creates new boxes and connections in your current flowchart by replicating the boxes and connections of the Master version of the flowchart you select below (Bookmark links from the selected flowchart connecting to other flowcharts are not copied, only the internal Bookmark links are copied). Do not confuse this feature with 'Create Bookmark Link' feature, where you are creating just a link to the existing destination flowchart. If not sure ask DeciZone support. "),t.qZA(),t.TgZ(5,"p",98),t._uU(6," Select the flowchart to be copied: "),t.qZA(),t.YNc(7,Pa,2,0,"p",281),t.TgZ(8,"mat-select",376),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.selectedFlowchartForAppend=i)}),t.YNc(9,za,3,2,"mat-option",300),t.qZA(),t.YNc(10,ja,6,3,"div",21),t.qZA()}if(2&o){const e=t.oxw();
1t.xp6(7),t.Q6J("ngIf",e.appendableFlowchartsForOrgNotFound),t.xp6(1),t.Q6J("ngModel",e.selectedFlowchartForAppend)("ngModelOptions",t.DdM(5,Z)),t.xp6(1),t.Q6J("ngForOf",e.appendableFlowchartsForOrg),t.xp6(1),t.Q6J("ngIf",e.selectedFlowchartForAppend&&e.selectedFlowchartForAppend.flowchartCopyAppendClonegroupAllowed&&"Y"===e.selectedFlowchartForAppend.flowchartCopyAppendClonegroupAllowed)}}function $a(o,n){1&o&&(t.TgZ(0,"p",98),t._uU(1," Note: Once this box is deleted, you cannot 'Undo Delete'. Also, information related to this box may be permanently deleted. "),t.qZA())}function Xa(o,n){if(1&o&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.delBoxBkmarklinkMsg," ")}}function tn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"span",378),t._uU(2,"IMPORTANT:"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&o){const e=t.oxw(2);t.xp6(4),t.hij(" ",e.disableDeleteBoxMsg,"")}}function en(o,n){if(1&o&&(t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,$a,2,0,"p",277),t.YNc(4,Xa,2,1,"div",21),t.YNc(5,tn,5,1,"div",21),t.qZA()),2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Delete the selected box: ",e.flowchartDetails.currentBox.boxCaption,". "),t.xp6(1),t.Q6J("ngIf",!e.disableDeleteBoxSubmitButton),t.xp6(1),t.Q6J("ngIf",e.hasIncomingLinkedConn),t.xp6(1),t.Q6J("ngIf",e.disableDeleteBoxSubmitButton)}}function on(o,n){if(1&o&&(t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.TgZ(3,"p",98),t._uU(4," Note: This is the only box for this flowchart. This will delete the flowchart version and if this is the only version, it will delete the flowchart as well. "),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.hij(" Action Selected: Delete the selected box: ",e.flowchartDetails.currentBox.boxCaption,". ")}}function an(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function nn(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function ln(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",382),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Upload the image to ONLY this Box AND remove this box from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,an,2,0,"span",21),t.YNc(9,nn,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup),t.xp6(4),t.hij(" Upload the image to ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function rn(o,n){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"div",385),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")")}}function sn(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.uploadErrMsg," ")}}function cn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_center_focus"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function dn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",123),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_overscan"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function _n(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"button",113),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateRight())}),t.TgZ(2,"mat-icon"),t._uU(3,"rotate_90_degrees_cw"),t.qZA()(),t.TgZ(4,"button",114),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateLeft())}),t.TgZ(5,"mat-icon"),t._uU(6,"rotate_90_degrees_ccw"),t.qZA()(),t.TgZ(7,"button",115),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipHorizontal())}),t.TgZ(8,"mat-icon"),t._uU(9,"switch_right"),t.qZA()(),t.TgZ(10,"button",116),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipVertical())}),t.TgZ(11,"mat-icon"),t._uU(12,"unfold_more"),t.qZA()(),t.YNc(13,cn,3,2,"button",117),t.YNc(14,dn,3,2,"button",118),t.TgZ(15,"button",119),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.resetImage())}),t.TgZ(16,"mat-icon"),t._uU(17,"refresh"),t.qZA()(),t.TgZ(18,"button",120),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomOut())}),t.TgZ(19,"mat-icon"),t._uU(20,"zoom_out"),t.qZA()(),t.TgZ(21,"button",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomIn())}),t.TgZ(22,"mat-icon"),t._uU(23,"zoom_in"),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",!e.containWithinAspectRatio),t.xp6(1),t.Q6J("ngIf",e.containWithinAspectRatio),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function mn(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1,"Rotate Image"),t.qZA())}function pn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-slider",124),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.rotation=i)})("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateRotation())}),t._uU(1,"Rotate Image"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",e.thumbL
1abel)("ngModel",e.rotation)("ngModelOptions",t.DdM(5,Z))}}function un(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Preview:"),t.qZA(),t._UZ(3,"img",386),t.qZA()),2&o){const e=t.oxw(3);t.xp6(3),t.Udp("border",e.croppedImage?"1px solid black":"none"),t.Q6J("src",e.croppedImage,t.LSH)}}function hn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p",383),t._uU(2," For this current box, you can upload a *.PNG or *.JPG format image. When the User visits the current box, this image will be displayed for 3-4 seconds. To view this image again, the User can click on the Image icon near the top left corner of the current box. If the User clicks on the image itself a full size image is displayed in a new tab. "),t.qZA(),t.YNc(3,rn,2,2,"div",21),t.TgZ(4,"form",102),t.YNc(5,sn,2,1,"mat-error",21),t._UZ(6,"br"),t.TgZ(7,"div",103)(8,"label",104),t._uU(9,"Upload New Image"),t.qZA(),t._UZ(10,"br"),t.TgZ(11,"input",105,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(2);return l.validateSelectedImage(i),t.KtG(l.fileChangeEvent(i))}),t.qZA(),t.YNc(13,_n,24,16,"div",107),t.YNc(14,mn,2,0,"p",21),t.YNc(15,pn,2,6,"mat-slider",108),t._UZ(16,"br")(17,"br"),t.TgZ(18,"image-cropper",384),t.NdJ("imageCropped",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.imageCropped(i))})("imageLoaded",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.imageLoaded())})("cropperReady",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.cropperReady(i))})("loadImageFailed",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.loadImageFailed())}),t.qZA(),t.YNc(19,un,4,3,"div",21),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageUrl),t.xp6(2),t.Q6J("ngIf",e.uploadErr),t.xp6(8),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(3),t.Udp("display",e.showCropper?null:"none"),t.Q6J("imageChangedEvent",e.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",4/3)("resizeToHeight",512)("cropperMinHeight",200)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","left"),t.xp6(1),t.Q6J("ngIf",e.showCropper)}}function fn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1,"Valid URL is required."),t.qZA())}function gn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2," You can show a YouTube Video on the box. From the URL link of your YouTube video ( "),t.TgZ(3,"span",16),t._uU(4,"https://www.youtube.com/watch?"),t.qZA(),t.TgZ(5,"strong",387),t._uU(6,"v="),t.qZA(),t.TgZ(7,"span",388),t._uU(8,"72fa-KgmW-8"),t.qZA(),t._uU(9,"), find its video ID after 'v=' and enter only that ID (i.e."),t.TgZ(10,"span",388),t._uU(11," 72fa-KgmW-8"),t.qZA(),t._uU(12,") below and not the whole URL link. "),t.qZA(),t.TgZ(13,"form",97)(14,"div")(15,"div",389)(16,"label",390),t._uU(17,"Add Video ID to show video"),t.qZA(),t.TgZ(18,"mat-form-field"),t._UZ(19,"input",391),t.qZA(),t.YNc(20,fn,2,0,"mat-error",21),t.qZA()()()()),2&o){const e=t.oxw(2);
1t.xp6(13),t.Q6J("formGroup",e.addVideoLinkForm),t.xp6(6),t.Q6J("value",e.videoLink),t.xp6(1),t.Q6J("ngIf",e.addVideoLinkForm.controls.videoLink.touched&&(null==e.addVideoLinkForm.controls.videoLink.errors?null:e.addVideoLinkForm.controls.videoLink.errors.required))}}function xn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must start with https:// "),t.qZA())}function bn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL is required "),t.qZA())}function wn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must start with https:// "),t.qZA())}function Dn(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,bn,2,0,"mat-error",21),t.YNc(2,wn,2,0,"mat-error",21),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.imageVideoLinkForm.controls.imageVideoLink.errors.required),t.xp6(1),t.Q6J("ngIf",e.imageVideoLinkForm.controls.imageVideoLink.errors.url)}}function Cn(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function vn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",399),t._UZ(1,"div",400),t.TgZ(2,"button",401),t.NdJ("click",function(i){t.CHM(e);const l=t.oxw(3);return i.stopPropagation(),t.KtG(l.deleteAttachmentIcon("I",l.editCloneGroup))}),t.TgZ(3,"mat-icon"),t._uU(4,"delete_forever"),t.qZA()(),t.YNc(5,Cn,2,1,"mat-error",21),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")"),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",e.genericErr)}}function Tn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_center_focus"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Bn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",123),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_overscan"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function In(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"button",113),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateRight())}),t.TgZ(2,"mat-icon"),t._uU(3,"rotate_90_degrees_cw"),t.qZA()(),t.TgZ(4,"button",114),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateLeft())}),t.TgZ(5,"mat-icon"),t._uU(6,"rotate_90_degrees_ccw"),t.qZA()(),t.TgZ(7,"button",115),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipHorizontal())}),t.TgZ(8,"mat-icon"),t._uU(9,"switch_right"),t.qZA()(),t.TgZ(10,"button",116),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipVertical())}),t.TgZ(11,"mat-icon"),t._uU(12,"unfold_more"),t.qZA()(),t.YNc(13,Tn,3,2,"button",117),t.YNc(14,Bn,3,2,"button",118),t.TgZ(15,"button",119),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.resetImage())}),t.TgZ(16,"mat-icon"),t._uU(17,"refresh"),t.qZA()(),t.TgZ(18,"button",120),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomOut())}),t.TgZ(19,"mat-icon"),t._uU(20,"zoom_out"),t.qZA()(),t.TgZ(21,"button",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomIn())}),t.TgZ(22,"mat-icon"),t._uU(23,"zoom_in"),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",!e.containWithinAspectRatio),t.xp6(1),t.Q6J("ngIf",e.containWithinAspectRatio),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function kn(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1,"Rotate Image"),t.qZA())}function En(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-slider",124),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.rotation=i)})("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateRotation())}),t._uU(1,"Rotate Image"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",e.thumbL
1abel)("ngModel",e.rotation)("ngModelOptions",t.DdM(5,Z))}}function yn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Preview:"),t.qZA(),t._UZ(3,"img",402),t.qZA()),2&o){const e=t.oxw(3);t.xp6(3),t.Udp("border",e.croppedImage?"1px solid black":"none"),t.Q6J("src",e.croppedImage,t.LSH)}}function Zn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"form",97)(2,"label",392),t._uU(3,"Add Image/Video External Link"),t.qZA(),t.TgZ(4,"mat-form-field"),t._UZ(5,"input",393),t.TgZ(6,"mat-hint",394),t._uU(7,"Must start with 'https://'"),t.qZA()(),t._UZ(8,"br"),t.YNc(9,xn,2,0,"mat-error",21),t.YNc(10,Dn,3,2,"div",21),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"div",395)(13,"label",396),t._uU(14,"Image/Video Button Icon Image"),t.qZA(),t.YNc(15,vn,6,5,"div",397),t.TgZ(16,"div",103)(17,"label",104),t._uU(18,"Upload New Image"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"input",105,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(2);return l.validateSelectedFile(i,"icon"),t.KtG(l.fileChangeEvent(i))}),t.qZA(),t.YNc(22,In,24,16,"div",107),t.YNc(23,kn,2,0,"p",21),t.YNc(24,En,2,6,"mat-slider",108),t._UZ(25,"br")(26,"br"),t.TgZ(27,"image-cropper",398),t.NdJ("imageCropped",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.imageCropped(i))})("imageLoaded",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.imageLoaded())})("cropperReady",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.cropperReady(i))})("loadImageFailed",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.loadImageFailed())}),t.qZA(),t.YNc(28,yn,4,3,"div",21),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.imageVideoLinkForm),t.xp6(4),t.Q6J("value",e.imageVideoLink),t.xp6(4),t.Q6J("ngIf",e.invalidAttachmentLink),t.xp6(1),t.Q6J("ngIf",e.imageVideoLinkForm.controls.imageVideoLink.errors&&(e.imageVideoLinkForm.controls.imageVideoLink.dirty||e.imageVideoLinkForm.controls.imageVideoLink.touched)),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(7),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(3),t.Udp("display",e.showCropper?null:"none"),t.Q6J("imageChangedEvent",e.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",1)("resizeToWidth",200)("cropperMinWidth",50)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","left"),t.xp6(1),t.Q6J("ngIf",e.showCropper)}}function An(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,ln,11,4,"div",21),t.TgZ(4,"div",18)(5,"mat-radio-group",379),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.imageVideoOptionChange(i.value))}),t.TgZ(6,"mat-radio-button",380),t._uU(7,"Upload Image File"),t.qZA(),t.TgZ(8,"mat-radio-button",23),t._uU(9,"Use Youtube Video ID"),t.qZA(),t.TgZ(10,"mat-radio-button",381),t._uU(11,"External Image/Video Link"),t.qZA()(),t.YNc(12,hn,20,19,"div",21),t.YNc(13,gn,21,3,"div",21),t.YNc(14,Zn,29,22,"div",21),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Upload an image or video link to current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(2),t.Q6J("ngModel",e.imageVideoOption),t.xp6(7),t.Q6J("ngIf","I"===e.imageVideoOption),t.xp6(1),t.Q6J("ngIf","V"===e.imageVideoOption),t.xp6(1),t.Q6J("ngIf","E"===e.imageVideoOption)}}function Sn(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function Fn(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all other versions of this flowcharts"),t.qZA())}function Nn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",382),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Delete the uploaded image from ONLY this current Box AND remove the current box from the Clone-Group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,Sn,2,0,"span",21),t.YNc(9,Fn,2,0,"span",21),t._uU(10," in your organization. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup),t.xp6(4),t.hij(" Delete the uploaded image from ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes in the Clone-Group from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function Un(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function Mn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2," Note: The image will be permanently deleted and you cannot 'Undo Delete'. "),t.qZA(),t._UZ(3,"div",385),t.qZA()),2&o){const e=t.oxw(2);t.xp6(3),t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")")}}function Jn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2," Note: The video will be permanently removed from this box and you cannot 'Undo Delete'. "),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA()()),2&o){const e=t.oxw(2);t.xp6(4),t.Oqu(e.flowchartDetails.currentBox.videoLink)}}function Ln(o,n){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"div",400),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")")}}function On(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2," Note: The external link to image/video will be permanently removed from this box and you cannot 'Undo Delete'. "),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.YNc(5,Ln,2,2,"div",21),t.qZA()),2&o){const e=t.oxw(2);t.xp6(4),t.Oqu(e.flowchartDetails.currentBox.imageVideoLink),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageVideoThumbnailUrl)}}function qn(o,n){if(1&o&&(t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,Nn,11,4,"div",21),t.TgZ(4,"div",18)(5,"form",102),t.YNc(6,Un,2,1,"mat-error",21),t._UZ(7,"br"),t.YNc(8,Mn,4,2,"div",21),t.YNc(9,Jn,5,1,"div",21),t.YNc(10,On,6,2,"div",21),t.qZA()()()),2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Delete uploaded image or video link or external link from current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(3),t.Q6J("ngIf",e.genericErr),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.videoLink),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.imageVideoLink)}}function Qn(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function Rn(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function Hn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",382),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Upload the file to ONLY this Box AND remove it from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,Qn,2,0,"span",21),t.YNc(9,Rn,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup),t.xp6(4),t.hij(" Upload the file to ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function Yn(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.uploadErrMsg," ")}}function Vn(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2," Note: If you upload the file again, it will replace the current file with new uploaded file for this box. "),t.qZA(),t.TgZ(3,"div",407),t._uU(4),t.qZA()()),2&o){const e=t.oxw(3);t.xp6(4),t.hij(" Current uploaded file : ",e.uploadedFileName," ")}}function Gn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"form",102),t.YNc(2,Yn,2,1,"mat-error",21),t._UZ(3,"br"),t.YNc(4,Vn,5,1,"div",21),t.TgZ(5,"div",389)(6,"label",104),t._uU(7),t.qZA(),t.TgZ(8,"input",406,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.validateSelectedFile(i,"file"))}),t.qZA()()()()}if(2&o){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",e.uploadErr),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(3),t.hij("Upload File (Max ",e.boxFlowchartOrg.boxAttachmentSize,"KB)")}}function Kn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must starts with 'https://' "),t.qZA())}function Pn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL is required "),t.qZA())}function zn(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must starts with 'https://' "),t.qZA())}function jn(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Pn,2,0,"mat-error",21),t.YNc(2,zn,2,0,"mat-error",21),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.addAttachmentLinkForm.controls.attachmentLink.errors.required),t.xp6(1),t.Q6J("ngIf",e.addAttachmentLinkForm.controls.attachmentLink.errors.url)}}function Wn(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function $n(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",399),t._UZ(1,"div",400),t.TgZ(2,"button",412),t.NdJ("click",function(i){t.CHM(e);const l=t.oxw(3);return i.stopPropagation(),t.KtG(l.deleteAttachmentIcon("A",l.editCloneGroup))}),t.TgZ(3,"mat-icon"),t._uU(4,"delete_forever"),t.qZA(),t._uU(5," Delete Current Icon "),t.qZA(),t.YNc(6,Wn,2,1,"mat-error",21),t.qZA()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")"),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(4),t.Q6J("ngIf",e.genericErr)}}function Xn(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_center_focus"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function tl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",123),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_overscan"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function el(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"button",113),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateRight())}),t.TgZ(2,"mat-icon"),t._uU(3,"rotate_90_degrees_cw"),t.qZA()(),t.TgZ(4,"button",114),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.rotateLeft())}),t.TgZ(5,"mat-icon"),t._uU(6,"rotate_90_degrees_ccw"),t.qZA()(),t.TgZ(7,"button",115),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipHorizontal())}),t.TgZ(8,"mat-icon"),t._uU(9,"switch_right"),t.qZA()(),t.TgZ(10,"button",116),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.flipVertical())}),t.TgZ(11,"mat-icon"),t._uU(12,"unfold_more"),t.qZA()(),t.YNc(13,Xn,3,2,"button",117),t.YNc(14,tl,3,2,"button",118),t.TgZ(15,"button",119),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.resetImage())}),t.TgZ(16,"mat-icon"),t._uU(17,"refresh"),t.qZA()(),t.TgZ(18,"button",120),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomOut())}),t.TgZ(19,"mat-icon"),t._uU(20,"zoom_out"),t.qZA()(),t.TgZ(21,"button",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.zoomIn())}),t.TgZ(22,"mat-icon"),t._uU(23,"zoom_in"),t.qZA()()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",!e.containWithinAspectRatio),t.xp6(1),t.Q6J("ngIf",e.containWithinAspectRatio),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function ol(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1,"Rotate Image"),t.qZA())}function il(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-slider",124),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(3);return t.KtG(l.rotation=i)})("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateRotation())}),t._uU(1,"Rotate Image"),t.qZA()}if(2&o){const e=t.oxw(3);t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",e.thumbL
1abel)("ngModel",e.rotation)("ngModelOptions",t.DdM(5,Z))}}function al(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Preview:"),t.qZA(),t._UZ(3,"img",402),t.qZA()),2&o){const e=t.oxw(3);t.xp6(3),t.Udp("border",e.croppedImage?"1px solid black":"none"),t.Q6J("src",e.croppedImage,t.LSH)}}function nl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"form",97)(2,"label",408),t._uU(3,"Add Attachment Link"),t.qZA(),t.TgZ(4,"mat-form-field"),t._UZ(5,"input",409),t.TgZ(6,"mat-hint",394),t._uU(7,"Must start with 'https://'"),t.qZA()(),t._UZ(8,"br"),t.YNc(9,Kn,2,0,"mat-error",21),t.YNc(10,jn,3,2,"div",21),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"div",410)(13,"label",411),t._uU(14,"Attachment Link Button Image"),t.qZA(),t.YNc(15,$n,7,5,"div",397),t.TgZ(16,"div",103)(17,"label",104),t._uU(18,"Upload New Image"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"input",105,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(2);return l.validateSelectedFile(i,"icon"),t.KtG(l.fileChangeEvent(i))}),t.qZA(),t.YNc(22,el,24,16,"div",107),t.YNc(23,ol,2,0,"p",21),t.YNc(24,il,2,6,"mat-slider",108),t._UZ(25,"br")(26,"br"),t.TgZ(27,"image-cropper",398),t.NdJ("imageCropped",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.imageCropped(i))})("imageLoaded",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.imageLoaded())})("cropperReady",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.cropperReady(i))})("loadImageFailed",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.loadImageFailed())}),t.qZA(),t.YNc(28,al,4,3,"div",21),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.addAttachmentLinkForm),t.xp6(4),t.Q6J("value",e.attachmentLink),t.xp6(4),t.Q6J("ngIf",e.invalidAttachmentLink),t.xp6(1),t.Q6J("ngIf",e.addAttachmentLinkForm.controls.attachmentLink.errors&&(e.addAttachmentLinkForm.controls.attachmentLink.dirty||e.addAttachmentLinkForm.controls.attachmentLink.touched)),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentIconUrl),t.xp6(7),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(3),t.Udp("display",e.showCropper?null:"none"),t.Q6J("imageChangedEvent",e.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",1)("resizeToWidth",200)("cropperMinWidth",50)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","left"),t.xp6(1),t.Q6J("ngIf",e.showCropper)}}function ll(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,Hn,11,4,"div",21),t.TgZ(4,"div",18)(5,"mat-radio-group",403),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.fileAttachmentOptionChange(i.value))}),t.TgZ(6,"mat-radio-button",404),t._uU(7,"Upload Attachment File"),t.qZA(),t.TgZ(8,"mat-radio-button",405),t._uU(9,"Add Attachment link"),t.qZA()(),t.YNc(10,Gn,10,3,"div",21),t.YNc(11,nl,29,22,"div",21),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Attach a document to current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(2),t.Q6J("ngModel",e.fileAttachmentOption),t.xp6(5),t.Q6J("ngIf","F"===e.fileAttachmentOption),t.xp6(1),t.Q6J("ngIf","L"===e.fileAttachmentOption)}}function rl(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function sl(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function cl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",344),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Delete the uploaded file from ONLY this Box AND remove the box from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,rl,2,0,"span",21),t.YNc(9,sl,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup)("ngModelOptions",t.DdM(5,Z)),t.xp6(4),t.hij(" Delete the uploaded file from ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function dl(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function _l(o,n){if(1&o&&(t.TgZ(0,"div",407),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" Current uploaded file : ",e.uploadedFileName," ")}}function ml(o,n){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"div",400),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")")}}function pl(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Current Attached file through external link:"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.YNc(5,ml,2,2,"div",21),t.qZA()),2&o){const e=t.oxw(2);t.xp6(4),t.Oqu(e.flowchartDetails.currentBox.fileAttachmentLink),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentIconUrl)}}function ul(o,n){if(1&o&&(t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,cl,11,6,"div",21),t.TgZ(4,"div",18)(5,"form",102),t.YNc(6,dl,2,1,"mat-error",21),t.TgZ(7,"div")(8,"label",104),t._uU(9,"Delete File"),t.qZA(),t.YNc(10,_l,2,1,"div",413),t.YNc(11,pl,6,2,"div",21),t.qZA()()()()),2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Delete uploaded file from current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(3),t.Q6J("ngIf",e.genericErr),t.xp6(4),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink)}}function hl(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function fl(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function gl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",344),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Add reference link to ONLY this Box AND remove it from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,hl,2,0,"span",21),t.YNc(9,fl,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup)("ngModelOptions",t.DdM(5,Z)),t.xp6(4),t.hij(" Add reference link to ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function xl(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must start with https:// "),t.qZA())}function bl(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL is required "),t.qZA())}function wl(o,n){1&o&&(t.TgZ(0,"mat-error"),t._uU(1," Valid URL must start with https:// "),t.qZA())}function Dl(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,bl,2,0,"mat-error",21),t.YNc(2,wl,2,0,"mat-error",21),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.addRefLinkForm.controls.refLink.errors.required),t.xp6(1),t.Q6J("ngIf",e.addRefLinkForm.controls.refLink.errors.url)}}function Cl(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function vl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",399),t._UZ(1,"div",400),t.TgZ(2,"button",418),t.NdJ("click",function(i){t.CHM(e);const l=t.oxw(2);return i.stopPropagation(),t.KtG(l.deleteAttachmentIcon("R",l.editCloneGroup))}),t.TgZ(3,"mat-icon"),t._uU(4,"delete_forever"),t.qZA(),t._uU(5," Delete Current Icon "),t.qZA(),t.YNc(6,Cl,2,1,"mat-error",21),t.qZA()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")"),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(4),t.Q6J("ngIf",e.genericErr)}}function Tl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_center_focus"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Bl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",123),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.toggleContainWithinAspectRatio())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_overscan"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Il(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"button",113),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.rotateRight())}),t.TgZ(2,"mat-icon"),t._uU(3,"rotate_90_degrees_cw"),t.qZA()(),t.TgZ(4,"button",114),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.rotateLeft())}),t.TgZ(5,"mat-icon"),t._uU(6,"rotate_90_degrees_ccw"),t.qZA()(),t.TgZ(7,"button",115),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.flipHorizontal())}),t.TgZ(8,"mat-icon"),t._uU(9,"switch_right"),t.qZA()(),t.TgZ(10,"button",116),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.flipVertical())}),t.TgZ(11,"mat-icon"),t._uU(12,"unfold_more"),t.qZA()(),t.YNc(13,Tl,3,2,"button",117),t.YNc(14,Bl,3,2,"button",118),t.TgZ(15,"button",119),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.resetImage())}),t.TgZ(16,"mat-icon"),t._uU(17,"refresh"),t.qZA()(),t.TgZ(18,"button",120),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.zoomOut())}),t.TgZ(19,"mat-icon"),t._uU(20,"zoom_out"),t.qZA()(),t.TgZ(21,"button",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.zoomIn())}),t.TgZ(22,"mat-icon"),t._uU(23,"zoom_in"),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",!e.containWithinAspectRatio),t.xp6(1),t.Q6J("ngIf",e.containWithinAspectRatio),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function kl(o,n){1&o&&(t.TgZ(0,"p"),t._uU(1,"Rotate Image"),t.qZA())}function El(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-slider",124),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.rotation=i)})("change",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.updateRotation())}),t._uU(1,"Rotate Image"),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)("thumbLabel",e.thumbL
1abel)("ngModel",e.rotation)("ngModelOptions",t.DdM(5,Z))}}function yl(o,n){if(1&o&&(t.TgZ(0,"div")(1,"p"),t._uU(2,"Preview:"),t.qZA(),t._UZ(3,"img",402),t.qZA()),2&o){const e=t.oxw(2);t.xp6(3),t.Udp("border",e.croppedImage?"1px solid black":"none"),t.Q6J("src",e.croppedImage,t.LSH)}}function Zl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,gl,11,6,"div",21),t.TgZ(4,"div",18)(5,"form",97)(6,"label",414),t._uU(7,"Add Reference Link"),t.qZA(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",415),t.TgZ(10,"mat-hint",394),t._uU(11,"Must start with 'https://'"),t.qZA()(),t._UZ(12,"br"),t.YNc(13,xl,2,0,"mat-error",21),t.YNc(14,Dl,3,2,"div",21),t.qZA(),t._UZ(15,"br"),t.TgZ(16,"div",416)(17,"label",417),t._uU(18,"Reference Link Button Image"),t.qZA(),t.YNc(19,vl,7,5,"div",397),t.TgZ(20,"div",103)(21,"label",104),t._uU(22,"Upload New Image"),t.qZA(),t._UZ(23,"br"),t.TgZ(24,"input",105,106),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw();return l.validateSelectedFile(i,"icon"),t.KtG(l.fileChangeEvent(i))}),t.qZA(),t.YNc(26,Il,24,16,"div",107),t.YNc(27,kl,2,0,"p",21),t.YNc(28,El,2,6,"mat-slider",108),t._UZ(29,"br")(30,"br"),t.TgZ(31,"image-cropper",398),t.NdJ("imageCropped",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.imageCropped(i))})("imageLoaded",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.imageLoaded())})("cropperReady",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.cropperReady(i))})("loadImageFailed",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadImageFailed())}),t.qZA(),t.YNc(32,yl,4,3,"div",21),t.qZA()()()()}if(2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Attach an external reference link to current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(2),t.Q6J("formGroup",e.addRefLinkForm),t.xp6(4),t.Q6J("value",e.refLink),t.xp6(4),t.Q6J("ngIf",e.invalidAttachmentLink),t.xp6(1),t.Q6J("ngIf",e.addRefLinkForm.controls.refLink.errors&&(e.addRefLinkForm.controls.refLink.dirty||e.addRefLinkForm.controls.refLink.touched)),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(7),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(1),t.Q6J("ngIf",e.showCropper),t.xp6(3),t.Udp("display",e.showCropper?null:"none"),t.Q6J("imageChangedEvent",e.imageChangedEvent)("maintainAspectRatio",!0)("containWithinAspectRatio",e.containWithinAspectRatio)("aspectRatio",1)("resizeToWidth",200)("cropperMinWidth",50)("onlyScaleDown",!0)("roundCropper",!1)("canvasRotation",e.canvasRotation)("transform",e.transform)("alignImage","left"),t.xp6(1),t.Q6J("ngIf",e.showCropper)}}function Al(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and other flowcharts"),t.qZA())}function Sl(o,n){1&o&&(t.TgZ(0,"span"),t._uU(1,"this and all versions of this flowcharts"),t.qZA())}function Fl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div")(1,"p"),t._uU(2," This box is a part of a box-clone group. Please select the action you would like to take on this box-clone. "),t.qZA(),t.TgZ(3,"mat-radio-group",382),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.editCloneGroup=i)}),t.TgZ(4,"mat-radio-button",345),t._uU(5,"Delete the reference link from ONLY this Box AND remove the box from the Box-Clone group"),t.qZA(),t.TgZ(6,"mat-radio-button",346),t._uU(7),t.YNc(8,Al,2,0,"span",21),t.YNc(9,Sl,2,0,"span",21),t._uU(10," in your organization which are part of this Box-Clone Group. "),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(3),t.Q6J("ngModel",e.editCloneGroup),t.xp6(4),t.hij(" Delete the reference link from ALL of the ",e.flowchartDetails.currentBox.boxCloneGroupCount," boxes from "),t.xp6(1),t.Q6J("ngIf","Y"===e.flowchartDetails.currentBox.hasMultipleFcs),t.xp6(1),t.Q6J("ngIf","Y"!==e.flowchartDetails.currentBox.hasMultipleFcs)}}function Nl(o,n){if(1&o&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.genericErrMsg," ")}}function Ul(o,n){if(1&o&&(t.TgZ(0,"div"),t._UZ(1,"div",400),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")")}}function Ml(o,n){if(1&o&&(t.TgZ(0,"div",275)(1,"div",15),t._uU(2),t.qZA(),t.YNc(3,Fl,11,4,"div",21),t.TgZ(4,"div",18)(5,"form",102),t.YNc(6,Nl,2,1,"mat-error",21),t.TgZ(7,"div")(8,"label",414),t._uU(9,"Delete link"),t.qZA(),t.TgZ(10,"div"),t._uU(11),t.qZA(),t.YNc(12,Ul,2,2,"div",21),t.qZA()()()()),2&o){const e=t.oxw();
1t.xp6(2),t.hij(" Action Selected: Delete reference link from current Box - ",e.flowchartDetails.currentBox.boxCaption," "),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.boxCloneGroupCount>0),t.xp6(3),t.Q6J("ngIf",e.genericErr),t.xp6(5),t.hij("Current Reference link : ",e.refLink,""),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLinkIconUrl)}}function Jl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Ll(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addMcbBox(i.mcbBoxCaption,i.boxShape,i.boxCorner,i.mcbDefaultChoices))}),t.YNc(1,Jl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Ol(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function ql(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addBox(i.boxShape,i.boxCorner,null,null))}),t.YNc(1,Ol,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Ql(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Rl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addBox(i.boxShape,i.boxCorner,"EMAIL",i.flowchartDetails.emailLogDeliveryAddress))}),t.YNc(1,Ql,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Hl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Yl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addCloneBox(i.boxAlias,i.boxShape,i.boxCorner))}),t.YNc(1,Hl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Vl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Gl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addBox(i.boxShape,i.boxCorner,i.selectedUserInputType,null))}),t.YNc(1,Vl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Kl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Pl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.insertBox(i.boxShape,i.boxCorner,i.connectionId,null,i.boxAlias))}),t.YNc(1,Kl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function zl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function jl(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.insertBox(i.boxShape,i.boxCorner,i.connectionId,null,null))}),t.YNc(1,zl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Wl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function $l(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.insertBox(i.boxShape,i.boxCorner,i.connectionId,i.selectedUserInputType,null))}),t.YNc(1,Wl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Xl(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function tr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.addBookmarkLink(i.boxCorner))}),t.YNc(1,Xl,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading||e.errorForFcBoxesForBookmark||e.mcbBoxForBookmarkNotAllowed),t.xp6(1),t.Q6J("ngIf",e.loading)}}function er(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function or(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.updateCustomBoxVariable())}),t.YNc(1,er,1,0,"mat-spinner",30),t._uU(2," Save "),t.TgZ(3,"mat-icon"),t._uU(4,"save"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function ir(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function ar(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteSelectedBox())}),t.YNc(1,ir,1,0,"mat-spinner",30),t._uU(2," Delete "),t.TgZ(3,"mat-icon"),t._uU(4,"delete"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.hasIncomingLinkedConn||e.loading||e.disableDeleteBoxSubmitButton),t.xp6(1),t.Q6J("ngIf",e.loading)}}function nr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function lr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.deleteFirstBox())}),t.YNc(1,nr,1,0,"mat-spinner",30),t._uU(2," Delete "),t.TgZ(3,"mat-icon"),t._uU(4,"delete"),t.qZA()()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function rr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.YNc(5,Ll,5,2,"button",421),t.YNc(6,ql,5,2,"button",421),t.YNc(7,Rl,5,2,"button",421),t.YNc(8,Yl,5,2,"button",421),t.YNc(9,Gl,5,2,"button",421),t.YNc(10,Pl,5,2,"button",421),t.YNc(11,jl,5,2,"button",421),t.YNc(12,$l,5,2,"button",421),t.YNc(13,tr,5,2,"button",421),t.YNc(14,or,5,2,"button",421),t.YNc(15,ar,5,2,"button",421),t.YNc(16,lr,5,2,"button",421),t.qZA()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("ngIf",e.addMcb&&!1===e.insert),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn)&&!1===e.insert&&"AddBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.addEmailBox&&!1===e.insert),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn)&&!1===e.insert&&"CloneBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.addInputBox&&!1===e.insert),t.xp6(1),t.Q6J("ngIf",(e.addStmt||e.addDecsn)&&e.insert&&"CloneBox"===e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.insert&&!1===e.addInputBox&&"CloneBox"!==e.addBoxSelectedOption),t.xp6(1),t.Q6J("ngIf",e.insert&&e.addInputBox),t.xp6(1),t.Q6J("ngIf",e.addBkmrkLink),t.xp6(1),t.Q6J("ngIf",e.customizeVariable),t.xp6(1),t.Q6J("ngIf",e.deleteBox&&0!==e.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",e.deleteBox&&0===e.flowchartDetails.currentBox.inArrowCount)}}function sr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function cr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.editRegularBox())}),t.YNc(6,sr,1,0,"mat-spinner",30),t._uU(7,"Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.editBoxForm.controls.currentBoxCaption.errors||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function dr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function _r(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.updateBoxEmaillogDeliveryAddress(i.selectedOrgUserEmail))}),t.YNc(6,dr,1,0,"mat-spinner",30),t._uU(7,"Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function mr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function pr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",422),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteBookmarkLink(i.connectionId))}),t.YNc(6,mr,1,0,"mat-spinner",30),t._uU(7," Delete "),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function ur(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function hr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",422),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteBookmarkLink(i.selectedChoice.boxConnectionId))}),t.YNc(6,ur,1,0,"mat-spinner",30),t._uU(7," Delete "),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function fr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",423),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Done "),t.qZA()()}}function gr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function xr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",424),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("I",i.editCloneGroup))}),t.YNc(6,gr,1,0,"mat-spinner",30),t._uU(7," Upload "),t.TgZ(8,"mat-icon"),t._uU(9,"file_upload"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.loading||e.uploadErr),t.xp6(1),t.Q6J("ngIf",e.loading)}}function br(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function wr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",425),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("V",i.editCloneGroup))}),t.YNc(6,br,1,0,"mat-spinner",30),t._uU(7," Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.addVideoLinkForm.invalid||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Dr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Cr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",425),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("I",i.editCloneGroup))}),t.YNc(6,Dr,1,0,"mat-spinner",30),t._uU(7," Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.imageVideoLinkForm.invalid||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function vr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Tr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",426),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteBoxAttachment("I",i.editCloneGroup))}),t.YNc(6,vr,1,0,"mat-spinner",30),t._uU(7," Delete "),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Br(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Ir(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",101),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("R",i.editCloneGroup))}),t.YNc(6,Br,1,0,"mat-spinner",30),t._uU(7," Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.addRefLinkForm.invalid||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function kr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Er(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",426),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteBoxAttachment("R",i.editCloneGroup))}),t.YNc(6,kr,1,0,"mat-spinner",30),t._uU(7," Delete "),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function yr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Zr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",426),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.deleteBoxAttachment("A",i.editCloneGroup))}),t.YNc(6,yr,1,0,"mat-spinner",30),t._uU(7," Delete "),t.TgZ(8,"mat-icon"),t._uU(9,"delete"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Ar(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Sr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",424),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("A",i.editCloneGroup))}),t.YNc(6,Ar,1,0,"mat-spinner",30),t._uU(7," Upload "),t.TgZ(8,"mat-icon"),t._uU(9,"file_upload"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.loading||e.uploadErr),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Fr(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Nr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",425),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.attachMediaContentToBox("A",i.editCloneGroup))}),t.YNc(6,Fr,1,0,"mat-spinner",30),t._uU(7," Save "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();
1t.xp6(5),t.Q6J("disabled",e.addAttachmentLinkForm.invalid||e.loading),t.xp6(1),t.Q6J("ngIf",e.loading)}}function Ur(o,n){1&o&&t._UZ(0,"mat-spinner",53)}function Mr(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",419)(1,"button",420),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.close())}),t._uU(2," Cancel "),t.TgZ(3,"mat-icon"),t._uU(4,"clear"),t.qZA()(),t.TgZ(5,"button",425),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.appendFlowchartUnderCurrentBox())}),t.YNc(6,Ur,1,0,"mat-spinner",30),t._uU(7," Paste Flowchart "),t.TgZ(8,"mat-icon"),t._uU(9,"save"),t.qZA()()()}if(2&o){const e=t.oxw();t.xp6(5),t.Q6J("disabled",e.appending),t.xp6(1),t.Q6J("ngIf",e.appending)}}let Jr=(()=>{class o{constructor(e,a,i,l,r,s,_,m,u,f,p,h,g,C,I){this.ngZone=e,this.dialogRef=a,this.router=i,this.boxService=l,this._flowchartListService=r,this._homeService=s,this._utilService=_,this._flowchartService=m,this._userMilestoneService=u,this.fb=f,this._formBuilder=p,this.dialog=h,this._snackBar=g,this.data=C,this.genericErrMsg="",this.genericErr=!1,this.delMcbErr="",this.invalidAttachmentLink=!1,this.cloneBoxAliasId="",this.fromBoxCornerForEdit="",this.boxAliasForUserOrgNotFound=!1,this.destFlowchartsForBookmarkLink=[],this.appendableFlowchartsForOrgNotFound=!1,this.addCloneGroupForAppend=!1,this.appending=!1,this.addEmailLogCaption="Send Activity Log in Email",this.emailLogAddress="",this.newBoxCaption="",this.inputBoxError="",this.insertBoxError="",this.mcbBoxCaption="",this.mcbBoxCustomVariable="",this.mcbDefaultChoices=[],this.mcbDefaultChoicesDataSource=new B.by([]),this.mcbDefaultChoicesDisplayColumns=["name","actions"],this.editing={},this.userInputBoxCaption="",this.boxShape="",this.boxCorner="T",this.addBoxSelectedOption="AddBox",this.addBoxOptions=[{value:"AddBox",viewValue:"Add Regular Box",selected:"true"},{value:"CloneBox",viewValue:"Clone Existing Box",selected:"false"}],this.addBkmarkLinkSelectedOption="BkmarkFromBox",this.addBookmarkLinkOptions=[{value:"BkmarkFromBox",viewValue:"Select Flowchart and Box",selected:"true"},{value:"BkmarkFromBoxAlias",viewValue:"Select Bookmark Alias",selected:"true"}],this.selectedFcBoxesForBookmark=[],this.showFcBoxesDropdownForBookmark=!1,this.noBoxesForBookmark=!1,this.errorForFcBoxesForBookmark=!1,this.bookmarkByFcBoxErrorMessage="",this.targetFcNotMasterForBookmark=!1,this.mcbBoxForBookmarkNotAllowed=!1,this.userInputBoxTypes=[{value:"TEXT",viewValue:"TEXT",selected:"true"},{value:"EMAIL",viewValue:"EMAIL",selected:"false"},{value:"PHONE",viewValue:"PHONE",selected:"false"},{value:"UPLOAD",viewValue:"UPLOAD FILE",selected:"false"},{value:"CHECKLIST",viewValue:"CHECK LIST",selected:"false"}],this.selectedUserInputType=this.userInputBoxTypes[0].value,this.userInputChecklistDisplayColumns=["optionCaption","optionCustomVarName","optionCustomVarResponse","action"],this.existingUserInputChecklistDataSource=new B.by,this.editCloneGroup="N",this.imageVideoOption="I",this.fileAttachmentOption="F",this.mcbChoiceDisplayMode="V",this.mcbSaveSuccess=!1,this.saveMcbLoading=!1,this.uploadErr=!1,this.loading=!1,this.addChoiceLoading=!1,this.imageChangedEvent="",this.croppedImage="",this.showCropper=!1,this.canvasRotation=0,this.rotation=0,this.scale=1,this.containWithinAspectRatio=!1,this.transform={},this.thumbLabel=!0,this.value=0,this.editChoiceError="",this.currentChoiceBoxDataSource=new B.by([]),this.currentChoiceBoxDisplayColumns=["choiceBoxReOrder","choiceBoxCaption","choiceBoxImage","actions","boxCaption","isLinkedConnection"],this.insert=!1,this.insertBefore=!1,this.addStmt=!1,this.addDecsn=!1,this.editStmt=!1,this.editDecsn=!1,this.bkmrkStmt=!1,this.bkmrkDecsn=!1,this.addInputBox=!1,this.addEmailBox=!1,this.addBkmrkLink=!1,this.addMcb=!1,this.editMcb=!1,this.deletebkmarkLink=!1,this.addPicLink=!1,this.addRefLink=!1,this.addAttachment=!1,this.delPicLink=!1,this.delRefLink=!1,this.delFileLink=!1,this.editChoice=!1,this.deleteBox=!1,this.appendFlowchart=!1,this.customizeVariable=!1,this.canDeleteBox=!1,this.hasIncomingLinkedConn=!1,this.delBoxBkmarklinkMsg="",this.disableDeleteBoxSubmitButton=!1,this.disableDeleteBoxMsg="",this.choiceToStmt=!1,this.choiceToDecsn=!1,this.choiceToAddBkmrkLink=!1,this.choiceToDelBkmrkLink=!1,this.choiceDelete=!1,this.choiceInputBox=!1,this.choiceToBoxShape="",this.addStmtFromChoice=!1,this.addDecsnFromChoice=!1,this.addBkmrklinkFromChoice=!1,this.addInputFromChoice=!1,this.delBkmrklinkFromChoice=!1,this.delChoice=!1,this.delMcb=!1,this.editChoiceCaption=!0,this.addChoiceBo
1xImage=!1,this.editChoiceBoxVar=!1,this.modifyChoiceCaption=!0,this.uploadChoiceImage=!1,this.choiceBoxCustomVar=!1,this.selectedOrgUserEmail="",this.showDelChoiceMessage=!1,this.disableDelMcb=!0,this.customBoxVariable="",this.customBoxVariableYesResponse="",this.customBoxVariableNoResponse="",this.selectedChoiceBoxVar="",this.selectedChoiceBoxCustomVar="",this.selectedChoiceBoxCustomRes="",this.refLink="",this.videoLink="",this.choiceToBoxDetailList=[],this.uploadedFileName="",this.selectedEditButton="",this.deleteIconLoading=!1,this.sessionStorage=I,this.flowchartDetails=this.data.flowchartDetails,this.fromBoxCornerForEdit=this.data.fromBoxCorner,this.boxConnectionInEdit=this.data.boxConnectionInEdit,this.imageVideoLinkForm=new c.nJ({imageVideoLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addRefLinkForm=new c.nJ({refLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addAttachmentLinkForm=new c.nJ({attachmentLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addVideoLinkForm=new c.nJ({videoLink:new c.p4("",c.kI.compose([c.kI.required]))}),this.addInsertBoxForm=new c.nJ({newBoxCaption:new c.p4("",c.kI.compose([c.kI.required,c.kI.maxLength(255)])),userInputBoxCaption:new c.p4("",c.kI.compose([c.kI.required])),boxAliasforUserOrg:new c.p4("",c.kI.compose([c.kI.required])),yesCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)])),noCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)]))}),this.customizeVariableForm=new c.nJ({customBoxVariable:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),customBoxVariableYesResponse:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),customBoxVariableNoResponse:new c.p4("",c.kI.compose([c.kI.maxLength(100)]))}),this.choiceBoxVariableForm=new c.nJ({selectedChoiceBoxCustomVar:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),selectedChoiceBoxCustomRes:new c.p4("",c.kI.compose([c.kI.maxLength(100)]))}),this.editBoxForm=new c.nJ({currentBoxCaption:new c.p4("",[c.kI.required,c.kI.maxLength(255)]),currentYesCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)])),currentNoCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)]))}),this.currentBoxCaption=this.flowchartDetails.currentBox.boxCaption,this.currentYesCaption=this.flowchartDetails.currentBox.yesCaption,this.currentNoCaption=this.flowchartDetails.currentBox.noCaption,this.addRefLinkForm.controls.refLink.setValue(this.flowchartDetails.currentBox.refLink),this.addAttachmentLinkForm.controls.attachmentLink.setValue(this.flowchartDetails.currentBox.fileAttachmentLink),this.customizeVariableForm.controls.customBoxVariable.setValue(this.flowchartDetails.currentBox.boxVarCustomName),this.customBoxVariable=this.flowchartDetails.currentBox.boxVarCustomName,this.customizeVariableForm.controls.customBoxVariableYesResponse.setValue(this.flowchartDetails.currentBox.boxVarCustomResponseYesValue),this.customBoxVariableYesResponse=this.flowchartDetails.currentBox.boxVarCustomResponseYesValue,this.customizeVariableForm.controls.customBoxVariableNoResponse.setValue(this.flowchartDetails.currentBox.boxVarCustomResponseNoValue),this.customBoxVariableNoResponse=this.flowchartDetails.currentBox.boxVarCustomResponseNoValue;let k,T=this;k=this.sessionStorage.getObject("userProfile");let y=d.filter(k.userOrg,function(E){return E.orgId===T.flowchartDetails.orgId});if(this.boxFlowchartOrg=y[0],"M"===this.flowchartDetails.currentBox.boxShapeType){this.editMcb=!0,this.mcbChoiceDisplayMode=this.flowchartDetails.currentBox.mcbChoiceDisplayMode,this.mcbBoxCustomVariable=this.flowchartDetails.currentBox.boxVarCustomName;var v=[];d.forEach(this.flowchartDetails.currentBox.choiceBoxDetails,function(E){""!==E.boxConnectionId&&v.push(E)}),(0===v.length||1===v.length&&"0"===this.flowchartDetails.currentBox.mcbChoiceBoxDetails[v[0].choiceBox.boxId].choiceBoxCorner)&&(this.delMcb=!0,this.disableDelMcb=!1),this.currentChoiceBoxDataSource=new B.by(this.flowchartDetails.currentBox.choiceBoxDetails),this.addPicLink=!1,this.addRefLink=!1,this.addAttachment=!1,this.delPicLink=!1,this.delRefLink=!1,this.delFileLink=!1,this.insert=!1,this.insertBefore=!1,this.addStmt=!1,this.addDecsn=!1,this.editStmt=!1,this.editDecsn=!1,this.bkmrkStmt=!1,this.bkmrkDecsn=!1,this.addInputBox=!1,this.addEmailBox=!1,this.addBkmrkLink=!1,this.deletebkmarkLink=!1,this.addMcb=!1,this.editChoice=!1,this.deleteBox=!1,this.appendFlowchart=!1,this.customizeVariable=!1}else this.appendFlowchart=!1,this.deleteBox=!1,this.addPicLink=!1,this.addRefLink=!1,this.addAttachment=!1,this.addDecsn=!1,this.editStmt=!1,this.editDecsn=!1,this.bkmrkStmt=!1,this.bkmrkDecsn=!1,this.addInputBox=!1,this.addEmailBox=!1,this.addBkmrkLink=!1,this.deletebkmarkLink=!1,this.addMcb=!1,this.editMcb=!1,this.customizeVariable=!1,this.addStmt=!0,this.boxShape="S",this.selectedEditButton="addStmt",this._prepareHighlightedBoxSelectionFlags(),this.setFlagsAndParametersOnEditButtonSelection(this.appendFlowchart,this.deleteBox,this.addPicLink,this.addRefLink,this.addAttachment,this.insert,this.addStmt,this.addDecsn,this.editStmt,this.editDecsn,this.bkmrkStmt,this.bkmrkDecsn,this.addInputBox,this.addEmailBox,this.addBkmrkLink,this.deletebkmarkLink,this.addMcb,this.editMcb,this.boxShape,this.boxCorner,this.connectionId,this.customizeVariable,this.insertBefore);this.showDeleteBoxOption(),this._utilService.usedDecisionBoxMilestoneAchieved.subscribe(E=>{E&&this._snackBar.open(b.GY3,"Dismiss",{duration:2500})}),this._utilService.usedUserInputBoxMilestoneAchieved.subscribe(E=>{E&&this._snackBar.open(b._1m,"Dismiss",{duration:2500})}),this._utilService.usedEmailLogBoxMilestoneAchieved.subscribe(E=>{E&&this._snackBar.open(b.HLF,"Dismiss",{duration:2500})}),this._utilService.usedMcbBoxMilestoneAchieved.subscribe(E=>{E&&this._snackBar.open(b.ucM,"Dismiss",{duration:2500})}),this._utilService.createdBookmarkLinkMilestoneAchieved.subscribe(E=>{E&&this._snackBar.open(b.xhR,"Dismiss",{duration:2500})})}set matSort(e){this.sort=e,this.setDataSourceAttributes()}set matPaginator(e){this.paginator=e,this.setDataSourceAttributes()}setDataSourceAttributes(){this.mcbDefaultChoicesDataSource.paginator=this.paginator,this.mcbDefaultChoicesDataSource.sort=this.sort,this.currentChoiceBoxDataSource.paginator=this.paginator,this.currentChoiceBoxDataSource.sort=this.sort}
1ngOnInit(){this.imageVideoLinkForm=new c.nJ({imageVideoLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addRefLinkForm=new c.nJ({refLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addAttachmentLinkForm=new c.nJ({attachmentLink:new c.p4("",c.kI.compose([c.kI.required,S.dN.url]))}),this.addVideoLinkForm=new c.nJ({videoLink:new c.p4("",c.kI.compose([c.kI.required]))}),this.customizeVariableForm=new c.nJ({customBoxVariable:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),customBoxVariableYesResponse:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),customBoxVariableNoResponse:new c.p4("",c.kI.compose([c.kI.maxLength(100)]))}),this.choiceBoxVariableForm=new c.nJ({selectedChoiceBoxCustomVar:new c.p4("",c.kI.compose([c.kI.maxLength(100)])),selectedChoiceBoxCustomRes:new c.p4("",c.kI.compose([c.kI.maxLength(100)]))}),this.editBoxForm=new c.nJ({currentBoxCaption:new c.p4("",c.kI.required),currentYesCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)])),currentNoCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)]))}),this.addInsertBoxForm=new c.nJ({newBoxCaption:new c.p4("",c.kI.compose([c.kI.required])),userInputBoxCaption:new c.p4("",c.kI.compose([c.kI.required])),boxAliasforUserOrg:new c.p4("",c.kI.compose([c.kI.required])),yesCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)])),noCaption:new c.p4("",c.kI.compose([c.kI.maxLength(10)]))}),this.userInputChecklistForm=new c.Oe([].map(e=>this.createFormGroup(e)))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}createFormGroup(e){return new c.nJ({optionCaption:new c.p4((e=e||{optionCaption:"",optionCustomVarName:"",optionCustomVarResponse:""}).optionCaption,c.kI.compose([c.kI.required,c.kI.maxLength(100)])),optionCustomVarName:new c.p4(e.optionCustomVarName,c.kI.compose([c.kI.maxLength(50)])),optionCustomVarResponse:new c.p4(e.optionCustomVarResponse,c.kI.compose([c.kI.maxLength(50)]))})}onKeyUp(e){e.cancelBubble=!0,e.preventDefault(),e.stopPropagation&&e.stopPropagation()}_prepareHighlightedBoxSelectionFlags(){"E"===this.flowchartDetails.currentBox.boxShapeType?(this.deleteBox=!0,this.addStmt=!1,this.boxShape="",this.boxCorner="",this.connectionId=0,this.selectedEditButton="deleteBox"):"S"!==this.flowchartDetails.currentBox.boxShapeType&&"I"!==this.flowchartDetails.currentBox.boxShapeType||1===this.flowchartDetails.toBoxList.length?"S"!==this.flowchartDetails.currentBox.boxShapeType&&"I"!==this.flowchartDetails.currentBox.boxShapeType||1!==this.flowchartDetails.toBoxList.length?"D"===this.flowchartDetails.currentBox.boxShapeType&&"Y"===this.fromBoxCornerForEdit&&(0===this.flowchartDetails.toBoxList.length||1===this.flowchartDetails.toBoxList.length&&"N"===this.flowchartDetails.toBoxList[0].fromBoxCorner)?(this.insert=!1,this.insertBefore=!1,this.boxCorner="Y",this.connectionId=0):"D"===this.flowchartDetails.currentBox.boxShapeType&&"Y"===this.fromBoxCornerForEdit&&0!==this.flowchartDetails.toBoxList.length&&"Y"===this.flowchartDetails.toBoxList[0].fromBoxCorner?(this.insert=!0,this.boxCorner="T",this.connectionId=this.flowchartDetails.toBoxList[0].boxConnectionId):"D"===this.flowchartDetails.currentBox.boxShapeType&&"N"===this.fromBoxCornerForEdit&&0===this.flowchartDetails.toBoxList.length||1===this.flowchartDetails.toBoxList.length&&"Y"===this.flowchartDetails.toBoxList[0].fromBoxCorner?(this.insert=!1,this.boxCorner="N",this.connectionId=0):"D"===this.flowchartDetails.currentBox.boxShapeType&&"N"===this.fromBoxCornerForEdit&&0!==this.flowchartDetails.toBoxList.length&&"N"===this.flowchartDetails.toBoxList[0].fromBoxCorner?(this.insert=!0,this.boxCorner="T",this.connectionId=this.flowchartDetails.toBoxList[0].boxConnectionId):"D"===this.flowchartDetails.currentBox.boxShapeType&&"N"===this.fromBoxCornerForEdit&&2===this.flowchartDetails.toBoxList.length&&(this.insert=!0,this.boxCorner="T",this.connectionId=this.flowchartDetails.toBoxList[1].boxConnectionId):(this.boxCorner="T",this.connectionId=this.flowchartDetails.toBoxList[0].boxConnectionId,this.editStmt=!0,this.addStmt=!1,this.selectedEditButton="editStmt"):(this.insert=!1,this.insertBefore=!1,this.boxCorner="T",this.connectionId=0)}drop(e){if(0!==e.currentIndex&&e.currentIndex!==this.flowchartDetails.currentBox.choiceBoxDetails.length-1){const a=this.flowchartDetails.currentBox.choiceBoxDetails.findIndex(i=>i===e.item.data);(0,L.bA)(this.flowchartDetails.currentBox.choiceBoxDetails,a,e.currentIndex),this.currentChoiceBoxDataSource=new B.by(this.flowchartDetails.currentBox.choiceBoxDetails),this.choiceTable.renderRows()}console.log("Reorder choice rows",this.flowchartDetails.currentBox.choiceBoxDetails),console.log("reorder table rows",this.currentChoiceBoxDataSource)}showDeleteBoxOption(){var e;this.hasIncomingLinkedConn=!1,this.disableDeleteBoxSubmitButton=!1,this.disableDeleteBoxMsg="",-1!==d.findIndex(e=this.flowchartDetails.fromBoxList,function(l){return d.isEqual(l.isLinkedConnection,"Y")})&&(this.delBoxBkmarklinkMsg="There are incoming links from other or same flowcharts. You cannot delete the current box until you delete these incoming bookmark link. Please go to those flowcharts and delete the link coming to this flowchart. You will then be able to delete this box.",this.hasIncomingLinkedConn=!0),1===this.flowchartDetails.toBoxList.length&&"E"===this.flowchartDetails.toBoxList[0].box.boxSh
1apeType&&-1!==d.findIndex(e,function(l){return d.isEqual(l.box.boxShapeType,"D")})&&(this.disableDeleteBoxSubmitButton=!0,this.disableDeleteBoxMsg="You can not delete this particular Statement Box because the previous box is a decision box and the next box is a Send-Email-Log box. This rule is in place to encourage best practices in designing flowchart logic in DeciZone. We recommend that you first delete the Send-Email-Log box in the Next Layer and then you will be able to delete this Statement box."),"S"===this.flowchartDetails.currentBox.boxShapeType&&this.flowchartDetails.toBoxList&&1===this.flowchartDetails.toBoxList.length&&"M"===this.flowchartDetails.toBoxList[0].box.boxShapeType&&(this.disableDeleteBoxSubmitButton=!0,this.disableDeleteBoxMsg="This Statement box cannot be deleted because there is a MCB box immediately after this Statement box. We understand that this may add some constraints, but to follow some best practices and as a safe guard against common potential problems, we require that a Statement box is always present immediately before each MCB box. You are still able to change the caption of this Statement box OR you are even able to insert a new Statement box between this statement box and the MCB box. Before you are able to delete this Statement box, you will need to delete the immediately following MCB box and all its choices first. We recommend that instead of trying to delete this statement box you change the caption of this statement box to something appropriate and leave it before your MCB box. Please contact DeciZone Support team if you have any questions."),(this.flowchartDetails.currentBox.inArrowCount>0&&("S"===this.flowchartDetails.currentBox.boxShapeType||"I"===this.flowchartDetails.currentBox.boxShapeType||"E"===this.flowchartDetails.currentBox.boxShapeType)||"D"===this.flowchartDetails.currentBox.boxShapeType&&(0===this.flowchartDetails.toBoxList.length||1===this.flowchartDetails.toBoxList.length&&"Y"!==this.flowchartDetails.toBoxList[0].isLinkedConnection))&&(this.canDeleteBox=!0)}setFlagsAndParamsForCurrentBoxUpdate(e,a,i,l,r,s){if(this.uploadErr=!1,this.uploadErrMsg="",this.genericErr=!1,this.genericErrMsg="",this.newBoxCaption="",this.inputBoxError="",this.insertBoxError="",this.editCloneGroup="N",this.addPicLink=e,this.addRefLink=a,this.addAttachment=i,this.delPicLink=l,this.delRefLink=r,this.delFileLink=s,this.insert=!1,this.addStmt=!1,this.addDecsn=!1,this.editStmt=!1,this.editDecsn=!1,this.bkmrkStmt=!1,this.bkmrkDecsn=!1,this.addInputBox=!1,this.addEmailBox=!1,this.addBkmrkLink=!1,this.deletebkmarkLink=!1,this.addMcb=!1,this.editMcb=!1,this.editChoice=!1,this.deleteBox=!1,this.appendFlowchart=!1,(this.addAttachment||this.delFileLink)&&this.flowchartDetails.currentBox.fileUrl){var _=d.split(this.flowchartDetails.currentBox.fileUrl,"/");this.uploadedFileName=_[_.length-1],this.fileAttachmentOption="F"}(this.addAttachment||this.delFileLink)&&this.flowchartDetails.currentBox.fileAttachmentLink&&(this.addAttachmentLinkForm.controls.attachmentLink.setValue(this.flowchartDetails.currentBox.fileAttachmentLink),this.fileAttachmentOption="L"),(this.addRefLink||this.delRefLink)&&this.flowchartDetails.currentBox.refLink&&(this.refLink=this.flowchartDetails.currentBox.refLink,this.addRefLinkForm.controls.refLink.setValue(this.refLink)),(this.addPicLink||this.delPicLink)&&this.flowchartDetails.currentBox.videoLink&&(this.addVideoLink
1Form.controls.videoLink.setValue(this.flowchartDetails.currentBox.videoLink),this.imageVideoOption="V"),(this.addPicLink||this.delPicLink)&&"E"===this.flowchartDetails.currentBox.imageVideoOption&&this.flowchartDetails.currentBox.imageVideoLink&&(this.imageVideoLinkForm.controls.imageVideoLink.setValue(this.flowchartDetails.currentBox.imageVideoLink),this.imageVideoOption="E"),(this.addPicLink||this.delPicLink)&&"I"===this.flowchartDetails.currentBox.imageVideoOption&&this.flowchartDetails.currentBox.imageUrl&&(this.imageVideoOption="I")}setFlagsAndParametersOnEditButtonSelection(e,a,i,l,r,s,_,m,u,f,p,h,g,C,I,T,k,y,v,E,H,kd,Ed){if(this.uploadErr=!1,this.uploadErrMsg="",this.genericErr=!1,this.genericErrMsg="",this.newBoxCaption="",this.inputBoxError="",this.insertBoxError="",this.editCloneGroup="N",this.appendFlowchart=e,this.deleteBox=a,this.addPicLink=i,this.addRefLink=l,this.addAttachment=r,this.insert=s,this.insertBefore=Ed,this.addStmt=_,this.addDecsn=m,this.editStmt=u,this.editDecsn=f,this.bkmrkStmt=p,this.bkmrkDecsn=h,this.addInputBox=g,this.addEmailBox=C,this.addBkmrkLink=I,this.deletebkmarkLink=T,this.addMcb=k,this.editMcb=y,this.delPicLink=!1,this.delRefLink=!1,this.delFileLink=!1,this.editChoice=!1,this.customizeVariable=kd,this.boxShape=v,this.boxCorner=E,this.connectionId=H,this.insertBefore){let U=d.filter(this.flowchartDetails.fromBoxList,function(J){return"Y"!==J.isLinkedConnection});this.connectionId=U[0].boxConnectionId}if(this.addBoxSelectedOption="AddBox",I&&(this.loadAllBoxAliasForUserOrg(),this.prepareFlowchartListForBookmarkLinkCreation()),e&&this.loadAppendAsFragmentFlowchartsForOrg(),this.editBoxForm.controls.currentBoxCaption.setValue(this.currentBoxCaption),this.editBoxForm.controls.currentYesCaption.setValue(this.currentYesCaption),this.editBoxForm.controls.currentNoCaption.setValue(this.currentNoCaption),this.customizeVariableForm.controls.customBoxVariable.setValue(this.customBoxVariable),this.customizeVariableForm.controls.customBoxVariableYesResponse.setValue(this.customBoxVariableYesResponse),this.customizeVariableForm.controls.customBoxVariableNoResponse.setValue(this.customBoxVariableNoResponse),1!=this.flowchartDetails.orgId&&(C||u&&"E"===this.flowchartDetails.currentBox.boxShapeType)){var Zd=this.sessionStorage.getObject("cattree")[this.flowchartDetails.orgName].orgUserAccess;C?this.selectedOrgUserEmail=this.flowchartDetails.emaillogDeliveryAddress:u&&"E"===this.flowchartDetails.currentBox.boxShapeType&&(this.selectedOrgUserEmail=this.flowchartDetails.currentBox.emaillogDeliveryAddress),this.sub=this.boxService.getOrgUserEmailsForEmailLogBox(this.flowchartDetails.orgName,Zd).subscribe(U=>{this.userOrgEmails=U.responseBody,console.log(this.userOrgEmails)},U=>{console.log("Error in loading org's emails - "+U)})}u&&"I"===this.flowchartDetails.currentBox.boxShapeType&&"CHECKLIST"===this.flowchartDetails.currentBox.userInputDataType&&(this.existingUserInputChecklistForm=this._formBuilder.group({userInputOptionRows:this._formBuilder.array([])}),this.existingUserInputChecklistForm=this.fb.group({userInputOptionRows:this.fb.array(this.flowchartDetails.currentBox.boxUserInputCustomOptionList.map(J=>this.fb.group({customOptionId:new c.p4(J.customOptionId),optionCaption:new c.p4(J.optionCaption),optionCustomVarResponse:new c.p4(J.optionCustomVarResponse),optionCustomVarName:new c.p4(J.optionCustomVarName),isEditable:new c.p4(!0)})))}),this.existingUserInputChecklistDataSource=new B.by(this.existingUserInputChecklistForm.get("userInputOptionRows").controls)),k&&(this.mcbDefaultChoices=[{id:0,name:"Default"},{id:9999,name:"Other"}],this.mcbDefaultChoicesDataSource=new B.by(this.mcbDefaultChoices))}addNewChecklistOptionRow(){const e=this.existingUserInputChecklistForm.get("userInputOptionRows");e.insert(0,this.initiateUserInputChecklistForm()),this.existingUserInputChecklistDataSource=new B.by(e.controls)}initiateUserInputChecklistForm(){return this.fb.group({customOptionId:new c.p4(""),optionCaption:new c.p4("",c.kI.compose([c.kI.required,c.kI.maxLength(100)])),optionCustomVarResponse:new c.p4("",c.kI.compose([c.kI.maxLength(50)])),optionCustomVarName:new c.p4("",c.kI.compose([c.kI.maxLength(50)])),action:new c.p4("newRecord"),isEditable:new c.p4(!1)})}editUserInputChecklistOptionRow(e,a){e.get("userInputOptionRows").at(a).get("isEditable").patchValue(!1)}updateUserInputChecklistOptionRow(e,a){e.get("userInputOptionRows").at(a).get("isEditable").patchValue(!0)}cancelEditUserInputChecklistOptionRow(e,a){e.get("userInputOptionRows").at(a).get("isEditable").patchValue(!0);let i=this.flowchartDetails.currentBox.boxUserInputCustomOptionList,l=e.get("userInputOptionRows").at(a).get("customOptionId").value,r=d.find(i,function(s){return s.customOptionId===l});r&&(e.get("userInputOptionRows").at(a).get("optionCaption").patchValue(r.optionCaption),e.get("userInputOptionRows").at(a).get("optionCustomVarResponse").patchValue(r.optionCustomVarResponse),e.get("userInputOptionRows").at(a).get("optionCustomVarName").patchValue(r.optionCustomVarName)),this.existingUserInputChecklistDataSource=new B.by(this.existingUserInputChecklistForm.get("userInputOptionRows").controls)}deleteUserInputChecklistOptionRow(e,a){e.get("userInputOptionRows").removeAt(a),this.existingUserInputChecklistDataSource=new B.by(this.existingUserInputChecklistForm.get("userInputOptionRows").controls)}imageVideoOptionChange(e){this.imageVideoOption=e}fileAttachmentOptionChange(e){this.fileAttachmentOption=e}fileChangeEvent(e){this.imageChangedEvent=e}imageCropped(e){this.croppedImage=e.base64,console.log(e,(0,P.Ll)(e.base64))}imageLoaded(){this.showCropper=!0,console.log("Image loaded")}cropperReady(e){console.log("Cropper ready",e)}loadImageFailed(){console.log("Load failed"),this.genericErr=!0,this.genericErrMsg="Loading Image Failed"}rotateLeft(){this.canvasRotation--,this._flipAfterRotate(),this.updateRotation()}rotateRight(){this.canvasRotation++,this._flipAfterRotate(),this.updateRotation()}_flipAfterRotate(){this.transform={...this.transform,flipH:this.transform.flipV,flipV:this.transform.flipH}}flipHorizontal(){this.transform={...this.transform,flipH:!this.transform.flipH}}flipVertical(){this.transform={...this.transform,flipV:!this.transform.flipV}}resetImage(){this.scale=1,this.rotation=0,this.canvasRotation=0,this.transform={}}zoomOut(){this.scale-=.1,this.transform={...this.transform,scale:this.scale}}zoomIn(){this.scale+=.1,this.transform={...this.transform,scale:this.scale}}toggleContainWithinAspectRatio(){this.containWithinAspectRatio=!this.containWithinAspectRatio}updateRotation(){this.transform={...this.transform,rotate:this.rotation}}dataURItoBlob(e){const a=atob(e.split(",")[1]),i=[];for(let l=0;l<a.length;
1l++)i.push(a.charCodeAt(l));return new Blob([new Uint8Array(i)],{type:"image/png"})}validateSelectedImage(e){if(this.uploadErr=!1,e.target.files&&e.target.files.length>0){if(!d.includes(["image/png","image/gif","image/jpeg","image/pjpeg","image/jpg"],e.target.files[0].type))return this.uploadErrMsg="Not valid image type. Only png/jpeg/gif files are allowed.",void(this.uploadErr=!0)}else this.uploadErr=!0,this.uploadErrMsg="You haven't selected any file."}validateSelectedFile(e,a){if(this.uploadErr=!1,e.target.files&&e.target.files.length>0){let l=5e5;if("icon"===a)return void(l=this.boxFlowchartOrg.boxImageIconSize);if("file"===a&&(l=this.boxFlowchartOrg.boxAttachmentSize),e.target.files[0].size>1e3*l)return this.uploadErr=!0,void(this.uploadErrMsg="File size must be less than "+l+"KB.")}else this.uploadErr=!0,this.uploadErrMsg="You haven't selected any file."}attachMediaContentToBox(e,a){var i=this;return(0,et.Z)(function*(){i.invalidAttachmentLink=!1,i.loading=!0;var l="F",r="";if(i.addPicLink?"E"===i.imageVideoOption?(l="L",r=i.imageVideoLinkForm.get("imageVideoLink").value):"V"===i.imageVideoOption&&(l="L",r=i.addVideoLink
1Form.get("videoLink").value):"R"===e?(l="L",r=i.addRefLinkForm.get("refLink").value):"A"===e&&"L"===i.fileAttachmentOption&&(l="L",r=i.addAttachmentLinkForm.get("attachmentLink").value),"L"===l&&"V"!==i.imageVideoOption&&!d.startsWith(r,"https://"))return i.invalidAttachmentLink=!0,void(i.loading=!1);let s={"dlv-user_state_id":"loggedin","dlv-user_id":i._utilService.getLoggedInUserId(),"dlv-org_member":i._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":i._utilService.getLoggedInUserRole(),"dlv-org_id":i.flowchartDetails.orgId,"dlv-cat_id":i.flowchartDetails.categoryId,"dlv-subcat_id":i.flowchartDetails.subCategoryId,"dlv-goal_id":i.flowchartDetails.goalId,"dlv-fc_id":i.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":i.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":i.flowchartDetails.currentBox.boxId,"dlv-modify_clones":"Y"===a},_={flowchartId:i.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:i.flowchartDetails.flowchartCreator,orgId:i.flowchartDetails.orgId,orgName:i.flowchartDetails.orgName,userAccess:i.flowchartDetails.userAccess,currentBoxId:i.flowchartDetails.currentBox.boxId,attachmentName:r,attachmentType:e,attachmentValue:"",attachmentOption:l,attachmentIconValue:"",updateCloneGroup:"Y"===a,allowReuse:"N",userSessionId:i._utilService.getCookie("userSessionId")};if("F"===l){let m=i.fileInput.nativeElement,f="";if(m.files.length>0){let p=new FileReader,h=m.files.item(0).name.replace(/\s/g,"");if(h=h.replace(/[\])}[{(]/g,""),i.croppedImage){let g=m.files.item(0).name.replace(/\s/g,"");g=g.replace(/[\])}[{(]/g,"");let C=g.substring(0,g.indexOf("."))+".png";console.log("png file name",C);const I=i.dataURItoBlob(i.croppedImage);let T=new File([I],C,{type:"image/png"});const k={maxSizeMB:.5,useWebWorker:!1};let y=T;try{const v=yield(0,z.Z)(T,k);console.log("compressedFile instanceof Blob",v instanceof Blob),console.log(`compressedFile size ${v.size/1024/1024} MB`),y=v}catch(v){console.log(v)}_.attachmentName=C,p.readAsDataURL(y)}else _.attachmentName=h,p.readAsDataURL(m.files.item(0));p.onload=()=>{f=p.result.toString().split(",")[1],_.attachmentValue=f,i.boxService.uploadFileAndAddToBox(_).subscribe(g=>{i._updateBoxInSession(g.responseBody.boxes),"A"===e?(i._userMilestoneService.saveOrUpdateUserMilestone("ADDED_FILE_TO_BOX",null),"S"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_stmtaddattach":"D"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_decnaddattach":"I"===i.flowchartDetails.currentBox.boxShapeType&&(s.event="editfc_inputaddattach"),s.event&&window.dataLayer.push(s)):"I"===e&&(i._userMilestoneService.saveOrUpdateUserMilestone("ADDED_IMAGE_TO_BOX",null),"S"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_stmtaddimage":"D"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_decnaddimage":"I"===i.flowchartDetails.currentBox.boxShapeType&&(s.event="editfc_inputaddimage"),s.event&&window.dataLayer.push(s)),i.loading=!1,i.dialogRef.close(!0)},g=>{i.uploadErr=!0,i.uploadErrMsg=g&&g.error?g.error.statusMessage:"",i._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_ADD_FILE_ON_BOX.errorMessage,...b.wml}),i.loading=!1})}}else i.loading=!1,i.uploadErr=!0,i.uploadErrMsg="Please select the file first to upload."}else if("L"===l&&"V"!==i.imageVideoOption){let m=i.fileInput.nativeElement,u=m.files.length;if(console.log("icon file selected",u),!(u>0))return i.boxService.uploadFileAndAddToBox(_).subscribe(p=>{i._updateBoxInSession(p.responseBody.boxes),i._userMilestoneService.saveOrUpdateUserMilestone("ADDED_REF_LINK_TO_BOX",null),"S"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_stmtaddimgvidlink":"D"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_decnaddimgvidlink":"S"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_stmtaddreflink":"D"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_decnaddreflink":"I"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_inputaddreflink":"S"!==i.flowchartDetails.currentBox.boxShapeType||"A"!==e||d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)?"D"!==i.flowchartDetails.currentBox.boxShapeType||"A"!==e||d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)?"I"===i.flowchartDetails.currentBox.boxShapeType&&"A"===e&&!d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)&&(s.event="editfc_inputaddattach"):s.event="editfc_decnaddattach":s.event="editfc_stmtaddattach",s.event&&window.dataLayer.push(s),i.loading=!1,i.dialogRef.close(!0)},p=>{i.genericErr=!0,i.genericErrMsg=p&&p.error?p.error.statusMessage:"",i._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_ADD_REFERENCE_LINK_ON_BOX.errorMessage,...b.wml}),i.loading=!1}),i.dialogRef.afterClosed();{let p=m.files.item(0).name.replace(/\s/g,"");p=p.replace(/[\])}[{(]/g,"");let h=p.substring(0,p.indexOf("."))+".png";console.log("png file name",h);const g=i.dataURItoBlob(i.croppedImage);let C=new File([g],h,{type:"image/png"});const I={maxSizeMB:.5,useWebWorker:!1};let T=C;try{const v=yield(0,z.Z)(C,I);console.log("compressedFile instanceof Blob",v instanceof Blob),console.log(`compressedFile size ${v.size/1024/1024} MB`),T=v}catch(v){console.log(v)}let k="",y=new FileReader;y.readAsDataURL(T),y.onload=()=>(k=y.result.toString().split(",")[1],_.attachmentValue=h,_.attachmentIconValue=k,i.boxService.uploadFileAndAddToBox(_).subscribe(v=>{i._userMilestoneService.saveOrUpdateUserMilestone("ADDED_REF_LINK_TO_BOX",null),"A"!==e&&("S"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_stmtaddimgvidlink":"D"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_decnaddimgvidlink":"I"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_inputaddimgvidlink":"S"!==i.flowchartDetails.currentBox.boxShapeType||"R"!==e||d.isEqual(i.flowchartDetails.currentBox.refLink,r)?"D"!==i.flowchartDetails.currentBox.boxShapeType||"R"!==e||d.isEqual(i.flowchartDetails.currentBox.refLink,r)?"I"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e&&!d.isEqual(i.flowchartDetails.currentBox.refLink,r)&&(s.event="editfc_inputaddreflink"):s.event="editfc_decnaddreflink":s.event="editfc_stmtaddreflink",s.event&&window.dataLayer.push(s)),"A"===e&&("S"!==i.flowchartDetails.currentBox.boxShapeType||"A"!==e||d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)?"D"!==i.flowchartDetails.currentBox.boxShapeType||"A"!==e||d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)?"I"===i.flowchartDetails.currentBox.boxShapeType&&"A"===e&&!d.isEqual(i.flowchartDetails.currentBox.fileAttachmentLink,r)&&(s.event="editfc_inputaddattach"):s.event="editfc_decnaddattach":s.event="editfc_stmtaddattach",s.event&&window.dataLayer.push(s)),"S"===i.flowchartDetails.currentBox.boxShapeType&&"I"===e?s.event="editfc_stmtaddimgvidlinkicon":"S"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_stmtaddreflinkicon":"D"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_decnaddreflinkicon":"I"===i.flowchartDetails.currentBox.boxShapeType&&"R"===e?s.event="editfc_inputaddreflinkicon":"D"===i.flowchartDetails.currentBox.boxShapeType&&"A"===e?s.event="editfc_decnaddattachicon":"I"===i.flowchartDetails.currentBox.boxShapeType&&"A"===e&&(s.event="editfc_inputaddattachicon"),s.event&&window.dataLayer.push(s),i._updateBoxInSession(v.responseBody.boxes),i.loading=!1,i.dialogRef.close(!0)},v=>{i.genericErr=!0,i.genericErrMsg=v&&v.error?v.error.statusMessage:"",i._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_ADD_REFERENCE_LINK_ON_BOX.errorMessage,...b.wml}),i.loading=!1}),i.dialogRef.afterClosed())}}else"V"===i.imageVideoOption&&i.boxService.uploadFileAndAddToBox(_).subscribe(m=>{i._updateBoxInSession(m.responseBody.boxes),"S"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_stmtaddyoutube":"D"===i.flowchartDetails.currentBox.boxShapeType?s.event="editfc_decnaddyoutube":"I"===i.flowchartDetails.currentBox.boxShapeType&&(s.event="editfc_inputaddyoutube"),s.event&&window.dataLayer.push(s),i.loading=!1,i.dialogRef.close(!0)},m=>{i.genericErr=!0,i.genericErrMsg=m&&m.error?m.error.statusMessage:"",i._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_ADD_FILE_ON_BOX.errorMessage,...b.wml}),i.loading=!1})})()}deleteAttachmentIcon(e,a){this.deleteIconLoading=!0;var i="";"R"===e?i=this.flowchartDetails.currentBox.refLink:"A"===e?i=this.flowchartDetails.currentBox.fileAttachmentIconUrl:"I"===e&&"E"===this.imageVideoOption&&(i=this.flowchartDetails.currentBox.imageVideoThumbnailUrl);let l={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,orgId:this.flowchartDetails.orgId,orgName:this.flowchartDetails.orgName,userAccess:this.flowchartDetails.userAccess,currentBoxId:this.flowchartDetails.currentBox.boxId,deleteAttachmentIcon:!0,attachmentName:i,attachmentType:e,attachmentValue:"",attachmentIconValue:"",attachmentOption:"L",updateCloneGroup:"Y"===a,allowReuse:"N",userSessionId:this._utilService.getCookie("userSessionId")};this.boxService.deleteBoxAttachment(l).subscribe(r=>{this._updateBoxInSession(r.responseBody.boxes),this.deleteIconLoading=!1},r=>{this.genericErr=!0,this.genericErrMsg=r&&r.error?r.error.statusMessage:"",this._snackBar.openFromComponent(D.f,r&&401===r.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_DELETE_BOX_ATTACHMENT_ICON_FAILED.errorMessage,...b.wml}),this.deleteIconLoading=!1})}deleteBoxAttachment(e,a){this.loading=!0;var i="F";this.delPicLink?"E"===this.imageVideoOption?i="L":"V"===this.imageVideoOption?(i="L",e="V"):"I"===this.imageVideoOption&&(e="I"):("R"===e||"A"===e&&("L"===this.fileAttachmentOption||null!==this.flowchartDetails.currentBox.fileAttachmentLink))&&(i="L");let r={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId,"dlv-modify_clones":"Y"===a},s={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,orgId:this.flowchartDetails.orgId,orgName:this.flowchartDetails.orgName,userAccess:this.flowchartDetails.userAccess,currentBoxId:this.flowchartDetails.currentBox.boxId,attachmentName:"",attachmentType:e,attachmentOption:i,deleteAttachment:!0,updateCloneGroup:"Y"===a,allowReuse:"N",userSessionId:this._utilService.getCookie("userSessionId")};return this.boxService.deleteBoxAttachment(s).subscribe(_=>{this._updateBoxInSession(_.responseBody.boxes),("A"===e||"R"===e||"V"===e||"I"===e)&&("A"===e&&"S"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_stmtdeleteattach":"R"===e&&"S"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_stmtdeletereflink":"R"===e&&"D"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_decndeletereflink":"A"===e&&"D"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_decndeleteattach":"A"===e&&"I"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_inputdeleteattach":"R"===e&&"I"===this.flowchartDetails.currentBox.boxShapeType?r.event="editfc_inputdeletereflink":"I"!==this.imageVideoOption&&"V"!==e||"S"!==this.flowchartDetails.currentBox.boxShapeType?("I"===this.imageVideoOption||"V"===e)&&"D"===this.flowchartDetails.currentBox.boxShapeType&&(r.event="editfc_decndeleteimgvid"):r.event="editfc_stmtdeleteimgvid",r.event&&window.dataLayer.push(r)),this.loading=!1,this.dialogRef.close(!0)},_=>{this.genericErr=!0,this.genericErrMsg=_&&_.error?_.error.statusMessage:"",this._snackBar.openFromComponent(D.f,_&&401===_.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_DELETE_BOX_ATTACHMENT_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}editDefaultCaption(e){let i=this.dialog.open(G,{width:"300px",data:{mcbChoices:this.mcbDefaultChoices,title:"Update Default Choice",defaultChoice:e,message:"Edit current defaultCaption - "+e,addFlag:!1}});i.afterClosed().subscribe(l=>{if(l){this.mcbDefaultChoices=[...this.mcbDefaultChoices],this.mcbDefaultChoicesDataSource=new B.by(this.mcbDefaultChoices);let r={event:"editfc_mcbdefaultrename","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};window.dataLayer.push(r)}i=null})}addUserInputChecklistItem(){this.userInputChecklistForm.controls.push(this.createFormGroup({})),this.userInputChecklistTable&&this.userInputChecklistTable.renderRows(),console.log("new list after adding new row",this.userInputChecklistForm)}deleteSelectedRow(e){console.log("selected checklist item to delete from list",e);let a=this.userInputChecklistForm,i=d.findIndex(a.controls,function(l){return l.value.optionCaption===e.value.optionCaption});console.log("removed option",i),a.removeAt(i),this.userInputChecklistForm=a,this.userInputChecklistTable.renderRows(),console.log("final list",this.userInputChecklistForm)}addNewChoice(){let e=this.dialog.open(G,{width:"300px",data:{mcbChoices:this.mcbDefaultChoices,title:"Add Choice",addFlag:!0,addMcbChoice:!0}});e.afterClosed().subscribe(a=>{a&&(this.mcbDefaultChoices=[...this.mcbDefaultChoices],this.mcbDefaultChoicesDataSource=new B.by(this.mcbDefaultChoices)),e=null})}addNewChoiceInChoiceList(){let e=this.dialog.open(G,{width:"300px",data:{mcbChoices:this.flowchartDetails.currentBox.choiceBoxDetails,title:"Add New Choice",addFlag:!0,addMcbChoice:!1}});e.afterClosed().subscribe(a=>{if(a){this.addChoiceLoading=!0;var l=[];l.push(this.flowchartDetails.currentBox.choiceBoxDetails[0].choiceBox.boxCaption);let r={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,newBoxShapeType:"C",userIn
1putDataType:"TEXT",emaillogDeliveryAddress:this.flowchartDetails.emaillogDeliveryAddress,allowReuse:"N",caption:this.flowchartDetails.currentBox.boxCaption,choiceList:l,fromBoxCorner:"T",userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};this.boxService.createNewBox(r).subscribe(s=>{var _;_=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")));var m=d.clone(_);d.assign(m.boxConnections,s.responseBody.boxConnections),d.assign(m.boxes,s.responseBody.boxes),this.sessionStorage.setObject("flowchart",m),this.flowchartDetails.currentBox.mcbChoiceBoxDetails=m.boxes[this.flowchartDetails.currentBox.boxId].mcbChoiceBoxDetails;var f={};d.forEach(s.responseBody.boxes,function(T,k){if("M"!==T.boxShapeType)return f=T,!1}),this.flowchartDetails.currentBox.choiceBoxDetails[0].choiceBox=f;let p=this.flowchartDetails.currentBox.choiceBoxDetails,h=[],g=[];d.forEach(this.flowchartDetails.currentBox.mcbChoiceBoxDetails,function(T,k){g.push(T)});let C=d.sortBy(g,[function(T){return d.toNumber(T.choiceBoxSortOrder)}]);console.log(C),d.forEach(C,function(T){d.forEach(p,function(k){if(k.choiceBox.boxId===T.choiceBoxId)return h.push(k),!1})}),this.flowchartDetails.currentBox.choiceBoxDetails=[...h],this.currentChoiceBoxDataSource=new B.by(this.flowchartDetails.currentBox.choiceBoxDetails),this._flowchartService.setEditFlowchartDetails(this.flowchartDetails);let I={event:"editfc_mcbaddchoice","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};window.dataLayer.push(I),e=null,this.addChoiceLoading=!1},s=>{this.genericErr=!0,this.genericErrMsg=s&&s.error?s.error.statusMessage:"",this.addChoiceLoading=!1})}else this.addChoiceLoading=!1;e=null})}addMcbBox(e,a,i,l){var r="Default",s="Other",_=[];if(this.loading=!0,!d.isEmpty(e.trim())){d.forEach(l,function(u){0===u.id?r=u.name:9999===u.id?s=u.name:_.push(u.name)});let m={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,orgId:this.flowchartDetails.orgId,orgName:this.flowchartDetails.orgName,userAccess:this.flowchartDetails.userAccess,currentBoxId:this.flowchartDetails.currentBox.boxId,newBoxShapeType:a,choiceDefault:r,choiceOther:s,choiceList:d.reverse(_),caption:e,fromBoxCorner:i,allowReuse:"N",userSessionId:this._utilService.getCookie("userSessionId")};return this.boxService.createNewBox(m).subscribe(u=>{let f=this.sessionStorage.getObject("userMilestones");-1===d.findIndex(f,{milestoneName:"USED_MCB_BOX",isCompleted:!0})&&this._utilService.setUsedMcbBoxMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("USED_MCB_BOX",null);let h={event:"editfc_mcbadd","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};window.dataLayer.push(h),this.dialogRef.close(!0),this.loading=!1,this._prepareRenderResponse(u)},u=>{this.genericErr=!0,this.genericErrMsg=u&&u.error?u.error.statusMessage:"",this._snackBar.openFromComponent(D.f,u&&401===u.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_MCB_BOX_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}this.genericErr=!0,this.genericErrMsg="Caption is required to create a box.",this.loading=!1}showEditChoiceMenu(e,a){this.editChoice=!0,a&&a.scrollIntoView({behavior:"smooth"}),this.selectedChoice=e,this.selectedChoiceCaption=e.choiceBox.boxCaption,this.selectedChoiceBo
1xVar=e.choiceBox.boxVariable,this.choiceBoxVariableForm.controls.selectedChoiceBoxCustomVar.setValue(e.choiceBox.boxVarCustomName),this.choiceBoxVariableForm.controls.selectedChoiceBoxCustomRes.setValue(e.choiceBox.boxVarCustomResponseYesValue),this.editChoiceCaption=!0,this.addChoiceBoxImage=!0,this.editChoiceBoxVar=!0,e.boxConnectionId?e.boxConnectionId&&e.isLinkedConnection?(this.choiceToDelBkmrkLink=!0,this.choiceToStmt=!1,this.choiceToDecsn=!1,this.choiceInputBox=!1,this.choiceDelete=!1):(this.choiceToStmt=!1,this.choiceToDecsn=!1,this.choiceInputBox=!1,this.choiceToAddBkmrkLink=!1,this.choiceDelete=!1,this.addStmtFromChoice=!1,this.addDecsnFromChoice=!1,this.addBkmrklinkFromChoice=!1,this.addInputFromChoice=!1,this.delChoice=!1,this.delBkmrklinkFromChoice=!1):(this.choiceToStmt=!0,this.choiceToDecsn=!0,this.choiceToAddBkmrkLink=!0,this.choiceInputBox=!0,this.choiceDelete=!0)}setFlagsForEditChoice(e,a,i,l,r,s,_,m,u,f){if(this.addStmtFromChoice=i,this.addDecsnFromChoice=l,this.addBkmrklinkFromChoice=r,this.addInputFromChoice=s,this.delBkmrklinkFromChoice=m,this.choiceToBoxShape=u,this.delChoice=_,this.modifyChoiceCaption=e,this.uploadChoiceImage=a,this.choiceBoxCustomVar=f,this.addStmt=!1,this.addDecsn=!1,this.addInputBox=!1,this.addBkmrkLink=!1,this.deletebkmarkLink=!1,this.showDelChoiceMessage=!1,this.newBoxCaption="",this.userInputBoxCaption="",this.boxAliasforUserOrg={},this.addInsertForm&&this.addInsertForm.resetForm(),this.addInsertBoxForm&&this.addInsertBoxForm.reset(),this.delChoice){var p=this.flowchartDetails.currentBox.mcbChoiceBoxDetails[this.selectedChoice.choiceBox.boxId].choiceBoxCorner;("0"===p||"9999"===p)&&(this.showDelChoiceMessage=!0)}this.addBkmrklinkFromChoice&&(this.loadAllBoxAliasForUserOrg(),this.prepareFlowchartListForBookmarkLinkCreation())}closeEditChoiceForm(){this.addStmtFromChoice=!1,this.addDecsnFromChoice=!1,this.addBkmrklinkFromChoice=!1,this.addInputFromChoice=!1,this.delBkmrklinkFromChoice=!1,this.delChoice=!1}deleteChoice(e){this.loading=!0;let a={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartVersionId:this.flowchartDetails.flowchartVersionId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:e.choiceBox.boxId,previousBoxId:this.flowchartDetails.currentBox.boxId,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};this.boxService.deleteBox(a).subscribe(i=>{var l=this._updateBoxAndConnectionInSession(i);this.sessionStorage.setObject("flowchart",l);var r=[];d.forEach(this.flowchartDetails.currentBox.choiceBoxDetails,function(s){s.choiceBox.boxId.toString()!==e.choiceBox.boxId.toString()&&r.push(s)}),this.flowchartDetails.currentBox.choiceBoxDetails=r,this.currentChoiceBoxDataSource=new B.by(this.flowchartDetails.currentBox.choiceBoxDetails),this._flowchartService.setEditFlowchartDetails(this.flowchartDetails),this.closeEditChoiceForm(),this.editChoice=!1,this.loading=!1},i=>{this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_DELETE_CHOICE_BOX_FAILED.errorMessage,...b.wml}),this.loading=!1})}changeMcbChoiceDisplayMode(e){this.mcbChoiceDisplayMode=e}editMcbBoxCaptionAndChoiceDisplayMode(e){if(this.saveMcbLoading=!0,this.mcbSaveSuccess=!1,this.genericErrMsg="",d.isEmpty(e.trim()))this.genericErrMsg="Caption is required for a box.",this.saveMcbLoading=!1;else{let a={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,currentBoxId:this.flowchartDetails.currentBox.boxId,caption:e,mcbChoiceDisplayMode:this.mcbChoiceDisplayMode,flowchartCreator:this.flowchartDetails.flowchartCreator,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess,boxVarCustomName:this.mcbBoxCustomVariable};this.boxService.editRegularBox(a).subscribe(i=>{var l=null;if(l=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),d.forEach(i.responseBody.boxes,function(r,s){d.forEach(l.boxes,function(_,m){if(d.isEqual(s.toString(),m.toString()))return l.boxes[m]=r,!1})}),this.sessionStorage.setObject("flowchart",l),!d.isEqual(this.flowchartDetails.currentBox.mcbChoiceDisplayMode,this.mcbChoiceDisplayMode)){let r={event:"editfc_mcblayoutchange","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId,"dlv-option_id_selected":this.mcbChoiceDisplayMode};window.dataLayer.push(r)}this.flowchartDetails.currentBox.boxCaption=e,this.flowchartDetails.currentBox.mcbChoiceDisplayMode=this.mcbChoiceDisplayMode,this.flowchartDetails.currentBox.boxVarCustomName=this.mcbBoxCustomVariable,this._flowchartService.setEditFlowchartDetails(this.flowchartDetails),this.mcbSaveSuccess=!0,this.saveMcbLoading=!1},i=>{this.genericErr=!0,this.genericErrMsg="Unexpected error occured while processing this request. Please try again.",this.mcbSaveSuccess=!1,this.saveMcbLoading=!1})}}editChoiceBoxImage(e){var a=this;return(0,et.Z)(function*(){a.loading=!0;let i={flowchartId:e.boxFlowchartId,flowchartCreator:a.flowchartDetails.flowchartCreator,orgId:a.flowchartDetails.orgId,orgName:a.flowchartDetails.orgName,userAccess:a.flowchartDetails.userAccess,currentBoxId:e.boxId,attachmentName:"",attachmentType:"I",attachmentValue:"",attachmentOption:"F",updateCloneGroup:!1,userSessionId:a._utilService.getCookie("userSessionId")},l=a.fileInput.nativeElement;if(l.files.length>0){let _=l.files.item(0).name.replace(/\s/g,"");_=_.replace(/[\])}[{(]/g,"");let m=_.substring(0,_.indexOf("."))+".png";console.log("png file name",m);const u=a.dataURItoBlob(a.croppedImage);console.log("file blob",u);let f=new File([u],m,{type:"image/png"});const p={maxSizeMB:.05,maxWidthOrHeight:100,useWebWorker:!1};let h=f;
1try{const I=yield(0,z.Z)(f,p);console.log("compressedFile instanceof Blob",I instanceof Blob),console.log(`compressedFile size ${I.size/1024/1024} MB`),h=I}catch(I){console.log(I)}let g="",C=new FileReader;C.readAsDataURL(h),C.onload=()=>{g=C.result.toString().split(",")[1],i.attachmentName=m,i.attachmentValue=g,a.boxService.uploadFileAndAddToBox(i).subscribe(I=>{a._userMilestoneService.saveOrUpdateUserMilestone("ADDED_IMAGE_TO_BOX",null);var T=null;T=JSON.parse(JSON.stringify(a.sessionStorage.getObject("flowchart"))),d.forEach(I.responseBody.boxes,function(k,y){d.forEach(T.boxes,function(v,E){if(d.isEqual(y.toString(),E.toString()))return T.boxes[E]=k,!1})}),a.sessionStorage.setObject("flowchart",T),e.imageUrl=T.boxes[e.boxId].imageUrl,a.loading=!1,l.value="",a.croppedImage="",a.showCropper=!1},I=>{a.uploadErr=!0,a.uploadErrMsg=w.R.ERRMSG_CHOICE_BOX_IMAGE_UPLOAD_FAILED.errorMessage,a.loading=!1})}}else a.loading=!1,a.uploadErr=!0,a.uploadErrMsg="Please select the file first to upload."})()}editChoiceBoxCaption(e){if(d.isEmpty(e.trim()))this.editChoiceError="Box caption cannot be empty.";else if(d.find(this.flowchartDetails.currentBox.choiceBoxDetails,function(a){return a.choiceBox.boxCaption===e}))this.editChoiceError="This choice already exists, please add a different choice.";else{this.editChoiceError="";let a={flowchartId:this.selectedChoice.choiceBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.selectedChoice.choiceBox.boxId,caption:e,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess};this.boxService.editRegularBox(a).subscribe(i=>{var l=null;l=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),d.forEach(i.responseBody.boxes,function(r,s){d.forEach(l.boxes,function(_,m){if(d.isEqual(s.toString(),m.toString()))return l.boxes[m]=r,!1})}),this.sessionStorage.setObject("flowchart",l),this.selectedChoice.choiceBox&&(this.selectedChoice.choiceBox.boxCaption=e),this.selectedChoice.choiceBox&&this.selectedChoice.choiceBox.boxId&&(this.flowchartDetails.currentBox.mcbChoiceBoxDetails[this.selectedChoice.choiceBox.boxId].choiceBoxCaption=e)},i=>{this.editChoiceError=i&&i.error?i.error.statusMessage:""})}}updateCustomChoiceBoxVariable(){var e=this.choiceBoxVariableForm.get("selectedChoiceBoxCustomVar").value,a=this.choiceBoxVariableForm.get("selectedChoiceBoxCustomRes").value;if(!d.isEmpty(e)||!d.isEmpty(a)){let i={flowchartId:this.selectedChoice.choiceBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.selectedChoice.choiceBox.boxId,caption:this.selectedChoiceCaption,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess,boxVarCustomName:e,boxVarCustomResponseYesValue:a};return this.boxService.editRegularBox(i).subscribe(l=>{this._updateBoxInSession(l.responseBody.boxes),this.selectedChoice.choiceBox&&this.selectedChoice.choiceBox.boxId&&(this.flowchartDetails.currentBox.mcbChoiceBoxDetails[this.selectedChoice.choiceBox.boxId].boxVarCustomName=e,this.flowchartDetails.currentBox.mcbChoiceBoxDetails[this.selectedChoice.choiceBox.boxId].boxVarCustomResponseYesValue=a,this.selectedChoice.choiceBox.boxVarCustomName=e,this.selectedChoice.choiceBox.boxVarCustomResponseYesValue=a),this.loading=!1,this.dialogRef.close(!0)},l=>{this.genericErr=!0,this.genericErrMsg=l&&l.error?l.error.statusMessage:"",this._snackBar.openFromComponent(D.f,l&&401===l.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_EDIT_BOX.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}}updateBoxEmaillogDeliveryAddress(e){this.loading=!0;let a={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,emaillogDeliveryAddress:e,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess};return this.boxService.editRegularBox(a).subscribe(i=>{var l=null;(l=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")))).boxes[this.flowchartDetails.currentBox.boxId].emaillogDeliveryAddress=e,this.sessionStorage.setObject("flowchart",l),this.flowchartDetails.currentBox.emaillogDeliveryAddress=e,this.loading=!1,this.dialogRef.close(!0)},i=>{this.genericErr=!0,this.genericErrMsg=i&&i.error?i.error.statusMessage:"",this._snackBar.openFromComponent(D.f,i&&401===i.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_EDIT_BOX.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}updateCustomBoxVariable(){var e=this.customizeVariableForm.get("customBoxVariable").value,a=this.customizeVariableForm.get("customBoxVariableYesResponse").value,i=this.customizeVariableForm.get("customBoxVariableNoResponse").value;if(this.loading=!1,!d.isEmpty(e)||!d.isEmpty(a)||!d.isEmpty(i)){this.loading=!0;let r={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,caption:this.flowchartDetails.currentBox.boxCaption,yesCaption:this.flowchartDetails.currentBox.yesCaption,noCaption:this.flowchartDetails.currentBox.noCaption,updateCloneGroup:"Y"===this.editCloneGroup,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess,boxVarCustomName:e,boxVarCustomResponseYesValue:a,boxVarCustomResponseNoValue:i};return this.boxService.editRegularBox(r).subscribe(s=>{this._updateBoxInSession(s.responseBody.boxes),this.flowchartDetails.currentBox.boxVarCustomName=e,this.loading=!1,this.dialogRef.close(!0)},s=>{this.genericErr=!0,this.genericErrMsg=s&&s.error?s.error.statusMessage:"",this._snackBar.openFromComponent(D.f,s&&401===s.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_EDIT_BOX.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}}editRegularBox(){var e=this.editBoxForm.get("currentBoxCaption").value;if(this.loading=!1,!d.isEmpty(e)){this.loading=!0;var a="Y"===this.editCloneGroup;let i=[];if("I"===this.flowchartDetails.currentBox.boxShapeType&&"CHECKLIST"===this.flowchartDetails.currentBox.userInputDataType){let r=this.existingUserInputChecklistForm.get("userInputOptionRows").controls;d.forEach(r,function(s){if(s.valid){let _={};_.customOptionId=s.value.customOptionId,_.optionCaption=s.value.optionCaption,_.optionCustomVarName=s.value.optionCustomVarName,_.optionCustomVarResponse=s.value.optionCustomVarResponse,i.push(_)}})}let l={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,caption:e,yesCaption:this.editBoxForm.get("currentYesCaption").value?this.editBoxForm.get("currentYesCaption").value:"",noCaption:this.editBoxForm.get("currentNoCaption").value?this.editBoxForm.get("currentNoCaption").value:"",updateCloneGroup:a,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,allowReuse:"N",userAccess:this.flowchartDetails.userAccess,boxUserInputCustomOptions:i};return this.boxService.editRegularBox(l).subscribe(r=>{this._updateBoxInSession(r.responseBody.boxes);let s={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-modify_clones":a,"dlv-current_box_id":this.flowchartDetails.currentBox.boxId};"S"===this.flowchartDetails.currentBox.boxShapeType?s.event="editfc_stmteditcapreglr":"I"===this.flowchartDetails.currentBox.boxShapeType?s.event="editfc_inputeditcapreglr":"D"===this.flowchartDetails.currentBox.boxShapeType&&(s.event="editfc_decneditcapreglr"),window.dataLayer.push(s),this.flowchartDetails.currentBox.boxCaption=e,this.loading=!1,this.dialogRef.close(!0)},r=>{this.genericErr=!0,this.genericErrMsg=r&&r.error?r.error.statusMessage:"",this._snackBar.openFromComponent(D.f,r&&401===r.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_EDIT_BOX.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}}deleteFirstBox(){this.loading=!0;let e={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartVersionId:this.flowchartDetails.flowchartVersionId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};return this.boxService.deleteFirstBox(e).subscribe(a=>{if(1===this.flowchartDetails.orgId){let i=this;this._flowchartListService.getFlowchartlistByGoalUrl(i.flowchartDetails.goalId,i.flowchartDetails.goalUrl).subscribe(l=>{var s,r=this.sessionStorage.getObject("pubFlowchartListByGoal");r=JSON.parse(JSON.stringify(r)),d.forEach(r,function(_,m){d.isEqual(i.flowchartDetails.goalId.toString(),m.toString())&&
1(r[i.flowchartDetails.goalId]=l.responseBody)}),this.sessionStorage.setObject("pubFlowchartListByGoal",r),s=this._flowchartListService.getFlowchartListInCategoryTree(this.flowchartDetails.goalId,this.flowchartDetails.goalUrl,this.flowchartDetails.orgName,this.flowchartDetails.categoryId,this.flowchartDetails.subCategoryId),this._flowchartListService.setFlowchartListDetailsByGoalName(s),this._flowchartListService.setSelectedGoalId(this.flowchartDetails.goalId),this._flowchartListService.setSelectedGoalName(this.flowchartDetails.goalName),this._homeService.updateUserFavoriteFlowchartsInSession(),this.sessionStorage.removeItem("flowchart"),this.loading=!1,this.router.navigate([`./${this.flowchartDetails.goalId}/${this.flowchartDetails.goalUrl}`]),this.dialogRef.close(!0)},l=>{this._homeService.updateUserFavoriteFlowchartsInSession(),this.sessionStorage.removeItem("flowchart"),this.loading=!1,this.router.navigate([`./${this.flowchartDetails.goalId}/${this.flowchartDetails.goalUrl}`]),this.dialogRef.close(!0)})}else this._homeService.getAuthorizedUserCategoryList().subscribe(i=>{var l;console.log(i),this.sessionStorage.setObject("cattree",i.responseBody.categoryTreeResponse),l=this._flowchartListService.getFlowchartListInCategoryTree(this.flowchartDetails.goalId,this.flowchartDetails.goalUrl,this.flowchartDetails.orgName,this.flowchartDetails.categoryId,this.flowchartDetails.subCategoryId),this._flowchartListService.setFlowchartListDetailsByGoalName(l),this._flowchartListService.setSelectedGoalId(this.flowchartDetails.goalId),this._flowchartListService.setSelectedGoalName(this.flowchartDetails.goalName),this._homeService.updateUserFavoriteFlowchartsInSession(),this.sessionStorage.removeItem("flowchart"),this.loading=!1,this.router.navigate([`./${this.flowchartDetails.goalId}/${this.flowchartDetails.goalUrl}`]),this.dialogRef.close(!0)},i=>{this._homeService.updateUserFavoriteFlowchartsInSession(),this.sessionStorage.removeItem("flowchart"),this.loading=!1,this.router.navigate([`./${this.flowchartDetails.goalId}/${this.flowchartDetails.goalUrl}`]),this.dialogRef.close(!0)})},a=>{this.genericErr=!0,this.genericErrMsg=a&&a.error?a.error.statusMessage:"",this._snackBar.openFromComponent(D.f,a&&401===a.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_DELETE_BOX_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}deleteSelectedBox(){this.loading=!0;let e={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartVersionId:this.flowchartDetails.flowchartVersionId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,previousBoxId:this.flowchartDetails.fromBoxList[0].boxId,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};return this.boxService.deleteBox(e).subscribe(a=>{this._prepareRenderResponseAfterDeleteBox(a);let i={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};"S"===this.flowchartDetails.currentBox.boxShapeType?i.event="editfc_stmtdelete":"D"===this.flowchartDetails.currentBox.boxShapeType?i.event="editfc_decndelete":"I"===this.flowchartDetails.currentBox.boxShapeType?i.event="editfc_inputdelete":"M"===this.flowchartDetails.currentBox.boxShapeType&&(i.event="editfc_mcbdelete"),window.dataLayer.push(i),this.loading=!1,this.dialogRef.close(!0)},a=>{this._snackBar.openFromComponent(D.f,a&&401===a.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_DELETE_BOX_FAILED.errorMessage,...b.wml}),this.delMcbErr=a&&a.error?a.error.statusMessage:"",this.loading=!1}),this.dialogRef.afterClosed()}insertBox(e,a,i,l,r){var s="",_="",m="";if(this.insert&&!1===this.addInputBox&&null===r?(s=this.addInsertBoxForm.get("newBoxCaption").value,_=this.addInsertBoxForm.get("yesCaption").value,m=this.addInsertBoxForm.get("noCaption").value):this.insert&&this.addInputBox&&null===r?s=this.addInsertBoxForm.get("userInputBoxCaption").value:this.insert&&null!==r&&(s=""),!(null===r&&d.isEmpty(s)||"I"===e&&!l||"I"===e&&"CHECKLIST"===l&&0===this.userInputChecklistForm.length)){this.loading=!0;let u=[];d.forEach(this.userInputChecklistForm.controls,function(p){if(p.valid){let h={};h.optionCaption=p.value.optionCaption,h.optionCustomVarName=p.value.optionCustomVarName,h.optionCustomVarResponse=p.value.optionCustomVarResponse,u.push(h)}});let f={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,boxConnectionId:i,newBoxShapeType:e,newBoxCaption:s,yesCaption:_,noCaption:m,newConnFromBoxCorner:a,newBoxUserInputDataType:l,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess,boxRequestType:"",boxAliasId:null,boxUserInputCustomOptions:u};return null!==r&&(f.boxRequestType="CLONE",f.boxAliasId=r),this.boxService.insertNewBox(f).subscribe(p=>{this._flowchartService.setEditFlowchartDetails(this.flowchartDetails);let h={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-modify_clones":null!==r,"dlv-current_box_id":this.flowchartDetails.currentBox.boxId};"S"===e?"D"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_decninsertstmtreglr":"S"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_stmtinsertstmtreglr":"I"===this.flowchartDetails.currentBox.boxShapeType&&(h.event="editfc_inputinsertstmtreglr"):"D"!==e||""===_&&""===m?"D"===e?"D"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_decninsertdecnreglr":"S"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_stmtinsertdecnreglr":"I"===this.flowchartDetails.currentBox.boxShapeType&&(h.event="editfc_inputinsertdecnreglr"):this.addInputBox&&"UPLOAD"!==l?"D"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_decninsertinput":"S"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_stmtinsertinput":"I"===this.flowchartDetails.currentBox.boxShapeType&&(h.event="editfc_inputinsertinputbox"):this.addInputBox&&"UPLOAD"===l&&("D"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_decninsertinputuploadfile":"S"===this.flowchartDetails.currentBox.boxShapeType&&(h.event="editfc_stmtinsertinputuploadfile")):"D"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_decninsertdecncustomynbtn":"S"===this.flowchartDetails.currentBox.boxShapeType?h.event="editfc_stmtinsertdecncustomynbtn":"I"===this.flowchartDetails.currentBox.boxShapeType&&(h.event="editfc_inputinsertdecncustomynbtn"),window.dataLayer.push(h),this.dialogRef.close(!0),this.loading=!1,this._prepareRenderResponse(p)},p=>{this._snackBar.openFromComponent(D.f,p&&401===p.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_INSERT_BOX_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}this.insertBoxError="Please provide correct value before inserting box.",this.loading=!1}addBoxFromChoice(e,a,i,l){this.loading=!1;var r="",s="",_="";if(this.addStmtFromChoice||this.addDecsnFromChoice?(r=this.addInsertBoxForm.get("newBoxCaption").value,this.addDecsnFromChoice&&(s=this.addInsertBoxForm.get("yesCaption").value,_=this.addInsertBoxForm.get("noCaption").value)):this.addInputFromChoice&&(r=this.addInsertBoxForm.get("userInputBoxCaption").value),!d.isEmpty(r)&&("I"!==a||l)){this.loading=!0;let m=[];l&&"CHECKLIST"===l&&d.forEach(this.userInputChecklistForm.controls,function(f){if(f.valid){let p={};p.optionCaption=f.value.optionCaption,p.optionCustomVarName=f.value.optionCustomVarName,p.optionCustomVarResponse=f.value.optionCustomVarResponse,m.push(p)}});let u={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:e.choiceBox.boxId,newBoxShapeType:a,userInputDataType:l,allowReuse:"N",caption:r,yesCaption:s,noCaption:_,fromBoxCorner:i,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess,boxUserInputCustomOptions:m};this.boxService.createNewBox(u).subscribe(f=>{var p;p=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")));var g,h=d.clone(p);d.assign(h.boxConnections,f.responseBody.boxConnections),d.assign(h.boxes,f.responseBody.boxes),this.sessionStorage.setObject("flowchart",h),d.forEach(f.responseBody.boxConnections,function(C,I){g=C}),e.boxConnectionId=g.boxConnectionId,e.flowchartId=g.flowchartId,e.fromBoxCorner=g.fromBoxCorner,e.boxId=g.toBoxId,e.isLinkedConnection=g.
1isLinkedConnection,e.box=f.responseBody.boxes[g.toBoxId],this.closeEditChoiceForm(),this.editChoice=!1,this.loading=!1},f=>{this.inputBoxError=f&&f.error?f.error.statusMessage:"",this.loading=!1})}}addBookmarkLinkFromChoice(e,a){var i="";this.loading=!1;let l={currentBoxId:e.choiceBox.boxId,fromBoxCorner:a,flowchartCreator:this.flowchartDetails.flowchartCreator,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};if("BkmarkFromBox"===this.addBkmarkLinkSelectedOption){if(!this.destBoxForBookmark)return;l.targetFlowchartId=this.destBoxForBookmark.flowchartId,l.targetBoxId=this.destBoxForBookmark.boxId,l.targetFlowchartVersionId=this.destBoxForBookmark.flowchartVersionId}else{if(!(i=this.addInsertBoxForm.get("boxAliasforUserOrg").value))return;l.boxAliasId=i}return this.loading=!0,this.boxService.createBookmarkLink(l).subscribe(r=>{var s;s=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")));var m,_=d.clone(s);d.assign(_.boxConnections,r.responseBody.boxConnections),d.assign(_.boxes,r.responseBody.boxes),this.sessionStorage.setObject("flowchart",_),d.forEach(r.responseBody.boxConnections,function(u,f){m=u}),e.boxConnectionId=m.boxConnectionId,e.flowchartId=m.flowchartId,e.fromBoxCorner=m.fromBoxCorner,e.boxId=m.toBoxId,e.isLinkedConnection=m.isLinkedConnection,e.box=_.boxes[m.toBoxId],this.closeEditChoiceForm(),this.editChoice=!1,this.loading=!1},r=>{this.genericErr=!0,this.genericErrMsg=r&&r.error?r.error.statusMessage:"",this.loading=!1}),this.dialogRef.afterClosed()}addBox(e,a,i,l){var r="",s="",_="";if(this.addStmt||this.addDecsn?(r=this.addInsertBoxForm.get("newBoxCaption").value,this.addDecsn&&(s=this.addInsertBoxForm.get("yesCaption").value,_=this.addInsertBoxForm.get("noCaption").value)):this.addInputBox?r=this.addInsertBoxForm.get("userInputBoxCaption").value:"EMAIL"===i&&(r=this.addEmailLogCaption),!(d.isEmpty(r)||"I"===e&&!i||"I"===e&&"CHECKLIST"===i&&0===this.userInputChecklistForm.length)){this.loading=!0;var m="N";d.isEqual(e,"E")&&(m="N");let u=[];d.forEach(this.userInputChecklistForm.controls,function(h){if(h.valid){let g={};g.optionCaption=h.value.optionCaption,g.optionCustomVarName=h.value.optionCustomVarName,g.optionCustomVarResponse=h.value.optionCustomVarResponse,u.push(g)}});let f={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,newBoxShapeType:e,userInputDataType:i,emaillogDeliveryAddress:l,allowReuse:m,caption:r,yesCaption:s,noCaption:_,fromBoxCorner:a,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess,boxUserInputCustomOptions:u},p=this;return this.boxService.createNewBox(f).subscribe(h=>{if(p.addDecsn){let C=this.sessionStorage.getObject("userMilestones");-1===d.findIndex(C,{milestoneName:"USED_DECISION_BOX",isCompleted:!0})&&this._utilService.setUsedDecisionBoxMilestoneAchieved(),p._userMilestoneService.saveOrUpdateUserMilestone("USED_DECISION_BOX",null)}else if(p.addInputBox)if("UPLOAD"===i)p._userMilestoneService.saveOrUpdateUserMilestone("USED_USER_INPUT_FOR_FILE_UPLOAD_ON_BOX",null);else{let C=this.sessionStorage.getObject("userMilestones");-1===d.findIndex(C,{milestoneName:"USED_USER_INPUT_BOX",isCompleted:!0})&&this._utilService.setUsedUserInputBoxMilestoneAchieved(),p._userMilestoneService.saveOrUpdateUserMilestone("USED_USER_INPUT_BOX",null)}else if("EMAIL"===i){let C=this.sessionStorage.getObject("userMilestones");-1===d.findIndex(C,{milestoneName:"USED_SEND_EMAIL_BOX",isCompleted:!0})&&this._utilService.setUsedSendEmailLogBoxMilestoneAchieved(),p._userMilestoneService.saveOrUpdateUserMilestone("USED_SEND_EMAIL_BOX",null)}let g={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-modify_clones":!1,"dlv-current_box_id":this.flowchartDetails.currentBox.boxId};"E"===e?g.event="editfc_addlastactionboxemail":"S"===e?g.event="editfc_stmtadd":"D"===e?g.event="editfc_decnadd":"I"===e&&this.addInputBox&&(g.event="editfc_inputadd"),window.dataLayer.push(g),this.dialogRef.close(!0),this.loading=!1,this._prepareRenderResponse(h)},h=>{this._snackBar.openFromComponent(D.f,h&&401===h.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_EDIT_BOX.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}this.inputBoxError="Please provide required input in order to create a box."}addBookmarkLink(e){var a="";this.loading=!1;let i={currentBoxId:this.flowchartDetails.currentBox.boxId,fromBoxCorner:e,flowchartCreator:this.flowchartDetails.flowchartCreator,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};if("BkmarkFromBox"===this.addBkmarkLinkSelectedOption){if(!this.destBoxForBookmark)return;i.targetFlowchartId=this.destBoxForBookmark.flowchartId,i.targetBoxId=this.destBoxForBookmark.boxId,i.targetFlowchartVersionId=this.destBoxForBookmark.flowchartVersionId}else{if(!(a=this.addInsertBoxForm.get("boxAliasforUserOrg").value))return;i.boxAliasId=a}return this.loading=!0,this.boxService.createBookmarkLink(i).subscribe(l=>{let r=this.sessionStorage.getObject("userMilestones");-1===d.findIndex(r,{milestoneName:"CREATED_BOOKMARK_LINK",isCompleted:!0})&&this._utilService.setCreatedBookmarkLinkMilestoneAchieved(),this._userMilestoneService.saveOrUpdateUserMilestone("CREATED_BOOKMARK_LINK",null);var m=d.find(this.boxAliasListForUserOrg,function(u){return u.boxAliasId===a});if(m){let u={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.flowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};u.event=m.flowchartVersionId===this.flowchartDetails.flowchartVersionId?"editfc_addbookmarklinksamefc":"editfc_addbookmarklinkotherfc",window.dataLayer.push(u)}this.dialogRef.close(!0),this.loading=!1,this._prepareRenderResponse(l)},l=>{this.genericErr=!0,this.genericErrMsg=l&&l.error?l.error.statusMessage:"",this._snackBar.openFromComponent(D.f,l&&401===l.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_BOOKMARK_LINK_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}deleteBookmarkLink(e){var a=[];this.loading=!0,a.push(e);let i={boxConnectionIdList:a,flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartVersionId:this.flowchartDetails.flowchartVersionId,flowchartCreator:this.flowchartDetails.flowchartCreator,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};return this.boxService.deleteBookmarkLink(i).subscribe(l=>{this.dialogRef.close(!0);var r=null;r=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")));var s=d.pickBy(r.boxConnections,function(p,h){return h.toString()!==e.toString()});r.boxConnections=s,d.forEach(l.responseBody.boxes,function(p,h){d.forEach(r.boxes,function(g,C){if
1(d.isEqual(h.toString(),C.toString()))return r.boxes[C]=p,!1})}),this.sessionStorage.setObject("flowchart",r);var _=this._flowchartService.prepareToAndFromBoxConnectionsForRender(r),m=d.split(this.router.url,"/");_&&(_.goalUrl=m[3],_.orgId=this.flowchartDetails.orgId,_.orgName=this.flowchartDetails.orgName,_.userAccess=this.flowchartDetails.userAccess,this._flowchartService.setEditFlowchartDetails(_));var f=d.find(this.flowchartDetails.toBoxList,function(p){return p.boxConnectionId===e});if(f){let p={"dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.flowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":this.flowchartDetails.currentBox.boxId};p.event=f.box.boxFlowchartId===this.flowchartDetails.beginningFlowchartId?"editfc_deletebookmarklinksamefc":"editfc_deletebookmarklinkotherfc",window.dataLayer.push(p)}d.isEqual(r.editMode,"ON")||this.router.navigate([`${m[1]}/${m[2]}/${this.flowchartDetails.goalUrl}/${this.flowchartDetails.flowchartName}`]),this.loading=!1},l=>{this.genericErr=!0,this.genericErrMsg=l&&l.error?l.error.statusMessage:"",this._snackBar.openFromComponent(D.f,l&&401===l.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_DELETE_BOOKMARK_LINK_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}loadBoxAliasList(e,a){this.cloneBoxAliasId="","CloneBox"===e&&this.boxService.getBoxAliasListByUserOrgBoxShapeType(this.flowchartDetails.orgId,a,this.flowchartDetails.userAccess,this.flowchartDetails.flowchartVersionId).subscribe(i=>{var l=this.flowchartDetails.currentBox.boxId;this.boxAliasList=i.responseBody.boxAliasBeanList,d.remove(this.boxAliasList,function(s){return s.boxId===l}),console.log(this.boxAliasList)},i=>{})}appendFlowchartUnderCurrentBox(){this.appending=!0,console.log(this.selectedFlowchartForAppend);let e={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess,flowchartIdForAppend:this.selectedFlowchartForAppend.flowchartId,updateCloneGroup:this.addCloneGroupForAppend};return this.boxService.appendFlowchartToCurrentBox(e).subscribe(i=>{this.dialogRef.close(!0),this.appending=!1;let l={event:"editfc_copypasteotherfc","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.currentBox.boxFlowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-current_box_id":this.flowchartDetails.currentBox.boxId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-modify_clones":this.addCloneGroupForAppend};window.dataLayer.push(l),this._prepareRenderResponse(i)},i=>{this._snackBar.openFromComponent(D.f,i&&401===i.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_APPEND_FLOWCHART_ERROR.errorMessage,...b.wml}),this.appending=!1}),this.dialogRef.afterClosed()}loadAppendAsFragmentFlowchartsForOrg(){this.appendableFlowchartsForOrgNotFound=!1,this._flowchartService.getAppendableFlowchartListForOrg(this.flowchartDetails.orgId,this.flowchartDetails.flowchartCreator,this.flowchartDetails.userAccess).subscribe(e=>{this.appendableFlowchartsForOrg=e.responseBody;var a=this.flowchartDetails.flowchartId;this.appendableFlowchartsForOrg&&this.appendableFlowchartsForOrg.length>0?(d.remove(this.appendableFlowchartsForOrg,function(l){return l.flowchartId===a}),console.log(this.appendableFlowchartsForOrg)):this.appendableFlowchartsForOrgNotFound=!0},e=>{this.appendableFlowchartsForOrgNotFound=!0})}resetBookmarkLinkFlags(){this.targetFcNotMasterForBookmark=!1,this.noBoxesForBookmark=!1,this.errorForFcBoxesForBookmark=!1,this.bookmarkByFcBoxErrorMessage="",this.show
1FcBoxesDropdownForBookmark=!1,this.mcbBoxForBookmarkNotAllowed=!1,this.destFcForBookmark="",this.addInsertBoxForm.reset()}prepareFlowchartListForBookmarkLinkCreation(){let e={};var a=this.sessionStorage.getObject("cattree");e=JSON.parse(JSON.stringify(a));let i=[],l=this.flowchartDetails.goalId,r=this.flowchartDetails.flowchartId,s=this.flowchartDetails.currentFlowchartVersionName;this.flowchartDetails&&"PUBLIC"!==this.flowchartDetails.orgName&&e[this.flowchartDetails.orgName]&&(d.forEach(e[this.flowchartDetails.orgName].categoryBeanList,function(m){d.forEach(m.subCategories,function(u){d.forEach(u.goalList,function(f){d.forEach(f.flowchartList,function(p){var h={};f.goalId!==l&&"Y"===p.masterFlag?(h.flowchartId=p.flowchartId,h.flowchartRandomId=p.flowchartRandomId,h.flowchartName=p.flowchartName,h.hasMaster=p.masterFlag,h.masterFlowchartVersion=p.masterFlowchartVersion,h.goalName=f.goalName,i.push(h)):f.goalId===l&&p.flowchartId===r&&(h.flowchartId=p.flowchartId,h.flowchartRandomId=p.flowchartRandomId,h.flowchartName=p.flowchartName,h.hasMaster="N",h.masterFlowchartVersion=s,h.goalName=f.goalName,i.push(h))})})})}
1),i.forEach(function(m,u){m.flowchartId===r&&(m.flowchartName="(Current) "+m.flowchartName,m.masterFlowchartVersion="(Current) "+m.masterFlowchartVersion,i.splice(u,1),i.unshift(m))}),console.log("bookmark link flowchart list",i),this.destFlowchartsForBookmarkLink=i)}validateBoxSelectionForBookmarkLink(e){this.mcbBoxForBookmarkNotAllowed=!1,"M"===e.boxShapeType&&(this.mcbBoxForBookmarkNotAllowed=!0)}loadSelectedFcBoxesAndDisplayDropdown(e){if(this.targetFcNotMasterForBookmark=!1,this.noBoxesForBookmark=!1,this.errorForFcBoxesForBookmark=!1,this.bookmarkByFcBoxErrorMessage="",this.showFcBoxesDropdownForBookmark=!1,this.mcbBoxForBookmarkNotAllowed=!1,e){if(e.flowchartId!==this.flowchartDetails.flowchartId&&"Y"!==e.hasMaster)return this.targetFcNotMasterForBookmark=!0,void(this.bookmarkByFcBoxErrorMessage="Selected Flowchart does not have MASTER version set. Please pick master version for target flowchart first.");this._flowchartService.getFlowchartBoxes(e.flowchartId,this.flowchartDetails.flowchartId,this.flowchartDetails.flowchartVersionId).subscribe(a=>{let i=a.responseBody;i&&i.length>0?(this.selectedFcBoxesForBookmark=i,this.showFcBoxesDropdownForBookmark=!0):(this.noBoxesForBookmark=!0,this.bookmarkByFcBoxErrorMessage="Selected Flowchart does not have any box created in order to create the bookmark link. Please complete the selected flowchart first.")},a=>{this.showFcBoxesDropdownForBookmark=!1,this.errorForFcBoxesForBookmark=!0,this.bookmarkByFcBoxErrorMessage="Error in retrieving boxes for selected flowchart. Please try again."})}else this.errorForFcBoxesForBookmark=!0,this.bookmarkByFcBoxErrorMessage="Select the flowchart first in order to create the bookmark link."}loadAllBoxAliasForUserOrg(){this.boxAliasForUserOrgNotFound=!1,console.log(this.flowchartDetails.currentBox),this.boxService.getBoxAliasListByUserOrg(this.flowchartDetails.orgId,this.flowchartDetails.userAccess,this.flowchartDetails.flowchartVersionId).subscribe(e=>{this.boxAliasListForUserOrg=e.responseBody.boxAliasBeanList;var a=this.flowchartDetails.currentBox.boxId;if(this.boxAliasListForUserOrg&&this.boxAliasListForUserOrg.length>0){d.remove(this.boxAliasListForUserOrg,function(r){return r.boxId===a}),console.log(this.boxAliasListForUserOrg);var l=this.flowchartDetails.flowchartVersionId;d.remove(this.boxAliasListForUserOrg,function(r){return r.flowchartVersionId!==l&&"N"===r.flowchartVersionMasterFlag}),console.log(this.boxAliasListForUserOrg)}else this.boxAliasForUserOrgNotFound=!0},e=>{this.boxAliasForUserOrgNotFound=!0})}addCloneBox(e,a,i){if(e){this.loading=!0;let l={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,currentBoxId:this.flowchartDetails.currentBox.boxId,newBoxShapeType:a,boxAliasId:e,boxRequestType:"CLONE",fromBoxCorner:i,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};return this.boxService.createNewBox(l).subscribe(r=>{this.dialogRef.close(!0),this.loading=!1;let s=d.find(this.boxAliasList,function(f){return f.boxAliasId===e});console.log("selected boxAliasObj",s);let _=r.responseBody.newCurrentBoxId,m=r.responseBody.boxes;var u=null;u=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),d.forEach(u.boxes,function(f,p){if(d.isEqual(s.boxId.toString(),p.toString()))return d.forEach(m,function(h,g){if(d.isEqual(g.toString(),_.toString()))return u.boxes[s.boxId].boxCloneGroupCount=h.boxCloneGroupCount,!1}),!1}),this.sessionStorage.setObject("flowchart",u),this._prepareRenderResponse(r)},r=>{this.genericErr=!0,this.genericErrMsg=r&&r.error?r.error.statusMessage:"",this._snackBar.openFromComponent(D.f,r&&401===r.status?{data:w.R.ERRMSG_AUTHORIZATION_ERROR.errorMessage,...b.wml}:{data:w.R.ERRMSG_ADD_CLONE_BOX_FAILED.errorMessage,...b.wml}),this.loading=!1}),this.dialogRef.afterClosed()}this.cloneBoxAliasId="Please select one of the bookmark alias from the list to create the clone box."}createBookmark(e){let a={flowchartId:this.flowchartDetails.currentBox.boxFlowchartId,boxId:this.flowchartDetails.currentBox.boxId,boxAliasName:e,userSessionId:this._utilService.getCookie("userSessionId"),orgName:this.flowchartDetails.orgName,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};return this.boxService.createBoxAlias(a).subscribe(i=>{this.dialogRef.close(!0)},i=>{this.genericErr=!0,this.genericErrMsg=i&&i.error?i.error.statusMessage:""}),this.dialogRef.afterClosed()}_updateBoxInSession(e){var a=null;a=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),d.forEach(e,function(i,l){d.forEach(a.boxes,function(r,s){if(d.isEqual(l.toString(),s.toString()))return a.boxes[s]=i,!1})}),this.sessionStorage.setObject("flowchart",a),this.flowchartDetails.currentBox=a.boxes[this.flowchartDetails.currentBox.boxId],this._flowchartService.setEditFlowchartDetails(this.flowchartDetails)}_prepareRenderResponse(e){var s,_;_=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),(s=d.clone(_)).newCurrentBoxId=e.responseBody.newCurrentBoxId,s.editMode=e.responseBody.editMode,d.forEach(e.responseBody.boxes,function(f,p){if(d.isEqual(s.newCurrentBoxId.toString(),p.toString())&&"M"===f.boxShapeType){var h={boxId:"",boxCaption:""};
1return d.forEach(f.mcbChoiceBoxDetails,function(g,C){if(0===g.choiceBoxSortOrder)return h.boxId=C,h.boxCaption=g.choiceBoxCaption,f.selectedChoiceBox=h,!1}),!1}}),d.assign(s.boxes,e.responseBody.boxes),d.assign(s.boxConnections,e.responseBody.boxConnections),this.sessionStorage.setObject("flowchart",s);var m=this._flowchartService.prepareToAndFromBoxConnectionsForRender(s),u=d.split(this.router.url,"/");m&&(m.goalUrl=u[3],m.orgId=this.flowchartDetails.orgId,m.orgName=this.flowchartDetails.orgName,m.userAccess=this.flowchartDetails.userAccess,this._flowchartService.setEditFlowchartDetails(m)),d.isEqual(e.responseBody.editMode,"ON")||this.router.navigate([`${u[1]}/${u[2]}/${this.flowchartDetails.goalUrl}/${this.flowchartDetails.flowchartName}`])}_prepareRenderResponseAfterDeleteBox(e){var a=this._updateBoxAndConnectionInSession(e);a.newCurrentBoxId=this.flowchartDetails.fromBoxList[0].boxId,this.sessionStorage.setObject("flowchart",a);var i=this._flowchartService.prepareToAndFromBoxConnectionsForRender(a),l=d.split(this.router.url,"/");i&&(i.goalUrl=l[3],i.orgId=this.flowchartDetails.orgId,i.orgName=this.flowchartDetails.orgName,i.userAccess=this.flowchartDetails.userAccess,this._flowchartService.setEditFlowchartDetails(i)),d.isEqual(a.editMode,"ON")||this.router.navigate([`${l[1]}/${l[2]}/${this.flowchartDetails.goalUrl}/${this.flowchartDetails.flowchartName}`])}_updateBoxAndConnectionInSession(e){var a=null;if(a=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),e.responseBody.deletedBoxConnections.length>0){var i=a.boxConnections;d.forEach(e.responseBody.deletedBoxConnections,function(s){i=d.pickBy(i,function(_,m){return m.toString()!==s.toString()})}),a.boxConnections=i}if(e.responseBody.deletedBoxes.length>0){var l=a.boxes;d.forEach(e.responseBody.deletedBoxes,function(s){l=d.pickBy(l,function(_,m){return m.toString()!==s.toString()})}),a.boxes=l}var r=d.clone(a);return d.assign(r.boxConnections,e.responseBody.updatedBoxConnections),d.assign(r.boxes,e.responseBody.updatedBoxes),r}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.R0b),t.Y36(A.so),t.Y36(Y.F0),t.Y36(it.k),t.Y36(at.A),t.Y36(xt.Y),t.Y36(O.f),t.Y36(j.q),t.Y36(nt.d),t.Y36(c.qu),t.Y36(c.qu),t.Y36(A.uw),t.Y36(W.ux),t.Y36(A.WI),t.Y36(lt.qo))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],viewQuery:function(e,a){if(1&e&&(t.Gf(B.BZ,5),t.Gf(B.BZ,5),t.Gf(Dt,5),t.Gf(B.BZ,5),t.Gf(Ct,5),t.Gf(vt,5),t.Gf(K.YE,5),t.Gf(ot.NW,5)),2&e){let i;t.iGM(i=t.CRH())&&(a.userInputChecklistTable=i.first),t.iGM(i=t.CRH())&&(a.editUserInputChecklistTable=i.first),t.iGM(i=t.CRH())&&(a.choiceList=i.first),t.iGM(i=t.CRH())&&(a.choiceTable=i.first),t.iGM(i=t.CRH())&&(a.fileInput=i.first),t.iGM(i=t.CRH())&&(a.addInsertForm=i.first),t.iGM(i=t.CRH())&&(a.matSort=i.first),t.iGM(i=t.CRH())&&(a.matPaginator=i.first)}},hostBindings:function(e,a){1&e&&t.NdJ("keyup",function(l){return a.onKeyUp(l)})},decls:44,vars:32,consts:[[1,"dz-dialog-subcontainer","box-editor-dialog-subcontr"],["id","bxeditdlg-close","mat-button","","aria-label","Close the Editor Tools Window",1,"close-cross",3,"click"],[1,"dz-dialog-top"],["mat-dialog-title","",1,"editformtitle"],[1,"version-fc-name"],[1,"dz-dialog-scrolling-body"],[1,"edit-menu-page","common-modal"],["class","common-modal-content",4,"ngIf"],["class","edit-container",4,"ngIf"],[1,"common-modal-properties","gray-border-container"],["class","edit-form-layer",4,"ngIf"],["id","boxeditdialog-training","href","https://decizone.com/training","target","_blank","rel","noopener nofollow",1,"editortrainingvideolink"],["mat-dialog-actions","",1,"dz-dialog-bottom","dialogue-buttons"],["class","common-modal-buttons",4,"ngIf"],[1,"common-modal-content"],[1,"edit-action-selected"],[1,"gray-text"],[1,"choices-header"],[1,"yellow-border-section"],[1,"common-form-input1"],["matInput","","matTextareaAutosize","","placeholder","Edit MCB caption:","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","currentBoxCaption","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["name","mcbChoiceDisplayMode",1,"common-radio-group",3,"ngModel","change"],["value","V"],["value","H"],["matInput","","matTextareaAutosize","","placeholder","Customize Box Variable","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","mcbBoxCustomVariable",3,"ngModel","ngModelChange"],["align","start"],["align","end",4,"ngIf"],[1,"buttons-in-row"],["id","bxeditdlg-savmcb","mat-raised-button","","all-buttons","",1,"middle-button",3,"disabled","click"],["class","app-spinner",4,"ngIf"],["class","mcbSaveSuccess",4,"ngIf"],["id","bxeditdlg-delmcb","mat-raised-button","","color","accent",1,"middle-button",3,"disabled","click"],[1,"mcb-choices-table","dztable-container","mat-elevation-z8"],["mat-table","","matSort","","cdkDropList","",1,"dztable-table",3,"dataSource","cdkDropListData","cdkDropListDropped"],["choiceTable",""],["matColumnDef","choiceBoxReOrder"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","choiceBoxCaption"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","choiceBoxImage"],["matColumnDef","actions"],["matColumnDef","boxCaption"],["matColumnDef","isLinkedConnection"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","choice-table-row",4,"matRowDef","matRowDefColumns"],[3,"pageIndex","pageSize","pageSizeOptions","click"],["id","bxeditdlg-addchoice","mat-raised-button","",1,"add-choice-button",3,"disabled","click"],[1,"gray-text","small-text"],["editChoiceSection",""],["class","choices-header",4,"ngIf"],["align","end"],[1,"app-spinner"],[1,"mcbSaveSuccess"],["mat-header-cell",""],["mat-cell",""],["matTooltip","Drag this icon to reorder the presentation of this choice.","cdkDrag","","cdkDragHandle","","cdkDragRootElement","mat-row","cdkDragLockAxis","y",1,"choice-order-event",3,"matTooltipShowDelay","matTooltipHideDelay","cdkDragData","cdkDragDisabled","cdkDropListDropped"],["mat-header-cell","","mat-sort-header",""],["class","all-buttons choice-small-image","matTooltip","Image uploaded for this choice.",3,"background-image","matTooltipShowDelay","matTooltipHideDelay",4,"ngIf"],["matTooltip","Image uploaded for this choice.",1,"all-buttons","choice-small-image",3,"matTooltipShowDelay","matTooltipHideDelay"],["
1id","bxeditdlg-editchoice","mat-icon-button","","matTooltip","Edit this Choice",1,"choice-box-edit",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["mat-header-row",""],["mat-row","",1,"choice-table-row"],["class","edit-action-selected",4,"ngIf"],[1,"gray-text","centerize-paragraph"],["tabindex","0","aria-label","In the following list of tools, press the button for a specific tool, then tab all the way to the end of the list and then you will be able to use the selected tool.",1,"edit-container"],["group","matButtonToggleGroup"],["value","modifyChoiceCaption","matTooltip","Edit selected choice caption.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","uploadChoiceImage","matTooltip","Add Choice Box Image.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmtFromChoice","matTooltip","Add Statement after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsnFromChoice","matTooltip","Add Decision after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addBkmrklinkFromChoice","matTooltip","Add bookmark link after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputFromChoice","matTooltip","Add user input box after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","delChoice","matTooltip","Delete selected choice from the list of MCB choices.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","delBkmrklinkFromChoice","matTooltip","Delete outgoing bookmark link from the selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","choiceBoxCustomVar","matTooltip","Customize Variable and its response value for selected choice box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","modifyChoiceCaption","matTooltip","Edit selected choice caption.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/EditStmt.svg","alt","edit choice caption",1,"button-image"],["value","uploadChoiceImage","matTooltip","Add Choice Box Image.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/AddLinkPicture.svg","alt","Add Choice Box Image",1,"button-image"],["value","addStmtFromChoice","matTooltip","Add Statement after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addStmt.svg","alt","add statement",1,"button-image"],["value","addDecsnFromChoice","matTooltip","Add Decision after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addDecsn.svg","alt","add decision",1,"button-image"],["value","addBkmrklinkFromChoice","matTooltip","Add bookmark link after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addBkmrkLink.svg","alt","add bookmark link",1,"button-image"],["value","addInputFromChoice","matTooltip","Add user input box after selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addUsrInputBx.svg","alt","add user input box",1,"button-image"],["value","delChoice","matTooltip","Delete selected choice from the list of MCB choices.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delChoiceFromMcb.svg","alt","delete choice from MCB",1,"button-image"],["value","delBkmrklinkFromChoice","matTooltip","Delete outgoing bookmark link from the selected choice.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delBkmarkLink.svg","alt","delete bookmark link",1,"button-image"],["value","choiceBoxCustomVar","matTooltip","Customize Variable and its response value for selected choice box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/BoxVariables.svg","alt","Customize Choice Box Variable and its value",1,"button-image"],["matInput","","maxlength","40","placeholder","Edit choice box caption:","name","selectedChoiceCaption","required","",3,"ngModel","ngModelChange"],["id","bxeditdlg-savchoice","mat-raised-button","","all-buttons","",3,"click"],[1,"the-form",3,"formGroup"],[1,"full-width","top-margin-20"],["matInput","","matTextareaAutosize","","placeholder","Customize Box Variable","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","selectedChoiceBo
1xCustomVar","formControlName","selectedChoiceBoxCustomVar",3,"value"],["matInput","","matTextareaAutosize","","placeholder","Custom Box Variable Response Value","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","selectedChoiceBoxCustomRes","formControlName","selectedChoiceBoxCustomRes",3,"value"],["id","bxeditdlg-save","mat-raised-button","","color","accent",3,"disabled","click"],[1,"the-form"],[1,"uploadoption"],["for","file"],["type","file","accept","image/png, image/jpeg, image/jpg","id","image",1,"file-selector",3,"change"],["fileInput",""],["class","cropper-tools-container",4,"ngIf"],["class","cropper-rotation-slider","matTooltip","Rotate image.","name","rotation","tickInterval","30","min","0","max","359","aria-label","degrees",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelOptions","ngModelChange","change",4,"ngIf"],["format","png",1,"choice-image-cropper-container",3,"imageChangedEvent","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToHeight","cropperMinHeight","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["id","bxeditdlg-uplodchoicimg","mat-raised-button","","all-buttons","",3,"click"],["id","uploaded-choice-Image"],[1,"cropper-tools-container"],["matTooltip","Rotate 90 deg. Right","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate 90 deg. Left","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Horizontal","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Flip Vertical","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Fill Aspect Ratio","class","croppertool-button","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["matTooltip","Re
1set Image","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom Out","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Zoom In","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Contain Within Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Fill Aspect Ratio","mat-mini-fab","","color","accent",1,"croppertool-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Rotate image.","name","rotation","tickInterval","30","min","0","max","359","aria-label","degrees",1,"cropper-rotation-slider",3,"matTooltipShowDelay","matTooltipHideDelay","thumbLabel","ngModel","ngModelOptions","ngModelChange","change"],[1,"choice-custom-cropped-image",3,"src"],[1,"bluetext","small-text"],[1,"edit-container"],[3,"value"],["value","editStmt","matTooltip","Edit caption for this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Add new statement box after current box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Add new decision box after current box.",3,"click",4,"ngIf"],["value","deleteBox","matTooltip","Delete this box as well as current flowchart version.",3,"click",4,"ngIf"],["matTooltip","Add Multiple Choice box.","value","addMcb",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputBox","matTooltip","Add user input box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link from current box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addEmailBox","matTooltip","Add Email-Log box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Insert new statement after current statement box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Insert decision box after current statement box. New decision box YES connector will go to current Next-Box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Insert Decision box after current statement box. New Decision box NO connector will go to current Next-Box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputBox","matTooltip","Insert User-Input box after current statement box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","deleteBox","matTooltip","Delete Statement or User-Input or Email-Log box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","appendFlowchart","matTooltip","Copy & Paste Other Whole flowchart Under this Statement Box",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","editDecsn","matTooltip","Edit caption for decision box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Add statement box on decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Add new decision box on decison box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputBox","matTooltip","Add User-Input box on this decison box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Insert new Statement box after this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsnY","matTooltip","Insert new decision box with YES connector after current decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsnN","matTooltip","Insert decision NO connector after current decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","insrtUsrInputBxOnY","matTooltip","Insert new User-Input box on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Add new Statement box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Add new Decision box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputBox","matTooltip","Add new User-Input box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Insert new Statement after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Insert new Decision box with YES connector after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Insert new decision box with NO connector after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addInputBox","matTooltip","Insert new User-input box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Insert new Statement box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addDecsn","matTooltip","Insert new decision box with YES connector after this decision box NO connector",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","insrtUsrInputBxOnN","matTooltip","Insert new User-input box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","deleteBox","matTooltip","Delete this decision box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","editMcb","matTooltip","Edit caption, add/edit choices, add/edit box after this Choice box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addStmt","matTooltip","Add new statement box before current box.",3,"click",4,"ngIf"],["value","addPicLink","matTooltip","Add an image or a video to display on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addRefLink","matTooltip","Add a Reference Link to show on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","addAttachment","matTooltip","Attach a File on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","delPicLink","matTooltip","Delete the image or video currently being shown on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","delRefLink","matTooltip","Delete the Reference link on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","delFileLink","matTooltip","Delete the File Attachment from this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","customizeVariable","matTooltip","Customize Variable and its response value for this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["value","editStmt","matTooltip","Edit caption for this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/EditStmt.svg","alt","edit statement",1,"button-image"],["value","addStmt","matTooltip","Add new statement box after current box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["value","addDecsn","matTooltip","Add new decision box after current box.",3,"click"],["value","deleteBox","matTooltip","Delete this box as well as current flowchart version.",3,"click"],["src","assets/images/deleteFlowchartVersion.svg","alt","delete flowchart version",1,"button-image"],["matTooltip","Add Multiple Choice box.","value","addMcb",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/AddMCB.svg","alt","add MCB",1,"button-image"],["value","addInputBox","matTooltip","Add user input box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link from current box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["value","addEmailBox","matTooltip","Add Email-Log box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addEmailBox.svg","alt","add email box",1,"button-image"],["value","addStmt","matTooltip","Insert new statement after current statement box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/stmtInsAftrStmt.svg","alt","insert statement after current statement",1,"button-image"],["value","addDecsn","matTooltip","Insert decision box after current statement box. New decision box YES connector will go to current Next-Box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decYInsrtAftrStmt.svg","alt","insert decision Yes after statement",1,"button-image"],["value","addDecsn","matTooltip","Insert Decision box after current statement box. New Decision box NO connector will go to current Next-Box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decNInsrtAftrStmt.svg","alt","insert decision No after statement",1,"button-image"],["value","addInputBox","matTooltip","Insert User-Input box after current statement box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/usrInputBoxInsrt.svg","alt","insert user input box",1,"button-image"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["value","deleteBox","matTooltip","Delete Statement or User-Input or Email-Log box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delStmt.svg","alt","delete statement",1,"button-image"],["value","appendFlowchart","matTooltip","Copy & Paste Other Whole flowchart Under this Statement Box",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/appendFlowchart.svg","alt","Copy & Paste Other Whole flowchart Under this Statement Box",1,"button-image"],["value","editDecsn","matTooltip","Edit caption for decision box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/EditDecsn.svg","alt","edit this decision",1,"button-image"],["value","addStmt","matTooltip","Add statement box on decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addStmtY.svg","alt","add statement box on decision Yes",1,"button-image"],["value","addDecsn","matTooltip","Add new decision box on decison box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addDecsnY.svg","alt","add decision box on decision Yes",1,"button-image"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addBkmrkLinkY.svg","alt","add bookmark link on decision Yes",1,"button-image"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delBkmarkLinkY.svg","alt","delete bookmark link on decision yes",1,"button-image"],["value","addInputBox","matTooltip","Add User-Input box on this decison box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addUsrInputBxOnY.svg","alt","add user input box on decision yes",1,"button-image"],["value","addStmt","matTooltip","Insert new Statement box after this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/stmtInsAftrDecnY.svg","alt","insert statement after decision yes",1,"button-image"],["value","addDecsnY","matTooltip","Insert new decision box with YES connector after current decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decYInsrtAftrDecY.svg","alt","insert decnsion yes after decision yes",1,"button-image"],["value","addDecsnN","matTooltip","Insert decision NO connector after current decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decNInsrtAftrDecY.svg","alt","insert decision No after decision yes",1,"button-image"],["value","insrtUsrInputBxOnY","matTooltip","Insert new User-Input box on this decision box YES connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/insrtUsrInputBxOnY.svg","alt","insert user input box on decision yes",1,"button-image"],["value","addStmt","matTooltip","Add new Statement box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addStmtN.svg","alt","add statement box on decision No",1,"button-image"],["value","addDecsn","matTooltip","Add new Decision box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addDecsnN.svg","alt","add decision box on decision No",1,"button-image"],["value","addBkmrkLink","matTooltip","Add outgoing bookmark link on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addBkmrkLinkN.svg","alt","add bookmark link on decision No",1,"button-image"],["value","deletebkmarkLink","matTooltip","Delete outgoing bookmark link on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delBkmarkLinkN.svg","alt","delete bookmark link on decision No",1,"button-image"],["value","addInputBox","matTooltip","Add new User-Input box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/addUsrInputBxOnN.svg","alt","add user input box on decision No",1,"button-image"],["value","addStmt","matTooltip","Insert new Statement after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/stmtInsAftrDecnN.svg","alt","insert statement after decision no",1,"button-image"],["value","addDecsn","matTooltip","Insert new Decision box with YES connector after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decYInsrtAftrDecN.svg","alt","insert decision yes after decision no",1,"button-image"],["value","addDecsn","matTooltip","Insert new decision box with NO connector after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decNInsrtAftrDecN.svg","alt","insert decision No after decision No",1,"button-image"],["value","addInputBox","matTooltip","Insert new User-input box on this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/insrtUsrInputBxOnN.svg","alt","insert user input box on decision No",1,"button-image"],["value","addStmt","matTooltip","Insert new Statement box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/stmtInsAftrDecnN.svg","alt","insert statement box after decision no",1,"button-image"],["value","addDecsn","matToolti
1p","Insert new decision box with YES connector after this decision box NO connector",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/decYInsrtAftrDecN.svg","alt","insert decision Yes after decision No",1,"button-image"],["src","assets/images/decNInsrtAftrDecN.svg","alt","insert decision no after decision no",1,"button-image"],["value","insrtUsrInputBxOnN","matTooltip","Insert new User-input box after this decision box NO connector.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/insrtUsrInputBxOnN.svg","alt","insert user input box after decision no",1,"button-image"],["value","deleteBox","matTooltip","Delete this decision box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delDecisionBox.svg","alt","delete decision box",1,"button-image"],["value","editMcb","matTooltip","Edit caption, add/edit choices, add/edit box after this Choice box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/EditStmt.svg","alt","edit multiple choice box",1,"button-image"],["value","addStmt","matTooltip","Add new statement box before current box.",3,"click"],["src","assets/images/stmtInsBeforeCurrentBox.svg","alt","insert statement before currentBox",1,"button-image"],["value","addPicLink","matTooltip","Add an image or a video to display on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/AddLinkPicture.svg","alt","Add an image or a video to display on this box",1,"button-image"],["value","addRefLink","matTooltip","Add a Reference Link to show on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/AddRefLink.svg","alt","add reference link",1,"button-image"],["value","addAttachment","matTooltip","Attach a File on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/AddAttachment.svg","alt","add file attachment",1,"button-image"],["value","delPicLink","matTooltip","Delete the image or video currently being shown on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delImageLinkUrl.svg","alt","delete the image or video currently being shown on this box",1,"button-image"],["value","delRefLink","matTooltip","Delete the Reference link on this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delRefLinkUrl.svg","alt","delete reference link",1,"button-image"],["value","delFileLink","matTooltip","Delete the File Attachment from this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/delFileUrl.svg","alt","delete file attachment",1,"button-image"],["value","customizeVariable","matTooltip","Customize Variable and its response value for this box.",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["src","assets/images/BoxVariables.svg","alt","Customize Box Variable and its value",1,"button-image"],["matInput","","matTextareaAutosize","","placeholder","MCB caption:","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","mcbBoxCaption",3,"ngModel","ngModelChange"],[1,"mcb-default-choices-table","dztable-container","mat-elevation-z8"],["mat-table","","matSort","",1,"dztable-table",3,"dataSource"],["matColumnDef","name"],["mat-row","",4,"matRowDef","matRowDefColumns"],["id","bxeditdlg-addnewchoic","mat-raised-button","",1,"add-choice-button",3,"click"],["id","bxeditdlg-editcapdefchoic","matTooltip","Edit caption for default choice","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","bxeditdlg-editcapdefchoic","matTooltip","Edit caption for default choice","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["mat-row",""],[1,"edit-form-layer"],["class","the-form",3,"formGroup",4,"ngIf"],["class","full-width top-margin-20",4,"ngIf"],["f","ngForm"],["class","common-radio-group","name","addBoxSelectedOption",3,"ngModel","ngModelOptions","change","ngModelChange",4,"ngIf"],["class","common-form-input1",4,"ngIf"],["class","no-alias-found-msg",4,"ngIf"],["placeholder","Select from bookmarks(aliases)","name","boxAlias",3,"ngModel","ngModelOptions","ngModelChange","selectionChange",4,"ngIf"],["class","input-validation-list","class","full-width top-margin-20",4,"ngIf"],["class","edit-user-input-type-note",4,"ngIf"],["class","bookmark-alias-select mat-elevation-z10","placeholder","Select Email Address",3,"ngModel","ngModelOptions","ngModelChange","selectionChange",4,"ngIf"],["class","common-radio-group","name","addBkmarkLinkSelectedOption",3,"ngModel","ngModelOptions","ngModelChange","change",4,"ngIf"],["class","bookmark-alias-select mat-elevation-z10","placeholder","Select Destination Alias","name","boxAliasforUserOrg","formControlName","boxAliasforUserOrg",4,"ngIf"],["class","bookmark-alias-select mat-elevation-z10","placeholder","Select Destination Flowchart",3,"ngModel","ngModelOptions","ngModelChange","selectionChange",4,"ngIf"],["class","bookmark-alias-select mat-elevation-z10","placeholder","Select Destination Box",3,"ngModel","ngModelOptions","ngModelChange","selectionChange",4,"ngIf"],["class","full-width top-margin-20 small-instructions-text","id","bookmark-link-alias-imp-notes",4,"ngIf"],["id","bxeditdlg-cancel","class","editmenu-button-left","mat-raised-button","","color","accent","all-buttons","",3,"click",4,"ngIf"],["id","bxeditdlg-delchoice","class","editmenu-button-right","type","submit","mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["id","bxeditdlg-save","class","editmenu-button-right","type","submit","mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["name","addBoxSelectedOption",1,"common-radio-group",3,"ngModel","ngModelOptions","change","ngModelChange"],["class","common-radio-button",3,"value",4,"ngFor","ngForOf"],[1,"common-radio-button",3,"value"],["matInput","","matTextareaAutosize","","placeholder","Add New Box Caption","matAutosizeMinRows","2","matAutosizeMaxRows","5","maxlength","255","formControlName","newBoxCaption","name","newBoxCaption","required",""],[1,"no-alias-found-msg"],["placeholder","Select from bookmarks(aliases)","name","boxAlias",3,"ngModel","ngModelOptions","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"bookmark-alias-name"],[1,"bookmark-alias-fcname"],[1,"custom-yesno-buttons"],[1,"custom-yesno-caption"],["matInput","","maxlength","10","placeholder","YES Button Suffix","name","yesCaption","formControlName","yesCaption"],["matInput","","maxlength","10","placeholder","NO Button Suffix","name","noCaption","formControlName","noCaption"],["matInput","","matTextareaAutosize","","placeholder","Add caption for User input box","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","userIn
1putBoxCaption","formControlName","userInputBoxCaption"],["placeholder","User input validation:","name","selectedUserInputType",3,"ngModel","ngModelOptions","ngModelChange","selectionChange"],["id","bxeditdlg-adduserinputoption","mat-raised-button","",1,"add-checklist-button",3,"click"],[1,"checklist-add-option"],[1,"manage-checklist-options","dztable-container","mat-elevation-z8"],["userInputChecklistTable",""],["matColumnDef","optionCaption"],["mat-header-cell","","mat-sort-header","","matTooltip","Enter the caption for your checklist option in this column.",3,"matTooltipShowDelay","matTooltipHideDelay",4,"matHeaderCellDef"],["matColumnDef","optionCustomVarName"],["mat-header-cell","","mat-sort-header","","matTooltip","You can give this option a Custom Variable Name. (optional)",3,"matTooltipShowDelay","matTooltipHideDelay",4,"matHeaderCellDef"],["matColumnDef","optionCustomVarResponse"],["mat-header-cell","","mat-sort-header","","matTooltip","You can give this option a custom Value when the viewer selects this option. (optional)",3,"matTooltipShowDelay","matTooltipHideDelay",4,"matHeaderCellDef"],["matColumnDef","action"],["mat-header-cell","","mat-sort-header","","matTooltip","Add, Edit or Delete options to this checklist.",3,"matTooltipShowDelay","matTooltipHideDelay",4,"matHeaderCellDef"],[3,"pageIndex","pageSize","pageSizeOptions","click",4,"ngIf"],["mat-header-cell","","mat-sort-header","","matTooltip","Enter the caption for your checklist option in this column.",3,"matTooltipShowDelay","matTooltipHideDelay"],["floatLabel","never"],["matInput","","placeholder","optionCaption","name","optionCaption","maxlength","100","required","","value","element.optionCaption",3,"formControl"],["mat-header-cell","","mat-sort-header","","matTooltip","You can give this option a Custom Variable Name. (optional)",3,"matTooltipShowDelay","matTooltipHideDelay"],["matInput","","placeholder","optionCustomVarName","value","element.optionCustomVarName","name","optionCustomVarName","maxlength","50",3,"formControl"],["mat-header-cell","","mat-sort-header","","matTooltip","You can give this option a custom Value when the viewer selects this option. (optional)",3,"matTooltipShowDelay","matTooltipHideDelay"],["matInput","","placeholder","optionCustomVarResponse","value","element.optionCustomVarResponse","name","optionCustomVarResponse","maxlength","50",3,"formControl"],["mat-header-cell","","mat-sort-header","","matTooltip","Add, Edit or Delete options to this checklist.",3,"matTooltipShowDelay","matTooltipHideDelay"],["id","addimportorgusr-delrow","matTooltip","Delete Row","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],[1,"edit-user-input-type-note"],["matInput","","placeholder","Email Address for Activity Log Delivery","name","flowchartDetails.emailLogDeliveryAddress","readonly","",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","Select Email Address",1,"bookmark-alias-select","mat-elevation-z10",3,"ngModel","ngModelOptions","ngModelChange","selectionChange"],["name","addBkmarkLinkSelectedOption",1,"common-radio-group",3,"ngModel","ngModelOptions","ngModelChange","change"],["placeholder","Select Destination Alias","name","boxAliasforUserOrg","formControlName","boxAliasforUserOrg",1,"bookmark-alias-select","mat-elevation-z10"],["placeholder","Select Destination Flowchart",1,"bookmark-alias-select","mat-elevation-z10",3,"ngModel","ngModelOptions","ngModelChange","selectionChange"],["placeholder","Select Destination Box",1,"bookmark-alias-select","mat-elevation-z10",3,"ngModel","ngModelOptions","ngModelChange","selectionChange"],[1,"box-shape-type"],["id","bookmark-link-alias-imp-notes",1,"full-width","top-margin-20","small-instructions-text"],["id","bxeditdlg-cancel","mat-raised-button","","color","accent","all-buttons","",1,"editmenu-button-left",3,"click"],["id","bxeditdlg-delchoice","type","submit","mat-raised-button","","color","accent",1,"editmenu-button-right",3,"disabled","click"],["id","bxeditdlg-save","type","submit","mat-raised-button","","color","accent",1,"editmenu-button-right",3,"disabled","click"],["matInput","","matTextareaAutosize","","placeholder","Edit caption for the current box","maxlength","255","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","currentBoxCaption","formControlName","currentBoxCaption","required","",3,"value"],["name","editCloneGroup",1,"common-radio-group",3,"ngModel","ngModelOptions","ngModelChange"],["value","N"],["value","Y"],["matInput","","maxlength","10","placeholder","YES Button Suffix","name","currentYesCaption","formControlName","currentYesCaption",3,"value"],["matInput","","maxlength","10","placeholder","NO Button Suffix","name","currentNoCaption","formControlName","currentNoCaption",3,"value"],["mat-raised-button","","id","bxeditdlg-addmoreuserinputoptions",1,"add-checklist-button",3,"click"],[1,"checklist-add-option",3,"formGroup"],["formArrayName","userIn
1putOptionRows"],["editUserInputChecklistTable",""],["mat-cell","",3,"formGroup",4,"matCellDef"],["mat-header-cell","","mat-sort-header","","matTooltip","Edit or Delete existing options to this checklist. Careful, deleting an option will permanently remove that option from your checklist and can not be recovered.",3,"matTooltipShowDelay","matTooltipHideDelay",4,"matHeaderCellDef"],["mat-cell","",3,"formGroup"],["floatLabel","never",3,"appearance"],["matInput","","placeholder","OptionCaption","formControlName","optionCaption","maxLength","100","required","",3,"readonly"],["matInput","","placeholder","OptionCustomVarName","formControlName","optionCustomVarName","maxLength","50",3,"readonly"],["matInput","","placeholder","OptionCustomVarResponse","formControlName","optionCustomVarResponse","maxLength","50",3,"readonly"],["mat-header-cell","","mat-sort-header","","matTooltip","Edit or Delete existing options to this checklist. Careful, deleting an option will permanently remove that option from your checklist and can not be recovered.",3,"matTooltipShowDelay","matTooltipHideDelay"],["id","usrinputchecklist-updaterow","mat-icon-button","","class","material-icons app-toolbar-menu save-button","matTooltip","Save Changes","color","primary",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","usrinputchecklist-cancelupdaterow","mat-icon-button","","class","material-icons app-toolbar-menu cancel-button","matTooltip","Cancel Changes","color","warn",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","usrinputchecklist-editrow","mat-icon-button","","class","material-icons app-toolbar-menu save-button","matTooltip","Edit","color","primary",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","usrinputchecklist-delrow","mat-icon-button","","class","material-icons app-toolbar-menu delete-button","matTooltip","Delete","color","warn",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["id","usrinputchecklist-updaterow","mat-icon-button","","matTooltip","Save Changes","color","primary",1,"material-icons","app-toolbar-menu","save-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["id","usrinputchecklist-cancelupdaterow","mat-icon-button","","matTooltip","Cancel Changes","color","warn",1,"material-icons","app-toolbar-menu","cancel-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["id","usrinputchecklist-editrow","mat-icon-button","","matTooltip","Edit","color","primary",1,"material-icons","app-toolbar-menu","save-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["id","usrinputchecklist-delrow","mat-icon-button","","matTooltip","Delete","color","warn",1,"material-icons","app-toolbar-menu","delete-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["class","bookmark-alias-select mat-elevation-z10","placeholder","Select email from the list to receive the transcript email","name","selectedOrgUserEmail",3,"ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["placeholder","Select email from the list to receive the transcript email","name","selectedOrgUserEmail",1,"bookmark-alias-select","mat-elevation-z10",3,"ngModel","ngModelOptions","ngModelChange"],["matInput","","matTextareaAutosize","","placeholder","Custom Box Variable NAME","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","customBoxVariable","formControlName","customBoxVariable",3,"value"],["matInput","","matTextareaAutosize","","placeholder","Custom Box Variable Response VALUE","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","customBoxVariableYesResponse","formControlName","customBoxVariableYesResponse",3,"value"],["matInput","","matTextareaAutosize","","placeholder","Custom Box Variable YES Response Value","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","customBoxVariableYesResponse","formControlName","customBoxVariableYesResponse",3,"value"],["matInput","","matTextareaAutosize","","placeholder","Custom Box Variable NO Response Value","maxlength","100","matAutosizeMinRows","2","matAutosizeMaxRows","5","name","customBoxVariableNoResponse","formControlName","customBoxVariableNoResponse",3,"value"],[1,"small-grey-text"],["placeholder","Select flowchart from list","name","selectedFlowchartForAppend",1,"bookmark-alias-select","mat-elevation-z10",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngModel","ngModelOptions","ngModelChange"],[1,"mat-error"],["name","imageVideoOption",1,"common-radio-group",3,"ngModel","change"],["value","I"],["value","E"],["name","editCloneGroup",1,"common-radio-group",3,"ngModel","ngModelChange"],[1,"top-margin-20","small-grey-text"],["format","png",1,"image-cropper-container",3,"imageChangedEvent","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToHeight","cropperMinHeight","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","imageCropped","imageLoaded","cropperReady","loadImageFailed"],["id","uploadedImage"],[1,"custom-cropped-image",3,"src"],[1,"bluetext"],[1,"redtext"],[1,"file-upload-section"],["for","videolink"],["matInput","","type","text","formControlName","videoLink","name","videoLink",3,"value"],["for","imageVideolink"],["matInput","","type","text","formControlName","imageVideoLink","name","imageVideoLink",3,"value"],["position","start"],[1,"imageVideoIconupload"],["for","imageVideoLinkIcon"],["class","refbtnimagepreview",4,"ngIf"],["format","png",1,"linkicon-image-cropper-container",3,"imageChangedEvent","maintainAspectRatio","containWithinAspectRatio","aspectRatio","resizeToWidth","cropperMinWidth","onlyScaleDown","roundCropper","canvasRotation","transform","alignImage","imageCropped","imageLoaded","cropperReady","loadImageFailed"],[1,"refbtnimagepreview"],["id","uploadedButtonIconImage"],["id","bxeditdlog-delvidicon","matTooltip","Delete Image/Video Link Icon","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],[1,"linkicon-custom-cropped-image",3,"src"],["name","fileAttachmentOption",1,"common-radio-group",3,"ngModel","change"],["value","F"],["value","L"],["type","file","id","attachment",3,"change"],["id","uploadedFile"],["for","attchmentlink"],["matInput","","type","text","formControlName","attachmentLink","name","attachmentLink",3,"value"],[1,"attachmentIconupload"],["for","attachmentLinkIcon"],["id","bxeditdlog-delatticon","matTooltip","Delete Attachment Link Icon","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["id","uploadedFile",4,"ngIf"],["for","reflink"],["matInput","","type","text","formControlName","refLink","name","refLink",3,"value"],[1,"refbtnimageupload"],["for","refLinkIcon"],["id","bxeditdlog-delreficon","matTooltip","Delete Reference Link Icon","mat-icon-button","",3,"matTooltipShowDelay","matTooltipHideDelay","click"],[1,"common-modal-buttons"],["
1id","bxeditdlg-cancel","mat-raised-button","","color","accent","all-buttons","",3,"click"],["id","bxeditdlg-save","mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["id","bxeditdlg-delbkmlnk","mat-raised-button","","color","accent",3,"disabled","click"],["id","bxeditdlg-close","mat-raised-button","","color","accent","all-buttons","",1,"close-button-right",3,"click"],["id","bxeditdlg-fileuplod","mat-raised-button","","color","accent","all-buttons","",3,"disabled","click"],["id","bxeditdlg-save","mat-raised-button","","color","accent","all-buttons","",3,"disabled","click"],["id","bxeditdlg-del","mat-raised-button","","color","accent","all-buttons","",3,"disabled","click"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return a.close()}),t.TgZ(2,"mat-icon"),t._uU(3,"close"),t.qZA()(),t.TgZ(4,"div",2)(5,"p",3),t._uU(6," Current box: "),t.TgZ(7,"span",4),t._uU(8),t.qZA()()(),t.TgZ(9,"div",5)(10,"div",6),t.YNc(11,De,107,25,"div",7),t.YNc(12,go,51,49,"div",8),t.YNc(13,Io,39,10,"div",7),t.TgZ(14,"div",9),t.YNc(15,Ka,20,18,"div",10),t.YNc(16,Wa,11,6,"div",10),t.YNc(17,en,6,4,"div",10),t.YNc(18,on,5,1,"div",10),t.YNc(19,An,15,6,"div",10),t.YNc(20,qn,11,6,"div",10),t.YNc(21,ll,12,5,"div",10),t.YNc(22,ul,12,5,"div",10),t.YNc(23,Zl,33,24,"div",10),t.YNc(24,Ml,13,5,"div",10),t.qZA(),t.TgZ(25,"a",11),t._uU(26,"Editor Training Video"),t.qZA()()(),t.TgZ(27,"div",12),t.YNc(28,rr,17,12,"div",13),t.YNc(29,cr,10,2,"div",13),t.YNc(30,_r,10,2,"div",13),t.YNc(31,pr,10,2,"div",13),t.YNc(32,hr,10,2,"div",13),t.YNc(33,fr,3,0,"div",13),t.YNc(34,xr,10,2,"div",13),t.YNc(35,wr,10,2,"div",13),t.YNc(36,Cr,10,2,"div",13),t.YNc(37,Tr,10,2,"div",13),t.YNc(38,Ir,10,2,"div",13),t.YNc(39,Er,10,2,"div",13),t.YNc(40,Zr,10,2,"div",13),t.YNc(41,Sr,10,2,"div",13),t.YNc(42,Nr,10,2,"div",13),t.YNc(43,Mr,10,2,"div",13),t.qZA()()),2&e&&(t.xp6(8),t.hij(" ",a.flowchartDetails.currentBox.boxCaption,""),t.xp6(2),t.ekj("mat-elevation-z8",!0),t.xp6(1),t.Q6J("ngIf",a.editMcb),t.xp6(1),t.Q6J("ngIf",!a.editMcb),t.xp6(1),t.Q6J("ngIf",a.addMcb),t.xp6(2),t.Q6J("ngIf",a.addStmt||a.addDecsn||a.addInputBox||a.editStmt||a.editDecsn||a.addEmailBox||a.addBkmrkLink||a.deletebkmarkLink||a.addStmtFromChoice||a.addDecsnFromChoice||a.addBkmrklinkFromChoice||a.addInputFromChoice||a.delBkmrklinkFromChoice||a.delChoice||a.customizeVariable),t.xp6(1),t.Q6J("ngIf",a.appendFlowchart),t.xp6(1),t.Q6J("ngIf",a.deleteBox&&0!==a.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",a.deleteBox&&0===a.flowchartDetails.currentBox.inArrowCount),t.xp6(1),t.Q6J("ngIf",a.addPicLink),t.xp6(1),t.Q6J("ngIf",a.delPicLink),t.xp6(1),t.Q6J("ngIf",a.addAttachment),t.xp6(1),t.Q6J("ngIf",a.delFileLink),t.xp6(1),t.Q6J("ngIf",a.addRefLink),t.xp6(1),t.Q6J("ngIf",a.delRefLink),t.xp6(4),t.Q6J("ngIf",a.addMcb||a.addStmt||a.addDecsn||a.addInputBox||a.insert||a.addEmailBox||a.addBkmrkLink||a.deleteBox||a.customizeVariable),t.xp6(1),t.Q6J("ngIf",(a.editStmt||a.editDecsn)&&"E"!==a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.editStmt&&"E"===a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.deletebkmarkLink),t.xp6(1),t.Q6J("ngIf",a.delBkmrklinkFromChoice),t.xp6(1),t.Q6J("ngIf",a.editMcb),t.xp6(1),t.Q6J("ngIf",a.addPicLink&&"I"===a.imageVideoOption),t.xp6(1),t.Q6J("ngIf",a.addPicLink&&"V"===a.imageVideoOption),t.xp6(1),t.Q6J("ngIf",a.addPicLink&&"E"===a.imageVideoOption),t.xp6(1),t.Q6J("ngIf",a.delPicLink),t.xp6(1),t.Q6J("ngIf",a.addRefLink),t.xp6(1),t.Q6J("ngIf",a.delRefLink),t.xp6(1),t.Q6J("ngIf",a.delFileLink),t.xp6(1),t.Q6J("ngIf",a.addAttachment&&"F"===a.fileAttachmentOption),t.xp6(1),t.Q6J("ngIf",a.addAttachment&&"L"===a.fileAttachmentOption),t.xp6(1),t.Q6J("ngIf",a.appendFlowchart))},dependencies:[F.sg,F.O5,c._Y,c.Fj,c.JJ,c.JL,c.Q7,c.nD,c.On,c.F,c.oH,c.sg,c.u,c.CE,S.i7,S.tY,L.Wj,L.Zt,L.Bh,P.ap,N.TO,N.KE,N.bx,V.Nt,rt.ey,M.lW,q.A9,q.Yi,bt.oG,A.uh,A.H8,$.Hw,ot.NW,st.Ou,ct.VQ,ct.U0,dt.gD,wt.pH,K.YE,K.nU,B.BZ,B.fO,B.as,B.w1,B.Dz,B.nj,B.ge,B.ev,B.XQ,B.Gk,X.gM],styles:[".edit-page[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;margin:0 auto}.edit-context[_ngcontent-%COMP%]{color:var(--primarytextcolor);font-size:small;overflow-y:auto;width:90%;height:50px;margin:0 auto}.edit-container[_ngcontent-%COMP%]{padding:0 0 5px;width:100%;margin:0 auto;overflow-x:auto;overflow-y:hidden;text-align:center;flex:none;max-height:100px!important}.mat-button-toggle-group[_ngcontent-%COMP%]{height:100%}.mat-button-toggle[_ngcontent-%COMP%]{touch-action:auto!important}.button-image[_ngcontent-%COMP%]{height:92px;margin:auto}.edit-form-layer[_ngcontent-%COMP%]{overflow-y:auto;width:90%;margin:0 auto;max-width:800px}.the-form[_ngcontent-%COMP%]{width:calc(100% - 32px);max-width:600px;margin:0 auto}.the-form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin:0 auto}
1.add-choice-button[_ngcontent-%COMP%]{width:200px;margin:20px auto}.bookmark-alias-select[_ngcontent-%COMP%]{margin:5px auto 15px;max-width:90%;padding:5px;border-radius:10px}.box-shape-type[_ngcontent-%COMP%]{color:#b3b3b3;font-size:small;font-weight:700}.input-validation-list[_ngcontent-%COMP%]{width:200px;margin:0 auto}.file-upload-section[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;margin:10px auto}.close-button-right[_ngcontent-%COMP%]{float:right}#uploadedImage[_ngcontent-%COMP%]{background-position:center center;background-repeat:no-repeat;width:200px;right:0;margin:auto;height:200px;background-size:contain}.uploadoption[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around;align-items:flex-start;flex-grow:1;margin:20px 0}.image-cropper-container[_ngcontent-%COMP%]{height:300px!important;width:auto!important;overflow:hidden!important}.custom-cropped-image[_ngcontent-%COMP%]{height:300px;box-sizing:border-box}.linkicon-image-cropper-container[_ngcontent-%COMP%]{height:200px!important;width:auto!important;overflow:hidden!important}.linkicon-custom-cropped-image[_ngcontent-%COMP%]{height:50px;width:50px;box-sizing:border-box;border-radius:50%}.choice-image-cropper-container[_ngcontent-%COMP%]{height:200px!important;width:auto!important;overflow:hidden!important}.choice-custom-cropped-image[_ngcontent-%COMP%]{height:80px;max-width:130px;box-sizing:border-box}#uploaded-choice-Image[_ngcontent-%COMP%]{background-position:center center;background-repeat:no-repeat;right:0;margin:auto;height:80px;background-size:contain}.buttons-container[_ngcontent-%COMP%], .cropper-tools-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:space-around!important;align-items:center!important;padding:6px!important;margin:20px 0!important}.croppertool-button[_ngcontent-%COMP%]{background:transparent;margin:3px}.cropper-rotation-slider[_ngcontent-%COMP%]{margin:8px;width:200px}.refbtnimageupload[_ngcontent-%COMP%]{text-align:center}#uploadedButtonIconImage[_ngcontent-%COMP%]{background-position:center center;background-repeat:no-repeat;width:50px;height:50px;right:0;margin:5px 20px;background-size:contain;border-radius:50%;border:1px solid lightgray}.choices-header[_ngcontent-%COMP%]{color:var(--primarytextcolor);font-weight:700}.small-instructions-text[_ngcontent-%COMP%]{font-size:small}.editmenu-button-left[_ngcontent-%COMP%]{float:left;margin-bottom:70px}.editmenu-button-right[_ngcontent-%COMP%]{float:right;margin-bottom:70px}.edit-menu-page[_ngcontent-%COMP%]{width:calc(100% - 40px)!important;padding:20px!important}.edit-user-input-type-note[_ngcontent-%COMP%]{color:gray;font-size:15px;font-style:italic}.mcbSaveSuccess[_ngcontent-%COMP%]{color:green}.mcb-choices-table[_ngcontent-%COMP%]{text-align:center;min-height:152px;max-height:250px}.mcb-choices-table[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.mcb-choices-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-choiceBoxReOrder[_ngcontent-%COMP%]{width:50px;padding-left:0}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-choiceBoxCaption[_ngcontent-%COMP%]{width:100px;background-color:#fffbeb}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-choiceBoxImage[_ngcontent-%COMP%]{width:50px}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:50px;text-align:center;background-color:#fffbeb}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-boxCaption[_ngcontent-%COMP%]{width:150px;text-align:start!important}.mcb-choices-table[_ngcontent-%COMP%] .mat-column-isLinkedConnection[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.mcb-default-choices-table[_ngcontent-%COMP%]{text-align:center;min-height:152px;max-height:250px}.mcb-default-choices-table[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed}.mcb-default-choices-table[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.mcb-default-choices-table[_ngcontent-%COMP%] .mat-column-name[_ng
1content-%COMP%]{width:200px;text-align:start}.mcb-default-choices-table[_ngcontent-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:50px;text-align:center;background-color:#fffbeb}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.mcb-choices-table[_ngcontent-%COMP%] .cdk-drag-disabled[_ngcontent-%COMP%]{color:#ccc;cursor:default}.choice-order-event[_ngcontent-%COMP%]{pointer-events:all;height:40px;width:40px;font-size:40px;color:gray}.choice-table-row[_ngcontent-%COMP%]{pointer-events:none}.choice-box-edit[_ngcontent-%COMP%]{pointer-events:all}.refbtnimagepreview[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.no-alias-found-msg[_ngcontent-%COMP%]{color:red;font-style:italic}.custom-yesno-buttons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-around}.custom-yesno-caption[_ngcontent-%COMP%]{display:inline-block;width:150px!important}#bookmark-link-alias-imp-notes[_ngcontent-%COMP%]{height:200px;overflow-y:auto;border:1px solid lightgray;padding:0 10px}.checklist-add-option[_ngcontent-%COMP%]{border:1px solid lightgray;border-radius:10px;padding:5px}.manage-checklist-options[_ngcontent-%COMP%]{text-align:start;min-height:200px;position:relative}.manage-checklist-options[_ngcontent-%COMP%] .dztable-table[_ngcontent-%COMP%]{table-layout:fixed;overflow-x:auto}.manage-checklist-options[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{padding-left:20px}.manage-checklist-options[_ngcontent-%COMP%] .mat-column-emailAddress[_ngcontent-%COMP%]{width:200px}.manage-checklist-options[_ngcontent-%COMP%] .mat-column-firstName[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-checklist-options[_ngcontent-%COMP%] .mat-column-lastName[_ngcontent-%COMP%]{width:100px;text-align:center}.manage-checklist-options[_ngcontent-%COMP%] .mat-column-role[_ngcontent-%COMP%]{width:100px;text-align:center;background-color:#fffbeb}.manage-checklist-options[_ngcontent-%COMP%] .mat-column-action[_ngcontent-%COMP%]{width:50px;text-align:center}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-outline[_ngcontent-%COMP%]{color:#fff}.mat-column-optionCaption[_ngcontent-%COMP%], .mat-column-optionCustomVarName[_ngcontent-%COMP%]{width:150px}.mat-column-optionCustomVarResponse[_ngcontent-%COMP%]{width:100px}.mat-column-action[_ngcontent-%COMP%]{width:70px!important}"]}),o})(),Lr=(()=>{class o{constructor(e,a,i){this.ngZone=e,this.dialogRef=a,this.data=i,this.message=i.message}close(){this.ngZone.run(()=>{this.dialogRef.close()})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.R0b),t.Y36(A.so),t.Y36(A.WI))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],decls:5,vars:1,consts:[["mat-dialog-actions","",1,"common-modal-buttons"],["type","button","mat-button","",3,"click"]],template:function(e,a){1&e&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"button",1),t.NdJ("click",function(){return a.close()}),t._uU(4,"Got it!"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(a.message))},dependencies:[M.lW,A.H8],encapsulation:2}),o})();var Or=x(45768);function qr(o,n){1&o&&(t.TgZ(0,"span",10)(1,"mat-icon",11),t._uU(2,"verified"),t.qZA(),t._uU(3," Selected"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Qr(o,n){1&o&&(t.TgZ(0,"span",12)(1,"mat-icon",13),t._uU(2,"warning_amber"),t.qZA(),t._uU(3," None Selected"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Rr(o,n){1&o&&(t.TgZ(0,"span",10)(1,"mat-icon",14),t._uU(2,"verified"),t.qZA(),t._uU(3," Currently Published"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Hr(o,n){1&o&&(t.TgZ(0,"span",12)(1,"mat-icon",15),t._uU(2,"warning_amber"),t.qZA(),t._uU(3," Not Published"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Yr(o,n){if(1&o&&(t.TgZ(0,"li")(1,"strong"),t._uU(2,"Published Status:"),t.qZA(),t.YNc(3,Rr,4,2,"span",4),t.YNc(4,Hr,4,2,"span",5),t.qZA()),2&o){const e=t.oxw();
1t.xp6(3),t.Q6J("ngIf",e.flowchartDetails.isPublished),t.xp6(1),t.Q6J("ngIf",!1===e.flowchartDetails.isPublished)}}function Vr(o,n){1&o&&(t.TgZ(0,"span",10)(1,"mat-icon",16),t._uU(2,"verified"),t.qZA(),t._uU(3," Currently Public"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Gr(o,n){1&o&&(t.TgZ(0,"span",12)(1,"mat-icon",17),t._uU(2,"block"),t.qZA(),t._uU(3," Not Public"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))}function Kr(o,n){if(1&o&&(t.TgZ(0,"li")(1,"strong"),t._uU(2,"Public Status:"),t.qZA(),t.YNc(3,Vr,4,2,"span",4),t.YNc(4,Gr,4,2,"span",5),t.qZA()),2&o){const e=t.oxw();t.xp6(3),t.Q6J("ngIf",e.flowchartDetails.isPublic),t.xp6(1),t.Q6J("ngIf",!1===e.flowchartDetails.isPublic)}}let Pr=(()=>{class o{constructor(e,a,i,l,r,s,_){this.ngZone=e,this.dialogRef=a,this._utilService=i,this._flowchartService=l,this.dialog=r,this._snackBar=s,this.data=_,this.flowchartDetails=_.flowchartDetails,this.message=_.message,console.log("Flowchart edit off dialog -",this.flowchartDetails)}openFlowchartVersionDialog(){let e={event:"editfc_editmodeendeditfcstatus","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":this.flowchartDetails.orgId,"dlv-cat_id":this.flowchartDetails.categoryId,"dlv-subcat_id":this.flowchartDetails.subCategoryId,"dlv-goal_id":this.flowchartDetails.goalId,"dlv-fc_id":this.flowchartDetails.flowchartId,"dlv-fc_version_id":this.flowchartDetails.flowchartVersionId,"dlv-current_box_id":this.flowchartDetails.currentBox?this.flowchartDetails.currentBox.boxId:0};window.dataLayer.push(e);let a={flowchartId:this.flowchartDetails.flowchartId,orgId:this.flowchartDetails.orgId,userAccess:this.flowchartDetails.userAccess};var i=[];this.dialogRef.close(!0),this._flowchartService.loadSelectedFlowchartVersions(a).subscribe(l=>{var r=l.responseBody.flowchartVersionBeanList;console.log("order by flowchartversionId list -",r),d.forEach(r,function(u){var f={versionId:"",Name:"",Author:"",CreatedTime:"",LastUpdated:"",Master:"",ParentVersion:"",Actions:""};f.Name=u.flowchartVersionName,f.versionId=u.flowchartVersionId,f.Author=u.flowchartVersionAuthor,f.CreatedTime=u.creationTime,f.LastUpdated=u.lastUpdateTime,f.Master=u.masterFlag,f.ParentVersion=u.parentFlowchartVersionName,i.push(f)});const _=new A.vA;_.disableClose=!0,_.autoFocus=!0,_.height="100%",_.width="100%",_.data={fcVersionDetails:i,columns:[{prop:"Name"},{prop:"Author"},{prop:"CreatedTime"},{prop:"LastUpdated"},{prop:"Master"},{prop:"ParentVersion"},{prop:"Actions"}],flowchartDetails:this.flowchartDetails},_.panelClass=["dz-dialog-container","edit-fc-versions-contr","fc-end-edit-chg-version-status-contr"];let m=this.dialog.open(Or.y,_);m.afterClosed().subscribe(u=>{m=null})},l=>{this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_RETRIEVE_FC_VERSION_LIST.errorMessage,...b.wml})})}close(){this.ngZone.run(()=>{this.dialogRef.close(!1)})}editModeOffConfirm(){this.ngZone.run(()=>{this.dialogRef.close(!0)})}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.R0b),t.Y36(A.so),t.Y36(O.f),t.Y36(j.q),t.Y36(A.uw),t.Y36(W.ux),t.Y36(A.WI))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],decls:26,vars:4,consts:[["id","editoffalert-close","mat-button","","aria-label","Close the dialog without turning off edit mode.",1,"close-cross",3,"click"],[1,"editoffalert-container"],[1,""],[1,"editoffalert-status"],["class","statusset",4,"ngIf"],["class","statusnotset",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions","",1,"common-modal-buttons","edit-mode-end-dialog"],["id","fceditoffmsg-editstatus","type","button","color","accent","cdkFocusInitial","","mat-raised-button","",3,"click"],["id","fceditoffmsg-editoff","type","button","mat-raised-button","",3,"click"],[1,"statusset"],["matTooltip","This Flowchart has a Master Version Selected.",1,"non-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"],[1,"statusnotset"],["matTooltip","This Flowchart does not have Master Version Selected.",1,"n
1on-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"],["matTooltip","This Flowchart is currently Published.",1,"non-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"],["matTooltip","This Flowchart is currently NOT Published.",1,"non-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"],["matTooltip","This Flowchart is currently Public.",1,"non-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"],["matTooltip","This Flowchart is currently NOT Public.",1,"non-clickable-icons",3,"matTooltipShowDelay","matTooltipHideDelay"]],template:function(e,a){1&e&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return a.close()}),t.TgZ(1,"mat-icon"),t._uU(2,"close"),t.qZA()(),t.TgZ(3,"div",1)(4,"h3"),t._uU(5,"Ending Flowchart Edit Mode"),t.qZA(),t.TgZ(6,"p",2),t._uU(7," Others can access this flowchart only if the Master Version is selected. "),t.qZA(),t.TgZ(8,"p")(9,"strong"),t._uU(10,"Check Current Flowchart Status"),t.qZA()(),t.TgZ(11,"ul",3)(12,"li")(13,"strong"),t._uU(14,"Master Version:"),t.qZA(),t.YNc(15,qr,4,2,"span",4),t.YNc(16,Qr,4,2,"span",5),t.qZA(),t.YNc(17,Yr,5,2,"li",6),t.YNc(18,Kr,5,2,"li",6),t.qZA(),t.TgZ(19,"p"),t._uU(20,"Change the Master Version and Published status as needed."),t.qZA(),t.TgZ(21,"div",7)(22,"button",8),t.NdJ("click",function(){return a.openFlowchartVersionDialog()}),t._uU(23," Edit Flowchart Status "),t.qZA(),t.TgZ(24,"button",9),t.NdJ("click",function(){return a.editModeOffConfirm()}),t._uU(25," Turn OFF Edit Mode "),t.qZA()()()),2&e&&(t.xp6(15),t.Q6J("ngIf",a.flowchartDetails.hasMaster),t.xp6(1),t.Q6J("ngIf",!1===a.flowchartDetails.hasMaster),t.xp6(1),t.Q6J("ngIf",1!==a.flowchartDetails.orgId),t.xp6(1),t.Q6J("ngIf",1===a.flowchartDetails.orgId))},dependencies:[F.O5,M.lW,A.H8,$.Hw,X.gM],styles:["h3[_ngcontent-%COMP%]{margin:0 auto}.editoffalert-status[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none}.statusset[_ngcontent-%COMP%], .statusset[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:green}.statusnotset[_ngcontent-%COMP%], .statusnotset[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:red}.edit-mode-end-dialog[_ngcontent-%COMP%]{padding:0;margin:0 auto;height:-moz-fit-content;height:fit-content}"]}),o})();var zr=x(89811),jr=x(41591),Wr=x(37901),$r=x(1201),Xr=x(82345),ts=x(47143),es=x(8677),os=x(48242),R=x(1576),is=x(55829),as=x(90455),ns=x(6799);const ls=["fileInput"];function rs(o,n){1&o&&t._UZ(0,"mat-spinner",31)}function ss(o,n){if(1&o&&(t.TgZ(0,"p",41),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.boxCaption," ")}}function cs(o,n){if(1&o&&(t.TgZ(0,"p",41),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.mcbBoxCaption," ")}}function ds(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.userInputData," ")}}function _s(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Choice : ",e.box.selectedChoiceBox.boxCaption," ")}}function ms(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Choice: ",e.box.boxCaption," ")}}function ps(o,n){if(1&o&&t._UZ(0,"img",42),2&o){const e=t.oxw().index;t.MGl("id","prev-img-",e,"")}}function us(o,n){if(1&o&&t._UZ(0,"img",43),2&o){const e=t.oxw().index;t.MGl("id","prev-img-",e,"")}}function hs(o,n){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",35),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.loadNextLayer(l.boxId,l.fromBoxCorner,l.box,r.flowchartDetails.currentBox,!1,!1))}),t.TgZ(2,"div",36),t.YNc(3,ss,2,1,"p",37),t.YNc(4,cs,2,1,"p",37),t.YNc(5,ds,2,1,"p",38),t.YNc(6,_s,2,1,"p",38),t.YNc(7,ms,2,1,"p",38),t.qZA(),t.YNc(8,ps,1,1,"img",39),t.YNc(9,us,1,1,"img",40),t.qZA(),t.BQk()}if(2&o){const e=n.$implicit,a=n.index,i=t.oxw(2);t.xp6(1),t.MGl("id","previous-",a,""),t.Q6J("ngClass",i.getFromBoxClass(i.disableClick,e)),t.xp6(2),t.Q6J("ngIf","C"!==e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","I"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","M"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","S"===e.box.boxShapeType||"E"===e.box.boxShapeType||"I"===e.box.boxShapeType||"M"===e.box.boxShapeType||"C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.box.boxShapeType)}}function fs(o,n){if(1&o&&(t.TgZ(0,"div",32)(1,"div",33),t.YNc(2,hs,10,9,"ng-container",34),t.qZA()()),2&o){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.flowchartDetails.fromBoxList)}}function gs(o,n){if(1&o&&(t.TgZ(0,"p",41),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.boxCaption," ")}}function xs(o,n){if(1&o&&(t.TgZ(0,"p",41),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.mcbBoxCaption," ")}}function bs(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.box.userInputData," ")}}function ws(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Choice : ",e.box.selectedChoiceBox.boxCaption," ")}}function Ds(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.hij(" Choice: ",e.box.boxCaption," ")}}function Cs(o,n){if(1&o&&t._UZ(0,"img",42),2&o){const e=t.oxw().index;t.MGl("id","prev-img-",e,"")}}function vs(o,n){if(1&o&&t._UZ(0,"img",43),2&o){const e=t.oxw().index;t.MGl("id","prev-img-",e,"")}}function Ts(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",45)(1,"div",35),t.NdJ("click",function(){const l=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.loadNextLayer(l.boxId,l.fromBoxCorner,l.box,r.flowchartDetails.currentBox,!1,!1))}),t.TgZ(2,"div",36),t.YNc(3,gs,2,1,"p",37),t.YNc(4,xs,2,1,"p",37),t.YNc(5,bs,2,1,"p",38),t.YNc(6,ws,2,1,"p",38),t.YNc(7,Ds,2,1,"p",38),t.qZA(),t.YNc(8,Cs,1,1,"img",39),t.YNc(9,vs,1,1,"img",40),t.qZA()()}if(2&o){const e=n.$implicit,a=n.index,i=t.oxw(2);t.xp6(1),t.MGl("id","previous-",a,""),t.Q6J("ngClass",i.getFromBoxClass(i.disableClick,e)),t.xp6(2),t.Q6J("ngIf","C"!==e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","I"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","M"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","S"===e.box.boxShapeType||"E"===e.box.boxShapeType||"I"===e.box.boxShapeType||"M"===e.box.boxShapeType||"C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.box.boxShapeType)}}function Bs(o,n){if(1&o&&(t.TgZ(0,"div",32),t.YNc(1,Ts,10,9,"div",44),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.fromBoxList)}}function Is(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij(" ( ",e.flowchartDetails.currentBox.emaillogDeliveryAddress," ) ")}}function ks(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",59),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.openEditCurrentBoxDialog(i.flowchartDetails,""))}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"div",60),t._UZ(4,"img",61),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.disableClick)("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Es(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,ks,5,3,"a",58),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.canSeeWholeFcEditIcon)}}function ys(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",62),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.openAddBookmarkDialog(i.flowchartDetails.currentBox))}),t.TgZ(1,"mat-icon",63),t._uU(2,"bookmark_border"),t.qZA()()}2&o&&t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}function Zs(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxImage())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function As(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",65),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxVideoThumbnail())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.videoThumbnailImage+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ss(o,n){if(1&o&&(t.TgZ(0,"a",66)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Fs(o,n){if(1&o&&t._UZ(0,"a",68),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ns(o,n){if(1&o&&(t.TgZ(0,"a",69)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Us(o,n){if(1&o&&t._UZ(0,"a",70),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ms(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileUrl,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Js(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ls(o,n){if(1&o&&t._UZ(0,"a",74),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Os(o,n){if(1&o&&(t.TgZ(0,"div",46)(1,"div",36)(2,"p"),t._uU(3),t.qZA(),t.YNc(4,Is,2,1,"p",38),t.qZA(),t._UZ(5,"img",47),t.YNc(6,Es,2,1,"div",38),t.TgZ(7,"div",48),t.YNc(8,ys,3,2,"a",49),t.YNc(9,Zs,1,4,"a",50),t.YNc(10,As,1,4,"a",51),t.YNc(11,Ss,3,3,"a",52),t.YNc(12,Fs,1,5,"a",53),t.YNc(13,Ns,3,3,"a",54),t.YNc(14,Us,1,5,"a",55),t.YNc(15,Ms,5,3,"a",56),t.YNc(16,Js,5,3,"a",56),t.YNc(17,Ls,1,5,"a",57),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(3),t.Oqu(e.flowchartDetails.currentBox.boxCaption),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.boxShapeType),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.beginningFlowchartId===e.flowchartDetails.currentBox.boxFlowchartId),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.currentBox.inArrowCount>0&&"E"!==e.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf","I"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf","V"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.videoLink),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&!e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&!e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&!e.flowchartDetails.currentBox.fileAttachmentIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&e.flowchartDetails.currentBox.fileAttachmentIconUrl)}}function qs(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",59),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.openEditCurrentBoxDialog(i.flowchartDetails,"Y"))}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span",78),t._uU(4,"Y"),t.qZA(),t.TgZ(5,"div",60),t._UZ(6,"img",61),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.disableClick)("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Qs(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",79),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.openEditCurrentBoxDialog(i.flowchartDetails,"N"))}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span",80),t._uU(4,"N"),t.qZA(),t.TgZ(5,"div",60),t._UZ(6,"img",81),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.disableClick)("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Rs(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,qs,7,3,"a",58),t.YNc(2,Qs,7,3,"a",77),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.canSeeWholeFcEditIcon),t.xp6(1),t.Q6J("ngIf",e.canSeeWholeFcEditIcon)}}function Hs(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxImage())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ys(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",65),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxVideoThumbnail())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.videoThumbnailImage+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Vs(o,n){if(1&o&&(t.TgZ(0,"a",66)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Gs(o,n){if(1&o&&t._UZ(0,"a",68),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ks(o,n){if(1&o&&(t.TgZ(0,"a",69)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ps(o,n){if(1&o&&t._UZ(0,"a",70),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function zs(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileUrl,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function js(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ws(o,n){if(1&o&&t._UZ(0,"a",74),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function $s(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",75)(1,"div",36),t._uU(2),t.qZA(),t._UZ(3,"img",76),t.YNc(4,Rs,3,2,"div",38),t.TgZ(5,"div",48)(6,"a",62),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.openAddBookmarkDialog(i.flowchartDetails.currentBox))}),t.TgZ(7,"mat-icon",63),t._uU(8,"bookmark_border"),t.qZA()(),t.YNc(9,Hs,1,4,"a",50),t.YNc(10,Ys,1,4,"a",51),t.YNc(11,Vs,3,3,"a",52),t.YNc(12,Gs,1,5,"a",53),t.YNc(13,Ks,3,3,"a",54),t.YNc(14,Ps,1,5,"a",55),t.YNc(15,zs,5,3,"a",56),t.YNc(16,js,5,3,"a",56),t.YNc(17,Ws,1,5,"a",57),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(2),t.Oqu(e.flowchartDetails.currentBox.boxCaption),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.beginningFlowchartId===e.flowchartDetails.currentBox.boxFlowchartId),t.xp6(2),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf","I"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf","V"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.videoLink),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&!e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&!e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&!e.flowchartDetails.currentBox.fileAttachmentIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&e.flowchartDetails.currentBox.fileAttachmentIconUrl)}}function Xs(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",86)(1,"input",87),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.userInputText=i)}),t.qZA()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.userInputText)}}function tc(o,n){if(1&o&&(t.TgZ(0,"mat-hint",90),t._uU(1),t.qZA()),2&o){const e=t.oxw(3);t.xp6(1),t.hij("",e.userInputText.length,"/200")}}function ec(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",86)(1,"textarea",88),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.userInputText=i)}),t._uU(2," "),t.qZA(),t.YNc(3,tc,2,1,"mat-hint",89),t.qZA()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.userInputText),t.xp6(2),t.Q6J("ngIf","TEXT"===e.flowchartDetails.currentBox.userInputDataType)}}function oc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",86)(1,"input",91),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.userInputText=i)}),t.qZA()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.userInputText)}}function ic(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",92)(1,"label",93),t._uU(2),t.qZA(),t._UZ(3,"br"),t.TgZ(4,"input",94,95),t.NdJ("change",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.validateSelectedFile(i))}),t.qZA()()}if(2&o){const e=t.oxw(2);t.xp6(2),t.hij("Upload your file (Max ",e.flowchartOrg.userInputUploadSize,"KB)"),t.xp6(2),t.Q6J("disabled",!0)}}function ac(o,n){if(1&o&&(t.TgZ(0,"mat-option",98),t._uU(1),t.qZA()),2&o){const e=n.$implicit;t.Q6J("value",e.optionCaption),t.xp6(1),t.hij(" ",e.optionCaption," ")}}const nc=function(){return{standalone:!0}};function lc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-form-field",86)(1,"mat-select",96),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.selectedChecklistOptions=i)}),t.YNc(2,ac,2,2,"mat-option",97),t.qZA()()}if(2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngModel",e.selectedChecklistOptions)("ngModelOptions",t.DdM(3,nc)),t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.currentBox.boxUserInputCustomOptionList)}}function rc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",59),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.openEditCurrentBoxDialog(i.flowchartDetails,""))}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"div",60),t._UZ(4,"img",61),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.disableClick)("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function sc(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,rc,5,3,"a",58),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.canSeeWholeFcEditIcon)}}function cc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxImage())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function dc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",65),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxVideoThumbnail())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.videoThumbnailImage+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function _c(o,n){if(1&o&&(t.TgZ(0,"a",66)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function mc(o,n){if(1&o&&t._UZ(0,"a",68),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function pc(o,n){if(1&o&&(t.TgZ(0,"a",69)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function uc(o,n){if(1&o&&t._UZ(0,"a",70),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function hc(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileUrl,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function fc(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function gc(o,n){if(1&o&&t._UZ(0,"a",74),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function xc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",82)(1,"div",36)(2,"p"),t._uU(3),t.qZA()(),t.TgZ(4,"form",83),t.YNc(5,Xs,2,1,"mat-form-field",84),t.YNc(6,ec,4,2,"mat-form-field",84),t.YNc(7,oc,2,1,"mat-form-field",84),t.YNc(8,ic,6,2,"div",85),t.YNc(9,lc,3,4,"mat-form-field",84),t.qZA(),t._UZ(10,"img",47),t.YNc(11,sc,2,1,"div",38),t.TgZ(12,"div",48)(13,"a",62),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.openAddBookmarkDialog(i.flowchartDetails.currentBox))}),t.TgZ(14,"mat-icon",63),t._uU(15,"bookmark_border"),t.qZA()(),t.YNc(16,cc,1,4,"a",50),t.YNc(17,dc,1,4,"a",51),t.YNc(18,_c,3,3,"a",52),t.YNc(19,mc,1,5,"a",53),t.YNc(20,pc,3,3,"a",54),t.YNc(21,uc,1,5,"a",55),t.YNc(22,hc,5,3,"a",56),t.YNc(23,fc,5,3,"a",56),t.YNc(24,gc,1,5,"a",57),t.qZA()()}if(2&o){const e=t.oxw();
1t.xp6(3),t.Oqu(e.flowchartDetails.currentBox.boxCaption),t.xp6(2),t.Q6J("ngIf","EMAIL"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","TEXT"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","PHONE"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","UPLOAD"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(1),t.Q6J("ngIf","CHECKLIST"===e.flowchartDetails.currentBox.userInputDataType),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.beginningFlowchartId===e.flowchartDetails.currentBox.boxFlowchartId),t.xp6(2),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf","I"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf","V"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.videoLink),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&!e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&!e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&!e.flowchartDetails.currentBox.fileAttachmentIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&e.flowchartDetails.currentBox.fileAttachmentIconUrl)}}function bc(o,n){if(1&o&&(t.TgZ(0,"div",110),t._UZ(1,"img",111),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.choiceBox.imageUrl,t.LSH)}}function wc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",106),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateChoiceToBoxLayer(i.selectedChoiceBox))}),t.TgZ(1,"div",107),t.YNc(2,bc,2,1,"div",108),t.TgZ(3,"div",109),t._uU(4),t.qZA()()()}if(2&o){const e=n.$implicit;t.Q6J("value",e.choiceBox.boxCaption),t.xp6(2),t.Q6J("ngIf",e.choiceBox.imageUrl),t.xp6(2),t.hij(" ",e.choiceBox.boxCaption," ")}}function Dc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",102)(1,"div",103)(2,"mat-button-toggle-group",104),t.NdJ("valueChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.selectedChoiceBox=i)}),t.YNc(3,wc,5,3,"mat-button-toggle",105),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(2),t.Q6J("value",e.selectedChoiceBox),t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.currentBox.choiceBoxDetails)}}function Cc(o,n){if(1&o&&(t.TgZ(0,"div",110),t._UZ(1,"img",111),t.qZA()),2&o){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.choiceBox.imageUrl,t.LSH)}}function vc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"mat-button-toggle",106),t.NdJ("change",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.updateChoiceToBoxLayer(i.selectedChoiceBox))}),t.TgZ(1,"div",107),t.YNc(2,Cc,2,1,"div",108),t.TgZ(3,"div",109),t._uU(4),t.qZA()()()}if(2&o){const e=n.$implicit;t.Q6J("value",e.choiceBox.boxCaption),t.xp6(2),t.Q6J("ngIf",e.choiceBox.imageUrl),t.xp6(2),t.hij(" ",e.choiceBox.boxCaption," ")}}function Tc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",112)(1,"div",103)(2,"mat-button-toggle-group",113),t.NdJ("valueChange",function(i){t.CHM(e);const l=t.oxw(2);return t.KtG(l.selectedChoiceBox=i)}),t.YNc(3,vc,5,3,"mat-button-toggle",105),t.qZA()()()}if(2&o){const e=t.oxw(2);t.xp6(2),t.Q6J("value",e.selectedChoiceBox),t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.currentBox.choiceBoxDetails)}}function Bc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",59),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.openEditCurrentBoxDialog(i.flowchartDetails,""))}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"div",60),t._UZ(4,"img",61),t.qZA()()}if(2&o){const e=t.oxw(3);t.Q6J("disabled",e.disableClick)("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ic(o,n){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Bc,5,3,"a",58),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.canSeeWholeFcEditIcon)}}function kc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",64),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxImage())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ec(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",65),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.showCenterBoxVideoThumbnail())}),t.qZA()}if(2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.videoThumbnailImage+")"),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function yc(o,n){if(1&o&&(t.TgZ(0,"a",66)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Zc(o,n){if(1&o&&t._UZ(0,"a",68),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageVideoThumbnailUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.imageVideoLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Ac(o,n){if(1&o&&(t.TgZ(0,"a",69)(1,"mat-icon",67),t._uU(2,"link"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Sc(o,n){if(1&o&&t._UZ(0,"a",70),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.refLinkIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.refLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Fc(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileUrl,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Nc(o,n){if(1&o&&(t.TgZ(0,"a",71)(1,"mat-icon",72),t._uU(2,"description"),t.qZA(),t.TgZ(3,"mat-icon",73),t._uU(4,"attachment"),t.qZA()()),2&o){const e=t.oxw(2);t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Uc(o,n){if(1&o&&t._UZ(0,"a",74),2&o){const e=t.oxw(2);t.Udp("background-image","url("+e.flowchartDetails.currentBox.fileAttachmentIconUrl+")"),t.s9C("href",e.flowchartDetails.currentBox.fileAttachmentLink,t.LSH),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300)}}function Mc(o,n){if(1&o&&(t.TgZ(0,"div",99)(1,"div",36)(2,"p"),t._uU(3),t.qZA(),t.YNc(4,Dc,4,2,"div",100),t.YNc(5,Tc,4,2,"div",101),t.qZA(),t._UZ(6,"img",47),t.YNc(7,Ic,2,1,"div",38),t.TgZ(8,"div",48),t.YNc(9,kc,1,4,"a",50),t.YNc(10,Ec,1,4,"a",51),t.YNc(11,yc,3,3,"a",52),t.YNc(12,Zc,1,5,"a",53),t.YNc(13,Ac,3,3,"a",54),t.YNc(14,Sc,1,5,"a",55),t.YNc(15,Fc,5,3,"a",56),t.YNc(16,Nc,5,3,"a",56),t.YNc(17,Uc,1,5,"a",57),t.qZA()()),2&o){const e=t.oxw();
1t.xp6(3),t.Oqu(e.flowchartDetails.currentBox.boxCaption),t.xp6(1),t.Q6J("ngIf","H"!==e.flowchartDetails.currentBox.mcbChoiceDisplayMode),t.xp6(1),t.Q6J("ngIf","H"===e.flowchartDetails.currentBox.mcbChoiceDisplayMode),t.xp6(2),t.Q6J("ngIf",e.flowchartDetails.beginningFlowchartId===e.flowchartDetails.currentBox.boxFlowchartId),t.xp6(2),t.Q6J("ngIf","I"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf","V"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.videoLink),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&!e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf","E"===e.flowchartDetails.currentBox.imageVideoOption&&e.flowchartDetails.currentBox.imageVideoLink&&e.flowchartDetails.currentBox.imageVideoThumbnailUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&!e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.refLink&&e.flowchartDetails.currentBox.refLinkIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&!e.flowchartDetails.currentBox.fileAttachmentIconUrl),t.xp6(1),t.Q6J("ngIf",e.flowchartDetails.currentBox.fileAttachmentLink&&e.flowchartDetails.currentBox.fileAttachmentIconUrl)}}function Jc(o,n){if(1&o&&(t.TgZ(0,"div",114)(1,"div",115)(2,"a",116)(3,"mat-icon"),t._uU(4,"zoom_in"),t.qZA()()()()),2&o){const e=t.oxw();
1t.xp6(1),t.Udp("background-image","url("+e.flowchartDetails.currentBox.imageUrl+")"),t.xp6(1),t.s9C("href",e.flowchartDetails.currentBox.imageUrl,t.LSH)}}function Lc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",117)(1,"div",118)(2,"div",119),t._UZ(3,"iframe",120),t.ALo(4,"safe"),t.qZA(),t.TgZ(5,"div",121),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.stopVideo())}),t.TgZ(6,"mat-icon"),t._uU(7,"close"),t.qZA()()(),t.TgZ(8,"div",122),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.playVideo())}),t.TgZ(9,"a",123)(10,"mat-icon"),t._uU(11,"open_in_new"),t.qZA()(),t.TgZ(12,"div",124)(13,"mat-icon"),t._uU(14,"play_circle_filled"),t.qZA()()()()}if(2&o){const e=t.oxw();t.xp6(3),t.Q6J("src",t.xi3(4,4,e.videoEmbedUrl,"resourceUrl"),t.uOi),t.xp6(5),t.Udp("background-image","url("+e.videoThumbnailImage+")"),t.xp6(1),t.s9C("href",e.videoEmbedUrl,t.LSH)}}function Oc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",125),t.ynx(1),t.TgZ(2,"div",126)(3,"button",127),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadNextLayer(0,"",null,i.flowchartDetails.currentBox,!0,!0))}),t._uU(4," DONE\xa0 "),t.TgZ(5,"mat-icon"),t._uU(6,"stop"),t.qZA()()(),t.BQk(),t.qZA()}if(2&o){const e=t.oxw();
1t.xp6(3),t.Q6J("disabled",e.disableClick)}}function qc(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.yesCaption,"")}}function Qc(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(2);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.noCaption,"")}}function Rc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",125),t.ynx(1),t.TgZ(2,"div",126)(3,"button",128),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadNextLayer(0,"",null,i.flowchartDetails.currentBox,!0,!0))}),t.TgZ(4,"span",129),t._uU(5,"DONE"),t.qZA(),t.TgZ(6,"mat-icon"),t._uU(7,"stop"),t.qZA(),t.YNc(8,qc,2,1,"span",130),t.qZA()(),t.TgZ(9,"div",131)(10,"button",132),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.loadNextLayer(0,"",null,i.flowchartDetails.currentBox,!0,!0))}),t.TgZ(11,"span",129),t._uU(12,"DONE"),t.qZA(),t.TgZ(13,"mat-icon"),t._uU(14,"stop"),t.qZA(),t.YNc(15,Qc,2,1,"span",130),t.qZA()(),t.BQk(),t.qZA()}if(2&o){const e=t.oxw();
1t.xp6(3),t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox&&e.flowchartDetails.currentBox.yesCaption),t.xp6(2),t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox&&e.flowchartDetails.currentBox.noCaption)}}function Hc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",140),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t._uU(1," OK "),t.TgZ(2,"mat-icon"),t._uU(3,"skip_next"),t.qZA()()}if(2&o){const e=t.oxw(4);t.Q6J("disabled",e.disableClick)}}function Yc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",141),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t._uU(1," DONE\xa0 "),t.TgZ(2,"mat-icon"),t._uU(3,"send"),t.qZA()()}if(2&o){const e=t.oxw(4);t.Q6J("disabled",e.disableClick)}}function Vc(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(5);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.yesCaption,"")}}function Gc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",142),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2).$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t.TgZ(1,"span",129),t._uU(2,"YES"),t.qZA(),t.TgZ(3,"mat-icon"),t._uU(4,"done"),t.qZA(),t.YNc(5,Vc,2,1,"span",130),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.yesCaption)}}function Kc(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(5);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.yesCaption,"")}}function Pc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"button",143),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(4);return t.KtG(i.loadNextLayer(0,"",null,i.flowchartDetails.currentBox,!0,!0))}),t.TgZ(1,"span",129),t._uU(2,"DONE"),t.qZA(),t.TgZ(3,"mat-icon"),t._uU(4,"stop"),t.qZA(),t.YNc(5,Kc,2,1,"span",130),t.qZA()}if(2&o){const e=t.oxw(4);t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.yesCaption)}}function zc(o,n){if(1&o&&(t.TgZ(0,"div",126),t.YNc(1,Hc,4,1,"button",136),t.YNc(2,Yc,4,1,"button",137),t.YNc(3,Gc,6,2,"button",138),t.YNc(4,Pc,6,2,"button",139),t.qZA()),2&o){const e=t.oxw().$implicit,a=t.oxw(2);t.xp6(1),t.Q6J("ngIf",a.flowchartDetails.currentBox&&("S"===a.flowchartDetails.currentBox.boxShapeType||"I"===a.flowchartDetails.currentBox.boxShapeType||"M"===a.flowchartDetails.currentBox.boxShapeType)&&"E"!==e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","E"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails.currentBox&&"D"===a.flowchartDetails.currentBox.boxShapeType&&"Y"===e.fromBoxCorner),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails.toBoxList&&1===a.flowchartDetails.toBoxList.length&&a.flowchartDetails.currentBox&&"D"===a.flowchartDetails.currentBox.boxShapeType&&"Y"!==e.fromBoxCorner)}}function jc(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.noCaption,"")}}function Wc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",131)(1,"button",144),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t.TgZ(2,"span",129),t._uU(3,"NO"),t.qZA(),t.TgZ(4,"mat-icon"),t._uU(5,"clear"),t.qZA(),t.YNc(6,jc,2,1,"span",130),t.qZA()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.noCaption)}}function $c(o,n){if(1&o&&(t.TgZ(0,"span",133),t._uU(1),t.qZA()),2&o){const e=t.oxw(4);t.xp6(1),t.hij("\xa0",e.flowchartDetails.currentBox.noCaption,"")}}function Xc(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",131)(1,"button",143),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(3);return t.KtG(i.loadNextLayer(0,"",null,i.flowchartDetails.currentBox,!0,!0))}),t.TgZ(2,"span",129),t._uU(3,"DONE"),t.qZA(),t.TgZ(4,"mat-icon"),t._uU(5,"stop"),t.qZA(),t.YNc(6,$c,2,1,"span",130),t.qZA()()}if(2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("disabled",e.disableClick),t.xp6(5),t.Q6J("ngIf",e.flowchartDetails.currentBox.noCaption)}}function td(o,n){if(1&o&&(t.ynx(0),t.YNc(1,zc,5,4,"div",134),t.YNc(2,Wc,7,2,"div",135),t.YNc(3,Xc,7,2,"div",135),t.BQk()),2&o){const e=n.$implicit,a=n.index,i=t.oxw(2);t.xp6(1),t.Q6J("ngIf",0===a),t.xp6(1),t.Q6J("ngIf",i.flowchartDetails.currentBox&&"D"===i.flowchartDetails.currentBox.boxShapeType&&"N"===e.fromBoxCorner),t.xp6(1),t.Q6J("ngIf",i.flowchartDetails.currentBox&&"D"===i.flowchartDetails.currentBox.boxShapeType&&1===i.flowchartDetails.toBoxList.length&&"N"!==e.fromBoxCorner)}}function ed(o,n){if(1&o&&(t.TgZ(0,"div",125),t.YNc(1,td,4,3,"ng-container",34),t.qZA()),2&o){const e=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.toBoxList)}}function od(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.box.userInputData," ")}}function id(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" Choice : ",e.box.selectedChoiceBox.boxCaption," ")}}function ad(o,n){if(1&o&&t._UZ(0,"img",42),2&o){const e=t.oxw(4);t.MGl("id","prev-img-",e.i,"")}}function nd(o,n){if(1&o&&t._UZ(0,"img",43),2&o){const e=t.oxw(4);t.MGl("id","prev-img-",e.i,"")}}function ld(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",147),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t.TgZ(1,"div",36)(2,"p"),t._uU(3),t.qZA(),t.YNc(4,od,2,1,"p",38),t.YNc(5,id,2,1,"p",38),t.qZA(),t.YNc(6,ad,1,1,"img",39),t.YNc(7,nd,1,1,"img",40),t.qZA()}if(2&o){const e=t.oxw().$implicit,a=t.oxw(2);t.Q6J("ngClass",a.getToBoxClass(a.disableClick,e)),t.xp6(3),t.Oqu(e.box.boxCaption),t.xp6(1),t.Q6J("ngIf","I"===e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","M"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","S"===e.box.boxShapeType||"I"===e.box.boxShapeType||"M"===e.box.boxShapeType||"C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.box.boxShapeType)}}function rd(o,n){if(1&o&&(t.ynx(0),t.YNc(1,ld,8,6,"div",146),t.BQk()),2&o){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","E"!==e.box.boxShapeType)}}function sd(o,n){if(1&o&&(t.TgZ(0,"div",145),t.YNc(1,rd,2,1,"ng-container",34),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.toBoxList)}}function cd(o,n){1&o&&t._UZ(0,"div",150)}function dd(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" ",e.box.userInputData," ")}}function _d(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(3).$implicit;t.xp6(1),t.hij(" Choice : ",e.box.selectedChoiceBox.boxCaption," ")}}function md(o,n){if(1&o&&(t.TgZ(0,"div",36)(1,"p"),t._uU(2),t.qZA(),t.YNc(3,dd,2,1,"p",38),t.YNc(4,_d,2,1,"p",38),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(2),t.Oqu(e.box.boxCaption),t.xp6(1),t.Q6J("ngIf","I"===e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","M"===e.box.boxShapeType)}}function pd(o,n){if(1&o&&t._UZ(0,"img",42),2&o){const e=t.oxw(2).index;t.MGl("id","prev-img-",e,"")}}function ud(o,n){if(1&o&&t._UZ(0,"img",43),2&o){const e=t.oxw(2).index;t.MGl("id","prev-img-",e,"")}}function hd(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",147),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t.YNc(1,md,5,3,"div",151),t.YNc(2,pd,1,1,"img",39),t.YNc(3,ud,1,1,"img",40),t.qZA()}if(2&o){const e=t.oxw().$implicit,a=t.oxw(2);t.Q6J("ngClass",a.getToBoxClass(a.disableClick,e)),t.xp6(1),t.Q6J("ngIf","N"!==e.fromBoxCorner),t.xp6(1),t.Q6J("ngIf","S"===e.box.boxShapeType||"I"===e.box.boxShapeType||"M"===e.box.boxShapeType||"C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.box.boxShapeType)}}function fd(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.box.userInputData," ")}}function gd(o,n){if(1&o&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" Choice : ",e.box.selectedChoiceBox.boxCaption," ")}}function xd(o,n){if(1&o&&t._UZ(0,"img",42),2&o){const e=t.oxw(2).index;t.MGl("id","prev-img-",e,"")}}function bd(o,n){if(1&o&&t._UZ(0,"img",43),2&o){const e=t.oxw(2).index;t.MGl("id","prev-img-",e,"")}}function wd(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"div",147),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,l=t.oxw(2);return t.KtG(l.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,l.flowchartDetails.currentBox,!0,!1))}),t.TgZ(1,"div",36)(2,"p"),t._uU(3),t.qZA(),t.YNc(4,fd,2,1,"p",38),t.YNc(5,gd,2,1,"p",38),t.qZA(),t.YNc(6,xd,1,1,"img",39),t.YNc(7,bd,1,1,"img",40),t.qZA()}if(2&o){const e=t.oxw().$implicit,a=t.oxw(2);t.Q6J("ngClass",a.getToBoxClass(a.disableClick,e)),t.xp6(3),t.Oqu(e.box.boxCaption),t.xp6(1),t.Q6J("ngIf","I"===e.box.boxSh
1apeType),t.xp6(1),t.Q6J("ngIf","M"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","S"===e.box.boxShapeType||"I"===e.box.boxShapeType||"M"===e.box.boxShapeType||"C"===e.box.boxShapeType),t.xp6(1),t.Q6J("ngIf","D"===e.box.boxShapeType)}}function Dd(o,n){if(1&o&&(t.ynx(0),t.YNc(1,cd,1,0,"div",149),t.YNc(2,hd,4,4,"div",146),t.YNc(3,wd,8,6,"div",146),t.BQk()),2&o){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","N"===e.fromBoxCorner),t.xp6(1),t.Q6J("ngIf","E"!==e.box.boxShapeType&&"N"!==e.fromBoxCorner),t.xp6(1),t.Q6J("ngIf","E"!==e.box.boxShapeType&&"N"===e.fromBoxCorner)}}function Cd(o,n){if(1&o&&(t.TgZ(0,"div",148),t.YNc(1,Dd,4,3,"ng-container",34),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.flowchartDetails.toBoxList)}}function vd(o,n){if(1&o){const e=t.EpF();t.TgZ(0,"a",152)(1,"mat-slide-toggle",153),t.NdJ("ngModelChange",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.edit=i)})("change",function(i){t.CHM(e);const l=t.oxw();return t.KtG(l.editModeOff(i))}),t._uU(2," Edit "),t.qZA()()}if(2&o){const e=t.oxw();t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(1),t.Q6J("checked",e.editChecked)("disabled",e.clickedEditToggle)("ngModel",e.edit)("color",e.color)}}let Td=(()=>{class o{constructor(e,a,i,l,r,s,_,m,u,f,p,h,g,C,I,T,k){this.ngZone=e,this._flowchartService=a,this._flowchartUtilService=i,this._flowchartListService=l,this.flowchartVersionService=r,this._utilService=s,this._boxService=_,this._boxConnectJsplumbService=m,this._userMilestoneService=u,this._wholeFcViewDialogService=f,this._addBookmarkDialogService=p,this._snackBar=h,this._bottomSheet=g,this.dialog=C,this.router=I,this.seoService=T,this.genericErrMsg="",this.genericErr=!1,this.edit=!1,this.editChecked=!0,this.userInputText="",this.selectedChoiceBox="",this.videoThumbnailImage="",this.videoEmbedUrl="",this.resizeTimeout=50,this.loading=!1,this.clickedEditToggle=!1,this.canSeeWholeFcEditIcon=!1,this.disableClick=!1;var y=document.getElementById("footer");y&&y.style&&(y.style.display="none"),this.sessionStorage=k,a.fcNextLayerRenderError.subscribe(v=>{412===v?this._openFcRenderErrorSheet():this.router.navigateByUrl("/error")}),this._utilService.enableFcNextBoxClick.subscribe(v=>{v&&(this.disableClick=!1)}),this.subsVar=a.editSelectedFcDetails.subscribe(v=>{if(this.flowchartDetails=v,console.log("constructor flowchartDetails -",this.flowchartDetails),this.selectedChoiceBox=this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.selectedChoiceBox?this.flowchartDetails.currentBox.selectedChoiceBox.boxCaption:"",this.userInputText=this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.userInputData?this.flowchartDetails.currentBox.userInputData:"",this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.videoLink){let H=this.flowchartDetails.currentBox.videoLink;this.videoThumbnailImage=this._generateYoutubeThumbnailImageForVideo(H),this.videoEmbedUrl=this._generateYoutTubeEmbedVideoUrl(H)}var E;this._flowchartUtilService.redrawConnections(800,!1,!0,!1),(E=this.sessionStorage.getObject("userProfile"))&&(this.canSeeWholeFcEditIcon=this._flowchartService.getWholeFlowchartPublishEditIconsFlag(this.flowchartDetails,E)),this.loading=!1}),a.toggleEditMode.subscribe(v=>{this.edit=v})}ngOnInit(){var e=document.getElementById("footer");e&&e.style&&(e.style.display="none"),this.edit=this._flowchartService.getToggleEditMode(),this.flowchartDetails=this._flowchartService.getSelectedFlowchartRenderDetails(),console.log(this.flowchartDetails);const i=this.router.routerState.snapshot;var l;if(l=this.sessionStorage.getObject("userProfile"),!this.flowchartDetails){var s,_,r=d.split(i.url,"/");if(s=this.sessionStorage.getObject("flowchart"),console.log("flowchartInSession",s),l&&(this._flowchartService.getWholeFlowchartPublishEditIconsFlag(s,l)||this.router.navigate([`${s.goalId}/${s.flowchartRandomId}/${s.goalUrl}/${s.flowchartName}`])),s&&(this.edit=s.editMode),!d.isEmpty(s)&&d.isEqual(s.flowchartRandomId,r[2]))console.log("categoryId",s.categoryId),(_=this._flowchartListService.getFlowchartListInCategoryTree(s.goalId,s.goalUrl,s.orgName,s.categoryId,s.subCategoryId))&&null!=_.orgId?this._flowchartService.setEditFlowchartDetails(this._flowchartService.prepareFlowchartForRender(s,_.orgId,_.orgName,_.orgDisplayName,_.userAccess,s.canEditFlowchart,s.canEditOwnFlowchart,s.canPublishOwn)):this.router.navigateByUrl("/error")}if(this.seoService.createLinkForCanonicalURL(),this.flowchartDetails){let p=this.flowchartDetails?this.flowchartDetails.flowchartDescription:null;(!p||0===p.length)&&(p="This Flowchart '"+this.flowchartDetails.flowchartName+"' for '"+this.flowchartDetails.goalName+"'.");let h=this.flowchartDetails.flowchartName;h+="PUBLIC"!==this.flowchartDetails.orgName?" - "+this.flowchartDetails.orgName:" - DeciZone",this.seoService.generateTags({title:"Editing: "+h,metaTitle:"Editing: "+h,metaDescription:p,metaImageUrl:"https://decizone.com/assets/images/DZ-LOGO-1200x628px-Fb-Li-Opt.png",robots:"noindex,nofollow",slug:window.location.href})}
1if(this.selectedChoiceBox=this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.selectedChoiceBox?this.flowchartDetails.currentBox.selectedChoiceBox.boxCaption:"",this.userInputText=this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.userInputData?this.flowchartDetails.currentBox.userInputData:"",l&&(this.canSeeWholeFcEditIcon=this._flowchartService.getWholeFlowchartPublishEditIconsFlag(this.flowchartDetails,l)),this.flowchartDetails&&this.flowchartDetails.currentBox&&this.flowchartDetails.currentBox.videoLink){let p=this.flowchartDetails.currentBox.videoLink;this.videoThumbnailImage=this._generateYoutubeThumbnailImageForVideo(p),this.videoEmbedUrl=this._generateYoutTubeEmbedVideoUrl(p)}let u,f,m=this;u=this.sessionStorage.getObject("userProfile"),m.flowchartDetails&&(f=d.filter(u.userOrg,function(p){return p.orgId===m.flowchartDetails.orgId})),f&&f.length>0&&(this.flowchartOrg=f[0])}playVideo(){this._flowchartUtilService.playVideo(!1)}stopVideo(){this._flowchartUtilService.stopVideo(!1)}_generateYoutubeThumbnailImageForVideo(e){return this._flowchartUtilService.generateYoutubeThumbnailImageForVideo(e)}_generateYoutTubeEmbedVideoUrl(e){return this._flowchartUtilService.generateYoutTubeEmbedVideoUrl(e)}ngOnDestroy(){jsPlumb.empty("all-layers"),jsPlumb.reset(),this.flowchartDetails={},this.subsVar&&this.subsVar.unsubscribe()}ngAfterViewInit(){window.setTimeout((()=>{jsPlumb.deleteEveryConnection(),jsPlumb.reset(),this._boxConnectJsplumbService.connectBoxViaJsplumb(),this._boxConnectJsplumbService.drawConnections(),document.getElementById("centerBoxImage")&&setTimeout(function(){document.getElementById("centerBoxImage")&&document.getElementById("centerBoxImage").style&&(document.getElementById("centerBoxImage").style.display="none")},3300),document.getElementById("centerBoxVideoThumbnail")&&(document.getElementById("centerBoxVideoThumbnail").style&&(document.getElementById("centerBoxVideoThumbnail").style.display="block"),setTimeout(function(){document.getElementById("centerBoxVideoThumbnail")&&document.getElementById("centerBoxVideoThumbnail").style&&(document.getElementById("centerBoxVideoThumbnail").style.display="none")},3300))}).bind(this),50)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{console.log("Resize complete"),jsPlumb.deleteEveryConnection(),jsPlumb.reset(),this._boxConnectJsplumbService.connectBoxViaJsplumb(),this._boxConnectJsplumbService.drawConnections(),document.getElementById("centerBoxImage")&&setTimeout(function(){document.getElementById("centerBoxImage")&&document.getElementById("centerBoxImage").style&&(document.getElementById("centerBoxImage").style.display="none")},3300),document.getElementById("centerBoxVideoThumbnail")&&(document.getElementById("centerBoxVideoThumbnail").style&&(document.getElementById("centerBoxVideoThumbnail").style.display="block"),setTimeout(function(){document.getElementById("centerBoxVideoThumbnail")&&document.getElementById("centerBoxVideoThumbnail").style&&(document.getElementById("centerBoxVideoThumbnail").style.display="none")},3300))}).bind(this),50)}onKeyUp(e){if(!this.disableClick){if("ArrowDown"===e.key)this.loadNextLayer(this.flowchartDetails.toBoxList[0].boxId,this.flowchartDetails.toBoxList[0].fromBoxCorner,this.flowchartDetails.toBoxList[0].box,this.flowchartDetails.currentBox,!0,0===this.flowchartDetails.toBoxList.length);else if("ArrowLeft"===e.key){var i=d.find(this.flowchartDetails.toBoxList,function(r){return"Y"===r.fromBoxCorner});i&&this.loadNextLayer(i.boxId,i.fromBoxCorner,i.box,this.flowchartDetails.currentBox,!0,!1)}else if("ArrowRight"===e.key){var l=d.find(this.flowchartDetails.toBoxList,function(r){return"N"===r.fromBoxCorner});l&&this.loadNextLayer(l.boxId,l.fromBoxCorner,l.box,this.flowchartDetails.currentBox,!0,!1)}return!1}}showCenterBoxImage(){document.getElementById("centerBoxImage")&&(document.getElementById("centerBoxImage").style&&(document.getElementById("centerBoxImage").style.display="block"),setTimeout(function(){document.getElementById("centerBoxImage")&&document.getElementById("centerBoxImage").style&&(document.getElementById("centerBoxImage").style.display="none")},3300))}showCenterBoxVideoThumbnail(){document.getElementById("center-box-overlap-image")&&(document.getElementById("center-box-overlap-image").style.display="block"),document.getElementById("centerBoxVideoThumbnail")&&(document.getElementById("centerBoxVideoThumbnail").style.display="block",setTimeout(function(){document.getElementById("centerBoxVideoThumbnail").style.display="none"},3300))}getFromBoxClass(e,a){return this._utilService.getFromBoxCssClassString(e,a)}getToBoxClass(e,a){return this._utilService.getToBoxCssClassString(e,a)}openEditCurrentBoxDialog(e,a){var l=d.find((e=this.flowchartDetails).toBoxList,function(_){return d.isEqual(_.fromBoxCorner,a)});const r=new A.vA;r.disableClose=!0,r.autoFocus=!0,r.height="100%",r.width="100%",r.data={flowchartDetails:e,fromBoxCorner:a,boxConnectionInEdit:l},r.panelClass=["dz-dialog-container","box-editor-dialog-contr"];let s=this.dialog.open(Jr,r);s.afterClosed().subscribe(_=>{if(e.currentBox&&"M"===e.currentBox.boxShapeType){console.log("updated choiceboxDetails",e.currentBox.choiceBoxDetails);let m=[];
1if(d.each(e.currentBox.choiceBoxDetails,function(u,f){if(9999!==u.choiceBox.mcbChoiceSortOrder&&u.choiceBox.mcbChoiceSortOrder!==f){u.choiceBox.mcbChoiceSortOrder=f,e.currentBox.mcbChoiceBoxDetails[u.choiceBox.boxId].choiceBoxSortOrder=f;var p={choiceBoxId:"",mcbChoiceSortOrder:""};p.choiceBoxId=u.choiceBox.boxId,p.mcbChoiceSortOrder=f,m.push(p)}}),m.length>0){let u={userSessionId:this._utilService.getCookie("userSessionId"),flowchartId:this.flowchartDetails.beginningFlowchartId,flowchartCreator:this.flowchartDetails.flowchartCreator,userAccess:this.flowchartDetails.userAccess,orgId:this.flowchartDetails.orgId,flowchartVersionId:this.flowchartDetails.flowchartVersionId,currentBoxId:e.currentBox?e.currentBox.boxId:0,choiceBoxUpdates:m};this._boxService.updateChoiceBoxSortOrder(u).subscribe(f=>{var p=null;p=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart"))),d.forEach(p.boxes,function(h,g){if(e&&e.currentBox&&e.currentBox.boxId&&d.isEqual(e.currentBox.boxId.toString(),g.toString()))return p.boxes[g]=e.currentBox,!1}),this.sessionStorage.setObject("flowchart",p)},f=>{this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_CHOICE_BOX_SORT_ORDER_FAILED.errorMessage,...b.wml})})}}document.getElementById("centerBoxImage")&&setTimeout(function(){document.getElementById("centerBoxImage")&&document.getElementById("centerBoxImage").style&&(document.getElementById("centerBoxImage").style.display="none")},3300),document.getElementById("centerBoxVideoThumbnail")&&(document.getElementById("centerBoxVideoThumbnail").style.display="block",setTimeout(function(){document.getElementById("centerBoxVideoThumbnail").style.display="none"},3300)),s=null})}openWholeFlowchartViewModal(){var e=this.sessionStorage.getItem("orgLogoUrl"),a=this.flowchartDetails;this._flowchartService.loadWholeFlowchartViewDetails().subscribe(i=>{this._wholeFcViewDialogService.open({categoryId:a.categoryId,subCategoryId:a.subCategoryId,goalId:a.goalId,orgId:a.orgId,orgName:a.orgName,orgDisplayName:a.orgDisplayName,categoryName:a.categoryName,subCategoryName:a.subCategoryName,goalName:a.goalName,flowchartName:a.flowchartName,flowchartId:a.flowchartId,flowchartVersionId:a.flowchartVersionId,flowchartVersionName:a.flowchartVersionName,userAccess:a.userAccess,orgLogoUrl:e,content:i.responseBody.wholeFlowchartDetail}),this._wholeFcViewDialogService.confirmed().subscribe(r=>{})},i=>{this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_WHOLE_FC_VIEW_ERROR.errorMessage,...b.wml})})}loadNextLayer(e,a,i,l,r,s){this.loading=!0;var m=b.OeY;if(i&&i.isLinkedBox&&i.boxFlowchartId!==this.flowchartDetails.currentFlowchartId){let f=this.dialog.open(Lr,{width:"300px",data:{message:"Please Note: You are currently in the Edit Mode for flowchart - "+this.flowchartDetails.flowchartName+". The box you just clicked belongs to a different flowchart and is connected to the current flowchart using a bookmark link (the dotted arrows). To navigate to another flowchart you will first need to end the Edit Mode and start the View Mode by clicking on the 'Edit' toggle in the top right corner. While in View mode, you will be able to navigate away to the other flowchart following this bookmark link."}});f.afterClosed().subscribe(p=>{f=null,this._flowchartService.setEditFlowchartDetails(this.flowchartDetails)})}else this.disableClick=!0,"I"===l.boxShapeType&&("CHECKLIST"===l.userInputDataType&&(this.userInputText=d.isEmpty(this.selectedChecklistOptions)?"":this.selectedChecklistOptions.join(",")),this._flowchartService.setUserInputDataInSession(l.boxId,this.userInputText)),!1===r&&i&&"I"===i.boxShapeType&&(this.userInputText=i.userInputData),i&&0!==i.inArrowCount?this._flowchartService.loadNextLayer(!1,!1,m,e,a,i,l,this.flowchartDetails,r,this.userInputText,""):(this._flowchartService.setEditFlowchartDetails(this.flowchartDetails),this.disableClick=!1),s&&(this._flowchartService.setEditFlowchartDetails(this.flowchartDetails),this.disableClick=!1)}_endFlowRoute(e,a){var i;if(this.sessionStorage.getObject("fcPropertyByFcId")){var l=this.sessionStorage.getObject("fcPropertyByFcId")[e.beginningFlowchartId];
1l?(d.forEach(l.flowchartPropertyBean,function(s){if("FLOWCHART_END_FLOW"===s.propertyName)return i=s.propertyOption,!1}),d.isEqual(i,"FLOWCHART GOAL PAGE")?this.router.navigate([`./${e.goalId}/${e.goalUrl}`]):d.isEqual(i,"RESTART FLOWCHART")?(this.sessionStorage.removeItem("flowchart"),this.ngZone.run(()=>this.router.navigateByUrl("/restart-flowchart",{skipLocationChange:!0}).then(()=>this.router.navigate([`${e.goalId}/${e.flowchartRandomId}/${e.goalUrl}/${e.flowchartName}`])))):d.isEqual(i,"ORGANIZATION HOME PAGE")?1===e.orgId?this.router.navigateByUrl("/myhome"):this.router.navigate([`/org/home/${a}`]):this.router.navigate([`./${e.goalId}/${e.goalUrl}`])):this.router.navigate([`./${e.goalId}/${e.goalUrl}`])}else this.router.navigate([`./${e.goalId}/${e.goalUrl}`])}updateChoiceToBoxLayer(e){this.loading=!0,console.log(e),this.selectedChoiceBox=e,this._flowchartService.loadSelectedChoiceBoxNextLayer(e,this.flowchartDetails)}_openFcRenderErrorSheet(){this._bottomSheet.open(zr.H,{data:{currentFlowchartDetails:this.flowchartDetails},disableClose:!0}).afterDismissed().subscribe(()=>{console.log("Flowchart error bottom sheet has been dismissed.")})}editModeOff(e){this.clickedEditToggle=!0,this.editChecked=e.checked,this._flowchartService.setToggleEditMode(e.checked);var a=this.flowchartDetails;let l=this.dialog.open(Pr,{width:"400px",data:{message:"Everytime you edit a flowchart REMEMBER to: 1) turn ON the 'MASTER Status' for the appropriate version of this flowchart because only the Master Version of this flowchart will be accessible by others, 2) Turn ON the PUBLIC / PUBLISHED status as applicable for sharing this flowchart.",flowchartDetails:a}});l.afterClosed().subscribe(r=>{if(l=null,r){let s={event:"editfc_editmodetoggleoff","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":a.orgId,"dlv-cat_id":a.categoryId,"dlv-subcat_id":a.subCategoryId,"dlv-goal_id":a.goalId,"dlv-fc_id":a.flowchartId,"dlv-fc_version_id":a.flowchartVersionId,"dlv-current_box_id":a.currentBox?a.currentBox.boxId:0};window.dataLayer.push(s);let _={editMode:!1,userSessionId:this._utilService.getCookie("userSessionId")};this._flowchartService.changeFlowchartVersionEditMode(_).subscribe(m=>{this.loading=!0;let u={userSessionId:this._utilService.getCookie("userSessionId"),currentFlowchartId:this.flowchartDetails.beginningFlowchartId,beginningFlowchartId:this.flowchartDetails.beginningFlowchartId,flowchartName:this.flowchartDetails.flowchartName,userAccess:this.flowchartDetails.userAccess,orgId:this.flowchartDetails.orgId,flowchartVersionId:this.flowchartDetails.flowchartVersionId};this._flowchartService.setRenderFlowchartVersionDetails(u),d.split(this.router.routerState.snapshot.url,"/"),this.flowchartVersionService.renderFlowchartVersion(u).subscribe(g=>{console.log("version render response",g);var T=d.split(this.router.routerState.snapshot.url,"/"),k=JSON.parse(JSON.stringify(this.sessionStorage.getObject("flowchart")));k.editMode=g.responseBody.editMode?g.responseBody.editMode:"OFF",k.newCurrentBoxId=g.responseBody.newCurrentBoxId,k.startBoxId=g.responseBody.startBoxId,k.currentFlowchartVersionId=g.responseBody.currentFlowchartVersionId,k.dzTransactionId=g.responseBody.dzTransactionId,this.sessionStorage.removeItem("flowchart"),this.sessionStorage.setObject("flowchart",k);var y=this._flowchartService.prepareToAndFromBoxConnectionsForRender(k);y&&(y.goalUrl=T[3],y.userAccess=this.flowchartDetails.userAccess),this._flowchartService.setSelectedFlowchartRenderDetails(y),this.clickedEditToggle=!1,this.router.navigate([`${T[1]}/${T[2]}/${T[3]}/${T[4]}`])},g=>{this.loading=!1,this._flowchartService.setFcNextLayerRenderError(g&&412===g.status?412:g.status),this.clickedEditToggle=!1})},m=>{this.clickedEditToggle=!1,this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_FLOWCHART_EDIT_MODE_TURNOFF.errorMessage,...b.wml})})}else this.loading=!1,this.clickedEditToggle=!1,e.checked=!0,this.editChecked=e.checked})}openAddBookmarkDialog(e){var a="",i=this.flowchartDetails;const l={flowchartId:i.flowchartId,orgId:i.orgId,userAccess:i.userAccess,boxId:e.boxId,boxCaption:e.boxCaption,currentBoxAlias:a};this._boxService.getBoxAliasListByUserOrgBoxShapeType(this.flowchartDetails.orgId,e.boxShapeType,this.flowchartDetails.userAccess,this.flowchartDetails.flowchartVersionId).subscribe(r=>{var s,_=d.findIndex(s=r.responseBody.boxAliasBeanList,function(m){return m.boxId===e.boxId});-1!==_&&(a=s[_].boxAliasName),l.currentBoxAlias=a,this._addBookmarkDialogService.open(l),this._addBookmarkDialogService.confirmed().subscribe(m=>{if(m){let u={event:"editfc_createbookmarkalias","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":i.orgId,"dlv-cat_id":i.categoryId,"dlv-subcat_id":i.subCategoryId,"dlv-goal_id":i.goalId,"dlv-fc_id":i.flowchartId,"dlv-fc_version_id":i.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":e.boxId};window.dataLayer.push(u)}})},r=>{this._addBookmarkDialogService.open(l),this._addBookmarkDialogService.confirmed().subscribe(s=>{if(s){let _={event:"editfc_createbookmarkalias","dlv-user_state_id":"loggedin","dlv-user_id":this._utilService.getLoggedInUserId(),"dlv-org_member":this._utilService.isLoggedInUserOrgUser(),"dlv-user_role_id":this._utilService.getLoggedInUserRole(),"dlv-org_id":i.orgId,"dlv-cat_id":i.categoryId,"dlv-subcat_id":i.subCategoryId,"dlv-goal_id":i.goalId,"dlv-fc_id":i.flowchartId,"dlv-fc_version_id":i.flowchartVersionId,"dlv-fc_layout_id":"FLOWCHART_LAYOUT","dlv-current_box_id":e.boxId};window.dataLayer.push(_)}})})}openFlowchartListByGoal(e,a,i,l,r,s){var _;_=this._flowchartListService.getFlowchartListInCategoryTree(i,l,e,s,r),console.log(_),this._userMilestoneService.saveOrUpdateUserMilestone("VIEW_GOAL_FROM_BREADCRUMB",null),0===_.flowchartList.length?this._flowchartListService.getFlowchartlistByGoalUrl(i,l).subscribe(m=>{this._flowchartListService.updateFcListByGoalInSession(i,m.responseBody),_.flowchartList=m.responseBody.flowchartBeanList,this._flowchartListService.setFlowchartListDetailsByGoalName(_),this._flowchartListService.setSelectedGoalId(i),this._flowchartListService.setSelectedGoalName(a),this.router.navigate([`./${i}/${_.goalUrl}`])},m=>{this._snackBar.openFromComponent(D.f,{data:w.R.ERRMSG_RETRIEVE_FC_LIST_FOR_GOAL_ERROR.errorMessage,...b.wml})}):(this._flowchartListService.setFlowchartListDetailsByGoalName(_),this._flowchartListService.setSelectedGoalId(i),this._flowchartListService.setSelectedGoalName(a),this.router.navigate([`./${i}/${_.goalUrl}`]))}togglefooter(){var e=document.getElementById("footer");e&&e.style&&(e.style.display="none"===e.style.display?"block":"none")}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(t.R0b),t.Y36(j.q),t.Y36(jr.c),t.Y36(at.A),t.Y36(Wr.w),t.Y36(O.f),t.Y36(it.k),t.Y36($r.y),t.Y36(nt.d),t.Y36(ts.F),t.Y36(es.C),t.Y36(W.ux),t.Y36(os.ch),t.Y36(A.uw),t.Y36(Y.F0),t.Y36(Xr.v),t.Y36(lt.qo))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-flowchart-edit"]],viewQuery:function(e,a){if(1&e&&t.Gf(ls,5),2&e){let i;t.iGM(i=t.CRH())&&(a.fileInput=i.first)}},hostBindings:function(e,a){1&e&&t.NdJ("resize",function(){return a.onWindowResize()},!1,t.Jf7)("keyup",function(l){return a.onKeyUp(l)})},decls:45,vars:26,consts:[["tourAnchor","all-layers","fxLayout","column","fxLayoutAlign"," stretch","fxLayoutGap","0px","id","all-layers",1,"all-layers"],["class","spin-centered",4,"ngIf"],["id","previous-layer","class","previous-layer",4,"ngIf"],[1,"center-layer"],["tourAnchor","tour-current-box","fxLayout","row","fxLayoutAlign","space-around center ",1,"center-container"],["fxflex","","class","center statement box",4,"ngIf"],["fxflex","","class","center decision box",4,"ngIf"],["fxflex","","class","center statement box user-input-box",4,"ngIf"],["fxflex","","class","center statement box edit-mcb-container",4,"ngIf"],["class","center-box-overlap-image",4,"ngIf"],["id","center-box-overlap-image","class","center-box-overlap-image",4,"ngIf"],[1,"yesokno-layer"],["tourAnchor","yesokno-row","flexLayout","row","fxLayoutAlign","space-around center","class","yesokno-row",4,"ngIf"],[1,"next-layer"],["tourAnchor","next-container","fxLayout","row","fxLayoutAlign","space-around center","class","next-container",4,"ngIf"],["tourAnchor","next-container","fxLayout","row","fxLayoutAlign","center center","class","next-container",4,"ngIf"],[1,"fc-header"],["matTooltip","This Breadcrumb path ( Organization > Category > Sub-Category > Goal > Flowchart-Name ) shows you where to find the flowchart in the category tree.","tourAnchor","tour-breadcrumb",1,"breadcrumb",3,"matTooltipShowDelay","matTooltipHideDelay"],[1,"breadcrumb-content"],["tourAnchor","tour-breadcrumb.org"],["tourAnchor","tour-breadcrumb.cat"],["tourAnchor","tour-breadcrumb.subcat"],[3,"click"],["tourAnchor","tour-breadcrumb.goal",1,"breadcrumb-goal"],["tourAnchor","tour-breadcrumb.fc"],[1,"breadcrumbicons"],["matTooltip","Whole Flowchart View - allows you to view/print the whole current flowchart.","aria-label","Click to see the Whole Flowchart view.","mat-icon-button","",1,"all-buttons",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["tourAnchor","tour-wholefc-icon"],["matTooltip","Toggle Editing / Viewing MODE of current flowchart","aria-label","Toggle this button to switch between the Edit or View MODE for current flowchart","class","all-buttons edit-slider",3,"matTooltipShowDelay","matTooltipHideDelay",4,"ngIf"],["mat-icon-button","","id","footer-toggle-button","aria-label","Toggle button to Show or Hide Footer panel.","matTooltip","Click here to Show / Hide the Footer section below.","matTooltipPosition","right",1,"footer-toggle-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["tourAnchor","tour-hide-footer","aria-label","Show or hide page footer section"],[1,"spin-centered"],["id","previous-layer",1,"previous-layer"],["tourAnchor","prev-container","fxLayout","row","fxLayoutAlign","space-between center","fxLayoutGap","5%","id","prev-container",1,"prev-container"],[4,"ngFor","ngForOf"],["fxflex","1",1,"previous","box",3,"ngClass","id","click"],[1,"text-box"],["class","x5-caption",4,"ngIf"],[4,"ngIf"],["class","box-shape-image","alt","image of statement box","src","./assets/images/StatementRectangleSVG-WithBorder-common.svg",3,"id",4,"ngIf"],["class","box-shape-image","alt","image of decision box","src","./assets/images/DecisionDiamondSVG-WithBorder-common.svg",3,"id",4,"ngIf"],[1,"x5-caption"],["alt","image of statement box","src","./assets/images/StatementRectangleSVG-WithBorder-common.svg",1,"box-shape-image",3,"id"],["alt","image of decision box","src","./assets/images/DecisionDiamondSVG-WithBorder-common.svg",1,"box-shape-image",3,"id"],["tourAnchor","prev-container","fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","5%","class","prev-container","id","prev-container",4,"ngFor","ngForOf"],["tourAnchor","prev-container","fxLayout","row","fxLayoutAlign","center center","fxLayoutGap","5%","id","prev-container",1,"prev-container"],["fxflex","",1,"center","statement","box"],["alt","image of statement box","src","./assets/images/StatementRectangleSVG-WithBorder-common.svg","id","centerboxid",1,"box-shape-image"],[1,"center-buttons-container"],["class","all-buttons","matTooltip","Create bookmark/alias for this box","mat-mini-fab","","color","accent",3,"matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["tourAnchor","tour-image.icon","class","all-buttons small-image-button","matTooltip","Image","mat-mini-fab","","color","accent",3,"background-image","matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["class","all-buttons small-image-button","matTooltip","Video","mat-mini-fab","","color","accent",3,"background-image","matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["class","all-buttons","matTooltip","Image/Video External Link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["class","all-buttons ref-link-button-image","matTooltip","Image/Video External Link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"background-image","matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["class","all-buttons","matTooltip","Reference link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["class","all-buttons ref-link-button-image","matTooltip","Reference link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"background-image","matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["tourAnchor","tour-file.icon","class","all-buttons","matTooltip","Attachment","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["tourAnchor","tour-file.icon","class","all-buttons ref-link-button-image","matTooltip","Attachment link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",3,"background-image","matTooltipShowDelay","matTooltipHideDelay","href",4,"ngIf"],["class","button-1 all-buttons","mat-mini-fab","","matTooltip","Click here for editor tools to modify the Current box, or to add/insert a new box on the 'YES' or 'OK' corner of the current box.",3,"disabled","matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],["mat-mini-fab","","matTooltip","Click here for editor tools to modify the Current box, or to add/insert a new box on the 'YES' or 'OK' corner of the current box.",1,"button-1","all-buttons",3,"disabled","matTooltipShowDelay","matTooltipHideDelay","click"],[1,"edit-gear-bubble"],["src","./assets/images/Click-Here-EditGear-button1.png","alt","Edit gear help text."],["matTooltip","Create bookmark/alias for this box","mat-mini-fab","","color","accent",1,"all-buttons",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["tourAnchor","tour-bookmark.icon"],["tourAnchor","tour-image.icon","matTooltip","Image","mat-mini-fab","","color","accent",1,"all-buttons","small-image-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Video","mat-mini-fab","","color","accent",1,"all-buttons","small-image-button",3,"matTooltipShowDelay","matTooltipHideDelay","click"],["matTooltip","Image/Video External Link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons",3,"matTooltipShowDelay","matTooltipHideDelay","href"],["tourAnchor","tour-link.icon"],["matTooltip","Image/Video External Link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons","ref-link-button-image",3,"matTooltipShowDelay","matTooltipHideDelay","href"],["matTooltip","Reference link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons",3,"matTooltipShowDelay","matTooltipHideDelay","href"],["matTooltip","Reference link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons","ref-link-button-image",3,"matTooltipShowDelay","matTooltipHideDelay","href"],["tourAnchor","tour-file.icon","matTooltip","Attachment","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons",3,"matTooltipShowDelay","matTooltipHideDelay","href"],[1,"attachment-icon-part2"],["tourAnchor","tour-file.icon",1,"attachment-icon-part1"],["tourAnchor","tour-file.icon","matTooltip","Attachment link","mat-mini-fab","","color","accent","target","_blank","rel","noopener nofollow",1,"all-buttons","ref-link-button-image",3,"matTooltipShowDelay","matTooltipHideDelay","href"],["fxflex","",1,"center","decision","box"],["alt","image of decision box","src","./assets/images/DecisionDiamondSVG-WithBorder-common.svg","id","centerboxid",1,"box-shape-image"],["class","button-2 all-buttons","mat-mini-fab","","matTooltip","Click here for editor tools to modify the Current box, or to add/insert a new box on the 'NO' corner of the current box.",3,"disabled","matTooltipShowDelay","matTooltipHideDelay","click",4,"ngIf"],[1,"d
1ecision-box-corner-y"],["mat-mini-fab","","matTooltip","Click here for editor tools to modify the Current box, or to add/insert a new box on the 'NO' corner of the current box.",1,"button-2","all-buttons",3,"disabled","matTooltipShowDelay","matTooltipHideDelay","click"],[1,"decision-box-corner-n"],["src","./assets/images/Click-Here-EditGear-button2.png","alt","Edit gear help text."],["fxflex","",1,"center","statement","box","user-input-box"],[1,"input-box-form"],["class","full-width-input",4,"ngIf"],["class","txn-file-upload",4,"ngIf"],[1,"full-width-input"],["type","email","matInput","","placeholder","Enter Valid Email Address","name","userInputText",3,"ngModel","ngModelChange"],["name","userInputText","matInput","","matAutosizeMinRows","4","maxlength","200","placeholder","Do not enter personal information.",3,"ngModel","ngModelChange"],["position","end",4,"ngIf"],["position","end"],["matInput","","placeholder","Phone x-(xxx)xxx-xxxx","name","userInputText",3,"ngModel","ngModelChange"],[1,"txn-file-upload"],["for","image"],["type","file","id","image",1,"file-selector",3,"disabled","change"],["fileInput",""],["placeholder","Select from options","multiple","","name","selectedChecklistOptions",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxflex","",1,"center","statement","box","edit-mcb-container"],["class","mcb-choice-container",4,"ngIf"],["class","mcb-choice-container choicecarousel",4,"ngIf"],[1,"mcb-choice-container"],[1,"choice-slider"],["vertical","","placeholder","Select Choice","aria-label","Select Choice",3,"value","valueChange"],["class","choice-button-toggle",3,"value","change",4,"ngFor","ngForOf"],[1,"choice-button-toggle",3,"value","change"],[1,"eachchoice"],["class","choiceimagebox",4,"ngIf"],[1,"choicetext"],[1,"choiceimagebox"],["alt","No Image",1,"choiceimage",3,"src"],[1,"mcb-choice-container","choicecarousel"],["name","fontStyle","placeholder","Select Choice","aria-label","Select Choice",3,"value","valueChange"],[1,"center-box-overlap-image"],["id","centerBoxImage"],["mat-mini-fab","","target","_blank","rel","nofollow",1,"enlargecenterboximage",3,"href"],["id","center-box-overlap-image",1,"center-box-overlap-image"],["id","centerBoxVideo",1,"card-layout-video-parent"],[1,"videoWrapper"],["id","yt-fcedit-uservideo","width","300","height","300","loading","lazy","frameborder","0","allowfullscreen","",3,"src"],["id","video-active",1,"",3,"click"],["id","centerBoxVideoThumbnail",3,"click"],["rel","nofollow",1,"opencenterboxvideo",3,"href"],[1,"video-play-icon"],["tourAnchor","yesokno-row","flexLayout","row","fxLayoutAlign","space-around center",1,"yesokno-row"],[1,"yes-half"],["id","fcedit-btn-done","mat-raised-button","","color","primary","fxFlex","30%",1,"yesokno",3,"disabled","click"],["id","fcedit-btn-yesdone","mat-raised-button","","color","primary","fxFlex","30%",1,"yesokno",3,"disabled","click"],[1,"default-button-text"],["class","custom-button-text",4,"ngIf"],[1,"no-half"],["id","fcedit-btn-nodone","mat-raised-button","","color","primary","fxFlex","30%",1,"yesokno",3,"disabled","click"],[1,"custom-button-text"],["class","yes-half",4,"ngIf"],["class","no-half",4,"ngIf"],["id","fcedit-btn-ok","mat-raised-button","","color","primary","class","yesokno","fxFlex","30%",3,"disabled","click",4,"ngIf"],["id","fcedit-btn-donesend","mat-raised-button","","color","primary","class","yesokno sendemaildone","fxFlex","30%",3,"disabled","click",4,"ngIf"],["id","fcedit-btn-yesdone","mat-raised-button","","color","primary","class","yesokno",3,"disabled","click",4,"ngIf"],["id","fcedit-btn-done","mat-raised-button","","color","primary","class","yesokno",3,"disabled","click",4,"ngIf"],["id","fcedit-btn-ok","mat-raised-button","","color","primary","fxFlex","30%",1,"yesokno",3,"disabled","click"],["id","fcedit-btn-donesend","mat-raised-button","","color","primary","fxFlex","30%",1,"yesokno","sendemaildone",3,"disabled","click"],["id","fcedit-btn-yesdone","mat-raised-button","","color","primary",1,"yesokno",3,"disabled","click"],["id","fcedit-btn-done","mat-raised-button","","color","primary",1,"yesokno",3,"disabled","click"],["id","fcedit-btn-no","mat-raised-button","","color","primary",1,"yesokno",3,"disabled","click"],["tourAnchor","next-container","fxLayout","row","fxLayoutAlign","space-around center",1,"next-container"],["fxflex","","class","next box",3,"ngClass","click",4,"ngIf"],["fxflex","",1,"next","box",3,"ngClass","click"],["tourAnchor","next-container","fxLayout","row","fxLayoutAlign","center center",1,"next-container"],["fxflex","","class","next box",4,"ngIf"],["fxflex","",1,"next","box"],["class","text-box",4,"ngIf"],["matTooltip","Toggle Editing / Viewing MODE of current flowchart","aria-label","Toggle this button to switch between the Edit or View MODE for current flowchart",1,"all-buttons","edit-slider",3,"matTooltipShowDelay","matTooltipHideDelay"],["ngDefaultControl","","tourAnchor","tour-edit-f
1c",3,"checked","disabled","ngModel","color","ngModelChange","change"]],template:function(e,a){1&e&&(t.TgZ(0,"div",0),t.YNc(1,rs,1,0,"mat-spinner",1),t.YNc(2,fs,3,1,"div",2),t.YNc(3,Bs,2,1,"div",2),t.TgZ(4,"div",3)(5,"div",4),t.YNc(6,Os,18,13,"div",5),t.YNc(7,$s,18,13,"div",6),t.YNc(8,xc,25,18,"div",7),t.YNc(9,Mc,18,13,"div",8),t.YNc(10,Jc,5,3,"div",9),t.YNc(11,Lc,15,7,"div",10),t.qZA()(),t.TgZ(12,"div",11),t.YNc(13,Oc,7,1,"div",12),t.YNc(14,Rc,16,4,"div",12),t.YNc(15,ed,2,1,"div",12),t.qZA(),t.TgZ(16,"div",13),t.YNc(17,sd,2,1,"div",14),t.YNc(18,Cd,2,1,"div",15),t.qZA(),t.TgZ(19,"div",16)(20,"div",17)(21,"div",18)(22,"span",19),t._uU(23),t.qZA(),t._uU(24," > "),t.TgZ(25,"span",20),t._uU(26),t.qZA(),t._uU(27," > "),t.TgZ(28,"span",21),t._uU(29),t.qZA(),t._uU(30," > "),t.TgZ(31,"a",22),t.NdJ("click",function(){return a.openFlowchartListByGoal(a.flowchartDetails.orgName,a.flowchartDetails.goalName,a.flowchartDetails.goalId,a.flowchartDetails.goalUrl,a.flowchartDetails.subCategoryId,a.flowchartDetails.categoryId)}),t.TgZ(32,"span",23),t._uU(33),t.qZA()(),t._uU(34," > "),t.TgZ(35,"span",24),t._uU(36),t.qZA()()(),t.TgZ(37,"div",25)(38,"a",26),t.NdJ("click",function(){return a.openWholeFlowchartViewModal()}),t.TgZ(39,"mat-icon",27),t._uU(40,"schema"),t.qZA()(),t.YNc(41,vd,3,6,"a",28),t.qZA()()(),t.TgZ(42,"button",29),t.NdJ("click",function(){return a.togglefooter()}),t.TgZ(43,"mat-icon",30),t._uU(44,"call_to_action"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("ngIf",a.loading),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.fromBoxList&&a.flowchartDetails.fromBoxList.length>1),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.fromBoxList&&a.flowchartDetails.fromBoxList.length<=1),t.xp6(3),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&("S"===a.flowchartDetails.currentBox.boxShapeType||"E"===a.flowchartDetails.currentBox.boxShapeType)),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&"D"===a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&"I"===a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&"M"===a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&a.flowchartDetails.currentBox.imageUrl),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.currentBox&&a.flowchartDetails.currentBox.videoLink),t.xp6(2),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.toBoxList&&0===a.flowchartDetails.toBoxList.length&&a.flowchartDetails.fromBoxList&&0!==a.flowchartDetails.fromBoxList.length&&a.flowchartDetails.currentBox&&"D"!==a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.toBoxList&&0===a.flowchartDetails.toBoxList.length&&a.flowchartDetails.fromBoxList&&0!==a.flowchartDetails.fromBoxList.length&&a.flowchartDetails.currentBox&&"D"===a.flowchartDetails.currentBox.boxShapeType),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.toBoxList&&a.flowchartDetails.toBoxList.length>=1),t.xp6(2),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.toBoxList&&a.flowchartDetails.toBoxList.length>1),t.xp6(1),t.Q6J("ngIf",a.flowchartDetails&&a.flowchartDetails.toBoxList&&1===a.flowchartDetails.toBoxList.length),t.xp6(2),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Oqu(a.flowchartDetails.orgDisplayName?a.flowchartDetails.orgDisplayName:a.flowchartDetails.orgName),t.xp6(3),t.Oqu(a.flowchartDetails.categoryName),t.xp6(3),t.Oqu(a.flowchartDetails.subCategoryName),t.xp6(4),t.Oqu(a.flowchartDetails.goalName),t.xp6(3),t.Oqu(a.flowchartDetails.flowchartName),t.xp6(2),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300),t.xp6(3),t.Q6J("ngIf",a.canSeeWholeFcEditIcon),t.xp6(1),t.Q6J("matTooltipShowDelay",700)("matTooltipHideDelay",300))},dependencies:[F.mk,F.sg,F.O5,R.xw,R.SQ,R.Wh,R.yH,is.oO,c._Y,c.Fj,c.JJ,c.JL,c.nD,c.On,c.F,N.KE,N.bx,V.Nt,rt.ey,M.lW,M.zs,q.A9,q.Yi,$.Hw,st.Ou,dt.gD,as.Rr,X.gM,ns.y],encapsulation:2}),o})();var Bd=x(15163);let Id=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[F.ez,_t.o9,c.u5,c.UX,S.Wx,L._t,P.QG,Bd.g,mt.K,Y.Bz.forChild([{path:"",component:Td}])]}),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.