1"use strict";(self.webpackChunkmerren_customer_portal=self.webpackChunkmerren_customer_portal||[]).push([[488],{8488:(Qo,V,v)=>{v.r(V),v.d(V,{ReportsModule:()=>Xo});var y=v(177),k=v(1188),A=v(467),Y=v(7977),p=v(1264),tt=v(6449),E=v.n(tt),et=v(8504),X=v.n(et),it=v(5310),Q=v.n(it),nt=v(2643),j=v.n(nt),I=v(7235),ot=v(4336),t=v(4438),T=v(1722),q=v(5794),N=v(950),L=v(152),st=v(2262),rt=v(5348),O=v(9417),R=v(2510),at=v(2102),z=v(2798),lt=v(6600);const ct=(n,r,e)=>({"sidebar-closed":n,"col-sm-1":r,"col-sm-3":e}),pt=(n,r,e)=>({"sidebar-closed":n,"col-sm-12":r,"col-sm-2":e}),S=(n,r,e,o)=>({"sidebar-open":n,"sidebar-closed":r,"border-class":e,"border-noclass":o}),P=n=>({"highlight-border":n});function dt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",38),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return i.openCompare(),t.Njj(i.tabType="Compare")}),t.nrm(1,"img",39),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",t.ziG(2,S,e.isSidebarOpen,!e.isSidebarOpen,e.isCompareByCampiagin,!e.isCompareByCampiagin)),t.R7$(),t.Y8G("src",e.isCompareByCampiagin?"../../../../assets/icons/comparison-filled.png":"../../../../assets/icons/comparison-svgrepo-com (1).svg",t.B4B)}}function _t(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",40),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.Comparison())}),t.nrm(1,"img",39),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",t.ziG(2,S,e.isSidebarOpen,!e.isSidebarOpen,e.iscomparisonActive,!e.iscomparisonActive)),t.R7$(),t.Y8G("src",e.iscomparisonActive?"../../../../assets/icons/comparison-filled.png":"../../../../assets/icons/comparison-svgrepo-com (1).svg",t.B4B)}}function mt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",38),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return i.showhidefun(),t.Njj(i.tabType="showhide")}),t.nrm(1,"img",30),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",t.ziG(2,S,e.isSidebarOpen,!e.isSidebarOpen,e.isShowActive,!e.isShowActive)),t.R7$(),t.Y8G("src",e.isShowActive?"../../../../assets/icons/view_eye_filled.png":"../../../../assets/icons/show-svgrepo-com (1).svg",t.B4B)}}function gt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",36),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return i.responces(),t.Njj(i.tabType="responces")}),t.nrm(1,"img",30),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",t.ziG(2,S,e.isSidebarOpen,!e.isSidebarOpen,e.isresponseActive,!e.isresponseActive)),t.R7$(),t.Y8G("src",e.isresponseActive?"../../../../assets/icons/reply_filled - Copy (1).svg":"../../../../assets/icons/reload-ui-2-svgrepo-com (1).svg",t.B4B)}}function ht(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",36),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return i.Exportppt(),t.Njj(i.tabType="exportppt")}),t.nrm(1,"img",30),t.k0s()}if(2&n){const e=t.XpG(2);t.Y8G("ngClass",t.ziG(2,S,e.isSidebarOpen,!e.isSidebarOpen,e.ExportpptActive,!e.ExportpptActive)),t.R7$(),t.Y8G("src",e.ExportpptActive?"../../../../assets/icons/microsoft-powerpoint (1).svg":".../../../../assets/icons/microsoft-powerpoint.svg",t.B4B)}}function ut(n,r){if(1&n&&(t.j41(0,"mat-option",70)(1,"span",71),t.EFF(2),t.k0s()()),2&n){const e=r.$implicit,o=t.XpG(5);t.Y8G("value",e.campaignName),t.R7$(),t.FS9("title",e.campaignName),t.Y8G("selected",o.filterObj.campaignName==e.campaignName),t.R7$(),t.JRh(e.campaignName)}}function ft(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"div",60)(2,"label",61),t.EFF(3,"Select Campaign"),t.j41(4,"span",62),t.EFF(5,"*"),t.k0s()(),t.j41(6,"mat-form-field",63)(7,"mat-select",64),t.mxI("valueChange",function(i){t.eBV(e);const s=t.XpG(4);return t.DH7(s.filterObj.campaignName,i)||(s.filterObj.campaignName=i),t.Njj(i)}),t.j41(8,"mat-option",65),t.EFF(9,"All"),t.k0s(),t.DNE(10,ut,3,4,"mat-option",66),t.k0s()()(),t.j41(11,"div",67)(12,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.goTo())}),t.EFF(13,"Cancel"),t.k0s(),t.j41(14,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.filterObj.step=2)}),t.EFF(15,"Next"),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(7),t.R50("value",e.filterObj.campaignName),t.R7$(),t.Y8G("selected","all"==e.f
1ilterObj.campaignName),t.R7$(2),t.Y8G("ngForOf",e.deploymentsArr)}}function vt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function bt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function Ct(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function xt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function yt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",60)(1,"label",72)(2,"strong"),t.EFF(3,"Question"),t.k0s(),t.j41(4,"span",62),t.EFF(5,"*"),t.k0s()(),t.j41(6,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(5);return t.Njj(s.filterObj.questionId=i)})("change",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onSelectQuestionForFilter(i.filterObj.questionId))}),t.DNE(7,Ct,1,1,"ng-template",74)(8,xt,1,1,"ng-template",75),t.k0s()()}if(2&n){const e=t.XpG(5);t.R7$(6),t.Y8G("appendTo","body")("items",e.questionArr)("clearable",!1)("searchable",!1)("ngModel",e.filterObj.questionId||null)}}function Ot(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.filterObj.step=3)}),t.EFF(1,"Next"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",!e.filterObj.questionId||!e.filterObj.sectionId||null==e.filterObj.questionId||null==e.filterObj.sectionId)}}function Rt(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.filterObj.step=4,t.Njj(i.onClickApplyFilter())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled","all"!=e.filterObj.sectionId)}}function Ft(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"div",60)(2,"label",72)(3,"strong"),t.EFF(4," Section12"),t.k0s(),t.j41(5,"span",62),t.EFF(6,"*"),t.k0s()(),t.j41(7,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.filterObj.sectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onSelectSection(i.filterObj.sectionId))}),t.DNE(8,vt,1,1,"ng-template",74)(9,bt,1,1,"ng-template",75),t.k0s()(),t.DNE(10,yt,9,5,"div",76),t.j41(11,"div",67)(12,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.filterObj.step=1)}),t.EFF(13,"Back"),t.k0s(),t.DNE(14,Ot,2,1,"button",77)(15,Rt,2,1,"button",77),t.k0s()()}if(2&n){const e=t.XpG(4);t.R7$(7),t.Y8G("appendTo","body")("items",e.allSectionsOptions)("clearable",!1)("searchable",!1)("ngModel",e.filterObj.sectionId||null),t.R7$(3),t.Y8G("ngIf","all"!=e.filterObj.sectionId&&""!=e.filterObj.sectionId),t.R7$(4),t.Y8G("ngIf","all"!=e.filterObj.sectionId),t.R7$(),t.Y8G("ngIf","all"==e.filterObj.sectionId)}}function kt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",82)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e),l=s.$implicit,a=s.index,c=t.XpG(5);return l.isSelected=i.target.checked,t.Njj(c.selectOption(a))}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value),t.FS9("value",e.value),t.Y8G("checked",e.isSelected),t.R7$(2),t.FS9("for",e.value),t.R7$(),t.SpI(" ",e.text," ")}}function St(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.onClickApplyFilter(),i.filterObj.step=4,t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",0==e.filterObj.enableApplyBtn)}}function jt(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.onClickSaveAndApplyFilter(),i.filterObj.step=4,t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Save & Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",0==e.filterObj.enableApplyBtn)}}function Mt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",79)(1,"h5")(2,"strong"),t.EFF(3,"Q: "),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,kt,5,6,"div",80),t.j41(6,"div",81)(7,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.filterObj.step=2)}),t.EFF(8,"Back"),t.k0s(),t.DNE(9,St,2,1,"button",77)(10,jt,2,1,"button",77),t.k0s()()}if(2&n){const e=t.XpG(4);t.R7$(4),t.JRh(e.filterObj.questionText),t.R7$(),t.Y8G("ngForOf",e.filterObj.options),t.R7$(4),t.Y8G("ngIf",!(null!=e.f
1ilterObj&&e.filterObj._id)),t.R7$(),t.Y8G("ngIf",null==e.filterObj?null:e.filterObj._id)}}function At(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.filterObj.step=3)}),t.EFF(1,"Edit Filter"),t.k0s()}}function wt(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.filterObj.step=2)}),t.EFF(1,"Edit Filter"),t.k0s()}}function It(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.saveNewFilters())}),t.EFF(1,"Save Filter"),t.k0s()}}function Tt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"p",85),t.EFF(2,"Applied Filter"),t.k0s(),t.j41(3,"div",86)(4,"span",87),t.EFF(5),t.k0s(),t.j41(6,"div",88)(7,"a",89),t.nrm(8,"img",90),t.k0s(),t.j41(9,"div",91),t.DNE(10,At,2,0,"a",92)(11,wt,2,0,"a",92),t.j41(12,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.removeFilter())}),t.EFF(13,"Remove Filter"),t.k0s(),t.DNE(14,It,2,0,"a",92),t.k0s()()()()}if(2&n){const e=t.XpG(4);t.R7$(5),t.JRh(e.appliedFilterTitle||(null==e.filterObj?null:e.filterObj.campaignName)),t.R7$(5),t.Y8G("ngIf","all"!=e.filterObj.sectionId),t.R7$(),t.Y8G("ngIf","all"==e.filterObj.sectionId),t.R7$(3),t.Y8G("ngIf",!(null!=e.filterObj&&e.filterObj._id))}}function Pt(n,r){1&n&&(t.j41(0,"div",94)(1,"div",95)(2,"div",96)(3,"span",97),t.EFF(4,"Loading..."),t.k0s()(),t.j41(5,"strong"),t.EFF(6,"Loading..."),t.k0s()()())}function Gt(n,r){1&n&&(t.j41(0,"div",98)(1,"p"),t.EFF(2,"No Filters Saved"),t.k0s()())}function Et(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",100)(1,"div",101)(2,"div",102)(3,"input",103,1),t.mxI("ngModelChange",function(i){const s=t.eBV(e).$implicit;return t.DH7(s.title,i)||(s.title=i),t.Njj(i)}),t.bIt("keyup.enter",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.renameSaved("filter",i._id,i.title))})("focus",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.k0s(),t.j41(5,"div")(6,"a",104),t.nrm(7,"img",90),t.k0s(),t.j41(8,"div",105)(9,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return s.applyExstingFilter(i),t.Njj(s.closeSidebarOnMobile())}),t.EFF(10,"Apply"),t.k0s(),t.j41(11,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.EFF(12,"Rename"),t.k0s(),t.j41(13,"a",107),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.deleteSavedId=i._id)}),t.EFF(14,"Delete"),t.k0s()()()()()()}if(2&n){const e=r.$implicit,o=t.sdS(4),i=t.XpG(5);t.R7$(),t.Y8G("ngClass",t.eq3(3,P,!(null!=o&&o.disabled))),t.R7$(2),t.Y8G("disabled",!e.isRename||i.currentRenamedItem!==e),t.R50("ngModel",e.title)}}function qt(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Et,15,5,"div",99),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.savedFiltersArr)}}function Nt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Filter"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()()(),t.DNE(6,ft,16,3,"div",50)(7,Ft,16,8,"div",50)(8,Mt,11,4,"div",51)(9,Tt,15,4,"div",50),t.j41(10,"div",52)(11,"div",53)(12,"label",54),t.EFF(13,"Saved Filter"),t.k0s(),t.j41(14,"span",55),t.EFF(15,"Max 3"),t.k0s()(),t.DNE(16,Pt,7,0,"div",56)(17,Gt,3,0,"div",57)(18,qt,2,1,"div",58),t.k0s()()}if(2&n){const e=t.XpG(3);t.R7$(6),t.Y8G("ngIf",1==(null==e.filterObj?null:e.filterObj.step)),t.R7$(),t.Y8G("ngIf",2==(null==e.filterObj?null:e.filterObj.step)),t.R7$(),t.Y8G("ngIf",3==e.filterObj.step),t.R7$(),t.Y8G("ngIf",4==e.filterObj.step),t.R7$(7),t.Y8G("ngIf",e.filterLoader),t.R7$(),t.Y8G("ngIf",0===(null==e.savedFiltersArr?null:e.savedFiltersArr.length)&&!e.filterLoader),t.R7$(),t.Y8G("ngIf",(null==e.savedFiltersArr?null:e.savedFiltersArr.length)>0&&!e.filterLoader)}}function Bt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function Dt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function Vt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function Yt(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function Xt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"div",60)(2,"label",72)(3,"strong"),t.EFF(4," Section"),t.k0s(),t.j41(5,"span",62),t.EFF(6,"*"),t.k0s()(),t.j41(7,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.sectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onchangeSection(i.sectionId,"filter"))}),t.DNE(8,Bt,1,1,"ng-template",74)(9,Dt,1,1,"ng-template",75),t.k0s()(),t.j41(10,"div",60)(11,"label",72)(12,"strong"),t.EFF(13,"Question"),t.k0s(),t.j41(14,"span",62),t.EFF(15,"*"),t.k0s()(),t.j41(16,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.questionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onSelectQuestion(i.questionId,"filter"))}),t.DNE(17,Vt,1,1,"ng-template",74)(18,Yt,1,1,"ng-template",75),t.k0s()(),t.j41(19,"div",67)(20,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.goTo())}),t.EFF(21,"Cancel"),t.k0s(),t.j41(22,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.nextTab())}),t.EFF(23,"Next"),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(7),t.Y8G("appendTo","body")("items",e.sectionsArr)("clearable",!1)("searchable",!1)("ngModel",e.sectionId||null),t.R7$(9),t.Y8G("appendTo","body")("items",e.questionArr)("clearable",!1)("searchable",!1)("ngModel",e.questionId||null),t.R7$(6),t.Y8G("disabled",null==e.sectionId||null==e.questionId)}}function Qt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",82)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e).$implicit;return t.XpG(5).onChange(s.text,i.target.checked),t.Njj(s.selected=i.target.checked)}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value),t.FS9("value",e.value),t.Y8G("checked",e.selected),t.R7$(2),t.FS9("for",e.value),t.R7$(),t.SpI(" ",e.text," ")}}function Lt(n,r){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.saveFilterEdit(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(2,"Save & Apply"),t.k0s(),t.bVm()}if(2&n){const e=t.XpG(5);t.R7$(),t.Y8G("disabled",null==e.sectionId||null==e.questionId||0==e.optionArray.length)}}function zt(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.SplitByQuestion(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",null==e.sectionId||null==e.questionId||0==e.optionArray.length)}}function Jt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",79)(1,"h5")(2,"strong"),t.EFF(3,"Q: "),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,Qt,5,6,"div",80),t.j41(6,"div",81)(7,"button",111),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.currentTab=1)}),t.EFF(8,"Back"),t.k0s(),t.DNE(9,Lt,3,1,"ng-container",112)(10,zt,2,1,"ng-template",null,2,t.C5r),t.k0s()()}if(2&n){const e=t.sdS(11),o=t.XpG(4);t.R7$(4),t.JRh(o.questionText),t.R7$(),t.Y8G("ngForOf",o.questionDetail
1s),t.R7$(4),t.Y8G("ngIf",o.isEditFilter)("ngIfElse",e)}}function Ut(n,r){if(1&n&&(t.j41(0,"p",122),t.EFF(1),t.k0s()),2&n){const e=t.XpG(5);t.R7$(),t.JRh(e.appliedTitle)}}function Ht(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onEditFilter())}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(5);t.R7$(),t.SpI("Edit ",1==e.isComparison?"Comparison":"Filter","")}}function $t(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onIdit())}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(5);t.R7$(),t.SpI("Edit ",1==e.isComparison?"Comparison":"Filter","")}}function Zt(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.saveFilters())}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(5);t.R7$(),t.SpI("Save ",1==e.isComparison?"Comparison":"Filter","")}}function Wt(n,r){if(1&n&&(t.j41(0,"li")(1,"h6"),t.EFF(2),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e)}}function Kt(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",114)(1,"div",115)(2,"div",100)(3,"p",116)(4,"strong"),t.EFF(5),t.k0s()(),t.DNE(6,Ut,2,1,"p",117),t.k0s(),t.j41(7,"div",118)(8,"div",41)(9,"h6")(10,"strong"),t.EFF(11),t.k0s()()(),t.j41(12,"div",119)(13,"a",104),t.nrm(14,"img",90),t.k0s(),t.j41(15,"div",91),t.DNE(16,Ht,2,1,"a",92)(17,$t,2,1,"a",92),t.j41(18,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.goToOriginal())}),t.EFF(19),t.k0s(),t.DNE(20,Zt,2,1,"a",92),t.k0s()()(),t.j41(21,"ul",120),t.DNE(22,Wt,3,1,"li",121),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(5),t.SpI("Applied ",1==e.isComparison?"Comparison":"Filter"," :"),t.R7$(),t.Y8G("ngIf",e.isAppliedFilter),t.R7$(5),t.SpI("Q. ",e.questionText,""),t.R7$(5),t.Y8G("ngIf",e.isAppliedFilter),t.R7$(),t.Y8G("ngIf",!e.isAppliedFilter),t.R7$(2),t.SpI("Remove ",1==e.isComparison?"Comparison":"Filter",""),t.R7$(),t.Y8G("ngIf",!e.isAppliedFilter),t.R7$(2),t.Y8G("ngForOf",e.optionArray)}}function te(n,r){1&n&&(t.j41(0,"div",94)(1,"div",95)(2,"div",96)(3,"span",97),t.EFF(4,"Loading..."),t.k0s()(),t.j41(5,"strong"),t.EFF(6,"Loading..."),t.k0s()()())}function ee(n,r){1&n&&(t.j41(0,"div",98)(1,"p"),t.EFF(2,"No Filters Saved"),t.k0s()())}function ie(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",100)(1,"div",101)(2,"div",102)(3,"input",103,1),t.mxI("ngModelChange",function(i){const s=t.eBV(e).$implicit;return t.DH7(s.title,i)||(s.title=i),t.Njj(i)}),t.bIt("keyup.enter",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.renameSaved("filter",i._id,i.title))})("focus",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.k0s(),t.j41(5,"div")(6,"a",104),t.nrm(7,"img",90),t.k0s(),t.j41(8,"div",105)(9,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.applyFilter(null==i?null:i._id))}),t.EFF(10,"Apply"),t.k0s(),t.j41(11,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.EFF(12,"Rename"),t.k0s(),t.j41(13,"a",107),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.deleteSavedId=i._id)}),t.EFF(14,"Delete"),t.k0s()()()()()()}if(2&n){const e=r.$implicit,o=t.sdS(4),i=t.XpG(5);t.R7$(),t.Y8G("ngClass",t.eq3(3,P,!(null!=o&&o.disabled))),t.R7$(2),t.Y8G("disabled",!e.isRename||i.currentRenamedItem!==e),t.R50("ngModel",e.title)}}function ne(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,ie,15,5,"div",99),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.savedFiltersArr)}}function oe(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Filter"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()(),t.DNE(6,Xt,24,11,"div",50)(7,Jt,12,4,"div",51)(8,Kt,23,8,"div",108),t.j41(9,"div",52)(10,"div",100)(11,"label",109)(12,"strong"),t.EFF(13," Saved Filter:"),t.k0s()(),t.j41(14,"p",110),t.EFF(15,"Max 3"),t.k0s()(),t.DNE(16,te,7,0,"div",56)(17,ee,3,0,"div",57)(18,ne,2,1,"div",58),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(6),t.Y8G("ngIf",1==e.currentTab),t.R7$(),t.Y8G("ngIf",2==e.currentTab),t.R7$(),t.Y8G("ngIf",4==e.currentTab),t.R7$(8),t.Y8G("ngIf",e.filterLoader),t.R7$(),t.Y8G("ngIf",0===(null==e.savedFiltersArr?null:e.savedFiltersArr.length)&&!e.filterLoader),t.R7$(),t.Y8G("ngIf",(null==e.savedFiltersArr?null:e.savedFiltersArr.length)>0&&!e.filterLoader)}}function se(n,r){if(1&n&&(t.j41(0,"mat-option",70)(1,"span",127),t.EFF(2),t.k0s()()),2&n){const e=r.$implicit;t.Y8G("value",e.campaignName),t.R7$(),t.FS9("title",e.campaignName),t.R7$(),t.SpI(" ",e.campaignName," ")}}function re(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.campaignName)}function ae(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.campaignName)}function le(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",131)(1,"label",132)(2,"strong"),t.EFF(3,"Select Second Campaign"),t.k0s(),t.j41(4,"span",62),t.EFF(5,"*"),t.k0s()(),t.j41(6,"ng-select",133),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(6);return t.Njj(s.compareObj.secondCampaignName=i)}),t.DNE(7,re,1,1,"ng-template",74)(8,ae,1,1,"ng-template",75),t.k0s()()}if(2&n){const e=t.XpG(6);t.R7$(6),t.Y8G("appendTo","body")("items",e.secondCampaignOptions)("clearable",!1)("searchable",!1)("ngModel",e.compareObj.secondCampaignName||null)}}function ce(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",60)(1,"div",82)(2,"input",128),t.bIt("change",function(i){t.eBV(e);const s=t.XpG(5);return s.compareObj.isSecondCampiaginEnabled=i.target.checked,t.Njj(s.setCampgainName(i.target.checked))}),t.k0s(),t.j41(3,"label",129),t.EFF(4," Compare With Other Campaign "),t.k0s()(),t.DNE(5,le,9,5,"div",130),t.k0s()}if(2&n){const e=t.XpG(5);t.R7$(2),t.Y8G("checked",e.compareObj.isSecondCampiaginEnabled),t.R7$(3),t.Y8G("ngIf",e.compareObj.isSecondCampiaginEnabled)}}function pe(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.compareObj.step=2)}),t.EFF(1,"Next"),t.k0s()}}function de(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.comparisionByCampaign(),i.compareObj.step=4,t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",""==e.compareObj.secondCampaignName)}}function _e(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"div",60)(2,"label",125)(3,"strong"),t.EFF(4,"Select Campaign"),t.k0s(),t.j41(5,"span",62),t.EFF(6,"*"),t.k0s()(),t.j41(7,"mat-form-field",63)(8,"mat-select",64),t.mxI("valueChange",function(i){t.eBV(e);const s=t.XpG(4);return t.DH7(s.compareObj.firstCampaignName,i)||(s.compareObj.firstCampaignName=i),t.Njj(i)}),t.j41(9,"mat-option",126),t.EFF(10,"All"),t.k0s(),t.DNE(11,se,3,3,"mat-option",66),t.k0s()()(),t.DNE(12,ce,6,2,"div",76),t.j41(13,"div",67)(14,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return i.resetCompare(),t.Njj(i.goTo())}),t.EFF(15,"Cancel"),t.k0s(),t.DNE(16,pe,2,0,"button",77)(17,de,2,1,"button",77),t.k0s()()}if(2&n){const e=t.XpG(4);t.R7$(8),t.R50("value",e.compareObj.firstCampaignName),t.R7$(3),t.Y8G("ngForOf",e.deploymentsArr),t.R7$(),t.Y8G("ngIf","all"!=e.compareObj.firstCampaignName),t.R7$(4),t.Y8G("ngIf",!e.compareObj.isSecondCampiaginEnabled),t.R7$(),t.Y8G("ngIf",e.compareObj.isSecondCampiaginEnabled)}}function me(n,r){if(1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2,"&"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG(5);t.R7$(3),t.SpI(" ",null==e.compareObj?null:e.compareObj.secondCampaignName," ")}}function ge(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function he(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function ue(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function fe(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function ve(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",82)(1,"input",137),t.bIt("change",function(i){t.eBV(e);const s=t.XpG(5);return s.compareObj.campaignDetails.isSecondSectionEnabled=i.target.checked,t.Njj(s.removeAnotherQuestion(i.target.checked))}),t.k0s(),t.j41(2,"label",138),t.EFF(3," Add Another Question "),t.k0s()()}if(2&n){const e=t.XpG(5);t.R7$(),t.Y8G("checked",e.compareObj.campaignDetails.isSecondSectionEnabled)}}function be(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function Ce(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function xe(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function ye(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function Oe(n,r){if(1&n){const e=t.RV6();t.j41(0,"div")(1,"div",60)(2,"label",134)(3,"strong"),t.EFF(4," Section"),t.k0s(),t.j41(5,"span",62),t.EFF(6,"*"),t.k0s()(),t.j41(7,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(5);return t.Njj(s.compareObj.campaignDetails.secSection.sectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onSelectFirstSectionForCompare(i.compareObj.campaignDetails.secSection.sectionId,"second"))}),t.DNE(8,be,1,1,"ng-template",74)(9,Ce,1,1,"ng-template",75),t.k0s()(),t.j41(10,"div",60)(11,"label",139)(12,"strong"),t.EFF(13,"Question"),t.k0s(),t.j41(14,"span",62),t.EFF(15,"*"),t.k0s()(),t.j41(16,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(5);return t.Njj(s.compareObj.campaignDetails.secSection.questionId=i)})("change",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onSelectFirstQuestionForCompare(i.compareObj.campaignDetails.secSection.questionId,"second"))}),t.DNE(17,xe,1,1,"ng-template",74)(18,ye,1,1,"ng-template",75),t.k0s()()()}if(2&n){const e=t.XpG(5);t.R7$(7),t.Y8G("appendTo","body")("items",e.sectionsArr)("clearable",!1)("searchable",!1)("ngModel",e.compareObj.campaignDetails.secSection.sectionId||null),t.R7$(9),t.Y8G("appendTo","body")("items",e.compareSecondQuestionArr)("clearable",!1)("searchable",!1)("ngModel",e.compareObj.campaignDetails.secSection.questionId||null)}}function Re(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"p")(2,"strong"),t.EFF(3,"Selected Campaign - "),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,me,4,1,"p",58),t.j41(6,"div",60)(7,"label",134)(8,"strong"),t.EFF(9," Section"),t.k0s(),t.j41(10,"span",62),t.EFF(11,"*"),t.k0s()(),t.j41(12,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.compareObj.campaignDetails.fSection.sectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onSelectFirstSectionForCompare(i.compareObj.campaignDetails.fSection.sectionId,"first"))}),t.DNE(13,ge,1,1,"ng-template",74)(14,he,1,1,"ng-template",75),t.k0s()(),t.j41(15,"div",60)(16,"label",135)(17,"strong"),t.EFF(18,"Question"),t.k0s(),t.j41(19,"span",62),t.EFF(20,"*"),t.k0s()(),t.j41(21,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.compareObj.campaignDetails.fSection.questionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onSelectFirstQuestionForCompare(i.compareObj.campaignDetails.fSection.questionId,"first"))}),t.DNE(22,ue,1,1,"ng-template",74)(23,fe,1,1,"ng-template",75),t.k0s()(),t.DNE(24,ve,4,1,"div",136)(25,Oe,19,10,"div",58),t.j41(26,"div",67)(27,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.compareObj.step=1)}),t.EFF(28,"Back"),t.k0s(),t.j41(29,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.compareObj.step=3)}),t.EFF(30,"Next"),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(4),t.SpI(" ",null==e.compareObj?null:e.compareObj.firstCampaignName," "),t.R7$(),t.Y8G("ngIf",null==e.compareObj?null:e.compareObj.isSecondCampiaginEnabled),t.R7$(7),t.Y8G("appendTo","body")("items",e.sectionsArr)("clearable",!1)("searchable",!1)("ngModel",e.compareObj.campaignDetails.fSection.sectionId||null),t.R7$(9),t.Y8G("appendTo","body")("items",e.compareFirstQuestionArr)("clearable",!1)("searchable",!1)("ngModel",e.compareObj.campaignDetails.fSection.questionId||null),t.R7$(3),t.Y8G("ngIf",""!=e.compareObj.campaignDetails.fSection.questionId&&0==e.compareObj.isSecondCampiaginEnabled),t.R7$(),t.Y8G("ngIf",e.compareObj.campaignDetails.isSecondSectionEnabled&&!e.compareObj.isSecondCampiaginEnabled),t.R7$(4),t.Y8G("disabled",!e.compareObj.campaignDetails.fSection.questionId||!e.compareObj.campaignDetails.fSection.sectionId||null==e.compareObj.campaignDetails.fSection.questionId||null==e.compareObj.campaignDetails.fSection.sectionId||e.compareObj.campaignDetails.isSecondSectionEnabled&&(!e.compareObj.campaignDetails.secSection.sectionId||!e.compareObj.campaignDetails.secSection.questionId))}}function Fe(n,r){if(1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2,"&"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG(5);t.R7$(3),t.SpI(" ",null==e.compareObj?null:e.compareObj.secondCampaignName," ")}}function ke(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",145)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e),l=s.$implicit,a=s.index,c=t.XpG(5);return l.isSelected=i.target.checked,t.Njj(c.onselectOptionCompare(a,"first"))}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.Y8G("hidden",e.isHidden),t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value+"first"),t.FS9("value",e.value),t.Y8G("checked",e.isSelected),t.R7$(2),t.FS9("for",e.value+"first"),t.R7$(),t.SpI(" ",e.text," ")}}function Se(n,r){1&n&&(t.j41(0,"p",146),t.EFF(1,"No options remained for c
1omparison"),t.k0s())}function je(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",145)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e),l=s.$implicit,a=s.index,c=t.XpG(6);return l.isSelected=i.target.checked,t.Njj(c.onselectOptionCompare(a,"second"))}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.Y8G("hidden",e.isHidden),t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value+"second"),t.FS9("value",e.value),t.Y8G("checked",e.isSelected),t.R7$(2),t.FS9("for",e.value+"second"),t.R7$(),t.SpI(" ",e.text," ")}}function Me(n,r){if(1&n&&(t.j41(0,"div",131)(1,"h5",147)(2,"span",148),t.EFF(3,"Q."),t.k0s(),t.j41(4,"span",142),t.EFF(5),t.k0s()(),t.DNE(6,je,5,7,"div",143),t.k0s()),2&n){const e=t.XpG(5);t.R7$(5),t.JRh(e.compareObj.campaignDetails.secSection.questionText),t.R7$(),t.Y8G("ngForOf",e.compareObj.campaignDetails.secSection.options)}}function Ae(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",145)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e),l=s.$implicit,a=s.index,c=t.XpG(6);return l.isSelected=i.target.checked,t.Njj(c.onselectOptionCompare(a,"second"))}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.Y8G("hidden",e.isHidden),t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value+"second"),t.FS9("value",e.value),t.Y8G("checked",e.isSelected),t.R7$(2),t.FS9("for",e.value+"second"),t.R7$(),t.SpI(" ",e.text," ")}}function we(n,r){1&n&&(t.j41(0,"p",146),t.EFF(1,"No options remained for comparison"),t.k0s())}function Ie(n,r){if(1&n&&(t.j41(0,"div",131)(1,"h5",147)(2,"span",148),t.EFF(3,"Q."),t.k0s(),t.j41(4,"span",142),t.EFF(5),t.k0s()(),t.DNE(6,Ae,5,7,"div",143)(7,we,2,0,"p",144),t.k0s()),2&n){const e=t.XpG(5);t.R7$(5),t.SpI("",e.compareObj.campaignDetails.secSection.questionText,"(Unselect options)"),t.R7$(),t.Y8G("ngForOf",e.compareObj.campaignDetails.secSection.options),t.R7$(),t.Y8G("ngIf",e.allSecondOptionsHidden("second"))}}function Te(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.applyComparisonByCampagin(),i.compareObj.step=4,t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",0==e.compareObj.enableApplyBtn)}}function Pe(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.onClickSaveAndApplyComparisonByCampagin(),i.compareObj.step=4,t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Save & Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",0==e.compareObj.enableApplyBtn)}}function Ge(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",79)(1,"p")(2,"strong"),t.EFF(3,"Selected Campaign -"),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,Fe,4,1,"p",58),t.j41(6,"div")(7,"h5",140)(8,"span",141),t.EFF(9,"Q."),t.j41(10,"span",142),t.EFF(11),t.k0s()()(),t.DNE(12,ke,5,7,"div",143)(13,Se,2,0,"p",144),t.k0s(),t.DNE(14,Me,7,2,"div",130)(15,Ie,8,3,"div",130),t.j41(16,"div",81)(17,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.compareObj.step=2)}),t.EFF(18,"Back"),t.k0s(),t.DNE(19,Te,2,1,"button",77)(20,Pe,2,1,"button",77),t.k0s()()}if(2&n){const e=t.XpG(4);t.R7$(4),t.SpI(" ",null==e.compareObj?null:e.compareObj.firstCampaignName," "),t.R7$(),t.Y8G("ngIf",null==e.compareObj?null:e.compareObj.isSecondCampiaginEnabled),t.R7$(6),t.JRh(e.compareObj.campaignDetails.fSection.questionText),t.R7$(),t.Y8G("ngForOf",e.compareObj.campaignDetails.fSection.options),t.R7$(),t.Y8G("ngIf",e.allSecondOptionsHidden("first")),t.R7$(),t.Y8G("ngIf",e.compareObj.campaignDetails.isSecondSectionEnabled&&!e.compareObj.isSecondCampiaginEnabled&&!e.isSameQuestionSelected()),t.R7$(),t.Y8G("ngIf",e.compareObj.campaignDetails.isSecondSectionEnabled&&!e.compareObj.isSecondCampiaginEnabled&&e.isSameQuestionSelected()),t.R7$(4),t.Y8G("ngIf",!(null!=e.compareObj&&e.compareObj._id)),t.R7$(),t.Y8G("ngIf",null==e.compareObj?null:e.compareObj._id)}}function Ee(n,r){if(1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2,"&"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG(5);t.R7$(3),t.SpI(" ",null==e.compareObj?null:e.compareObj.secondCampaignName," ")}}function qe(n,r){if(1&n&&(t.j41(0,"h6")(1,"strong"),t.EFF(2),t.k0s()()),2&n){const e=t.XpG(5);t.R7$(2),t.SpI("& ",e.compareObj.campaignDetails.secSection.questionText,"")}}function Ne(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.saveNewComparison())}),t.EFF(1,"Save Comparison"),t.k0s()}}function Be(n,r){if(1&n&&(t.j41(0,"h6",154)(1,"span"),t.nrm(2,"i",155),t.k0s(),t.j41(3,"span",156),t.EFF(4),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(4),t.JRh(null==e?null:e.text)}}function De(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Be,5,1,"h6",153),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.Y8G("ngIf",1==(null==e?null:e.isSelected))}}function Ve(n,r){if(1&n&&(t.j41(0,"h6",154)(1,"span"),t.nrm(2,"i",155),t.k0s(),t.j41(3,"span",156),t.EFF(4),t.k0s()()),2&n){const e=t.XpG().$implicit;t.R7$(4),t.JRh(null==e?null:e.text)}}function Ye(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Ve,5,1,"h6",153),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.Y8G("ngIf",1==(null==e?null:e.isSelected))}}function Xe(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",149)(1,"div",150)(2,"div",100)(3,"p",151)(4,"strong"),t.EFF(5,"Applied Comparison :"),t.k0s()()(),t.j41(6,"div")(7,"p")(8,"strong"),t.EFF(9,"Selected Campaign - "),t.k0s(),t.EFF(10),t.k0s(),t.DNE(11,Ee,4,1,"p",58),t.k0s(),t.j41(12,"div",118)(13,"div",41)(14,"h6")(15,"strong"),t.EFF(16),t.k0s()(),t.DNE(17,qe,3,1,"h6",58),t.k0s(),t.j41(18,"div",152)(19,"a",104),t.nrm(20,"img",90),t.k0s(),t.j41(21,"div",91)(22,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.compareObj.step=3)}),t.EFF(23,"Edit Comparison "),t.k0s(),t.j41(24,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.removeComparison())}),t.EFF(25,"Remove Comparison"),t.k0s(),t.DNE(26,Ne,2,0,"a",92),t.k0s()()(),t.j41(27,"ul",120),t.DNE(28,De,2,1,"div",121)(29,Ye,2,1,"div",121),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(10),t.SpI(" ",null==e.compareObj?null:e.compareObj.firstCampaignName," "),t.R7$(),t.Y8G("ngIf",null==e.compareObj?null:e.compareObj.isSecondCampiaginEnabled),t.R7$(5),t.JRh(e.compareObj.campaignDetails.fSection.questionText),t.R7$(),t.Y8G("ngIf",e.compareObj.campaignDetails.isSecondSectionEnabled&&!e.compareObj.isSecondCampiaginEnabled),t.R7$(9),t.Y8G("ngIf",!(null!=e.compareObj&&e.compareObj._id)),t.R7$(2),t.Y8G("ngForOf",e.compareObj.campaignDetails.fSection.options),t.R7$(),t.Y8G("ngForOf",e.compareObj.campaignDetails.secSection.options)}}function Qe(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.saveNewComparison())}),t.EFF(1,"Save Comparison"),t.k0s()}}function Le(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",149)(1,"div",150)(2,"div",100)(3,"p",151)(4,"strong"),t.EFF(5,"Applied Comparison :"),t.k0s()()(),t.j41(6,"div",118),t.nrm(7,"div",41),t.j41(8,"div",152)(9,"a",104),t.nrm(10,"img",90),t.k0s(),t.j41(11,"div",91)(12,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.compareObj.step=1)}),t.EFF(13,"Edit Comparison "),t.k0s(),t.j41(14,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.removeComparison())}),t.EFF(15,"Remove Comparison"),t.k0s(),t.DNE(16,Qe,2,0,"a",92),t.k0s()()(),t.j41(17,"ul",120)(18,"div")(19,"h6",154)(20,"span"),t.nrm(21,"i",155),t.k0s(),t.j41(22,"span",156),t.EFF(23),t.k0s()()(),t.j41(24,"div")(25,"h6",154)(26,"span"),t.nrm(27,"i",155),t.k0s(),t.j41(28,"span",156),t.EFF(29),t.k0s()()()()()()}if(2&n){const e=t.XpG(4);t.R7$(16),t.Y8G("ngIf",!(null!=e.compareObj&&e.compareObj._id)),t.R7$(7),t.JRh(null==e.compareObj?null:e.compareObj.firstCampaignName),t.R7$(6),t.JRh(null==e.compareObj?null:e.compareObj.secondCampaignName)}}function ze(n,r){1&n&&(t.j41(0,"div",94)(1,"div",95)(2,"div",96)(3,"span",97),t.EFF(4,"Loading..."),t.k0s()(),t.j41(5,"strong"),t.EFF(6,"Loading..."),t.k0s()()())}function Je(n,r){1&n&&(t.j41(0,"div",157)(1,"p"),t.EFF(2,"No Comparisons Saved"),t.k0s()())}function Ue(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",100)(1,"div",101)(2,"div",102)(3,"input",158,1),t.mxI("ngModelChange",function(i){const s=t.eBV(e).$implicit;return t.DH7(s.title,i)||(s.title=i),t.Njj(i)}),t.bIt("keyup.enter",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.renameSaved("comparison",i._id,i.title))})("focus",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.k0s(),t.j41(5,"div")(6,"a",104),t.nrm(7,"img",90),t.k0s(),t.j41(8,"div",105)(9,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return s.applyExstingComparison(i),t.Njj(s.closeSidebarOnMobile())}),t.EFF(10,"Apply"),t.k0s(),t.j41(11,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.EFF(12,"Rename"),t.k0s(),t.j41(13,"a",107),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.deleteSavedId=null==i?null:i._id)}),t.EFF(14,"Delete"),t.k0s()()()()()()}if(2&n){const e=r.$implicit,o=t.sdS(4),i=t.XpG(5);t.R7$(),t.Y8G("ngClass",t.eq3(3,P,!(null!=o&&o.disabled))),t.R7$(2),t.Y8G("disabled",!e.isRename||i.currentRenamedItem!==e),t.R50("ngModel",e.title)}}function He(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Ue,15,5,"div",99),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.savedComparisonsArr)}}function $e(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Comparison"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()(),t.DNE(6,_e,18,5,"div",50)(7,Re,31,15,"div",50)(8,Ge,21,9,"div",51)(9,Xe,30,7,"div",123)(10,Le,30,3,"div",123),t.j41(11,"div",52)(12,"div",100)(13,"label",109)(14,"strong"),t.EFF(15," Saved Comparison:"),t.k0s()(),t.j41(16,"p",110),t.EFF(17,"Max 3"),t.k0s()(),t.DNE(18,ze,7,
10,"div",56)(19,Je,3,0,"div",124)(20,He,2,1,"div",58),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(6),t.Y8G("ngIf",1==(null==e.compareObj?null:e.compareObj.step)),t.R7$(),t.Y8G("ngIf",2==(null==e.compareObj?null:e.compareObj.step)),t.R7$(),t.Y8G("ngIf",3==e.compareObj.step),t.R7$(),t.Y8G("ngIf",4==e.compareObj.step&&!(null!=e.compareObj&&e.compareObj.isSecondCampiaginEnabled)),t.R7$(),t.Y8G("ngIf",4==e.compareObj.step&&(null==e.compareObj?null:e.compareObj.isSecondCampiaginEnabled)),t.R7$(8),t.Y8G("ngIf",e.filterLoader),t.R7$(),t.Y8G("ngIf",0===(null==e.savedComparisonsArr?null:e.savedComparisonsArr.length)&&!e.filterLoader),t.R7$(),t.Y8G("ngIf",e.savedComparisonsArr.length>0)}}function Ze(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function We(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function Ke(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function ti(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function ei(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function ii(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.title)}function ni(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function oi(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.text)}function si(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",161)(1,"div",160)(2,"label",72)(3,"strong"),t.EFF(4," Section"),t.k0s()(),t.j41(5,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(5);return t.Njj(s.secondSectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onchangeSection(i.secondSectionId,"second"))}),t.DNE(6,ei,1,1,"ng-template",74)(7,ii,1,1,"ng-template",75),t.k0s()(),t.j41(8,"div",160)(9,"label",72)(10,"strong"),t.EFF(11,"Question"),t.k0s()(),t.j41(12,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(5);return t.Njj(s.questionId1=i)})("change",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.onSelectQuestion(i.questionId1,"second"))}),t.DNE(13,ni,1,1,"ng-template",74)(14,oi,1,1,"ng-template",75),t.k0s()()()}if(2&n){const e=t.XpG(5);t.R7$(5),t.Y8G("appendTo","body")("items",e.sectionsArr)("clearable",!1)("searchable",!1)("ngModel",e.secondSectionId||null),t.R7$(7),t.Y8G("appendTo","body")("items",e.secondSectionQuestions)("clearable",!1)("searchable",!1)("ngModel",e.questionId1||null)}}function ri(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"div",160)(2,"label",72)(3,"strong"),t.EFF(4," Section"),t.k0s(),t.j41(5,"span",62),t.EFF(6,"*"),t.k0s()(),t.j41(7,"ng-select",73),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.firstSectionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onchangeSection(i.firstSectionId,"first"))}),t.DNE(8,Ze,1,1,"ng-template",74)(9,We,1,1,"ng-template",75),t.k0s()(),t.j41(10,"div",160)(11,"label",72)(12,"strong"),t.EFF(13,"Question"),t.k0s(),t.j41(14,"span",62),t.EFF(15,"*"),t.k0s()(),t.j41(16,"ng-select",78),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4);return t.Njj(s.questionId=i)})("change",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.onSelectQuestion(i.questionId,"first"))}),t.DNE(17,Ke,1,1,"ng-template",74)(18,ti,1,1,"ng-template",75),t.k0s()(),t.j41(19,"div",161)(20,"div",82)(21,"input",162),t.bIt("change",function(i){t.eBV(e);const s=t.XpG(4);return s.isSelectNewQuestion=i.target.checked,t.Njj(s.clearRecord(i.target.checked))}),t.k0s(),t.j41(22,"label",163),t.EFF(23," Add another question "),t.k0s()()(),t.DNE(24,si,15,10,"div",164),t.j41(25,"div",165)(26,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return i.clearComparisonRecord(),t.Njj(i.goTocomparison())}),t.EFF(27,"Cancel"),t.k0s(),t.j41(28,"button",69),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.nextTab())}),t.EFF(29,"Next"),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(7),t.Y8G("appendTo","body")("items",e.sectionsArr)("clearable",!1)("searchable",!1)("ngModel",e.firstSectionId||null),t.R7$(9),t.Y8G("appendTo","body")("items",e.firstSectionQuestions)("clearable",!1)("searchable",!1)("ngModel",e.questionId||null),t.R7$(5),t.Y8G("checked",e.isSelectNewQuestion),t.R7$(3),t.Y8G("ngIf",1==e.isSelectNewQuestion),t.R7$(4),t.Y8G("disabled",e.checkCompQuesSelect())}}function ai(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",82)(1,"input",83),t.bIt("change",function(i){const s=t.eBV(e).$implicit;return t.XpG(5).onChange(s.text,i.target.checked),t.Njj(s.selected=i.target.checked)}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.R7$(),t.FS9("name",e.value),t.FS9("id",e.value),t.FS9("value",e.value),t.Y8G("checked",e.selected),t.R7$(2),t.FS9("for",e.value),t.R7$(),t.SpI(" ",e.text," ")}}function li(n,r){if(1&n&&(t.j41(0,"h5",167)(1,"strong"),t.EFF(2,"Q: "),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG(5);t.R7$(3),t.JRh(e.questionText1)}}function ci(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",82)(1,"input",168),t.bIt("change",function(i){const s=t.eBV(e).$implicit;return t.XpG(5).onChange(s.text,i.target.checked),t.Njj(s.selected=i.target.checked)}),t.k0s(),t.EFF(2," \xa0 "),t.j41(3,"label",84),t.EFF(4),t.k0s()()}if(2&n){const e=r.$implicit;t.R7$(),t.FS9("name",e.value),t.FS9("value",e.value),t.FS9("id",e.value),t.Y8G("checked",e.selected),t.R7$(2),t.FS9("for",e.value),t.R7$(),t.SpI(" ",e.text," ")}}function pi(n,r){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.saveComparisonEdit(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(2,"Save & Apply"),t.k0s(),t.bVm()}if(2&n){const e=t.XpG(5);t.R7$(),t.Y8G("disabled",e.checkDoubleCompValid())}}function di(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",113),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.SplitByQuestion(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(1,"Apply"),t.k0s()}if(2&n){const e=t.XpG(5);t.Y8G("disabled",e.checkDoubleCompValid())}}function _i(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",59)(1,"h5")(2,"strong"),t.EFF(3,"Q: "),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,ai,5,6,"div",80)(6,li,4,1,"h5",166)(7,ci,5,6,"div",80),t.j41(8,"div",165)(9,"button",68),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.currentTab=1)}),t.EFF(10,"Back"),t.k0s(),t.DNE(11,pi,3,1,"ng-container",112)(12,di,2,1,"ng-template",null,2,t.C5r),t.k0s()()}if(2&n){const e=t.sdS(13),o=t.XpG(4);t.R7$(4),t.JRh(o.questionText),t.R7$(),t.Y8G("ngForOf",o.questionDetail
1s),t.R7$(),t.Y8G("ngIf",o.questionText1&&""!=o.questionText1&&null!=o.questionText1),t.R7$(),t.Y8G("ngForOf",o.secQuestionDetails),t.R7$(4),t.Y8G("ngIf",o.isEditFilter)("ngIfElse",e)}}function mi(n,r){if(1&n&&(t.j41(0,"p",170),t.EFF(1),t.k0s()),2&n){const e=t.XpG(5);t.R7$(),t.JRh(e.appliedTitle)}}function gi(n,r){if(1&n&&(t.j41(0,"h6")(1,"strong"),t.EFF(2),t.k0s()()),2&n){const e=t.XpG(5);t.R7$(2),t.SpI("& ",e.questionText1,"")}}function hi(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.isEditComparison=!0,t.Njj(i.onEditFilter())}),t.EFF(1,"Edit Comparison "),t.k0s()}}function ui(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return i.isEditComparison=!0,t.Njj(i.onIdit())}),t.EFF(1,"Edit Comparison "),t.k0s()}}function fi(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(5);return t.Njj(i.saveComparison())}),t.EFF(1,"Save Comparison"),t.k0s()}}function vi(n,r){if(1&n&&(t.j41(0,"li")(1,"h6",171),t.EFF(2),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e)}}function bi(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",149)(1,"div",150)(2,"div",100)(3,"p",151)(4,"strong"),t.EFF(5),t.k0s()(),t.DNE(6,mi,2,1,"p",169),t.k0s(),t.j41(7,"div",118)(8,"div",41)(9,"h6")(10,"strong"),t.EFF(11),t.k0s()(),t.DNE(12,gi,3,1,"h6",58),t.k0s(),t.j41(13,"div",152)(14,"a",104),t.nrm(15,"img",90),t.k0s(),t.j41(16,"div",91),t.DNE(17,hi,2,0,"a",92)(18,ui,2,0,"a",92),t.j41(19,"a",93),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return i.goToOriginal(),i.clearComparisonRecord(),t.Njj(i.currentTab=1)}),t.EFF(20,"Remove Comparison"),t.k0s(),t.DNE(21,fi,2,0,"a",92),t.k0s()()(),t.j41(22,"ul",120),t.DNE(23,vi,3,1,"li",121),t.k0s()()()}if(2&n){const e=t.XpG(4);t.R7$(5),t.SpI("Applied ",1==e.isComparison?"Comparison":"Filter"," :"),t.R7$(),t.Y8G("ngIf",e.isAppliedFilter),t.R7$(5),t.JRh(e.questionText),t.R7$(),t.Y8G("ngIf",e.questionText1),t.R7$(5),t.Y8G("ngIf",e.isAppliedFilter),t.R7$(),t.Y8G("ngIf",!e.isAppliedFilter),t.R7$(3),t.Y8G("ngIf",!e.isAppliedFilter),t.R7$(2),t.Y8G("ngForOf",e.optionArray)}}function Ci(n,r){1&n&&(t.j41(0,"div",94)(1,"div",95)(2,"div",96)(3,"span",97),t.EFF(4,"Loading..."),t.k0s()(),t.j41(5,"strong"),t.EFF(6,"Loading..."),t.k0s()()())}function xi(n,r){1&n&&(t.j41(0,"div",157)(1,"p"),t.EFF(2,"No Comparisons Saved"),t.k0s()())}function yi(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",100)(1,"div",101)(2,"div",102)(3,"input",158,1),t.mxI("ngModelChange",function(i){const s=t.eBV(e).$implicit;return t.DH7(s.title,i)||(s.title=i),t.Njj(i)}),t.bIt("keyup.enter",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.renameSaved("comparison",i._id,i.title))})("focus",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.k0s(),t.j41(5,"div")(6,"a",104),t.nrm(7,"img",90),t.k0s(),t.j41(8,"div",105)(9,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.applyComparison(null==i?null:i._id))}),t.EFF(10,"Apply"),t.k0s(),t.j41(11,"a",106),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.enableRename(i))}),t.EFF(12,"Rename"),t.k0s(),t.j41(13,"a",107),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(5);return t.Njj(s.deleteSavedId=null==i?null:i._id)}),t.EFF(14,"Delete"),t.k0s()()()()()()}if(2&n){const e=r.$implicit,o=t.sdS(4),i=t.XpG(5);t.R7$(),t.Y8G("ngClass",t.eq3(3,P,!(null!=o&&o.disabled))),t.R7$(2),t.Y8G("disabled",!e.isRename||i.currentRenamedItem!==e),t.R50("ngModel",e.title)}}function Oi(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,yi,15,5,"div",99),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngForOf",e.savedComparisonsArr)}}function Ri(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Comparison"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()(),t.DNE(6,ri,30,13,"div",50)(7,_i,14,6,"div",159)(8,bi,24,8,"div",123),t.j41(9,"div",52)(10,"div",100)(11,"label",109)(12,"strong"),t.EFF(13," Saved Comparison:"),t.k0s()(),t.j41(14,"p",110),t.EFF(15,"Max 3"),t.k0s()(),t.DNE(16,Ci,7,0,"div",56)(17,xi,3,0,"div",124)(18,Oi,2,1,"div",58),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(6),t.Y8G("ngIf",1==e.currentTab),t.R7$(),t.Y8G("ngIf",2==e.currentTab),t.R7$(),t.Y8G("ngIf",4==e.currentTab),t.R7$(8),t.Y8G("ngIf",e.filterLoader),t.R7$(),t.Y8G("ngIf",0===(null==e.savedComparisonsArr?null:e.savedComparisonsArr.length)&&!e.filterLoader),t.R7$(),t.Y8G("ngIf",e.savedComparisonsArr.length>0&&!e.filterLoader)}}function Fi(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",183),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.selectAll())}),t.EFF(1,"Show All"),t.k0s()}}function ki(n,r){if(1&n){const e=t.RV6();t.j41(0,"a",183),t.bIt("click",function(){t.eBV(e);const i=t.XpG(4);return t.Njj(i.clearAll())}),t.EFF(1,"Hide All"),t.k0s()}}function Si(n,r){1&n&&(t.j41(0,"p",184),t.EFF(1," No questions available "),t.k0s())}function ji(n,r){if(1&n){const e=t.RV6();t.j41(0,"label",186)(1,"input",187),t.bIt("change",function(i){t.eBV(e);const s=t.XpG().$implicit,l=t.XpG(4);return t.Njj(l.onQuestionCheckboxChange(s._id,i.target.checked))}),t.k0s(),t.j41(2,"span",188),t.EFF(3),t.k0s(),t.nrm(4,"img",189),t.k0s()}if(2&n){const e=t.XpG().$implicit;t.Y8G("for","question-"+e._id),t.R7$(),t.Y8G("id","question-"+e._id)("checked",0==e.isHide),t.R7$(),t.AVh("sh-q-visible",0==e.isHide)("sh-q-hidden",0!=e.isHide),t.R7$(),t.Lme(" ",e.questionRefernceNo," \u2013 ",e.text," "),t.R7$(),t.Y8G("src",0==e.isHide?"assets/icons/eye.svg":"assets/icons/eye-slash.svg",t.B4B)}}function Mi(n,r){if(1&n&&(t.qex(0),t.DNE(1,ji,5,10,"label",185),t.bVm()),2&n){const e=r.$implicit;t.R7$(),t.Y8G("ngIf",e.text&&""!==e.text.trim())}}function Ai(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",172)(1,"div",47)(2,"span",48),t.EFF(3,"Show"),t.k0s(),t.j41(4,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()(),t.j41(5,"div",173)(6,"h4",174),t.EFF(7,"Show only certain questions."),t.k0s(),t.j41(8,"div",175)(9,"p",176),t.EFF(10,"Click eye icons to show or hide questions."),t.k0s(),t.DNE(11,Fi,2,0,"a",177)(12,ki,2,0,"a",177),t.k0s()(),t.nrm(13,"div",178),t.j41(14,"div",179),t.DNE(15,Si,2,0,"p",180)(16,Mi,2,1,"ng-container",121),t.k0s(),t.j41(17,"div",181)(18,"button",182),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return i.showHideQuestions(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(19,"Apply"),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(11),t.Y8G("ngIf",1==e.showhide),t.R7$(),t.Y8G("ngIf",0==e.showhide),t.R7$(3),t.Y8G("ngIf",0==e.dataFlag&&0==e.pageLoader&&0==e.questionsArr.length),t.R7$(),t.Y8G("ngForOf",e.questionsArr),t.R7$(2),t.Y8G("disabled",e.disableApply)}}function wi(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Export"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()()(),t.j41(6,"div",190)(7,"button",191),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return i.getSvg(),t.Njj(i.closeSidebarOnMobile())}
1),t.EFF(8,"Export as PDF"),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(7),t.Y8G("disabled",1==e.isLoading)}}function Ii(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Export"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()()(),t.j41(6,"div",192)(7,"button",193),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return i.generatePpt(),t.Njj(i.closeSidebarOnMobile())}),t.EFF(8,"Export as PPT"),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(7),t.Y8G("disabled",1==e.isLoading)}}function Ti(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function Pi(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function Gi(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",194)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Responses"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()()(),t.j41(6,"div",195)(7,"label")(8,"strong"),t.EFF(9,"Responses show as"),t.k0s()(),t.j41(10,"ng-select",196),t.mxI("ngModelChange",function(i){t.eBV(e);const s=t.XpG(3);return t.DH7(s.selectedGlobalResponse,i)||(s.selectedGlobalResponse=i),t.Njj(i)}),t.bIt("change",function(){t.eBV(e);const i=t.XpG(3);return i.changeResponseType(i.questionsArr,i.selectedGlobalResponse),t.Njj(i.closeSidebarOnMobile())}),t.DNE(11,Ti,1,1,"ng-template",74)(12,Pi,1,1,"ng-template",75),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(10),t.Y8G("appendTo","body")("items",e.scaleOptions)("clearable",!1)("searchable",!1),t.R50("ngModel",e.selectedGlobalResponse)}}function Ei(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function qi(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function Ni(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",194)(1,"div",46)(2,"div",47)(3,"span",48),t.EFF(4,"Filter participants as"),t.k0s(),t.j41(5,"img",49),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3);return t.Njj(i.toggleSidebar())}),t.k0s()()(),t.j41(6,"div",195)(7,"label")(8,"strong"),t.EFF(9,"Select"),t.k0s()(),t.j41(10,"ng-select",197),t.mxI("ngModelChange",function(i){t.eBV(e);const s=t.XpG(3);return t.DH7(s.allSurveyResponses,i)||(s.allSurveyResponses=i),t.Njj(i)}),t.bIt("change",function(){t.eBV(e);const i=t.XpG(3);return i.filterResponses(i.allSurveyResponses),t.Njj(i.closeSidebarOnMobile())}),t.DNE(11,Ei,1,1,"ng-template",74)(12,qi,1,1,"ng-template",75),t.k0s()()()}if(2&n){const e=t.XpG(3);t.R7$(10),t.Y8G("items",e.responseTypeOptions)("clearable",!1)("searchable",!1),t.R50("ngModel",e.allSurveyResponses)}}function Bi(n,r){if(1&n&&(t.j41(0,"div",41),t.DNE(1,Nt,19,7,"div",42)(2,oe,19,6,"div",42)(3,$e,21,8,"div",42)(4,Ri,19,6,"div",42)(5,Ai,20,5,"div",43)(6,wi,9,1,"div",42)(7,Ii,9,1,"div",42)(8,Gi,13,5,"div",44)(9,Ni,13,4,"div",44),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf","filter"===e.tabType),t.R7$(),t.Y8G("ngIf",e.filterVisible),t.R7$(),t.Y8G("ngIf","Compare"===e.tabType),t.R7$(),t.Y8G("ngIf",e.comparisinVisible),t.R7$(),t.Y8G("ngIf","showhide"===e.tabType),t.R7$(),t.Y8G("ngIf","exportpdf"===e.tabType),t.R7$(),t.Y8G("ngIf","exportppt"===e.tabType),t.R7$(),t.Y8G("ngIf","responces"===e.tabType),t.R7$(),t.Y8G("ngIf","particientFilter"===e.tabType)}}function Di(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",27)(1,"div",28)(2,"div",29),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return i.showParticientsTab(),t.Njj(i.tabType="particientFilter")}),t.nrm(3,"img",30),t.k0s(),t.nrm(4,"span"),t.j41(5,"div",31),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return i.openFilter(),t.Njj(i.tabType="filter")}),t.nrm(6,"img",30),t.k0s(),t.nrm(7,"span"),t.j41(8,"div",32),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.filter())}),t.nrm(9,"img",30),t.k0s(),t.nrm(10,"span"),t.DNE(11,dt,2,7,"div",33),t.nrm(12,"span"),t.DNE(13,_t,2,7,"div",34),t.nrm(14,"span"),t.DNE(15,mt,2,7,"div",33)(16,gt,2,7,"div",35),t.j41(17,"div",36),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return i.Exportpdf(),t.Njj(i.tabType="exportpdf")}),t.nrm(18,"img",30),t.k0s(),t.DNE(19,ht,2,7,"div",35),t.k0s(),t.DNE(20,Bi,10,9,"div",37),t.k0s()}if(2&n){const e=t.XpG();t.Y8G("ngClass",t.sMw(16,ct,!e.isSidebarOpen,!e.isSidebarOpen,e.isSidebarOpen)),t.R7$(),t.Y8G("ngClass",t.sMw(20,pt,!e.isSidebarOpen,!e.isSidebarOpen,e.isSidebarOpen)),t.R7$(),t.Y8G("ngClass",t.ziG(24,S,e.isSidebarOpen,!e.isSidebarOpen,e.particientFilterActive,!e.particientFilterActive)),t.R7$(),t.Y8G("src",e.particientFilterActive?"../../../../assets/img/classification-icon-active.svg":"../../../../assets/img/classification-icon.svg",t.B4B),t.R7$(2),t.Y8G("ngClass",t.ziG(29,S,e.isSidebarOpen,!e.isSidebarOpen,e.isFilterByCampiagin,!e.isFilterByCampiagin)),t.R7$(),t.Y8G("src",e.isFilterByCampiagin?"../../../../assets/icons/filter-filled.png":"../../../../assets/icons/filter-svgrepo-com (1).svg",t.B4B),t.R7$(2),t.Y8G("ngClass",t.ziG(34,S,e.isSidebarOpen,!e.isSidebarOpen,e.isFilterActive,!e.isFilterActive)),t.R7$(),t.Y8G("src",e.isFilterActive?"../../../../assets/icons/filter-filled.png":"../../../../assets/icons/filter-svgrepo-com (1).svg",t.B4B),t.R7$(2),t.Y8G("ngIf",!e.isTrendsPage),t.R7$(2),t.Y8G("ngIf",!e.isTrendsPage),t.R7$(2),t.Y8G("ngIf",!e.isTrendsPage),t.R7$(),t.Y8G("ngIf",!e.isTrendsPage),t.R7$(),t.Y8G("ngClass",t.ziG(39,S,e.
1isSidebarOpen,!e.isSidebarOpen,e.ExportpdfActive,!e.ExportpdfActive)),t.R7$(),t.Y8G("src",e.ExportpdfActive?"../../../../assets/icons/pdf- filled.svg":".../../../../assets/icons/pdf-file-format-symbol-svgrepo-com (1).svg",t.B4B),t.R7$(),t.Y8G("ngIf",1==(null==e.surveyDetails?null:e.surveyDetails.isDGSurvey)),t.R7$(),t.Y8G("ngIf",e.isSidebarOpen)}}E()(p),X()(p),Q()(p),j().vfs=I.b.vfs;let Vi=(()=>{class n{get isSidebarOpen(){return this._isSidebarOpen}set isSidebarOpen(e){this._isSidebarOpen=e,typeof window<"u"&&window.innerWidth<=640&&(document.body.style.overflow=e?"hidden":"")}constructor(e,o,i,s,l){this.ss=e,this.router=o,this.toastrService=i,this.highchartFormatingService=s,this.dashboardService=l,this.surveyName=localStorage.getItem("surveyName"),this._isSidebarOpen=!1,this.ExportpptActive=!1,this.exportppt=!1,this.pptName="",this.shouldHideSidebar=!1,this.isTrendsPage=!1,this.activeSection=null,this.analyseMode="normal",this.isFilterOpen=!1,this.isCompOpen=!1,this.filterFlag=!1,this.currentTab=0,this.isShowHide=!1,this.isShowActive=!1,this.ExportpdfActive=!1,this.filterVisible=!1,this.comparisinVisible=!1,this.showHideVisible=!1,this.exportpdf=!1,this.quetionsShowHide=!1,this.isFilterActive=!1,this.iscomparisonActive=!1,this.isAppliedFilter=!1,this.isSelectNewQuestion=!1,this.questionsVisibility={},this.firstSectionQuestions=[],this.secondSectionQuestions=[],this.isEditComparison=!1,this.savedFiltersArr=[],this.savedComparisonsArr=[],this.filterLoader=!1,this.selectedGlobalResponse="percent",this.isComparison=!1,this.optionArray=[],this.isEditFilter=!1,this.secArr=[],this.arr=[],this.filteredOptions=[],this.isQuestionChanged=!1,this.questionAnswerFlag=!1,this.questionsArr=[],this.pageLoader=!1,this.showQuestionArr=[],this.isFilter=!1,this.isFilterApplied=!1,this.chartType="Bar",this.dataFlag=!1,this.loading=!1,this.hasNoSufficientData=!1,this.scaleType=!1,this.showhide=!1,this.disableApply=!1,this.isresponseActive=!1,this.respocesactive=!1,this.particientFilterActive=!0,this.particientCompareActive=!1,this.showsearching=!1,this.participientsArr=[],this.page=0,this.count=0,this.pageSize=5,this.pageSizes=[5,10,15,50,100],this.currentPage=0,this.items=[],this.searchRecord="",this.selectedItems=[],this.isComparisonApplied=!1,this.percentStatus=!0,this.userquestionsArr=[],this._id=this.userquestionsArr._id,this.tabType="particientFilter",this.isShowResApply=!1,this.isRename=!1,this.allSurveyResponses="all",this.responseTypeOptions=[{value:"all",label:"All"},{value:"completed",label:"Completed"},{value:"incomplete",label:"Incomplete"},{value:"terminated",label:"Terminated"}],this.scaleOptions=[{value:"percent",label:"Percentage"},{value:"count",label:"Count"},{value:"percent auto",label:"Percentage Auto Scale"}],this.compoentName="ResultsComponent",this.isFilterByCampiagin=!1,this.deploymentsArr=[],this.filterObj={step:1,campaignName:"all",sectionId:"",questionId:"",options:[],questionText:"",enableApplyBtn:!1,title:"",type:"filter"},this.isCompareByCampiagin=!1,this.compareFirstQuestionArr=[],this.compareSecondQuestionArr=[],this.compareObj={step:1,type:"comparison",isSecondCampiaginEnabled:!1,enableApplyBtn:!1,firstCampaignName:"all",secondCampaignName:"",campaignDetails:{isSecondSectionEnabled:!1,fSection:{sectionId:"",questionId:"",options:[],questionText:""},secSection:{sectionId:"",questionId:"",options:[],questionText:""}}}}ngOnDestroy(){document.body.style.overflow=""}ngOnInit(){this.generatepptdata(),window.location.href.includes("survey/survey-reports/results")?this.compoentName="ResultsComponent":window.location.href.includes("survey/survey-reports/trends")?this.compoentName="TrendsComponent":sessionStorage.removeItem("participent"),this.setAllValues(),this.getAllDeploycampigns(),this.get
1SurveyDetails(),this.getFilters(),this.isShowHide||this.resetIsHideValue(),this.router.events.subscribe(()=>{const e=this.router.url;this.isTrendsPage=e.includes("/survey/survey-reports/trends"),this.shouldHideSidebar=e.includes("/survey/survey-reports/respondents")})}resetIsHideValue(){this.questionsArr.forEach((e,o)=>{localStorage.setItem(`isHide_${o}`,"false")})}closeSidebarOnMobile(){typeof window<"u"&&window.innerWidth<=640&&(this.isSidebarOpen=!1)}toggleSidebar(){this.isSidebarOpen=!this.isSidebarOpen,this.isShowActive=!!this.isShowHide,this.isFilter?this.isFilterByCampiagin=!0:(this.isFilterByCampiagin=!1,this.removeFilterToTab()),this.isComparison?this.isCompareByCampiagin=!0:(this.isCompareByCampiagin=!1,this.removeComparisonToTab()),0==this.isSidebarOpen&&(this.ExportpdfActive=!1,this.ExportpptActive=!1),this.isresponseActive=1==this.isShowResApply,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},350)}filter(){this.isFilterOpen=!0,this.isCompOpen=!1,this.filterFlag?this.currentTab=4:this.changeFilterType("questionAnswer"),this.isShowActive=!!this.isShowHide,"comparision"==this.filterComparision&&(localStorage.removeItem("filterFlag"),this.ngOnInit(),this.currentTab=0,this.filterFlag=!1,this.isSelectNewQuestion=!1,this.questionText="",this.questionText1="",this.questionDetails=[],this.secQuestionDetails=[],this.firstSectionQuestions=[],this.secondSectionQuestions=[],this.questionArr=[],this.sectionId=void 0,this.firstSectionId=void 0,this.secondSectionId=void 0,this.questionId=void 0,this.questionId1=void 0,this.particientFilterActive=!0,this.isCompareByCampiagin=!1,this.particientFilterActive=!1,this.isEditComparison=!1,this.changeFilterType("questionAnswer")),this.isCompOpen&&(this.goTocomparison(),this.clearComparisonRecord()),this.isSidebarOpen=!0,this.respocesactive=!1,this.isFilterActive=!0,this.iscomparisonActive=!1,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.isFilterByCampiagin=!0,this.isresponseActive=!1,this.getFilters()}getFilters(){this.filterLoader=!0;let e=localStorage.getItem("surveyId");this.ss.getFilters(e).subscribe(o=>{this.savedFiltersArr=o,console.log("Save Fileter name"+this.savedFiltersArr),this.filterLoader=!1},o=>{this.filterLoader=!1,console.log(o)})}clearComparisonRecord(e){this.iscomparisonActive=!1,this.isComparison=!1,0==this.isEditComparison?(this.secQuestionDetails=[],this.secondSectionId=void 0,this.firstSectionId=void 0,this.questionId1=void 0,this.questionText1=void 0,this.sectionId=void 0,this.questionDetails=[],this.firstSectionId=void 0,this.optionArray=[],this.questionId=void 0,this.isSelectNewQuestion=!1):this.currentTab=4}goTocomparison(){if(this.isComparison){this.iscomparisonActive=!0,this.comparisinVisible=!0;let e=localStorage.getItem("filteroptionArray")?.split(",");e&&(this.optionArray=e),this.currentTab=4,this.isSelectNewQuestion=JSON.parse(localStorage.getItem("compIsSelectNew")),this.firstSectionId=localStorage.getItem("compFirstSectionId"),this.secondSectionId=localStorage.getItem("compSecondSectionId"),this.questionId=localStorage.getItem("filterquestionId"),this.questionId1=localStorage.getItem("compQuestionId1"),this.onSelectQuestion(this.questionId,"first"),this.onSelectQuestion(this.questionId1,"second")}else this.iscomparisonActive=!1,this.comparisinVisible=!1,this.isSidebarOpen=!1;this.respocesactive=!1,this.isEditFilter=!1,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.isresponseActive=!1,this.isFilterByCampiagin=!1}onSelectQuestion(e,o,i){if(this.arr=[],this.secArr=[],"second"==o&&"Saved"!=i&&(this.secQuestionDetails=[],this.secondSectionQuestions.map(s=>{s._id==this.questionId1&&(this.questionText1=s.text,s.options.map(l=>{this.secArr.push({value:`${l}_${this.questionId1}`,text:l,selected:this.optionArray.includes(l)})}),this.secQuestionDetails=this.secArr)})),"first"==o){if("Saved"==i)return null;this.firstSectionQuestions.map(s=>{s._id==this.questionId&&(this.questionText=s.text,s.options.map(l=>{this.arr.push({value:`${l}_${this.questionId}`,text:l,selected:this.optionArray.includes(l)})}),this.questionDetails=this.arr)})}"filter"==o&&(this.optionArray=[],this.questionArr.map(s=>{s._id==this.questionId&&(this.questionText=s.text,s.options.map(l=>{this.arr.push({value:`${l}_${this.questionId}`,text:l,selected:this.filteredOptions.includes(l)})}
1),this.questionDetails=this.arr)})),this.isEditFilter&&(this.isQuestionChanged=!0)}changeFilterType(e){this.isEditComparison=!1,this.filterComparision=e,"questionAnswer"==e||"comparision"==e||"showHide"==e?(this.questionAnswerFlag=!0,this.filterFlag?this.currentTab=4:(this.currentTab=1,this.optionArray=[],this.questionDetails=[],this.questionText="",this.filterFlag=!1),this.sectionsArr=[],this.questionText1="",this.secQuestionDetails=[],this.questionArr=[],this.sectionId=void 0,this.questionId=void 0,this.questionId1=void 0,this.getSurveyDetails()):this.currentTab=0}getSurveyDetails(){this.isLoading=!0,this.sectionsArr=[],this.questionsArr=[],this.ss.getSurveyDetailsById().subscribe(e=>{if(this.surveyDetails=e,this.userResponse=e.userResponseCount,console.log(this.userResponse),e&&e.sections.forEach(o=>{o?.questions?.forEach(i=>{i.isHide=!1,this.questionsArr.push(i)}),this.sectionsArr.push(o),o.sections?.forEach(i=>{this.sectionsArr.push(i),i.sections?.forEach(s=>{this.sectionsArr.push(s)})})}),e.name){const i=e.name.replace(/\d+$/,"").trim();this.pptName=i,console.log("PPT Name:",this.pptName)}this.isLoading=!1},e=>{this.isLoading=!1,console.error(e)})}getQuestionResponses(){if(this.pageLoader=!0,this.isFilter=!1,this.isComparison=!1,"tracker"==this.analyseMode)return localStorage.setItem("filterFlag",this.filterFlag.toString()),new Y.j(this.ss,this.toastrService).ngOnInit(),!1;this.filterFlag?(localStorage.setItem("filterFlag",this.filterFlag.toString()),this.SplitByQuestion()):this.ss.getQuestionResponses(localStorage.getItem("surveyId")).subscribe(e=>{this.pageLoader=!1,this.questionsArr=[];for(let o in e.questions){if(e.questions[o]._id=o,e.questions[o].isChecked=!1,this.isShowHide){const s=localStorage.getItem(`isHide_${e.questions[o].queIndex}`);s&&(e.questions[o].isHide=JSON.parse(s),e.questions[o].toggleVisible=!e.questions[o].isHide)}else e.questions[o].isHide=!1;this.questionsArr.push(e.questions[o]),this.showQuestionArr.push(o.toString())}this.questionsArr.sort((o,i)=>o.queIndex>i.queIndex?1:-1)},e=>{this.pageLoader=!1,console.error(e)})}Comparison(){this.isCompOpen=!0,this.isFilterOpen=!1,this.filterFlag?this.currentTab=4:this.changeFilterType("comparision"),this.isShowActive=!!this.isShowHide,"questionAnswer"==this.filterComparision&&(localStorage.removeItem("filterFlag"),this.ngOnInit(),this.currentTab=0,this.filterFlag=!1,this.isSelectNewQuestion=!1,this.questionText="",this.questionText1="",this.questionDetails=[],this.secQuestionDetails=[],this.firstSectionQuestions=[],this.secondSectionQuestions=[],this.questionArr=[],this.sectionId=void 0,this.firstSectionId=void 0,this.secondSectionId=void 0,this.questionId=void 0,this.questionId1=void 0,this.particientFilterActive=!0,this.isEditComparison=!1,this.changeFilterType("questionAnswer")),this.isFilterOpen&&this.goTo(),this.respocesactive=!1,this.isSidebarOpen=!0,this.comparisinVisible=!0,this.iscomparisonActive=!0,this.isFilterActive=!1,this.isFilterByCampiagin=!1,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.ExportpptActive=!1,this.isresponseActive=!1,this.particientFilterActive=!0,this.isCompareByCampiagin=!1,this.getComparisons()}goTo(){if(this.isFilter){this.isFilterActive=!0;let e=localStorage.getItem("filteroptionArray")?.split(",");e&&(this.optionArray=e)}else this.isFilterActive=!1;this.isSidebarOpen=!1,this.isEditFilter=!1}resetCompare(){this.removeComparison(),this.isCompareByCampiagin=!1,this.particientCompareActive=!1,this.compareObj.campaignDetails.fSection={sectionId:"",questionId:"",questionText:"",options:[]},this.compareObj.campaignDetails.secSection={sectionId:"",questionId:"",questionText:"",options:[]},this.compareObj.campaignDetails.isSecondSectionEnabled=!1,this.compareFirstQuestionArr=[],this.compareSecondQuestionArr=[],this.compareObj.step=1}getComparisons(){this.filterLoader=!0;let e=localStorage.getItem("surveyId");this.ss.getComparisons(e).subscribe(o=>{this.savedComparisonsArr=o,this.filterLoader=!1},o=>{this.filterLoader=!1,console.log(o)})}clearRecord(e){this.secQuestionDetails=[],this.secondSectionId=null,this.questionId1=null,this.questionText1="";let o=[];
1this.questionDetails.map(i=>{-1!=this.optionArray.indexOf(i.text)&&o.push(i.text)}),this.optionArray=o}showhidefun(){this.isFilterByCampiagin=!!this.isFilter,this.isCompareByCampiagin=!!this.isComparison,this.isFilterOpen?this.goTo():this.isCompOpen&&this.goTocomparison(),this.ExportpdfActive=!1,this.ExportpptActive=!1,this.isresponseActive=1==this.isShowResApply,this.respocesactive=!1,this.isSidebarOpen=!0,this.isShowActive=!0,this.particientFilterActive=!0}onchangeSection(e,o,i){this.sectionId=e,"first"==o?("Saved"!=i&&(this.questionId=void 0),this.firstSectionQuestions=[],this.sectionsArr.map(s=>{s._id==e&&s.questions.map(l=>{"Nominal"==l.type&&l._id!=this.questionId1&&this.firstSectionQuestions.push(l)})})):"second"==o?("Saved"!=i&&(this.questionId1=void 0),this.secondSectionQuestions=[],this.sectionsArr.map(s=>{s._id==e&&s.questions.map(l=>{"Nominal"==l.type&&l._id!=this.questionId&&this.secondSectionQuestions.push(l)})})):"filter"==o&&("Saved"!=i&&(this.questionId=void 0),this.questionArr=[],this.sectionsArr.map(s=>{s._id==e&&s.questions.map(l=>{"Nominal"==l.type&&this.questionArr.push(l)})}))}selectAll(){this.showhide=!1,this.questionsArr.forEach((e,o)=>{e.isHide=!1,this.questionsVisibility[e._id]=!0}),this.disableApply=!1}clearAll(){this.showhide=!0,this.questionsArr.forEach((e,o)=>{e.isHide=!0,this.questionsVisibility[e._id]=!1,this.disableApply=!0})}updateIsHideValue(e,o){this.questionsArr[e].isHide=o,localStorage.setItem(`isHide_${e}`,JSON.stringify(o))}onQuestionCheckboxChange(e,o){this.questionsArr.forEach(i=>{i._id===e&&(i.isHide=!o)}),this.disableApply=this.questionsArr.every(i=>i.isHide),this.questionsVisibility[e]=o}cancleShowHide(){this.questionsArr.forEach(e=>{e.toggleVisible=!0}),this.highchartFormatingService.callTriggerFunctionShowHide({type:"select-all"}),this.isShowActive=!1,this.clearShowHideRecord(),this.isSidebarOpen=!1,this.isShowHide=!1}showHideQuestions(){this.isShowHide=!0,this.questionsArr.forEach((e,o)=>{e.toggleVisible=!e.isHide}),this.isSidebarOpen=!1,this.highchartFormatingService.callTriggerFunctionShowHide({type:"random-select",questionsVisibility:this.questionsVisibility})}clearShowHideRecord(){this.selectAll(),this.questionsArr.forEach((e,o)=>{e.toggleVisible=!0,localStorage.removeItem(`isHide_${o}`)})}Exportpdf(){this.exportpdf=!0,this.isSidebarOpen=!0,this.ExportpdfActive=!0,this.ExportpptActive=!1,this.respocesactive=!1,this.isFilterActive=!1,this.isCompareByCampiagin=!!this.isComparison,this.isFilterByCampiagin=!!this.isFilter,this.particientFilterActive=!0,this.isShowActive=!!this.isShowHide,this.isresponseActive=1==this.isShowResApply}responces(){this.respocesactive=!0,this.isresponseActive=!0,this.isSidebarOpen=!0,this.isFilterActive=!1,this.isCompareByCampiagin=!!this.isComparison,this.isFilterByCampiagin=!!this.isFilter,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.particientFilterActive=!0,this.isShowActive=!!this.isShowHide}showParticientsTab(){this.particientFilterActive=!0,this.respocesactive=!1,this.isresponseActive=1==this.isShowResApply,this.isSidebarOpen=!0,this.comparisinVisible=!1,this.isFilterActive=!1,this.isCompareByCampiagin=!!this.isComparison,this.isFilterByCampiagin=!!this.isFilter,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.isShowActive=!!this.isShowHide}nextTab(){this.currentTab=this.currentTab+1,!this.isSelectNewQuestion&&this.isEditComparison&&this.isQuestionChanged&&(this.optionArray=[]),this.isQuestionChanged&&(this.optionArray=[],this.questionDetails.forEach(e=>{e.selected&&this.optionArray.push(e.text)}),this.secQuestionDetails.forEach(e=>{e.selected&&this.optionArray.push(e.text)}))}saveFilterEdit(){this.filterLoader=!0,this.isAppliedFilter=!0;let e={id:this.appliedId,surveyId:localStorage.getItem("surveyId"),questionId:this.questionId,sectionId:this.sectionId,secondQuestionId:this.questionId1,optionArray:this.optionArray,sortedOptions:this.optionArray,questionText:this.questionText};this.ss.saveFilter(e).subscribe(o=>{this.filterLoader=!1,this.isEditFilter=!1,this.SplitByQuestion()},o=>{this.filterLoader=!1,console.log(o)})}onSelectionChange(){console.log("Selection changed:",this.selectedItems),this.page=1,this.currentPage=0,this.getAllRespondents()}getAllRespondents(){this.pageLoader=!0,this.ss.getAllRespondents(localStorage.getItem("surveyId"),this.currentPage,this.pageSize,this.searchRecord,this.selectedItems).subscribe(e=>{this.showsearching=!0,this.pageLoader=!1,this.participientsArr=e.data,this.count=e.count},e=>{this.showsearching=!0,this.pageLoader=!1,console.error(e)})}onEditFilter(){this.isEditFilter=!0,this.currentTab=1}
1applyFilter(e){this.isCompOpen=!1,this.filterLoader=!0,this.ss.getSavedDetails(e).subscribe(o=>{this.filterLoader=!1,this.isAppliedFilter=!0,this.appliedDetails=o,this.appliedId=this.appliedDetails?._id,this.appliedTitle=this.appliedDetails?.title,this.sectionId=this.appliedDetails?.sectionId,this.questionId=this.appliedDetails?.questionId,this.questionText=this.appliedDetails?.questionText,this.questionId1=this.appliedDetails?.secondQuestionId,this.filteredOptions=this.appliedDetails?.optionArray,this.onchangeSection(this.sectionId,"filter","Saved"),this.onSelectQuestion(this.questionId,"filter");let i=this.appliedDetails?.optionArray;for(let s of i)this.onChange(s,!0);this.SplitByQuestion()},o=>{console.log(o),this.filterLoader=!1})}saveFilters(){this.filterLoader=!0;let e={surveyId:localStorage.getItem("surveyId"),questionId:this.questionId,sectionId:this.sectionId,secondQuestionId:this.questionId1,optionArray:this.optionArray,questionText:this.questionText,questionDetails:this.questionDetails,questionArr:this.questionArr,type:"Filter"};this.ss.saveFilter(e).subscribe(o=>{console.log(o),this.toastrService.success("Filter Saved Successfully!"),this.savedFiltersArr=o.data,this.filterLoader=!1,this.getFilters(),this.getComparisons(),console.log("this save filter name +++++ "+this.savedFiltersArr)},o=>{console.log(o),this.filterLoader=!1,this.toastrService.error(o)})}onChange(e,o){if(o)this.optionArray.push(e);else{let i=this.optionArray.indexOf(e);this.optionArray.splice(i,1)}}renameSaved(e,o,i){this.filterLoader=!0;let s={renameId:o,newTitle:i};if("filter"===e){const l=this.savedFiltersArr.find(a=>a._id===o);l&&(l.isRename=!0)}else if("comparison"===e){const l=this.savedComparisonsArr.find(a=>a._id===o);l&&(l.isRename=!0)}this.ss.renameSaved(s).subscribe(l=>{console.log(l),this.toastrService.success("Renamed successfully!"),this.filterLoader=!1,this.isRename=!1,this.renamedTitle="",this.getFilters(),this.getComparisons()},l=>{this.filterLoader=!1,console.log(l)})}enableRename(e){this.currentRenamedItem&&this.currentRenamedItem!==e&&(this.currentRenamedItem.isRename=!1),e.isRename=!0,this.currentRenamedItem=e}applyComparison(e){this.isFilterOpen=!1,this.isComparisonApplied=!0,this.isComparison=!0,this.optionArray=[],this.filterLoader=!0,this.ss.getSavedDetails(e).subscribe(o=>{this.filterLoader=!1,this.isAppliedFilter=!0,this.appliedDetails=o,this.appliedId=this.appliedDetails?._id,this.appliedTitle=this.appliedDetails?.title,this.questionId=this.appliedDetails?.questionId,this.questionId1=this.appliedDetails?.secondQuestionId,this.questionText=this.appliedDetails?.questionText,this.questionText1=this.appliedDetails?.questionText1,this.sectionId=this.appliedDetails?.sectionId,this.firstSectionId=this.appliedDetails?.sectionId,this.secondSectionId=this.appliedDetails?.secondSectionId,this.isSelectNewQuestion=this.appliedDetails?.secondQueAdded,this.questionDetails=this.appliedDetails?.questionDetails,this.secQuestionDetails=this.appliedDetails?.secQuestionDetails,this.optionArray=this.appliedDetails?.optionArray,this.onchangeSection(this.firstSectionId,"first","Saved"),this.onSelectQuestion(this.questionId,"first","Saved"),this.isSelectNewQuestion&&(this.onchangeSection(this.secondSectionId,"second","Saved"),this.onSelectQuestion(this.questionId1,"second","Saved")),this.SplitByQuestion()},o=>{console.log(o),this.filterLoader=!1})}deleteSaved(){let e={deleteId:this.deleteSavedId,surveyId:localStorage.getItem("surveyId")};console.log(this.appliedId),console.log(this.deleteSavedId),this.filterLoader=!0,this.ss.deleteSaved(e).subscribe(o=>{console.log(o),this.appliedId==this.deleteSavedId&&(this.goToOriginal(),this.clearComparisonRecord()),this.toastrService.success("Deleted successfully"),this.filterLoader=!1,this.getFilters(),this.getComparisons()},o=>{this.filterLoader=!1,console.log(o)})}onIdit(){this.currentTab=1,this.appliedTitle=null,this.isAppliedFilter=!1,console.log(this.questionDetails),console.log(this.secQuestionDetails)}goToOriginal(){this.currentTab=0,this.filterFlag=!1,this.questionText="",this.questionText1="",this.isSidebarOpen=!1,this.comparisinVisible=!1,this.isFilterActive=!1,this.optionArray=[],this.filteredOptions=[],this.questionDetail
1s=[],this.secQuestionDetails=[],this.firstSectionQuestions=[],this.secondSectionQuestions=[],this.questionArr=[],this.sectionId=void 0,this.questionId=void 0,this.questionId1=void 0,this.isEditComparison=!1,localStorage.removeItem("filterFlag"),this.ngOnInit(),this.appliedId="",this.isAppliedFilter=!1}checkDoubleCompValid(){if(this.isSelectNewQuestion){const e=this.questionDetails.some(i=>i.selected),o=this.secQuestionDetails.some(i=>i.selected);return!(e&&o)}return this.optionArray.length<2}checkCompQuesSelect(){let e=null==this.questionId;return this.isSelectNewQuestion&&(e=null==this.questionId1||null==this.questionId),e}onSelectQuotaOption(){this.queOptionsArr=this.questionDetails.options}selectedOptionValu(e){this.selectedOption=e}saveComparison(){this.filterLoader=!0;let e={surveyId:localStorage.getItem("surveyId"),questionId:this.questionId,sectionId:this.firstSectionId,optionArray:this.optionArray,questionText:this.questionText,type:"Comparison",questionDetails:this.questionDetails,questionArr:this.questionArr,firstSectionQuestions:this.firstSectionQuestions,secondQueAdded:this.isSelectNewQuestion};this.isSelectNewQuestion&&Object.assign(e,{questionText1:this.questionText1,secondQuestionId:this.questionId1,secondSectionId:this.secondSectionId,secQuestionDetails:this.secQuestionDetails,secondSectionQuestions:this.secondSectionQuestions}),this.ss.saveFilter(e).subscribe(o=>{console.log(o),this.toastrService.success("Comparison Saved Successfully!"),this.savedComparisonsArr=o.data,console.log(this.savedComparisonsArr),this.filterLoader=!1,this.getFilters(),this.getComparisons()},o=>{console.log(o),this.filterLoader=!1,this.toastrService.error(o)})}saveComparisonEdit(){this.filterLoader=!0,this.isAppliedFilter=!0;let e={id:this.appliedId,surveyId:localStorage.getItem("surveyId"),questionId:this.questionId,sectionId:this.firstSectionId,secondQuestionId:this.questionId1,optionArray:this.optionArray,sortedOptions:this.optionArray,questionText:this.questionText,questionText1:this.questionText1,questionDetails:this.questionDetails,firstSectionQuestions:this.firstSectionQuestions,secondSectionId:this.secondSectionId,secondQueAdded:this.isSelectNewQuestion,secQuestionDetails:this.secQuestionDetails,secondSectionQuestions:this.secondSectionQuestions};this.ss.saveFilter(e).subscribe(o=>{this.filterLoader=!1,this.isEditFilter=!1,console.log(o),this.SplitByQuestion()},o=>{this.filterLoader=!1,console.log(o)})}globalChangeResponseType(e,o){if(this.isComparison){for(let i=0;i<e.length;i++)o&&this.comparsionChangeScale(o,e[i],i);return!1}for(let i=0;i<e.length;i++){let s=e[i];this.percentStatus="percent"==this.selectedGlobalResponse,(0==s?.isNpsQuestion||!s?.isNpsQuestion)&&(s.isChecked?setTimeout(()=>{if("Text Based"!==s.type&&"Autocomplete text"!==s.type){let a={questions:[],responses:[]};if("count"==this.selectedGlobalResponse){let c={name:"Response",colorByPoint:!0,data:[]};for(const _ in s.options)a.questions.push(_),c.data.push({name:_,y:s.options[_]}),console.log(a);a.responses.push(c),p.charts[i].destroy();let d=this.highchartFormatingService.formatpiechart(a);p.charts[i]=p.chart(`barChart_${s._id}`,d)}else{let c=0;c=s.totalResponses;let d=0;for(const g in s.options)d+=s.options[g];let _={name:"Response",colorByPoint:!0,data:[]};for(const g in s.options){let m;a.questions.push(g),m=s.isMultiChoice?100*s.options[g]/c:100*s.options[g]/d,m=m%1>=.5?Math.ceil(m):Math.floor(m),_.data.push({name:g,y:m}),console.log(a)}a.responses.push(_),p.charts[i].destroy();let h=this.highchartFormatingService.getPieChartOptionsWithPercentage(a);p.charts[i]=p.chart(`barChart_${s._id}`,h)}}},2e3):setTimeout(()=>{if("Text Based"!==s.type&&"Multiple-choice grid"!==s.type&&"Tick box grid"!==s.type&&"Autocomplete text"!==s.type){let a={questions:[],responses:[]};if("count"==this.selectedGlobalResponse){for(const c in s.options){a.questions.push(c);let d={type:"column",name:c,data:[]};d.data.push([s.options[c]]),a.responses.push(d)}if(l=p.charts[i]){l.destroy();let c=this.highchartFormatingService.getbarchart(a);p.charts[i]=p.chart(`barChart_${s._id}`,c)}}else{let c=0;c=s.totalResponses;let d=0;for(const h in s.options)d+=s.options[h];for(const h in s.options){a.questions.push(h);let m,g={type:"column",name:h,data:[]};m=s.isMultiChoice?100*s.options[h]/c:100*s.options[h]/d,m=m%1>=.5?Math.ceil(m):Math.floor(m),g.data.push([m]),a.responses.push(g)}(l=p.charts[i]).destroy();let u=this.highchartFormatingService.formatbarchartconfig(a,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,u)}}if("Multiple-choice grid"==s.type||"Tick box grid"==s.type){var l;if((l=p.charts[i]).destroy(),"count"!=this.selectedGlobalResponse){let c=this.highchartFormatingService.formatGridQuestionToPercentage(s,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,c)}if("count"==this.selectedGlobalResponse){let c=this.highchartFormatingService.formatGridQuestionToCout(s,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,c)}}},2e3))}}
1comparsionChangeScale(e,o,i){if(console.log(e,o),"Multiple-choice grid"==o?.type||"Tick box grid"==o?.type)"percent"==e||"percent auto"==e?(p.charts[i].destroy(),p.charts[i]=p.chart(`barChart_${this.questionsArr[+i].queId}`,this.highchartFormatingService.formatGridQuestionToPercentageComparision(this.questionsArr[i],"percent"==e))):(p.charts[i].destroy(),p.charts[i]=p.chart(`barChart_${this.questionsArr[+i].queId}`,this.highchartFormatingService.formatGridQuestionToCoutComparision(this.questionsArr[i],this.scaleType)));else{let l=0;if("percent"==e||"percent auto"==e){o.series.map(_=>{_.data.map(u=>{l+=u})});let a=[];o.series.map(_=>{a.push({name:_.name,data:[]})});let c=[],d=o.series[0].data.length;for(let _=0;_<d;_++){let u=0;o.series.map(h=>{u+=h.data[_]}),c.push(u)}o.series.map(_=>{_.data.map((u,h)=>{let g=Math.round(100*u/c[h]);a.map(m=>{m.name==_.name&&m.data.push(Number.isNaN(g)?0:g)})})}),console.log(c),console.log(a),console.log(l)}}}SplitByQuestion(){this.filterFlag=!0,this.isFilterApplied=!0,this.currentTab=4,localStorage.setItem("filterFlag",this.filterFlag.toString()),localStorage.setItem("isComparison",this.isComparison.toString()),localStorage.setItem("filterquestionId",this.questionId),localStorage.setItem("filterType",this.filterComparision),localStorage.setItem("filteroptionArray",this.optionArray.toString()),console.log(this.questionDetails),console.log(this.optionArray),this.isLoading=!1;let e={surveyId:localStorage.getItem("surveyId"),questionId:this.questionId,secondQuestionId:this.questionId1,optionArray:this.optionArray};if(1==this.isFilterByCampiagin&&(e={surveyId:localStorage.getItem("surveyId"),questionId:this.filterObj?.questionId,secondQuestionId:null,optionArray:this.filterObj.options?.filter(o=>1==o?.isSelected)}),this.pageLoader=!0,this.questionsArr=[],"questionAnswer"==this.filterComparision&&(this.isFilter=!0,"ResultsComponent"==this.compoentName?this.highchartFormatingService.callComponentAFunction(e):"TrendsComponent"==this.compoentName&&this.highchartFormatingService.callComponentAFunctionTrends(e)),"comparision"==this.filterComparision){if(this.optionArray.length<2)return this.toastrService.error("Please select a minimum of two options for comparison."),!1;localStorage.setItem("compIsSelectNew",this.isSelectNewQuestion.toString()),localStorage.setItem("compFirstSectionId",this.firstSectionId),localStorage.setItem("compSecondSectionId",this.secondSectionId),localStorage.setItem("compQuestionId1",this.questionId1),this.questionsArr=[],this.isComparison=!0,this.pageLoader=!0,"ResultsComponent"==this.compoentName&&this.highchartFormatingService.triggerComparisionFunction(e)}}changeResponseType(e,o){this.selectedGlobalResponse=o,"ResultsComponent"==this.compoentName&&this.highchartFormatingService.triggerChangeScale(e,o),this.isShowResApply=!0}get allSectionsOptions(){return this.sectionsArr!==this._allSectionsOptionsSrc&&(this._allSectionsOptionsSrc=this.sectionsArr,this._allSectionsOptionsCache=[{_id:"all",title:"All"},...this.sectionsArr||[]]),this._allSectionsOptionsCache}get secondCampaignOptions(){const e=this.deploymentsArr?.length+"|"+this.compareObj?.firstCampaignName;return e!==this._secondCampaignOptionsKey&&(this._secondCampaignOptionsKey=e,this._secondCampaignOptionsCache=(this.deploymentsArr||[]).filter(o=>o.campaignName!==this.compareObj?.firstCampaignName)),this._secondCampaignOptionsCache}filterResponses(e){this.setValues("participent",{type:e}),this.allSurveyResponses=e,"ResultsComponent"==this.compoentName?this.highchartFormatingService.triggerShowResponsesasFunction(this.allSurveyResponses):"TrendsComponent"==this.compoentName&&this.highchartFormatingService.triggerShowResponsesasFunctionTrends(this.allSurveyResponses),this.removeFilterToTab(),this.removeComparisonToTab(),this.isShowHide&&(this.cancleShowHide(),this.isSidebarOpen=!0),this.selectedGlobalResponse="percent",this.isresponseActive=!1}setValues(e,o){sessionStorage.setItem(e,JSON.stringify(o))}getValues(e){let o=sessionStorage.getItem(e);return o?JSON.parse(o):null}setAllValues(){let e=this.getValues("participent");e&&(this.allSurveyResponses=e.type,this.particientFilterActive=!0,this.highchartFormatingService.participentFilter=this.allSurveyResponses,("ResultsComponent"==this.compoentName||"TrendsComponent"==this.compoentName)&&this.highchartFormatingService.triggerShowResponsesasFunction(this.allSurveyResponses))}onActivate(e){console.log("Activated component:",this.compoentName)}getSvg(){var e=this;return(0,A.A)(function*(){"ResultsComponent"==e.compoentName?e.highchartFormatingService.triggerExportpdfFunction():"TrendsComponent"==e.compoentName&&e.highchartFormatingService.triggerExportpdfFunctionTrends()})()}getAllDeploycampigns(){this.ss.getAllcampigns(localStorage.getItem("surveyId")).subscribe(e=>{e&&e.data&&(this.deploymentsArr=e.data.map(o=>"string"==typeof o?{campaignName:o}:o))})}openFilter(){this.particientFilterActive=!0,this.isFilterByCampiagin=!0,this.respoce
1sactive=!1,this.isSidebarOpen=!0,this.isFilterActive=!0,this.iscomparisonActive=!1,this.isCompareByCampiagin=!!this.isComparison,this.isShowActive=!!this.isShowHide,this.isresponseActive=1==this.isShowResApply,this.ExportpdfActive=!1,this.ExportpptActive=!1}onSelectSection(e){this.filterObj.sectionId=e,this.filterObj.questionId="",this.questionArr=[],this.sectionsArr.map(o=>{o._id==e&&o.questions.map(i=>{"Nominal"==i.type&&this.questionArr.push(i)})})}onSelectQuestionForFilter(e){this.filterObj.questionId=e,this.filterObj.options=[],this.questionArr.map(o=>{o._id==e&&(this.filterObj.questionText=o?.text,o.options?.map(i=>{this.filterObj.options.push({isSelected:!1,value:i,text:i})}))})}selectOption(e){let o=[];this.filterObj.options?.map(i=>{1==i?.isSelected&&o.push(i)}),this.filterObj.enableApplyBtn=0!=o?.length}onClickApplyFilter(){this.removeComparisonToTab(),this.isShowHide&&this.cancleShowHide(),this.isFilterByCampiagin=!0,this.isFilter=!0,this.selectedGlobalResponse="percent",this.isresponseActive=!1;let e={sectionId:this.filterObj?.sectionId,campaignName:this.filterObj?.campaignName,surveyId:localStorage.getItem("surveyId"),questionId:this.filterObj?.questionId,secondQuestionId:null,optionArray:this.filterObj.options?.filter(o=>1==o?.isSelected)};e.optionArray=e?.optionArray?.map(o=>o?.value),"ResultsComponent"==this.compoentName?this.highchartFormatingService.callComponentAFunction(e):"TrendsComponent"==this.compoentName&&this.highchartFormatingService.callComponentAFunctionTrends(e)}removeFilter(){this.filterObj={step:1,campaignName:"all",sectionId:"",questionId:"",options:[],questionText:"",enableApplyBtn:!1,title:"",type:"filter"},this.appliedFilterTitle="",console.log("removeFilter calling with allSurveyResponses = ",this.allSurveyResponses),"ResultsComponent"==this.compoentName?this.highchartFormatingService.triggerShowResponsesasFunction(this.allSurveyResponses):"TrendsComponent"==this.compoentName&&this.highchartFormatingService.triggerShowResponsesasFunctionTrends(this.allSurveyResponses),this.isFilter=!1}removeFilterToTab(){this.filterObj={step:1,campaignName:"all",sectionId:"",questionId:"",options:[],questionText:"",enableApplyBtn:!1,title:"",type:"filter"},this.isFilter=!1,this.isFilterByCampiagin=!1}saveNewFilters(){this.filterLoader=!0;let e=this.filterObj;e.step=4,e.surveyId=localStorage.getItem("surveyId"),this.ss.saveFilter(e).subscribe(o=>{console.log(o),o&&400!=o?.status?this.toastrService.success("Filter Saved Successfully!"):this.toastrService.error(o?.message),this.filterLoader=!1,this.getFilters()},o=>{console.log(o),this.filterLoader=!1,this.toastrService.error(o)})}applyExstingFilter(e){this.onSelectSection(e?.sectionId),this.filterObj=e,this.appliedFilterTitle=e.title,console.log(this.appliedFilterTitle),this.onClickApplyFilter()}onClickSaveAndApplyFilter(){this.saveNewFilters(),this.onClickApplyFilter()}openCompare(){this.getComparisons(),this.isSidebarOpen=!0,this.isCompareByCampiagin=!0,this.particientCompareActive=!0,this.respocesactive=!1,this.isFilterActive=!1,this.iscomparisonActive=!1,this.isShowActive=!1,this.ExportpdfActive=!1,this.ExportpptActive=!1,this.particientFilterActive=!0,this.isFilterByCampiagin=!!this.isFilter,this.isShowActive=!!this.isShowHide,this.isresponseActive=1==this.isShowResApply}setCampgainName(e){e||(this.compareObj.isSecondCampiaginEnabled=!1,this.compareObj.secondCampaignName="",this.compareObj.campaignDetails.secSection={sectionId:"",questionId:"",options:[],questionText:""},this.compareObj.campaignDetails.isSecondSectionEnabled=!1)}onSelectFirstSectionForCompare(e,o){"first"==o&&(this.compareObj.campaignDetails.fSection.sectionId=e,this.compareObj.campaignDetails.fSection.questionId="",this.compareObj.campaignDetails.secSection={sectionId:"",questionId:"",options:[],questionText:""},this.compareObj.campaignDetails.isSecondSectionEnabled=!1,this.compareFirstQuestionArr=[],this.compareSecondQuestionArr=[],this.sectionsArr.map(i=>{i._id==e&&i.questions.map(s=>{"Nominal"==s.type&&this.compareFirstQuestionArr.push(s)})})),"second"==o&&(this.compareObj.campaignDetails.secSection.sectionId=e,this.compareObj.campaignDetails.secSection.questionId="",this.compareSecondQuestionArr=[],this.sectionsArr.map(i=>{i._id==e&&i.questions.map(s=>{"Nominal"==s.type&&(this.compareSecondQuestionArr.push(s),console.log("this is second array",this.compareSecondQuestionArr))})}))}onSelectFirstQuestionForCompare(e,o){"first"==o&&(this.compareObj.campaignDetails.fSection.questionId=e,this.compareObj.campaignDetails.fSection.options=[],this.compareFirstQuestionArr.map(i=>{i._id==e&&(this.compareObj.campaignDetails.fSection.questionText=i?.text,i.options?.map(s=>{this.compareObj.campaignDetails.fSection.options.push({isSelected:!1,value:s,text:s})}
1))}),this.compareObj.campaignDetails.isSecondSectionEnabled||(this.compareObj.campaignDetails.secSection={sectionId:"",questionId:"",options:[],questionText:""},this.compareSecondQuestionArr=[])),"second"==o&&(this.compareObj.campaignDetails.secSection.questionId=e,this.compareObj.campaignDetails.secSection.options=[],this.compareSecondQuestionArr.map(i=>{i._id==e&&(this.compareObj.campaignDetails.secSection.questionText=i?.text,i.options?.map(s=>{this.compareObj.campaignDetails.secSection.options.push({isSelected:!1,value:s,text:s})}))}))}updateSecondOptionsIfSameQuestion(){const e=this.compareObj.campaignDetails.fSection,o=this.compareObj.campaignDetails.secSection;if(e?.questionId&&o?.questionId&&e.questionId===o.questionId){const i=e.options.filter(s=>!s.isSelected);this.compareObj.campaignDetails.secSection.options=i.map(s=>({...s,isSelected:!1}))}}isSameQuestionSelected(){const e=this.compareObj?.campaignDetails?.fSection?.questionId,o=this.compareObj?.campaignDetails?.secSection?.questionId;return!(!e||!o||e!==o)}allSecondOptionsHidden(e){const o="first"===e?this.compareObj?.campaignDetails?.fSection?.options:this.compareObj?.campaignDetails?.secSection?.options;return!(!o?.length||!o.every(i=>i.isHidden))}removeAnotherQuestion(e){if(!e){const o=this.compareObj?.campaignDetails?.fSection;o?.options?.length&&o.options.forEach(s=>{s.isSelected=!1,s.isHidden=!1}),this.compareObj.campaignDetails.secSection={sectionId:"",questionId:"",options:[],questionText:""},this.compareObj.campaignDetails.isSecondSectionEnabled=!1,this.compareObj.enableApplyBtn=!1}}applyComparisonByCampagin(){this.isShowHide&&this.cancleShowHide(),this.isComparison=!0,this.selectedGlobalResponse="percent",this.isresponseActive=!1;let e={};const o=localStorage.getItem("surveyId");if(this.compareObj.campaignDetails.isSecondSectionEnabled&&this.isSameQuestionSelected()){const s=this.compareObj.campaignDetails.fSection.options.map((d,_)=>d.isSelected?_+1:null).filter(d=>null!==d),l=this.compareObj.campaignDetails.secSection.options.map((d,_)=>d.isSelected?_+1:null).filter(d=>null!==d),a=this.compareObj.campaignDetails.fSection.options.filter(d=>d.isSelected).map(d=>
1d.value),c=this.compareObj.campaignDetails.secSection.options.filter(d=>d.isSelected).map(d=>d.value);return e={surveyId:o,questionId:this.compareObj.campaignDetails.fSection.questionId,secondquestionId:this.compareObj.campaignDetails.secSection.questionId,firstQOpts:s,secodQOpts:l,firstStringOpts:a,secStringOpts:c,isCompareOneWithOtherOption:!0},this.highchartFormatingService.triggerComparisionFunction(e),void this.removeFilterToTab()}if(this.compareObj.campaignDetails.fSection.options.filter(s=>s.isSelected).map(s=>s.value),e={firstCampaignName:this.compareObj?.firstCampaignName,secondCampaignName:this.compareObj?.isSecondCampiaginEnabled?this.compareObj?.secondCampaignName:"",surveyId:localStorage.getItem("surveyId"),questionId:this.compareObj?.campaignDetails.fSection?.questionId,secondQuestionId:null,optionArray:this.compareObj?.campaignDetails.fSection?.options?.filter(s=>1==s?.isSelected)},e.optionArray=e?.optionArray?.map(s=>s?.value),1==this.compareObj?.campaignDetails?.isSecondSectionEnabled){e.secondQuestionId=this.compareObj?.campaignDetails.secSection?.questionId;let s=this.compareObj?.campaignDetails.secSection?.options?.filter(l=>1==l?.isSelected);s=s?.map(l=>l?.value),e.optionArray=[...e.optionArray,...s]}"ResultsComponent"==this.compoentName&&this.highchartFormatingService.triggerComparisionFunction(e),this.removeFilterToTab()}removeComparison(){this.compareFirstQuestionArr=[],this.compareSecondQuestionArr=[],this.compareObj={step:1,type:"comparison",isSecondCampiaginEnabled:!1,enableApplyBtn:!1,firstCampaignName:"all",secondCampaignName:"",campaignDetails:{isSecondSectionEnabled:!1,fSection:{sectionId:"",questionId:"",options:[],questionText:""},secSection:{sectionId:"",questionId:"",options:[],questionText:""}}},"ResultsComponent"==this.compoentName?this.highchartFormatingService.triggerShowResponsesasFunction(this.allSurveyResponses):"TrendsComponent"==this.compoentName&&this.highchartFormatingService.triggerShowResponsesasFunctionTrends(this.allSurveyResponses),this.isComparison=!1}removeComparisonToTab(){this.compareObj={step:1,type:"comparison",isSecondCampiaginEnabled:!1,enableApplyBtn:!1,firstCampaignName:"all",secondCampaignName:"",campaignDetails:{isSecondSectionEnabled:!1,fSection:{sectionId:"",questionId:"",options:[],questionText:""},secSection:{sectionId:"",questionId:"",options:[],questionText:""}}},this.isComparison=!1,this.isCompareByCampiagin=!1}saveNewComparison(){this.filterLoader=!0;let e=this.compareObj;e.type="comparison",e.step=4,e.surveyId=localStorage.getItem("surveyId"),this.ss.saveFilter(e).subscribe(o=>{o&&400!=o?.status?this.toastrService.success("Comparion Saved Successfully!"):this.toastrService.error(o?.message),this.filterLoader=!1,this.getComparisons()},o=>{console.log(o),this.filterLoader=!1,this.toastrService.error(o)})}comparisionByCampaign(){this.isComparison=!0,this.selectedGlobalResponse="percent",this.isresponseActive=!1;let e={firstCampaignName:this.compareObj?.firstCampaignName,secondCampaignName:this.compareObj?.isSecondCampiaginEnabled?this.compareObj?.secondCampaignName:"",isSecondCampiaginEnabled:!0,surveyId:localStorage.getItem("surveyId")};"ResultsComponent"==this.compoentName&&this.highchartFormatingService.triggerComparisionFunction(e),this.removeFilterToTab()}applyExstingComparison(e){if(this.isComparison=!0,1==e?.isSecondCampiaginEnabled)return this.compareObj=e,void this.comparisionByCampaign();this.onSelectFirstSectionForCompare(e?.campaignDetails?.fSection?.sectionId,"first"),e?.campaignDetails.isSecondSectionEnabled&&this.onSelectFirstSectionForCompare(e?.campaignDetails?.secSection?.sectionId,"second"),this.compareObj=e,this.applyComparisonByCampagin()}onClickSaveAndApplyComparisonByCampagin(){this.isComparison=!0,this.saveNewComparison(),this.applyComparisonByCampagin()}updateHideOptionsIfSameQuestion(){const e=this.compareObj.campaignDetails.fSection,o=this.compareObj.campaignDetails.secSection;if(!e||!o)return;if(e.questionId!==o.questionId)return e.options.forEach(l=>l.isHidden=!1),void o.options.forEach(l=>l.isHidden=!1);const i=o.options.filter(l=>
1l.isSelected).map(l=>l.value),s=e.options.filter(l=>l.isSelected).map(l=>l.value);e.options.forEach(l=>{l.isHidden=i.includes(l.value)}),o.options.forEach(l=>{l.isHidden=s.includes(l.value)})}onselectOptionCompare(e,o){this.updateHideOptionsIfSameQuestion();let i=[];if(this.compareObj.campaignDetails?.fSection?.options?.map(s=>{1==s?.isSelected&&i.push(s)}),1==this.compareObj.campaignDetails?.isSecondSectionEnabled){let s=[];this.compareObj.campaignDetails?.secSection?.options?.map(l=>{1==l?.isSelected&&s.push(l)}),this.compareObj.enableApplyBtn=0!=i?.length&&0!=s?.length}else this.compareObj.enableApplyBtn=i?.length>1}onApplyFilterByCampaign(){}generatepptdata(){this.ss.generateppt({surveyId:localStorage.getItem("surveyId")}).subscribe(e=>{console.log("jfhrjfer",e)},e=>{console.error(e)})}Exportppt(){this.exportppt=!0,this.isSidebarOpen=!0,this.ExportpdfActive=!1,this.respocesactive=!1,this.isFilterActive=!1,this.ExportpptActive=!0,this.isCompareByCampiagin=!!this.isComparison,this.isFilterByCampiagin=!!this.isFilter,this.particientFilterActive=!0,this.isShowActive=!!this.isShowHide,this.isresponseActive=1==this.isShowResApply}generatePpt(){this.ss.generateppt({surveyId:localStorage.getItem("surveyId")}).subscribe(e=>{console.log("PPTX Generation Response: ",e);const o=new ot.A,l=g=>{g.addImage({path:"/assets/icons/MadeUsingMerren.png",x:9,y:5,w:1.3,h:1})},a=(g,m,f)=>{const x=m.split(/(\*\*.*?\*\*)/g).map(b=>{if(!b)return{text:""};const F=b.startsWith("**")&&b.endsWith("**");return{text:F?b.slice(2,-2):b,options:{bold:F}}});g.addText([{text:"\u2022 ",options:{bold:!1}
1},...x],{x:.5,y:f,w:8,valign:"top",fontSize:14,color:"363636",lineSpacing:16})},c=o.addSlide();l(c),c.addText(this.pptName,{x:0,y:2.5,w:"100%",align:"center",fontSize:32,bold:!0,color:"203864"});let d=e.overall_summary?.summary?.replace(/(\d+)\.\s+/g,"\n$1. ").split("\n").map(g=>g.trim().replace(/^-+\s*/,"")).filter(g=>""!==g.trim()),_=o.addSlide();l(_),_.addText("Overall Summary",{x:.5,y:1,fontSize:20,bold:!0,color:"203864"});let u=1.5;d.forEach(g=>{let m=g.length/80*.2+.2;u+m>6&&(_=o.addSlide(),l(_),_.addText("Overall Summary (contd.)",{x:.5,y:1,fontSize:20,bold:!0,color:"203864"}),u=1.2),a(_,g,u),u+=m+.03}),e.slides.forEach(g=>{let m=o.addSlide();l(m),m.addText(g?.heading,{x:.5,y:1,w:8,fontSize:18,bold:!0,color:"203864"});let f=1.5;if(g.summary.replace(/(\d+)\.\s+/g,"\n$1. ").split("\n").map(x=>x.trim()?.replace(/^-+\s*/,"")).filter(x=>""!==x.trim()).forEach(x=>{let b=x.length/80*.3+.2;f+b>6&&(m=o.addSlide(),l(m),m.addText(g.heading+" (contd.)",{x:.5,y:1,w:8,fontSize:18,bold:!0,color:"203864"}),f=1.5),a(m,x,f),f+=b+.03}),g.quotes?.length){let b=.4;f+.4+g.quotes.length*b>6&&(m=o.addSlide(),l(m),m.addText(g.question,{x:.5,y:1,w:8,fontSize:18,bold:!0,color:"203864"}),f=2),g.quotes.forEach(F=>{f+b>6&&(m=o.addSlide(),l(m),m.addText(g.question,{x:.5,y:1,w:8,fontSize:18,bold:!0,color:"203864"}),f=2),m.addText(`\u2022 ${F}`,{x:.7,y:f,w:8,fontSize:12,color:"595959",italic:!0}),f+=.45})}});const h=o.addSlide();l(h),h.addText("Thank You!",{x:0,y:2.5,w:"100%",align:"center",fontSize:36,bold:!0,color:"203864"}),o.writeFile({fileName:this.pptName})})}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(T.I),t.rXU(k.Ix),t.rXU(q.tw),t.rXU(N.F),t.rXU(L.I))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-reports"]],decls:32,vars:5,consts:[["closeModal",""],["filterInput",""],["applyButton",""],[1,"row","col-sm-12","p-0"],["id","printResultPdf",1,"col-sm-12","pr-0"],[3,"pageTitle"],[1,"col-sm-12","row","mr-0",2,"border-top","1px solid #272B37"],[3,"ngClass"],[1,"rp-tab-bar","mt-2"],["role","tablist",1,"rp-tabs"],["role","presentation",1,"rp-tab-item"],["routerLink","/survey/survey-reports/results","routerLinkActive","rp-tab-active",1,"rp-tab-link"],[1,"fa","fa-bar-chart","rp-tab-icon"],["routerLink","/survey/survey-reports/trends","routerLinkActive","rp-tab-active",1,"rp-tab-link"],[1,"fa","fa-line-chart","rp-tab-icon"],["routerLink","/survey/survey-reports/respondents","routerLinkActive","rp-tab-active",1,"rp-tab-link"],[1,"fa","fa-users","rp-tab-icon"],[1,"col-sm-12","p-0","componentfull"],[3,"activate"],["class","col-sm-3 sidebar d-flex rightsidebarfull pl-0 mt-4 pt-0 pr-0 mr-0",3,"ngClass",4,"ngIf"],["id","deleteSaved","data-bs-backdrop","static","tabindex","-1","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-content","formWrapper","noBg","bg-white"],[1,"modal-body","d-flex","flex-column","justify-content-between","align-items-center","text-center","py-4"],[1,"pb-4","text-danger"],["className","btn-outline-primary text-uppercase btnClose mr-1","btnLabel","close","data-bs-dismiss","modal"],["className","btn-danger text-uppercase ml-2","btnLabel","Delete","data-bs-dismiss","modal",3,"click"],[1,"col-sm-3","sidebar","d-flex","rightsidebarfull","pl-0","mt-4","pt-0","pr-0","mr-0",3,"ngClass"],[1,"rightsidebar","pt-0",3,"ngClass"],[1,"px-3","py-2","mt-4",3,"click","ngClass"],["alt","",2,"height","20px",3,"src"],[1,"px-3","py-2","mt-2",3,"click","ngClass"],[1,"px-3","py-2","mt-2","d-none",3,"click","ngClass"],["class","px-3 py-2",3,"ngClass","click",4,"ngIf"],["class","px-3 py-2 d-none",3,"ngClass","click",4,"ngIf"],["class","px-3 py-2 mt-3",3,"ngClass","click",4,"ngIf"],[1,"px-3","py-2","mt-3",3,"click","ngClass"],["class","col-sm-10 p-0",4,"ngIf"],[1,"px-3","py-2",3,"click","ngClass"],["alt","",2,"height","20px","width","18px",3,"src"],[1,"px-3","py-2","d-none",3,"click","ngClass"],[1,"col-sm-10","p-0"],["class","filter p-0",4,"ngIf"],["class","filter p-0 sh-panel","style","min-height:88vh",4,"ngIf"],["class","filter p-0","style","min-height:88vh",4,"ngIf"],[1,"filter","p-0"],[1,"col-sm-12","border-bottom","p-0",2,"margin-right","0px"],[1,"p-3","border-bottom","title",2,"display","flex","justify-content","space-between","align-items","center"],[2,"margin-left","-3px"],["src","../../../../assets/icons/closed.png","title","close","alt","",1,"closeicon",2,"cursor","pointer",3,"click"],["class","col-sm-12 border-bottom p-3",4,"ngIf"],["class","col-sm-12 p-3 border-bottom",4,"ngIf"],[1,"col-sm-12","p-3"],[1,"saved-filter-header"],["for","",1,"spansize"],[1,"saved-filter-max"],["class","col-sm-12",4,"ngIf"],["class","d-flex align-items-center justify-content-center contents","style","font-weight: 400; margin:3rem; font-size: 16px; color: #898989",4,"ngIf"],[4,"ngIf"],[1,"col-sm-12","border-bottom","p-3"],[1,"form-group","m-0","py-2"],["for","exampleFormControlSelect1campaign",1,"spansize"],[1,"text-danger"],["appearance","outline",1,"campaign-select-field","custom-dropdown","custom-border-color"],[3,"valueChange","value"],["value","all",3,"selected"],[3,"value",4,"ngFor","ngForOf"],[1,"col-sm-12","text-left","px-0","pt-3","mr-4"],["type","button",1,"btn","px-3","btn-outline-primary","m-0",3,"click"],["type","button",1,"btn","px-3","btn-primary","m-3",3,"click","disabled"],[3,"value"],[1,"ellipsis-text",3,"title","selected"],["for","exampleFormControlSelect1"],["bindLabel","title","bindValue","_id","placeholder","Select section",1,"rp-native-select",3,"ngModelChange","change","appendTo","items","clearable","searchable","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],["class","form-group m-0 py-2",4,"ngIf"],["type","button","class","btn px-3 btn-primary m-3",3,"disabled","click",4,"ngIf"],["bindLabel","text","bindValue","_id","placeholder","Select question",1,"rp-native-select",3,"ngModelChange","change","appendTo","items","clearable","searchable","ngModel"],[1,"col-sm-12","p-3","border-bottom"],["class","form-check",4,"ngFor","ngForOf"],[1,"col-sm-12","py-3","px-0","text-left","mr-5"],[1,"form-check"],["type","checkbox",1,"form-check-input",2,"width","17px","height","17px",3,"change","name","id","value","checked"],[1,"form-check-label",3,"for"],[1,"af-label"],[1,"af-card"],[1,"af-value"],[1,"af-menu-wrap"],["role","button","type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"filter-more","af-dots"],["src","../../../../assets/icons/more.svg","alt",""],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-right","dropdown-menu-lg-left"],["class","dropdown-item py-3","role","button",3,"click",4,"ngIf"],["role","button",1,"dropdown-item","py-3",3,"click"],[1,"col-sm-12"],["id","filterLoader",1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"sr-only"],[1,"d-flex","align-items-center","justify-content-center","contents",2,"font-weight","400","margin","3rem","font-size","16px","color","#898989"],["class","m-0 py-2",4,"ngFor","ngForOf"],[1,"m-0","py-2"],[1,"section-box",3,"ngClass"],[1,"section-header"],["type","text","maxLength","30",1,"filter-input","section-box",2,"text-overflow","ellipsis",3,"ngModelChange","keyup.enter","focus","disabled","ngModel"],["role","button","type","button","id","dropdownMenuButton","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","fal
1se",1,"filter-more"],["aria-labelledby","dropdownMenuButton",1,"dropdown-menu","dropdown-menu-sm-down"],["role","button",1,"dropdown-item",3,"click"],["role","button","data-bs-toggle","modal","data-bs-target","#deleteSaved",1,"dropdown-item",3,"click"],["class","col-sm-12 border-bottom bootmClassbg row p-3 m-0",4,"ngIf"],["for",""],[2,"display","inline","text-align","end","float","right","color","#7e7b7b"],["type","button",1,"btn","px-3","btn-outline-primary",3,"click"],[4,"ngIf","ngIfElse"],["type","button",1,"btn","px-3","btn-primary","m-2",3,"click","disabled"],[1,"col-sm-12","border-bottom","bootmClassbg","row","p-3","m-0"],[1,"col-sm-12","p-0"],[2,"color","#f79522","font-weight","500","display","inline-block"],["style","font-weight: 500; display: inline-block; margin-left: 10px;",4,"ngIf"],[1,"col-sm-12","row","p-0","m-0"],[1,"col-sm-2","pl-4","pr-0"],[1,"pl-4"],[4,"ngFor","ngForOf"],[2,"font-weight","500","display","inline-block","margin-left","10px"],["class","col-sm-12 border-bottom bootmClassbg row m-0",4,"ngIf"],["class","d-flex align-items-center justify-content-center contents","style","font-weight: 400; margin:2rem; font-size: 16px; color: #898989",4,"ngIf"],["for","firstCampaignName"],["value","all"],[1,"ellipsis-text",3,"title"],["type","checkbox","value","","id","campdefaultCheck1",1,"form-check-input",2,"height","18px","width","18px",3,"change","checked"],["for","campdefaultCheck1",1,"form-check-label","pl-3",2,"vertical-align","middle"],["class","mt-3",4,"ngIf"],[1,"mt-3"],["for","secondCampaignName"],["bindLabel","campaignName","bindValue","campaignName","placeholder","Select Campaign",1,"rp-native-select",3,"ngModelChange","appendTo","items","clearable","searchable","ngModel"],["for","exampleFormControlSelect11"],["for","exampleFormControlSelect123"],["class","form-check",4,"ngIf"],["type","checkbox","value","","id","campdefaultCheck11",1,"form-check-input",2,"height","18px","width","18px",3,"change","checked"],["for","campdefaultCheck11",1,"form-check-label","pl-3",2,"vertical-align","middle"],["for","exampleFormControlSelect12"],[2,"font-size","14px"],[2,"font-weight","600"],[2,"font-weight","400"],["class","form-check",3,"hidden",4,"ngFor","ngForOf"],["style","font-size: 13px; color: #888; margin-top: 8px; font-style: italic;",4,"ngIf"],[1,"form-check",3,"hidden"],[2,"font-size","13px","color","#888","margin-top","8px","font-style","italic"],[2,"font-size","14px","display","flex","gap","4px","align-items","flex-start"],[2,"font-weight","600","white-space","nowrap"],[1,"col-sm-12","border-bottom","bootmClassbg","row","m-0"],[1,"col-sm-12","col-sm-10","p-0"],[2,"color","#f79522","font-weight","500","padding-right","40px"],[1,"col-sm-2","col-sm-2"],["class","mb-0","style","display: flex; max-width: 100%;",4,"ngIf"],[1,"mb-0",2,"display","flex","max-width","100%"],["aria-hidden","true",1,"fa","fa-circle",2,"color","#f79522","border","none","font-size","10px","padding-bottom","8px"],[1,"pl-1"],[1,"d-flex","align-items-center","justify-content-center","contents",2,"font-weight","400","margin","2rem","font-size","16px","color","#898989"],["type","text","maxLength","30","autofocus","",1,"filter-input","section-box",3,"ngModelChange","keyup.enter","focus","disabled","ngModel"],["class","col-sm-12 border-bottom p-3",4,"ngIf"],[1,"form-group","mb-3"],[1,"col-sm-12","px-0"],["type","checkbox","name","CompareRadios","id","CompareRadios2","value","true",1,"form-check-input",3,"change","checked"],["for","CompareRadios2",1,"form-check-label"],["class","col-sm-12 px-0",4,"ngIf"],[1,"col-sm-12","py-3","px-0","text-left","mr-4"],["class","mt-4",4,"ngIf"],[1,"mt-4"],["type","checkbox",1,"form-check-input",2,"width","17px","height","17px",3,"change","name","value","id","checked"],["style","font-weight: 500; display: inline-block;",4,"ngIf"],[2,"font-weight","500","display","inline-block"],[1,"txt-wrap"],[1,"filter","p-0","sh-panel",2,"min-height","88vh"],[1,"sh-header"],[1,"sh-title"],[1,"sh-subtitle-row"],[1,"sh-subtitle"],["class","sh-toggle-link",3,"click",4,"ngIf"],[1,"sh-divider"],[1,"sh-question-list"],["class","sh-empty",4,"ngIf"],[1,"sh-footer"],["type","button",1,"btn","sh-btn-apply",3,"click","disabled"],[1,"sh-toggle-link",3,"click"],[1,"sh-empty"],["class","sh-question-item",3,"for",4,"ngIf"],[1,"sh-question-item",3,"for"],["type","checkbox",2,"display","none",3,"change","id","checked"],[1,"sh-q-text"],["alt","",1,"sh-eye-icon",3,"src"],[1,"col-sm-12","rp-export-pdf-wrap",2,"margin-right","0px","margin-top","20px"],["type","button",1,"btn","btn-primary",2,"width","216px",3,"click","disabled"],[1,"col-sm-12","pl-5",2,"margin-right","0px","margin-top","20px"],["type","button",1,"btn","btn-outline-primary",3,"click","disabled"],[1,"filter","p-0",2,"min-height","88vh"],[1,"col-md-12","col-sm-12","col-lg-12","pl-3","mt-3",2,"padding-bottom","25px"],["bindLabel","label","bindValue","value","placeholder","Select Scale",1,"rp-native-select",3,"ngModelChange","change","appendTo","items","clearable","searchable","ngModel"],["bindLabel","label","bindValue","value",1,"participant-filter-select",3,"ngModelChange","change","items","clearable","searchable","ngModel"]],template:function(o,i){if(1&o){const s=t.RV6();t.j41(0,"div",3)(1,"div",4),t.nrm(2,"app-survey-pages-header",5),t.k0s(),t.j41(3,"div",6)(4,"div",7)(5,"div",8)(6,"ul",9)(7,"li",10)(8,"a",11),t.nrm(9,"i",12),t.EFF(10," Results "),t.k0s()(),t.j41(11,"li",10)(12,"a",13),t.nrm(13,"i",14),t.EFF(14," Trends "),t.k0s()(),t.j41(15,"li",10)(16,"a",15),t.nrm(17,"i",16),t.EFF(18," Respondents "),t.k0s()()()(),t.j41(19,"div",17)(20,"router-outlet",18),t.bIt("activate",function(a){return t.eBV(s),t.Njj(i.onActivate(a))}),t.k0s()()(),t.DNE(21,Di,21,44,"div",19),t.k0s()(),t.j41(22,"div",20)(23,"div",21)(24,"div",22)(25,"div",23)(26,"h5",24),t.EFF(27,"Are you sure you want to delete it?"),t.k0s(),t.j41(28,"div"),t.nrm(29,"app-button",25),t.j41(30,"app-button",26,0),t.bIt("click",function(){return t.eBV(s),t.Njj(i.deleteSaved())}),t.k0s()()()()()()}
12&o&&(t.R7$(2),t.Y8G("pageTitle",i.surveyName),t.R7$(2),t.xc7("padding-right",i.shouldHideSidebar||i.isSidebarOpen?null:"72px"),t.Y8G("ngClass",i.shouldHideSidebar?"col-sm-12":i.isSidebarOpen?"col-sm-9":"col-sm-12"),t.R7$(17),t.Y8G("ngIf",!i.shouldHideSidebar))},dependencies:[y.YU,y.Sq,y.bT,k.n3,k.Wk,k.wQ,st.Q,rt.f,O.me,O.BC,O.vS,R.vr,R.Uq,R.ZZ,at.rl,z.VO,lt.wT],styles:["@charset \"UTF-8\";.rp-tab-bar[_ngcontent-%COMP%]{padding:0 4px;margin-bottom:0}.rp-tabs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;list-style:none;padding-left:22px;margin:0;gap:30px}.rp-tab-item[_ngcontent-%COMP%]{display:flex}.rp-tab-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:7px;padding:14px 0;font-size:16px;color:#9ca3af;text-decoration:none!important;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;cursor:pointer;white-space:nowrap}.rp-tab-link[_ngcontent-%COMP%]:hover{color:#fff}.rp-tab-link.rp-tab-active[_ngcontent-%COMP%]{color:#f79522;border-bottom-color:#f79522}.rp-tab-link.rp-tab-active[_ngcontent-%COMP%] .rp-tab-icon[_ngcontent-%COMP%]{color:#f79522}.rp-tab-icon[_ngcontent-%COMP%]{font-size:13px;color:#9ca3af;transition:color .15s}.row[_ngcontent-%COMP%]{position:relative}.componentfull[_ngcontent-%COMP%]{overflow-y:auto;max-height:88vh;scrollbar-width:none}.componentfull[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sidebar[_ngcontent-%COMP%]{position:absolute;right:0;height:100%;min-height:95vh;transition:transform .3s ease,width .3s ease;padding:12px 8px;box-sizing:border-box}.sidebar.sidebar-closed[_ngcontent-%COMP%]{transform:translate(calc(100% - 66px));width:70px;padding:12px 8px}.rightsidebarfull[_ngcontent-%COMP%]{cursor:pointer;overflow-y:auto;scrollbar-width:none;height:100%}.rightsidebarfull[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sidebar-closed[_ngcontent-%COMP%] .rightsidebar[_ngcontent-%COMP%]{border:1px solid #363A47;border-radius:14px;overflow:hidden;height:auto}.rightsidebarfull[_ngcontent-%COMP%]:not(.sidebar-closed){border:1px solid #363A47;border-radius:14px;overflow:hidden;background:#13151c;display:flex}.rightsidebarfull[_ngcontent-%COMP%]:not(.sidebar-closed) .rightsidebar[_ngcontent-%COMP%]{border-right:1px solid #363A47;border-radius:0;overflow-y:auto}.rightsidebar[_ngcontent-%COMP%]{background-color:#13151c;cursor:pointer;max-height:88vh;overflow-y:auto;padding-left:0}.rightsidebar[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%], .rightsidebar[_ngcontent-%COMP%] .sidebar-icon[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;color:#f79522;width:30px;height:30px;border-radius:50%;border:1px solid rgba(247,149,34,.5);display:flex;align-items:center;justify-content:center;background:transparent}.rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:10px 8px!important;border-radius:6px;transition:background .15s}.rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:brightness(0) invert(.7);transition:filter .15s}.rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.border-class[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:brightness(0) saturate(100%) invert(65%) sepia(85%) saturate(500%) hue-rotate(358deg) brightness(100%) contrast(92%)!important}.border-noclass[_ngcontent-%COMP%]{border-right:0}.filter[_ngcontent-%COMP%]{background:#13151c;border-left:none;color:#e0e0e0;min-height:88vh}.title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:600;color:#fff;padding:16px 20px!important;border-bottom:1px solid #363A47!important}.title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:brightness(0) invert(.6);cursor:pointer;width:18px;height:18px}.title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{filter:brightness(0) invert(1)}.filter[_ngcontent-%COMP%] .border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid #363A47!important}.filter[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#e0e0e0!important;font-weight:400!important}.bootmClassbg[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .bootmClassbg[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-weight:400!important}.filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%]{background-color:#191b21!important;border:1px solid #363A47!important;border-radius:10px!important;color:#fff!important;padding:8px 40px 8px 12px!important;height:44px!important;font-size:14px;outline:none;appearance:none!important;-webkit-appearance:none!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;color-scheme:dark}.filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%] option[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{background:#191b21;color:#fff}.filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:checked, .filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover, .filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:focus, .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:checked, .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:hover, .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]:focus{background-color:#2a2d38!important;color:#fff!important}.filter[_ngcontent-%COMP%] select.form-control[_ngcontent-%COMP%]:focus, .filter[_ngcontent-%COMP%] select.custom-select[_ngcontent-%COMP%]:focus{border-color:#3a7bfd!important}[_nghost-%COMP%] .participant-filter-select .ng-select-container{background:#191b21!important;border:1px solid #363A47!important;border-radius:10px!important;color:#fff!important;min-height:44px!important;height:44px!important;padding:0 12px!important}[_nghost-%COMP%] .participant-filter-select.ng-select-focused .ng-select-container{border-color:#3a7bfd!important;box-shadow:none!important}[_nghost-%COMP%] .participant-filter-select .ng-value-container{padding:0!important;color:#fff!important}[_nghost-%COMP%] .participant-filter-select .ng-value, [_nghost-%COMP%] .participant-filter-select .ng-value-label{background:transparent!important;border:none!important;color:#fff!important;font-size:14px}[_nghost-%COMP%] .participant-filter-select .ng-arrow-wrapper .ng-arrow{border-color:#9ca3af transparent transparent!important;border-width:5px 5px 0!important}[_nghost-%COMP%] .participant-filter-select .ng-dropdown-panel{background:#1d1f26!important;border:1px solid #363A47!important;border-radius:10px!important;box-shadow:0 8px 24px #00000080!important}[_nghost-%COMP%] .participant-filter-select .ng-dropdown-panel .ng-option{background:transparent!important;color:#e0e0e0!important;font-size:14px}[_nghost-%COMP%] .participant-filter-select .ng-dropdown-panel .ng-option:hover, [_nghost-%COMP%] .participant-filter-select .ng-dropdown-panel .ng-option.ng-option-marked{background:#ffffff0f!important}[_nghost-%COMP%] .participant-filter-select .ng-dropdown-panel .ng-option.ng-option-selected{background:#f7952224!important;color:#f79522!important}.filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%], .filter[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]{background-color:#191b21!important;border-radius:8px!important;color:#fff!important}.filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]::placeholder, .filter[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]::placeholder{color:#555868}.filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]:focus, .filter[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]:focus{border-color:#3a7bfd!important;box-shadow:none!important}.filter[_ngcontent-%COMP%] .form-check-label[_ngcontent-%COMP%]{color:#e0e0e0!important}.bootmClassbg[_ngcontent-%COMP%]{border-top:1px solid rgba(247,149,34,.2)!important}.filter[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{background:#1d1f26!important;border:1px solid #363A47!important;border-radius:8px!important;padding:4px 0}.filter[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]{color:#e0e0e0!important;font-size:13px}.filter[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .dropdown-item[_ngcontent-%COMP%]:hover{background:#ffffff0f!important}.section-box[_ngcontent-%COMP%]{border:1px solid #363A47;border-radius:8px;padding:10px;position:relative;background:#191b21}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.filter-input[_ngcontent-%COMP%]{border:none;outline:none;background:transparent!important;color:#fff!important;width:100%;padding:5px}.highlight-border[_ngcontent-%COMP%]{border:2px solid #F79522!important;box-shadow:0 0 10px #f795224d}.filter[_ngcontent-%COMP%] .m-0.py-2[_ngcontent-%COMP%] label[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#e0e0e0!important}.filter[_ngcontent-%COMP%] .btn-outline-primary[_ngcontent-%COMP%]{background:transparent!important;border:1px solid #3a7bfd!important;color:#3a7bfd!important;border-radius:9999px!important}.filter[_ngcontent-%COMP%] .btn-outline-primary[_ngcontent-%COMP%]:hover{background:#3a7bfd1a!important}.filter[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{background:#3a7bfd!important;border-color:#3a7bfd!important;color:#fff!important;border-radius:9999px!important}.filter[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]:hover{background:#1260fd!important}.filter[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]:disabled{opacity:.45}.filter[_ngcontent-%COMP%] a.link[_ngcontent-%COMP%]{color:#3a7bfd!important}.hidequestions[_ngcontent-%COMP%]{color:#9ca3af}.showquestions[_ngcontent-%COMP%]{color:#e0e0e0}.sh-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sh-header[_ngcontent-%COMP%]{padding:20px 20px 14px}.sh-title[_ngcontent-%COMP%]{font-size:16px;font-weight:700;color:#e0e0e0;margin:0 0 8px}.sh-subtitle-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.sh-subtitle[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af;margin:0;flex:1}.sh-toggle-link[_ngcontent-%COMP%]{font-size:13px;color:#3a7bfd!important;cursor:pointer;white-space:nowrap;text-decoration:none;flex-shrink:0}.sh-divider[_ngcontent-%COMP%]{height:1px;background:#363a47;margin:0}.sh-question-list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;max-height:calc(88vh - 180px);padding:8px 0}.sh-question-item[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 20px;cursor:pointer;margin:0}.sh-question-item[_ngcontent-%COMP%]:hover{background:#ffffff0a}.sh-q-text[_ngcontent-%COMP%]{font-size:14px;line-height:1.5;flex:1;word-break:break-word}.sh-q-visible[_ngcontent-%COMP%]{color:#e0e0e0;font-weight:600}.sh-q-hidden[_ngcontent-%COMP%]{color:#9ca3af;font-weight:400}.sh-eye-icon[_ngcontent-%COMP%]{width:20px;height:20px;flex-shrink:0;margin-top:2px}.sh-q-hidden[_ngcontent-%COMP%] ~ .sh-eye-icon[_ngcontent-%COMP%]{filter:brightness(0) invert(.4)}.sh-empty[_ngcontent-%COMP%]{color:#9ca3af;font-size:13px;padding:20px}.sh-footer[_ngcontent-%COMP%]{padding:16px 20px;border-top:1px solid #363A47}.sh-btn-apply[_ngcontent-%COMP%]{background:#3a7bfd!important;border:none!important;color:#fff!important;border-radius:9999px!important;padding:8px 28px!important;font-size:14px!important}.sh-btn-apply[_ngcontent-%COMP%]:hover:not(:disabled){background:#1260fd!important}.sh-btn-apply[_ngcontent-%COMP%]:disabled{opacity:.45}[_nghost-%COMP%] .campaign-select-field.custom-dropdown{width:100%!important}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-text-field-wrapper{background:#191b21!important;border:1px solid #363A47!important;border-radius:10px!important;padding:0 12px!important;height:44px!important}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-form-field-flex{height:44px!important;align-items:center!important}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-form-field-infix{padding:0!important;min-height:unset!important;display:flex;align-items:center}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mdc-notched-outline__leading, [_nghost-%COMP%] .campaign-select-field.custom-dropdown .mdc-notched-outline__notch, [_nghost-%COMP%] .campaign-select-field.custom-dropdown .mdc-notched-outline__trailing{border:none!important}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-select-value-text, [_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-select-placeholder{color:#fff!important;font-size:14px}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-select-arrow-wrapper{padding-right:4px}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-select-arrow{border-left:5px solid transparent!important;border-right:5px solid transparent!important;border-top:5px solid #9ca3af!important;border-bottom:none!important;width:0!important;height:0!important}[_nghost-%COMP%] .campaign-select-field.custom-dropdown .mat-mdc-form-field-subscript-wrapper{display:none!important}[_nghost-%COMP%] .mat-mdc-option{color:#e0e0e0!important;font-size:14px!important}[_nghost-%COMP%] .mat-mdc-option .mdc-list-item__ripple, [_nghost-%COMP%] .mat-mdc-option:before, [_nghost-%COMP%] .mat-mdc-option:after{background-color:transparent!important}[_nghost-%COMP%] .mat-mdc-option:hover, [_nghost-%COMP%] .mat-mdc-option.mat-mdc-option-active{background:#ffffff0f!important}[_nghost-%COMP%] .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:#f7952224!important}[_nghost-%COMP%] .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:#f79522!important}[_nghost-%COMP%] .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) svg{fill:#f79522!important}[_nghost-%COMP%] .mat-mdc-select-panel{background:#1d1f26!important;border:1px solid #363A47!important;border-radius:12px!important;box-shadow:0 8px 24px #00000080!important}[_nghost-%COMP%] .custom-dropdown.mat-mdc-form-field{height:44px!important}[_nghost-%COMP%] .filter-more{cursor:pointer}[_nghost-%COMP%] .filter-more img{filter:brightness(0) invert(1)}[_nghost-%COMP%] .filter-more img:hover{filter:brightness(0) invert(.7)}.filter-more[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.filter-more[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{filter:brightness(0) invert(.7)}
1[_nghost-%COMP%] .modal-content.formWrapper.noBg{background:#0f1116!important;border:1px solid #363A47!important;border-radius:14px!important}[_nghost-%COMP%] .modal-content.formWrapper.noBg .modal-body{color:#e0e0e0}[_nghost-%COMP%] .modal-content.formWrapper.noBg h5{color:#fff!important}h5[_ngcontent-%COMP%]{font-size:16px}h6[_ngcontent-%COMP%]{font-size:14px}.spansize[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#e0e0e0}.af-label[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#e0e0e0!important;margin:0 0 10px}.af-card[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:6px 0;gap:8px}.af-value[_ngcontent-%COMP%]{font-size:14px;color:#fff!important;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.af-menu-wrap[_ngcontent-%COMP%]{position:relative}.af-dots[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.af-dots[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px;height:18px;filter:brightness(0) invert(1)}.af-dots[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{filter:brightness(0) invert(.7)}.filter[_ngcontent-%COMP%] .saved-filter-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px 0 8px}.filter[_ngcontent-%COMP%] .saved-filter-max[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af;float:none!important}.closeicon[_ngcontent-%COMP%]{height:30px;width:30px;border:1.5px solid #BCBCBC!important;border-radius:50%;background-color:transparent;filter:brightness(0) invert(.75)!important;padding:4px}[_nghost-%COMP%] app-survey-pages-header .header{border-bottom:1px solid rgba(255,255,255,.08)!important}@media (max-width: 640px){.rp-header-wrap[_ngcontent-%COMP%]{background:#191b21;border-bottom:1px solid rgba(255,255,255,.07);margin-top:40px}#printResultPdf[_ngcontent-%COMP%]{background-color:#191b21;margin-top:30px}[_nghost-%COMP%] app-survey-pages-header .header{background:transparent!important;margin-top:0!important;margin-bottom:0!important}[_nghost-%COMP%] app-survey-pages-header h5{color:#fff!important}.rp-tabs[_ngcontent-%COMP%]{padding-left:6px;gap:13px}.rp-tab-link[_ngcontent-%COMP%]{font-size:19px;padding:10px 0}.rp-tab-bar[_ngcontent-%COMP%]{order:0;flex:0 0 calc(100% - 12px)!important;width:calc(100% - 12px)!important;margin-left:12px!important}.col-sm-12.row.mr-0[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:contents!important}.componentfull[_ngcontent-%COMP%]{order:2!important;flex:0 0 100%!important;width:100%!important}.col-sm-12.row.mr-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}.sidebar[_ngcontent-%COMP%]{position:static!important;order:1!important;flex:0 0 calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;width:calc(100% - 20px)!important;margin-left:20px!important;height:auto!important;min-height:unset!important;transform:none!important;padding:0 8px!important;align-self:flex-start!important;border-top:none!important}.sidebar.sidebar-closed[_ngcontent-%COMP%]{flex:0 0 calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;width:calc(100% - 20px)!important;transform:none!important}.rightsidebarfull[_ngcontent-%COMP%], .rightsidebarfull[_ngcontent-%COMP%]:not(.sidebar-closed), .sidebar-closed[_ngcontent-%COMP%] .rightsidebarfull[_ngcontent-%COMP%]{display:block!important;width:calc(100% - 20px)!important;margin:0 0 0 20px!important;height:auto!important;padding:0!important;border:none!important;border-radius:0!important;background:transparent!important;overflow:visible!important}.sidebar-closed[_ngcontent-%COMP%] .rightsidebar[_ngcontent-%COMP%], .rightsidebarfull[_ngcontent-%COMP%]:not(.sidebar-closed) .rightsidebar[_ngcontent-%COMP%]{border:1px solid #363A47!important;border-radius:8px!important;background-color:#15161c!important;margin-right:2px;height:auto!important;overflow:visible!important}[_nghost-%COMP%] .rightsidebar[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;align-items:center!important;max-height:unset!important;width:103%!important;margin:8px 0!important;background:#1d1f26!important;border:1px solid #363A47!important;border-radius:12px!important;padding:6px 4px!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .rightsidebar[_ngcontent-%COMP%]:before{content:\"Actions :\";font-size:13px;font-weight:500;color:#9ca3af;white-space:nowrap;padding:0 10px 0 6px;flex-shrink:0}[_nghost-%COMP%] .rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%]{padding:8px 9px!important;margin-top:0!important;flex-shrink:0;border-radius:8px!important}[_nghost-%COMP%] .rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:22px!important;width:auto!important}[_nghost-%COMP%] .rightsidebar[_ngcontent-%COMP%] .px-3.py-2[_ngcontent-%COMP%]:hover{background:#ffffff0f!important}.rightsidebarfull[_ngcontent-%COMP%] > .col-sm-10[_ngcontent-%COMP%]{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;bottom:unset!important;width:90%!important;max-width:400px!important;height:auto!important;max-height:80vh!important;z-index:1055!important;background:#1c1d26!important;overflow-y:auto!important;padding:0!important;display:block!important;flex:unset!important;border-radius:14px!important;box-shadow:0 8px 40px #000000b3!important}.rightsidebarfull[_ngcontent-%COMP%] > .col-sm-10[_ngcontent-%COMP%]:has(.ng-select-opened){overflow:visible!important}.filter[_ngcontent-%COMP%]{min-height:auto!important}.rightsidebarfull[_ngcontent-%COMP%]:not(.sidebar-closed):before{content:\"\";position:fixed;inset:0;background:#0000008c;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:1054}.filter[_ngcontent-%COMP%] .col-sm-12.row.p-0.m-0[_ngcontent-%COMP%]:has( > .col-sm-2.col-sm-2)[_ngcontent-%COMP%]{display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:space-between!important}.filter[_ngcontent-%COMP%] .col-sm-10.p-0[_ngcontent-%COMP%]:has( + .col-sm-2.col-sm-2)[_ngcontent-%COMP%]{flex:1 1 auto!important;max-width:none!important;width:auto!important}
1.filter[_ngcontent-%COMP%] .col-sm-2.col-sm-2[_ngcontent-%COMP%]{flex:0 0 auto!important;max-width:none!important;width:auto!important}.rp-export-pdf-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:20px}}"]})}return n})();var J=v(8359),U=v(1413),M=v(6977),w=v(3294),H=v(6222);const Yi=n=>({"d-none":n}),Xi=n=>({"col-sm-6":n}),$=n=>({"col-sm-3":n}),Qi=n=>({"width-50":n});function Li(n,r){1&n&&(t.j41(0,"div",5)(1,"p",6),t.EFF(2,"No data available."),t.k0s()())}function zi(n,r){1&n&&(t.j41(0,"div",5)(1,"p",6),t.EFF(2,"No data available"),t.k0s()())}function Ji(n,r){1&n&&(t.j41(0,"div",7)(1,"div",8)(2,"span",9),t.EFF(3,"Loading..."),t.k0s()()())}function Ui(n,r){if(1&n&&(t.j41(0,"span",30),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(e.text)}}function Hi(n,r){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(" Base - ",e.totalResponses||""," ")}}function $i(n,r){1&n&&t.nrm(0,"img",42)}function Zi(n,r){1&n&&t.nrm(0,"img",43)}function Wi(n,r){1&n&&t.nrm(0,"img",44)}function Ki(n,r){1&n&&t.nrm(0,"img",45)}function tn(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",34)(1,"label",35)(2,"input",36),t.bIt("change",function(){t.eBV(e);const i=t.XpG(3),s=i.$implicit,l=i.index,a=t.XpG();return t.Njj(a.switchCharts(s,l))}),t.k0s(),t.j41(3,"span",37),t.DNE(4,$i,1,0,"img",38)(5,Zi,1,0,"img",39),t.k0s(),t.j41(6,"span",37),t.DNE(7,Wi,1,0,"img",40)(8,Ki,1,0,"img",41),t.k0s()()()}if(2&n){const e=t.XpG(3).$implicit;t.R7$(2),t.Y8G("checked",e.isChecked),t.R7$(),t.AVh("rs-chart-btn--active",!e.isChecked),t.R7$(),t.Y8G("ngIf",!e.isChecked),t.R7$(),t.Y8G("ngIf",e.isChecked),t.R7$(),t.AVh("rs-chart-btn--active",e.isChecked),t.R7$(),t.Y8G("ngIf",!e.isChecked),t.R7$(),t.Y8G("ngIf",e.isChecked)}}function en(n,r){if(1&n&&(t.j41(0,"div",32),t.DNE(1,tn,9,9,"div",33),t.k0s()),2&n){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(),t.Y8G("ngIf",!("Text Based"===(null==e?null:e.type)||"Autocomplete text"===e.type||"Image/Video"===(null==e?null:e.type)||"Multiple-choice grid"===(null==e?null:e.type)||"Tick box grid"===(null==e?null:e.type)||o.isPrintPdf||null!=e&&e.isNpsQuestion))}}function nn(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function on(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function sn(n,r){if(1&n){const e=t.RV6();t.j41(0,"ng-select",48),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(4),l=s.$implicit,a=s.index,c=t.XpG();return l.responseType=i,c.changeScale(i),t.Njj(c.changeResponseType(l,a))}),t.DNE(1,nn,1,1,"ng-template",49)(2,on,1,1,"ng-template",50),t.k0s()}if(2&n){const e=t.XpG(4).$implicit,o=t.XpG();t.Y8G("items",o.scaleOptions)("appendTo","body")("clearable",!1)("searchable",!1)("ngModel",e.responseType||null)}}function rn(n,r){if(1&n&&(t.j41(0,"div",34),t.DNE(1,sn,3,5,"ng-select",47),t.k0s()),2&n){const e=t.XpG(4);t.R7$(),t.Y8G("ngIf",!e.isPrintPdf)}}function an(n,r){if(1&n&&(t.j41(0,"div",46),t.DNE(1,rn,2,1,"div",33),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf","Text Based"!==(null==e?null:e.type)&&"Autocomplete text"!==e.type&&"Image/Video"!==(null==e?null:e.type)&&!(null!=e&&e.isNpsQuestion))}}function ln(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function cn(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.label)}function pn(n,r){if(1&n){const e=t.RV6();t.j41(0,"ng-select",48),t.bIt("ngModelChange",function(i){t.eBV(e);const s=t.XpG(3),l=s.$implicit,a=s.index,c=t.XpG();return l.responseType=i,c.changeScale(i),t.Njj(c.changeGridScale(l,a))}),t.DNE(1,ln,1,1,"ng-template",49)(2,cn,1,1,"ng-template",50),t.k0s()}if(2&n){const e=t.XpG(3).$implicit,o=t.XpG();t.Y8G("items",o.scaleOptions)("appendTo","body")("clearable",!1)("searchable",!1)("ngModel",e.responseType||null)}}function dn(n,r){if(1&n&&(t.j41(0,"div",51)(1,"div",34),t.DNE(2,pn,3,5,"ng-select",47),t.k0s()()),2&n){const e=t.XpG(3);t.R7$(2),t.Y8G("ngIf",!e.isPrintPdf)}}function _n(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",52)(1,"div",53)(2,"button",54),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2).$implicit,s=t.XpG();return t.Njj(s.toggleAudioChartView(i))}),t.EFF(3),t.k0s()()()}if(2&n){const e=t.XpG(2).$implicit;t.Y8G("ngClass",t.eq3(2,$,"Text Based"===(null==e?null:e.type))),t.R7$(3),t.SpI(" ",e.showAudioList?"Show Chart":"Show List"," ")}}function mn(n,r){if(1&n){const e=t.RV6();t.j41(0,"button",59),t.bIt("click",function(){t.eBV(e);const i=t.XpG(3).$implicit;return t.Njj(i.id=!i.id)}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(3).$implicit;t.R7$(),t.SpI(" ",1==e.id?"Hide Insight":"View Insight"," ")}}function gn(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",55)(1,"div",56)(2,"button",57),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2).$implicit;return t.Njj(i.showTable=!(null!=i&&i.showTable))}),t.EFF(3),t.k0s(),t.DNE(4,mn,2,1,"button",58),t.k0s()()}if(2&n){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(3),t.SpI(" ",1==(null==e?null:e.showTable)?"Hide Table":"Show Table"," "),t.R7$(),t.Y8G("ngIf",1==(null==o.surveyDetails?null:o.surveyDetails.isDGSurvey))}}function hn(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",60)(1,"a",61),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2).$implicit,s=t.XpG();return t.Njj(s.goToViewResponses(i))}
1),t.EFF(2,"View Responses"),t.k0s()()}if(2&n){const e=t.XpG(2).$implicit;t.Y8G("ngClass",t.eq3(1,$,"Image/Video"===e.type))}}function un(n,r){if(1&n&&(t.j41(0,"div",62)(1,"span",63),t.EFF(2),t.k0s(),t.j41(3,"span",64),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(2).$implicit;t.R7$(2),t.JRh(e.text),t.R7$(2),t.SpI("Response Count: ",e.options.responseCount,"")}}function fn(n,r){if(1&n&&(t.j41(0,"div",77),t.nrm(1,"div",78),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("id","barChart_"+e._id)}}function vn(n,r){if(1&n&&(t.j41(0,"div",77),t.nrm(1,"div",78),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("id","npsData_"+e._id)}}function bn(n,r){if(1&n&&(t.j41(0,"div",79),t.nrm(1,"div",78),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("id","csatData_"+e._id)}}function Cn(n,r){if(1&n&&(t.j41(0,"div",79),t.nrm(1,"div",78),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("id","cesData_"+e._id)}}function xn(n,r){if(1&n&&(t.j41(0,"div",80),t.nrm(1,"div",81),t.k0s()),2&n){const e=t.XpG(4).$implicit,o=t.XpG();t.Y8G("ngClass",t.eq3(2,Qi,o.minimizesidebar)),t.R7$(),t.Y8G("id","wordCloud_"+e._id)}}function yn(n,r){if(1&n&&(t.j41(0,"div",73),t.DNE(1,fn,2,1,"div",74)(2,vn,2,1,"div",74)(3,bn,2,1,"div",75)(4,Cn,2,1,"div",75)(5,xn,2,4,"div",76),t.k0s()),2&n){const e=t.XpG(3).$implicit,o=t.XpG();t.R7$(),t.Y8G("ngIf",!(("Text Based"===(null==e?null:e.type)||"Autocomplete text"===(null==e?null:e.type)||null!=e&&e.isNpsQuestion||null!=e&&e.isCsatQuestion||null!=e&&e.isCesQuestion)&&(1!=o.isComparisonApplied||"Text Based"!=(null==e?null:e.type)&&"Autocomplete text"!=(null==e?null:e.type)||null!=e&&e.isNpsQuestion||null!=e&&e.isCsatQuestion||null!=e&&e.isCesQuestion))),t.R7$(),t.Y8G("ngIf","Scale"===(null==e?null:e.type)&&(null==e?null:e.isNpsQuestion)),t.R7$(),t.Y8G("ngIf","Nominal"===(null==e?null:e.type)&&(null==e?null:e.isCsatQuestion)),t.R7$(),t.Y8G("ngIf","Nominal"===(null==e?null:e.type)&&(null==e?null:e.isCesQuestion)),t.R7$(),t.Y8G("ngIf",!o.isComparisonApplied&&("Text Based"===(null==e?null:e.type)||"Autocomplete text"===(null==e?null:e.type)))}}function On(n,r){if(1&n&&(t.j41(0,"div",84)(1,"div",85)(2,"p",86)(3,"strong"),t.EFF(4,"Reserch Summary"),t.k0s()(),t.j41(5,"div",87),t.nrm(6,"p",88),t.k0s()()()),2&n){const e=t.XpG(4).$implicit,o=t.XpG();t.R7$(6),t.Y8G("innerHTML",o.formartSummary(null==e?null:e.summary),t.npT)}}function Rn(n,r){if(1&n&&(t.j41(0,"div",82),t.DNE(1,On,7,1,"div",83),t.k0s()),2&n){const e=t.XpG(3).$implicit,o=t.XpG();t.R7$(),t.Y8G("ngIf",!o.isFilterApplied&&!o.isComparisonApplied&&1==e.id)}}function Fn(n,r){1&n&&(t.j41(0,"div",89)(1,"div",90)(2,"div",91)(3,"span",9),t.EFF(4,"Loading..."),t.k0s()(),t.j41(5,"strong"),t.EFF(6,"Loading..."),t.k0s()()())}function kn(n,r){if(1&n&&(t.j41(0,"audio",98),t.nrm(1,"source",99),t.EFF(2," Your browser does not support the audio element. "),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("src",null==e?null:e.audioUrl,t.B4B)}}function Sn(n,r){if(1&n&&(t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.DNE(4,kn,3,1,"audio",96),t.k0s(),t.j41(5,"td",97),t.EFF(6),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(null==e?null:e.userId),t.R7$(2),t.Y8G("ngIf",null==e?null:e.audioUrl),t.R7$(2),t.JRh(null==e?null:e.response)}}function jn(n,r){if(1&n&&(t.j41(0,"div",92)(1,"div",93)(2,"table",94)(3,"thead")(4,"tr")(5,"th"),t.EFF(6,"User ID"),t.k0s(),t.j41(7,"th"),t.EFF(8,"Audio File"),t.k0s(),t.j41(9,"th"),t.EFF(10,"Text"),t.k0s()()(),t.j41(11,"tbody"),t.DNE(12,Sn,7,3,"tr",95),t.k0s()()()()),2&n){const e=t.XpG(3).$implicit;t.R7$(12),t.Y8G("ngForOf",e.audioResponses)}}function Mn(n,r){if(1&n&&(t.j41(0,"div",103)(1,"table",104)(2,"thead",105)(3,"th",106),t.EFF(4,"No. of Promoters"),t.k0s(),t.j41(5,"th"),t.EFF(6,"No. of Detractors"),t.k0s()(),t.j41(7,"tbody")(8,"tr")(9,"td"),t.EFF(10),t.k0s(),t.j41(11,"td"),t.EFF(12),t.k0s()()()()()),2&n){const e=t.XpG(4).$implicit;t.R7$(10),t.JRh(null==e||null==e.nps?null:e.nps.promoters),t.R7$(2),t.JRh(null==e||null==e.nps?null:e.nps.detractors)}}function An(n,r){if(1&n&&(t.j41(0,"th",110),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.SpI(" ",e.key,"")}}function wn(n,r){if(1&n&&(t.j41(0,"td"),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.SpI("",e.value," ")}}function In(n,r){if(1&n&&(t.j41(0,"table",104)(1,"thead",105),t.DNE(2,An,2,1,"th",109),t.nI1(3,"keyvalue"),t.k0s(),t.j41(4,"tbody")(5,"tr"),t.DNE(6,wn,2,1,"td",95),t.nI1(7,"keyvalue"),t.k0s()()()),2&n){const e=t.XpG(5).$implicit;t.R7$(2),t.Y8G("ngForOf",t.bMT(3,2,e.options)),t.R7$(4),t.Y8G("ngForOf",t.bMT(7,4,e.options))}}function Tn(n,r){if(1&n&&(t.j41(0,"tr")(1,"th",106),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e.key),t.R7$(2),t.JRh(e.value)}}function Pn(n,r){if(1&n&&(t.j41(0,"div",111)(1,"table",112)(2,"thead",105)(3,"th",106),t.EFF(4,"Responses"),t.k0s(),t.j41(5,"th"),t.EFF(6,"Occurences"),t.k0s()(),t.j41(7,"tbody"),t.DNE(8,Tn,5,2,"tr",95),t.nI1(9,"keyvalue"),t.k0s()()()),2&n){const e=t.XpG(5).$implicit;t.R7$(8),t.Y8G("ngForOf",t.bMT(9,1,e.options.wordCounts))}}function Gn(n,r){if(1&n&&(t.j41(0,"div",103),t.DNE(1,In,8,6,"table",107)(2,Pn,10,3,"div",108),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("ngIf","Text Based"!==(null==e?null:e.type)&&"Autocomplete text"!==(null==e?null:e.type)),t.R7$(),t.Y8G("ngIf","Text Based"===(null==e?null:e.type)||"Autocomplete text"===(null==e?null:e.type))}}function En(n,r){if(1&n&&(t.j41(0,"th",110),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.SpI(" ",e.key,"")}}function qn(n,r){if(1&n&&(t.j41(0,"td"),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.SpI(" ",e.value,"")}}function Nn(n,r){if(1&n&&(t.j41(0,"table",104)(1,"thead",105),t.DNE(2,En,2,1,"th",109),t.nI1(3,"keyvalue"),t.k0s(),t.j41(4,"tbody")(5,"tr"),t.DNE(6,qn,2,1,"td",95),t.nI1(7,"keyvalue"),t.k0s()()()),2&n){const e=t.XpG(5).$implicit;t.R7$(2),t.Y8G("ngForOf",t.bMT(3,2,e.percentageOptions)),t.R7$(4),t.Y8G("ngForOf",t.bMT(7,4,e.percentageOptions))}}function Bn(n,r){if(1&n&&(t.j41(0,"tr")(1,"th",106),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e.key),t.R7$(2),t.JRh(e.value)}}function Dn(n,r){if(1&n&&(t.j41(0,"div",111)(1,"table",112)(2,"thead",105)(3,"th",106),t.EFF(4,"Responses"),t.k0s(),t.j41(5,"th"),t.EFF(6,"Occurences"),t.k0s()(),t.j41(7,"tbody"),t.DNE(8,Bn,5,2,"tr",95),t.nI1(9,"keyvalue"),t.k0s()()()),2&n){const e=t.XpG(5).$implicit;t.R7$(8),t.Y8G("ngForOf",t.bMT(9,1,e.options.wordCounts))}}function Vn(n,r){if(1&n&&(t.j41(0,"div",113),t.DNE(1,Nn,8,6,"table",107)(2,Dn,10,3,"div",108),t.k0s()),2&n){const e=t.XpG(4).$implicit;t.R7$(),t.Y8G("ngIf","Text Based"!=(null==e?null:e.type)&&"Autocomplete text"!=(null==e?null:e.type)),t.R7$(),t.Y8G("ngIf","Text Based"===(null==e?null:e.type)||"Autocomplete text"===e.type)}}function Yn(n,r){if(1&n&&(t.j41(0,"div",100),t.DNE(1,Mn,13,2,"div",101)(2,Gn,3,2,"div",101)(3,Vn,3,2,"div",102),t.k0s()),2&n){const e=t.XpG(3).$implicit,o=t.XpG();
1t.R7$(),t.Y8G("ngIf",null==e?null:e.isNpsQuestion),t.R7$(),t.Y8G("ngIf",0==o.percentStatus&&!(null!=e&&e.isNpsQuestion)),t.R7$(),t.Y8G("ngIf",1==o.percentStatus)}}function Xn(n,r){if(1&n&&(t.j41(0,"div",65)(1,"div",66)(2,"div",67),t.DNE(3,yn,6,5,"div",68),t.k0s(),t.DNE(4,Rn,2,1,"div",69),t.k0s(),t.DNE(5,Fn,7,0,"div",70)(6,jn,13,1,"div",71)(7,Yn,4,3,"div",72),t.k0s()),2&n){const e=t.XpG(2).$implicit,o=t.XpG();t.R7$(),t.Y8G("ngClass",1==e.id?"col-sm-8":"col-sm-12"),t.R7$(2),t.Y8G("ngIf",!e.showAudioList),t.R7$(),t.Y8G("ngIf",!o.isFilterApplied&&!o.isComparisonApplied&&1==e.id),t.R7$(),t.Y8G("ngIf",(null==e?null:e.showAudioList)&&o.isLoadingAudio),t.R7$(),t.Y8G("ngIf","Text Based"===(null==e?null:e.type)&&(null==e?null:e.showAudioList)&&!o.isLoadingAudio),t.R7$(),t.Y8G("ngIf",1==(null==e?null:e.showTable)&&!o.showList)}}function Qn(n,r){if(1&n&&(t.j41(0,"div")(1,"div",12)(2,"div",13),t.EFF(3),t.k0s(),t.j41(4,"div",14),t.DNE(5,Ui,2,1,"span",15),t.j41(6,"span",16),t.EFF(7),t.k0s()(),t.j41(8,"div",17)(9,"div",18)(10,"span",19),t.EFF(11),t.k0s(),t.DNE(12,Hi,2,1,"div",20),t.k0s(),t.DNE(13,en,2,1,"div",21)(14,an,2,1,"div",22)(15,dn,3,1,"div",23)(16,_n,4,4,"div",24)(17,gn,5,2,"div",25)(18,hn,3,3,"div",26),t.k0s()(),t.j41(19,"div",27),t.DNE(20,un,5,2,"div",28)(21,Xn,8,6,"div",29),t.k0s()()),2&n){const e=t.XpG().$implicit,o=t.XpG();t.R7$(3),t.JRh(e.questionRefernceNo),t.R7$(2),t.Y8G("ngIf","Image/Video"!==(null==e?null:e.type)),t.R7$(),t.AVh("rs-q-type--media","Image/Video"===(null==e?null:e.type)),t.R7$(),t.JRh("Nominal"==e.type?"Multiple choice":"Text Based"==e.type?"Open-ended":e.type),t.R7$(2),t.Y8G("ngClass",t.eq3(18,Xi,"Text Based"===e.type||"Autocomplete text"===e.type||"Image/Video"===(null==e?null:e.type)||(null==e?null:e.isNpsQuestion))),t.R7$(),t.AVh("rs-q-type--media","Image/Video"===(null==e?null:e.type)),t.R7$(),t.JRh("Nominal"==e.type?"Multiple choice":"Text Based"==e.type?"Open-ended":e.type),t.R7$(),t.Y8G("ngIf",e.totalResponses),t.R7$(),t.Y8G("ngIf","Text Based"!==e.type&&"Autocomplete text"!==e.type&&"Image/Video"!==(null==e?null:e.type)&&!(null!=e&&e.isNpsQuestion)),t.R7$(),t.Y8G("ngIf","Text Based"!==e.type&&"Autocomplete text"!==e.type&&"Image/Video"!==(null==e?null:e.type)&&!(null!=e&&e.isNpsQuestion)&&"Multiple-choice grid"!==(null==e?null:e.type)&&"Tick box grid"!==(null==e?null:e.type)),t.R7$(),t.Y8G("ngIf","Multiple-choice grid"==(null==e?null:e.type)||"Tick box grid"==(null==e?null:e.type)),t.R7$(),t.Y8G("ngIf","Text Based"===(null==e?null:e.type)&&(null==e?null:e.acceptAudioResponses)),t.R7$(),t.Y8G("ngIf",!(o.isComparisonApplied||"Image/Video"===(null==e?null:e.type)||o.isPrintPdf||o.hasNoSufficientData&&"Text Based"===(null==e?null:e.type)&&"Autocomplete text"===(null==e?null:e.type)||"Multiple-choice grid"===(null==e?null:e.type)||"Tick box grid"===(null==e?null:e.type))),t.R7$(),t.Y8G("ngIf","Image/Video"===(null==e?null:e.type)),t.R7$(2),t.Y8G("ngIf","Image/Video"===(null==e?null:e.type)),t.R7$(),t.Y8G("ngIf","Image/Video"!==(null==e?null:e.type))}}function Ln(n,r){if(1&n&&(t.j41(0,"div",10),t.DNE(1,Qn,22,20,"div",11),t.k0s()),2&n){const e=r.$implicit,o=t.XpG();t.Y8G("ngClass",t.eq3(2,Yi,0==e.toggleVisible||o.isComparisionByQuestion&&("Multiple-choice grid"==(null==e?null:e.type)||"Tick box grid"==(null==e?null:e.type)))),t.R7$(),t.Y8G("ngIf","Call To Action"!==(null==e?null:e.type))}}E()(p),X()(p),Q()(p),p.setOptions({chart:{backgroundColor:"transparent"},title:{style:{color:"#ffffff"}},subtitle:{style:{color:"#ffffff"}},xAxis:{labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}},lineColor:"rgba(255,255,255,0.2)",tickColor:"rgba(255,255,255,0.2)"},yAxis:{labels:{style:{color:"#ffffff"}},title:{style:{color:"#ffffff"}},gridLineColor:"rgba(255,255,255,0.1)"},legend:{itemStyle:{color:"#ffffff",fontWeight:"normal"},itemHoverStyle:{color:"#cccccc"}},tooltip:{backgroundColor:"#1D1F26",borderColor:"#363A47",style:{color:"#ffffff"}},plotOptions:{series:{dataLabels:{style:{color:"#ffffff",textOutline:"none"}}}},navigation:{buttonOptions:{symbolStroke:"#ffffff",theme:{fill:"transparent",stroke:"none"}}}}),j().vfs=I.b.vfs;let zn=(()=>
1{class n{reflowCharts(){p.charts.forEach(e=>e?.reflow())}constructor(e,o,i,s,l,a,c){this.ss=e,this.dashboardService=o,this.authenticationService=i,this.toastrService=s,this.activatedRoute=l,this.highchartFormatingService=a,this.router=c,this.subscription=new J.yU,this.chartType="Bar",this.analyseMode="graph",this.pageLoader=!1,this.scaleOptions=[{value:"percent",label:"Percentage"},{value:"count",label:"Count"},{value:"percent auto",label:"Percentage Auto scale"}],this.questionsArr=[],this.audioResponseList=[],this.isComparison=!1,this.isFilter=!1,this.sidebar=!1,this.isFilterApplied=!1,this.isComparisonApplied=!1,this.percentStatus=!0,this.showList=!1,this.isActive=!0,this.currentTab=0,this.questionsVisibility={},this.loading=!1,this.dataFlag=!1,this.optionArray=[],this.filterFlag=!1,this.isPrintPdf=!1,this.scaleType=!1,this.selectedGlobalResponse="percent",this.disableApply=!1,this.isMinimized=!1,this.hasNoSufficientData=!1,this.isSelectNewQuestion=!1,this.showQuestionArr=[],this.showhide=!1,this.userquestionsArr=[],this._id=this.userquestionsArr._id,this.pageLoaders=!1,this.isShowHide=!1,this.items=[],this.showResponsesAs="all",this.showNoDataMessage=!1,this.isLoadingAudio=!1,this.destroy$=new U.B,this.filteredMedia=[],this.audioUrls=[],this.openChartIds=new Set,this.isSameQuestionCompare=!1,this.isComparisionByQuestion=!1}ngOnInit(){this.showResponsesAs=this.highchartFormatingService.participentFilter,this.highchartFormatingService.triggerFunction$.pipe((0,M.Q)(this.destroy$),(0,w.F)()).subscribe(o=>{this.isComparisonApplied=!1,this.SplitByQuestion(o)}),this.highchartFormatingService.triggerScaleFunction$.pipe((0,M.Q)(this.destroy$),(0,w.F)()).subscribe(o=>{this.triggerChangeScale(o?.questions,o?.type)}),this.highchartFormatingService.triggerComparisionFun$.pipe((0,M.Q)(this.destroy$),(0,w.F)()).subscribe(o=>{this.isComparisonApplied=!0,this.comparisionByQuestion(o)}),this.highchartFormatingService.triggerShowResponsesasFun$.pipe((0,M.Q)(this.destroy$)).subscribe(o=>{console.log("Subscription triggered with:",o),this.showResponsesAs=o,this.isComparisonApplied=!1,this.getQuestionResponses()}),this.highchartFormatingService.triggerFunctionShowHide$.pipe((0,M.Q)(this.destroy$),(0,w.F)()).subscribe(o=>{"select-all"==o?.type&&this.selectAll(),"deselect-all"==o?.type&&this.clearAll(),"random-select"==o?.type&&this.showHideQuestions(o?.questionsVisibility)}),this.highchartFormatingService.triggerExportpdfFun$.pipe((0,M.Q)(this.destroy$)).subscribe(o=>{this.getSvg()}),this.surveyCategory=localStorage.getItem("surveyCategory"),this.surveyName=localStorage.getItem("surveyName"),this.getQuestionResponses(),this.getSurveyDetails();let e=0;this.reflowInterval=setInterval(()=>{this.reflowCharts(),e++,e>=10&&clearInterval(this.reflowInterval)},800)}triggerChangeScale(e,o){this.updateValue(o),this.changeScale(o),this.selectedGlobalResponse=o,this.globalChangeResponseType(e,o)}getQuestionResponses(e){if(this.pageLoader=!0,this.isMinimized=!1,this.isFilter=!1,this.isComparison=!1,"tracker"==this.analyseMode)return localStorage.setItem("filterFlag",this.filterFlag.toString()),new Y.j(this.ss,this.toastrService).ngOnInit(),!1;this.filterFlag?localStorage.setItem("filterFlag",this.filterFlag.toString()):this.ss.getQuestionResponses(localStorage.getItem("surveyId"),this.showResponsesAs,e).subscribe(o=>{o&&(o.questions=JSON.parse(o.questions)),this.questionsArr=[];const i={};(o?.participients||[]).forEach(s=>{const l=s.uniqueId||"N/A";(s.user_responses||[]).forEach(a=>{if(a?.question?.acceptAudioResponses){const c=a.question._id;i[c]||(i[c]=[]),i[c].push({userId:l,audioUrl:a.audioUrl||"",response:a.response||""}),a.question.acceptAudioResponses=!0,o.questions[c]&&(o.questions[c].acceptAudioResponses=!0)}})});for(let s in o.questions){let l=o.questions[s];if(o.questions[s]._id=s,o.questions[s].isChecked=!1,this.isShowHide){const c=localStorage.getItem(`isHide_${o.questions[s].queIndex}`);c&&(o.questions[s].isHide=JSON.parse(c),o.questions[s].toggleVisible=!o.questions[s].isHide)}else o.questions[s].isHide=!1;l.audioResponses=i[s]||[],this.questionsArr.push(o.questions[s]),this.showQuestionArr.push(s.toString()),console.log("this is questionArr",this.questionsArr)}this.questionsArr.sort((s,l)=>s.queIndex>l.queIndex?1:-1),console.log("Data received from backend - ",new Date),this.getQuestionSummary(),this.setData(o),this.pageLoader=!1},o=>{this.pageLoader=!1,console.error(o)})}toggleAudioChartView(e){e.showAudioList=!e.showAudioList,e.showAudioList?this.openChartIds.delete(e._id):(this.openChartIds.add(e._id),setTimeout(()=>{this.tryDrawChart(e)},100))}tryDrawChart(e){const o=`barChart_${e._id}`,i=p.charts.some(l=>l?.container?.id===o),s=["Text Based"].includes(e.type)&&!e.isNpsQuestion&&!e.isCsatQuestion&&!e.isCesQuestion;!i&&s&&this.setData(e)}SplitByQuestion(e){if("all"==e?.sectionId)return this.getQuestionResponses(e?.campaignName),!1;this.pageLoader=!0;let o={};this.questionsArr?.map(i=>{o[i?._id]=i?.toggleVisible}),this.questionsArr=[],this.ss.SplitByQuestion(e,this.showResponsesAs).subscribe(i=>{this.pageLoader=!1;let s=[];console.log("Clicked QuestionId:",e.questionId),i.participients.forEac
1h(l=>{l.user_responses.forEach(a=>{s.push({response:a.response,uniqueId:a._id,pId:l._id,question:a.question})})}),this.filteredMedia=s,console.log("Filtered media:",s);for(let l in i.questions){if(i.questions[l]._id=l,i.questions[l].isChecked=!1,this.isShowHide){const c=localStorage.getItem(`isHide_${i.questions[l].queIndex}`);c&&(i.questions[l].isHide=JSON.parse(c))}else i.questions[l].isHide=!1;i.questions[l].toggleVisible=!i.questions[l].isHide,this.questionsArr.push(i.questions[l])}this.questionsArr.forEach((l,a)=>{l.toggleVisible=o[l?._id]}),this.questionsArr.sort((l,a)=>l.queIndex>a.queIndex?1:-1),this.setData(i)},i=>{this.pageLoader=!1,console.error(i)})}comparisionByQuestion(e){if(1==e?.isSecondCampiaginEnabled)return this.comparisionByCampaign(e);this.pageLoader=!0;let o={};this.questionsArr?.map(i=>{o[i?._id]=i?.toggleVisible}),this.questionsArr=[],this.ss.comparisionByQuestion(e,this.showResponsesAs).subscribe(i=>{this.isComparisionByQuestion=!0,this.isSameQuestionCompare=i.isSameQuestionCompare,this.chartType="Bar",this.questionsArr=i.result,0===this.questionsArr.length&&(this.dataFlag=!1),this.questionsArr.forEach((s,l)=>{if(s.isChecked=!1,this.isShowHide){const a=localStorage.getItem(`isHide_${l}`);a&&(s.isHide=JSON.parse(a))}else s.isHide=!1;if(s.toggleVisible=o[s?._id],"Multiple-choice grid"==s.type||"Tick box grid"==s.type){let a=[];for(let c in s?.comp_columnData)a.push({name:c,data:s?.comp_columnData[c]});s.series=a}}),console.log(this.questionsArr),setTimeout(()=>{this.showQuestionArr=[];for(let l in this.questionsArr)if("Message"!=this.questionsArr[l]?.type)if(this.showQuestionArr.push(this.questionsArr[l]._id.toString()),this.questionsArr[l].responseType="percent","Multiple-choice grid"==this.questionsArr[l].type||"Tick box grid"==this.questionsArr[l].type)"percent"==this.selectedGlobalResponse||"percent auto"==this.selectedGlobalResponse?((s=p.charts[l]).destroy(),p.charts[l]=p.chart(`barChart_${this.questionsArr[+l].queId}`,this.highchartFormatingService.formatGridQuestionToPercentageComparision(this.questionsArr[l],this.scaleType))):((s=p.charts[l]).destroy(),p.charts[l]=p.chart(`barChart_${this.questionsArr[+l].queId}`,this.highchartFormatingService.formatGridQuestionToCoutComparision(this.questionsArr[l],this.scaleType))),this.pageLoader=!1;else{let a=0,c=this.questionsArr[l];c.series.map(m=>{m.data.map(f=>{a+=f})});let d=[];c.series.map(m=>{d.push({name:m.name,data:[]})});let _=[],u=c.series[0].data.length;for(let m=0;m<u;m++){let f=0;c.series.map(C=>{f+=C.data[m]}),_.push(f)}var s;if(c.series.map(m=>{m.data.map((f,C)=>{let x=Math.round(100*f/_[C]);d.map(b=>{b.name==m.name&&b.data.push(Number.isNaN(x)?0:x)})})}),s=p.charts[l]){s.destroy();let m=this.highchartFormatingService.formatcom(d,this.questionsArr[l].labels);p.chart(`barChart_${this.questionsArr[+l].queId}`,m)}let g=this.highchartFormatingService.formatcom(d,this.questionsArr[l].labels);p.charts[l]=p.chart(`barChart_${this.questionsArr[+l].queId}`,g),this.pageLoader=!1}},3e3)},i=>{this.pageLoader=!1,console.error(i)})}comparisionByCampaign(e){this.ss.comparisionByCampaign(e,this.showResponsesAs).subscribe(o=>{setTimeout(()=>{this.showQuestionArr=[];try{for(let s in this.questionsArr){this.questionsArr[s].series=o[this.questionsArr[s]._id].series,this.questionsArr[s].labels=o[this.questionsArr[s]._id].labels,this.showQuestionArr.push(this.questionsArr[s]._id.toString()),this.questionsArr[s].responseType="percent";var i=p.charts[s];i&&i.destroy(),p.charts[s]=p.chart(`barChart_${this.questionsArr[+s]._id}`,this.highchartFormatingService.compareTOCampaigninPercentage(o[this.questionsArr[s]._id.toString()],this.scaleType))}}catch(s){console.error(s)}},2e3)},o=>{console.error(o)})}comparsionScaleChange(e){try{for(let i in this.questionsArr){this.showQuestionArr.push(this.questionsArr[i]._id.toString()),this.questionsArr[i].responseType="type";var o=p.charts[i];o&&o.destroy(),p.charts[i]=p.chart(`barChart_${this.questionsArr[+i]._id}`,"count"==e?this.highchartFormatingService.compareTOCampaign(this.questionsArr[i],this.scaleType):this.highchartFormatingService.compareTOCampaigninPercentage(this.questionsArr[i],this.scaleType))}}catch(i){console.error(i)}}getSvg(){var e=this;return(0,A.A)(function*(){if("tracker"==e.analyseMode)return localStorage.removeItem("pdfcount"),e.ss.sendClickEvent(),!1;e.isLoading=!0,console.log("The no of question is ",e.questionsArr.length);let o=[],i={};for(let a=0;a<e.questionsArr.length;a++)if(0==e.questionsArr[a].isHide){const c=p.charts[a];if(i[e.questionsArr[a]?._id]={text:e.questionsArr[a]?.text,questionRefernceNo:e.questionsArr[a]?.questionRefernceNo,responseCount:e.questionsArr[a]?.totalResponses?e.questionsArr[a]?.totalResponses:e.questionsArr[a]?.options?.responseCount?e.questionsArr[a]?.options?.responseCount:0,type:e.questionsArr[a]?.type},c){var s=c.getSVG({chart:{backgroundColor:"#ffffff"},title:{style:{color:"#333333"}},subtitle:{style:{color:"#333333"}},xAxis:{labels:{style:{color:"#333333",fontFamily:"Arial, sans-serif"}},title:{style:{color:"#333333",fontFamily:"Arial, sans-serif"}},lineColor:"#cccccc",tickColor:"#cccccc"},yAxis:{labels:{style:{color:"#333333",fontFamily:"Arial, sans-serif"}},title:{style:{color:"#333333",fontFamily:"Arial, sans-serif"}},gridLineColor:"#e6e6e6"},legend:{itemStyle:{color:"#333333",fontFamily:"Arial, sans-serif",fontWeight:"normal"}},plotOptions:{series:{dataLabels:{style:{color:"#333333",textOutline:"none",fontFamily:"Arial, sans-serif"}}}}});const d=window.btoa(unescape(encodeURIComponent(s)));o.push({image:"data:image/svg+xml;base64,"+d,qId:e.questionsArr[a]._id,base:e.questionsArr[a].totalResponses})}else console.error("Chart not found")}e.toastrService.success("Pdf generation has been started.Please do not close or refrsh the page.");let l=JSON.parse(localStorage.getItem("currentUser"));e.ss.uploadSvg({data:o,email:l?.email,preparedBy:l?.firstName+" "+l?.lastName+" ("+l?.email+")"}).subscribe(a=>{a&&0!=a?.data.length&&e.createPdf(a?.data,i)},a=>{e.isLoading=!1,console.error(a)})})()}setData(e){this.dataFlag=!1,this.chartType="Bar";for(let o in this.questionsArr){this.questionsArr[o].showTable=!1;let i=this.questionsArr[o],s=0;s=i.totalResponses;let l=0;for(const c in i.options)l+=i.options[c];let a={};for(let c in i.options){let d;this.dataFlag=!0,d=i.isMultiChoice?100*i.options[c]/s:100*i.options[c]/l,d=d%1>=.5?Math.ceil(d):Math.floor(d),a[c]=d}this.questionsArr[o].percentageOptions=a}setTimeout(()=>{for(let a in this.questionsArr){if("Multiple-choice grid"==this.questionsArr[a].type||"Tick box grid"==this.questionsArr[a].type){let c=[];for(let d in this.questionsArr[a]?.columnData)c.push({name:d,data:this.questionsArr[a]?.columnData[d]});this.questionsArr[a].series=c}if("Image/Video"!==this.questionsArr[a].type||"Image/Video"==this.questionsArr[a].type)if(1==this.questionsArr[a]?.isNpsQuestion){let c=[this.questionsArr[a].nps.score];(o=p.charts[a])&&o.destroy();let d=this.highchartFormatingService.formatNpsGaugeChart(c);p.charts[a]=p.chart(`npsData_${this.questionsArr[a]._id}`,d)}else if(1==this.questionsArr[a]?.isCsatQuestion){let c=this.questionsArr[a].csat.
1score;this.questionsArr[a].responseType="percent",(o=p.charts[a])&&o.destroy();let _=this.highchartFormatingService.formatcastdata(c);p.charts[a]=p.chart(`csatData_${this.questionsArr[a]._id}`,_)}else if(1==this.questionsArr[a]?.isCesQuestion){let c=this.questionsArr[a].ces.score;this.questionsArr[a].responseType="percent",(o=p.charts[a])&&o.destroy();let _=this.highchartFormatingService.getCesPieChartConfig(c);p.charts[a]=p.chart(`cesData_${this.questionsArr[a]._id}`,_)}else if("Text Based"!==this.questionsArr[a].type&&"Autocomplete text"!==this.questionsArr[a].type&&"Multiple-choice grid"!==this.questionsArr[a].type&&"Tick box grid"!==this.questionsArr[a].type&&"Image/Video"!==this.questionsArr[a].type){this.questionsArr[a].responseType="percent";let c={questions:[],responses:[]},d=0;d=this.questionsArr[a].totalResponses;let _=0;for(const g in this.questionsArr[a].options)_+=this.questionsArr[a].options[g];for(const g in this.questionsArr[a].options){c.questions.push(g);let f,m={type:"column",name:g,data:[]};f=this.questionsArr[a].isMultiChoice?100*this.questionsArr[a].options[g]/d:100*this.questionsArr[a].options[g]/_,f=f%1>=.5?Math.ceil(f):Math.floor(f),m.data.push([f]),c.responses.push(m)}var o=p.charts[a];let h=this.highchartFormatingService.generateBarChartConfig(c);p.charts[a]=p.chart(`barChart_${this.questionsArr[a]._id}`,h)}else if("Multiple-choice grid"==this.questionsArr[a].type||"Tick box grid"==this.questionsArr[a].type){this.questionsArr[a].responseType="percent";let c=this.highchartFormatingService.formatGridQuestionToPercentage(this.questionsArr[a],this.scaleType);p.charts[a]=p.chart(`barChart_${this.questionsArr[a]._id}`,c)}else if("Text Based"===this.questionsArr[a].type||"Autocomplete text"===this.questionsArr[a].type){let c=this.questionsArr[a].options.responses.join("");if(""===c.trim())this.hasNoSufficientData=!0,document.getElementById(`wordCloud_${this.questionsArr[a]._id}`).innerHTML="No sufficient data available",document.getElementById(`wordCloud_${this.questionsArr[a]._id}`).classList.add("noData");else{var i={name:"",weight:0},s=c.replace(/[():'?]+/g,"").split(/[,\. ]+/g),l=p.reduce(s,function(h,g){return(i=p.find(h,function(m){return m.name===g}))?i.weight+=1:h.push(i={name:g,weight:1}),h},[]);l.sort((h,g)=>g.weight-h.weight);const d=l.slice(0,600);o=p.charts[a];let u=this.highchartFormatingService.formawordcloud(d);window.innerWidth<=640&&(u.chart.width=null);try{p.charts[a]=p.chart(`wordCloud_${this.questionsArr[a]._id}`,u)}catch(h){console.error(h)}}this.pageLoader=!1}}},10),this.loading=!0}getAllMessages(){const e=JSON.parse(localStorage.getItem("currentUser"));this.dashboardService.getAllMessages(localStorage.getItem("surveyId"),e.userId).subscribe(o=>{this.userquestionsArr=o,console.log(this.userquestionsArr)},o=>{console.log(o)})}getAllResopnsesSummary(){this.dashboardService.getAllResopnsesSummary(localStorage.getItem("surveyId")).subscribe(e=>{this.overrallSummary=e,console.log()},e=>{console.log(e)})}getSurveyDetails(){this.isLoading=!0,this.sectionsArr=[],this.ss.getSurveyDetailsById().subscribe(e=>{this.surveyDetails=e,this.userResponse=e.userResponseCount,console.log(this.userResponse),e&&e.sections.map(o=>{this.sectionsArr.push(o),o.sections.map(i=>{this.sectionsArr.push(i),i.sections.map(s=>{this.sectionsArr.push(s)})})}),this.isLoading=!1},e=>{this.isLoading=!1,console.error(e)})}changeResponseType(e,o){if(this.isComparisonApplied)return p.charts[o]=p.chart(`barChart_${e._id}`,"count"==e?.responseType?this.highchartFormatingService.compareTOCampaign(e,e?.responseType):this.highchartFormatingService.compareTOCampaigninPercentage(e,e?.responseType)),!1;this.percentStatus="percent"==e.responseType,this.selectedResponse=e.responseType,e.isChecked?setTimeout(()=>{if("Text Based"!==e.type&&"Autocomplete text"!==e.type){let a={questions:[],responses:[]};if("count"==this.selectedResponse){let c={name:"Response",colorByPoint:!0,data:[]};for(const d in e.options)a.questions.push(d),c.data.push({name:d,y:e.options[d]}),console.log(a);a.responses.push(c),p.charts[o].destroy();var s=this.highchartFormatingService.getPieChartOptions(a);p.charts[o]=p.chart(`barChart_${e._id}`,s)}else{let c=0;c=e.totalResponses;let d=0;for(const h in e.options)d+=e.options[h];let _={name:"Response",colorByPoint:!0,data:[]};for(const h in e.options){let g;a.questions.push(h),g=e.isMultiChoice?100*e.options[h]/c:100*e.options[h]/d,g=g%1>=.5?Math.ceil(g):Math.floor(g),_.data.push({name:h,y:g}),console.log(a)}a.responses.push(_),p.charts[o].destroy();var l=this.highchartFormatingService.getPieChartOptionsWithPercentage(a);p.charts[o]=p.chart(`barChart_${e._id}`,l)}
1}},2e3):setTimeout(()=>{if("Text Based"!==e.type&&"Autocomplete text"!==e.type){let s={questions:[],responses:[]};if("count"==this.selectedResponse){for(const l in e.options){s.questions.push(l);let a={type:"column",name:l,data:[]};a.data.push([e.options[l]]),s.responses.push(a)}if(i=p.charts[o]){i.destroy();let l=this.highchartFormatingService.getbarchart(s);p.charts[o]=p.chart(`barChart_${e._id}`,l)}}else{let l=0;l=e.totalResponses;let a=0;for(const d in e.options)a+=e.options[d];for(const d in e.options){s.questions.push(d);let u,_={type:"column",name:d,data:[]};u=e.isMultiChoice?100*e.options[d]/l:100*e.options[d]/a,u=u%1>=.5?Math.ceil(u):Math.floor(u),_.data.push([u]),s.responses.push(_)}var i;if(i=p.charts[o]){i.destroy();let d=this.highchartFormatingService.formatbarchartconfig(s,this.scaleType);p.charts[o]=p.chart(`barChart_${e._id}`,d)}}}},2e3)}switchCharts(e,o){e.isChecked=!e.isChecked,this.changeResponseType(e,o)}changeScale(e){this.scaleType="percent auto"!=e}updateValue(e){for(let o of this.questionsArr)"percent"==e?o.responseType="percent":"count"==e?o.responseType="count":"percent auto"==e&&(o.responseType="percent auto")}globalChangeResponseType(e,o){if(this.isComparisonApplied)return this.comparsionScaleChange(o);if(e=this.questionsArr,this.isComparison){for(let i=0;i<e.length;i++)o&&this.comparsionChangeScale(o,e[i],i);return!1}for(let i=0;i<e.length;i++){let s=e[i];this.percentStatus="percent"==this.selectedGlobalResponse,(0==s?.isNpsQuestion||!s?.isNpsQuestion)&&(s.isChecked?setTimeout(()=>{if("Text Based"!==s.type&&"Autocomplete text"!==s.type){let a={questions:[],responses:[]};if("count"==this.selectedGlobalResponse){let c={name:"Response",colorByPoint:!0,data:[]};for(const _ in s.options)a.questions.push(_),c.data.push({name:_,y:s.options[_]}),console.log(a);a.responses.push(c),p.charts[i].destroy();let d=this.highchartFormatingService.formatpiechart(a);p.charts[i]=p.chart(`barChart_${s._id}`,d)}else{let c=0;c=s.totalResponses;let d=0;for(const g in s.options)d+=s.options[g];let _={name:"Response",colorByPoint:!0,data:[]};for(const g in s.options){let m;a.questions.push(g),m=s.isMultiChoice?100*s.options[g]/c:100*s.options[g]/d,m=m%1>=.5?Math.ceil(m):Math.floor(m),_.data.push({name:g,y:m}),console.log(a)}a.responses.push(_),p.charts[i].destroy();let h=this.highchartFormatingService.getPieChartOptionsWithPercentage(a);p.charts[i]=p.chart(`barChart_${s._id}`,h)}}},2e3):setTimeout(()=>{if("Text Based"!==s.type&&"Multiple-choice grid"!==s.type&&"Tick box grid"!==s.type&&"Autocomplete text"!==s.type){let a={questions:[],responses:[]};if("count"==this.selectedGlobalResponse){for(const c in s.options){a.questions.push(c);let d={type:"column",name:c,data:[]};d.data.push([s.options[c]]),a.responses.push(d)}if(l=p.charts[i]){l.destroy();let c=this.highchartFormatingService.getbarchart(a);p.charts[i]=p.chart(`barChart_${s._id}`,c)}}else{let c=0;c=s.totalResponses;let d=0;for(const h in s.options)d+=s.options[h];for(const h in s.options){a.questions.push(h);let m,g={type:"column",name:h,data:[]};m=s.isMultiChoice?100*s.options[h]/c:100*s.options[h]/d,m=m%1>=.5?Math.ceil(m):Math.floor(m),g.data.push([m]),a.responses.push(g)}(l=p.charts[i]).destroy();let u=this.highchartFormatingService.formatbarchartconfig(a,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,u)}}if("Multiple-choice grid"==s.type||"Tick box grid"==s.type){var l;if((l=p.charts[i]).destroy(),"count"!=this.selectedGlobalResponse){let c=this.highchartFormatingService.formatGridQuestionToPercentage(s,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,c)}if("count"==this.selectedGlobalResponse){let c=this.highchartFormatingService.formatGridQuestionToCout(s,this.scaleType);p.charts[i]=p.chart(`barChart_${s._id}`,c)}}},2e3))}}comparsionChangeScale(e,o,i){if(console.log(e,o),"Multiple-choice grid"==o?.type||"Tick box grid"==o?.type)"percent"==e||"percent auto"==e?(p.charts[i].destroy(),p.charts[i]=p.chart(`barChart_${this.questionsArr[+i].queId}`,this.highchartFormatingService.formatGridQuestionToPercentageComparision(this.questionsArr[i],"percent"==e))):(p.charts[i].destroy(),p.charts[i]=p.chart(`barChart_${this.questionsArr[+i].queId}`,this.highchartFormatingService.formatGridQuestionToCoutComparision(this.questionsArr[i],this.scaleType)));else{let l=0;if("percent"==e||"percent auto"==e){o.series.map(_=>{_.data.map(u=>{l+=u})});let a=[];o.series.map(_=>
1{a.push({name:_.name,data:[]})});let c=[],d=o.series[0].data.length;for(let _=0;_<d;_++){let u=0;o.series.map(h=>{u+=h.data[_]}),c.push(u)}o.series.map(_=>{_.data.map((u,h)=>{let g=Math.round(100*u/c[h]);a.map(m=>{m.name==_.name&&m.data.push(Number.isNaN(g)?0:g)})})}),console.log(c),console.log(a),console.log(l)}}}createPdf(e,o){var i=this;return(0,A.A)(function*(){let s=[];s.push({text:"Survey Report",style:"header"}),s.push({text:[{text:"Name of the survey - ",alignment:"left",fontSize:12,bold:!0},{text:localStorage.getItem("surveyName"),alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,50,0,0]}),s.push({text:[{text:"Date - ",alignment:"left",fontSize:12,bold:!0},{text:`${(new Date).toDateString()}`,alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,20,0,0]}),s.push({text:[{text:"Time - ",alignment:"left",fontSize:12,bold:!0},{text:` ${(new Date).getHours()} : ${(new Date).getMinutes()} : ${(new Date).getSeconds()}`,alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,20,0,0]});for(let a=0;a<e.length;a++){const c=o[e[a].qId].text,d=o[e[a].qId].questionRefernceNo+" - ";if(i.hasEmoji(c)?s.push({image:i.renderEmojiLine(d,"#326af1",c,"#000000",12),width:490,margin:[0,20,0,0],pageBreak:"before"}):s.push({text:[{text:d,fontSize:12,bold:!0,italics:!1,color:"#326af1"},{text:c,fontSize:12,bold:!0,italics:!1,color:"#000"}],margin:[0,20,0,0],pageBreak:"before"}),0==i.isComparison&&0==i.isFilter&&s.push({text:[{text:"Base - ",fontSize:12,bold:!0,italics:!1,color:"#326af1"},{text:e[a].base||0,fontSize:12,bold:!0,italics:!1,color:"#000"}],margin:[0,10,0,20]}),"Image/Video"!==o[e[a].qId].type){let _=e[a].imgData.url;const u=yield i.convertImgToBase64URL(_,"image/png");s.push({image:u,width:380,style:"logo",margin:[0,50,0,20]})}else s.push({text:[{text:"Total responses count - ",fontSize:12,bold:!0,italics:!1,color:"#326af1"},{text:o[e[a].qId].responseCount,fontSize:12,bold:!0,italics:!1,color:"#000"}],margin:[0,20,0,0]})}const l={content:s,footer:{columns:[{text:[{text:"Powered By ",alignment:"right",fontSize:8,fontFamily:"Rubik"},{text:"merren.io",link:"https://merren.io/",color:"#f79522",alignment:"right",fontSize:8,fontFamily:"Italic"}],alignment:"right"}],margin:[0,5,5,0]},unbreakable:!0,styles:{header:{fontSize:20,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#f79522",alignment:"center"},headerValue:{fontSize:18,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#007bff"},questionRef:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"#007bff"},questiontext:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"#000"},questionRef1:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,20,0,0],color:"#007bff"},questiontext1:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,20,0,0],color:"#000"},logo:{alignment:"center"},hlogo:{alignment:"left"},subheader:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,10,10,0],alignment:"center"},response:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"blue",margin:[0,0,0,0],width:"50%"},tableExample:{margin:[0,5,0,15]}}};j().createPdf(l).download(localStorage.getItem("surveyName")+(new Date).getTime()+".pdf"),i.isLoading=!1})()}hasEmoji(e){return/[\u{1F000}-\u{1FFFF}]|[\u{2300}-\u{23FF}]|[\u{2600}-\u{27BF}]|[\u{2B00}-\u{2BFF}]/gu.test(e)}renderEmojiLine(e,o,i,s,l){const c=`600 ${3*l}px -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,d=1470,_=3*l*1.6,u=document.createElement("canvas"),h=u.getContext("2d");h.font=c;const g=h.measureText(e).width,m=i.split(" "),f=[];let C="",x=!0;for(const b of m){const F=C?`${C} ${b}`:b,D=x?d-g:d;h.measureText(F).width>D&&C?(f.push(C),C=b,x=!1):C=F}C&&f.push(C),0===f.length&&f.push(""),u.width=d,u.height=f.length*_+.4*_,h.font=c,h.textBaseline="top",h.fillStyle=o,h.fillText(e,0,.1*_),h.fillStyle=s,h.fillText(f[0],g,.1*_);for(let b=1;b<f.length;b++)h.fillText(f[b],0,b*_+.1*_);return u.toDataURL("image/png")}convertImgToBase64URL(e,o){return new Promise(i=>{var s=document.createElement("canvas");const l=s.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){s.height=a.height,s.width=a.width,l.drawImage(a,0,0);const c=s.toDataURL(o);i(c),s=null},a.src=e})}selectAll(){this.questionsArr.forEach((e,o)=>{e.toggleVisible=!0})}clearAll(){this.questionsArr.forEach((e,o)=>{e.toggleVisible=!1})}updateIsHideValue(e,o){this.questionsArr[e].isHide=o,localStorage.setItem(`isHide_${e}`,JSON.stringify(o))}
1showHideQuestions(e){let o=Object.keys(e),i=!0;this.questionsArr.forEach((s,l)=>{!0===e[s?._id]||e[s?._id]||-1===o.indexOf(s?._id)?(s.toggleVisible=!0,i=!1):s.toggleVisible=!1}),this.showNoDataMessage=i,console.log(this.questionsArr),console.log("No Data Available:",this.showNoDataMessage)}clearShowHideRecord(){this.selectAll(),this.questionsArr.forEach((e,o)=>{e.toggleVisible=!0,localStorage.removeItem(`isHide_${o}`)})}changeGridScale(e,o){if("Multiple-choice grid"==e.type||"Tick box grid"==e.type){p.charts[o].destroy();const s=e.responseType;if("count"!==s){let l=this.highchartFormatingService.formatGridQuestionToPercentage(e,this.scaleType);p.charts[o]=p.chart(`barChart_${e._id}`,l)}if("count"===s){let l=this.highchartFormatingService.formatGridQuestionToCout(e,this.scaleType);p.charts[o]=p.chart(`barChart_${e._id}`,l)}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),clearInterval(this.reflowInterval)}getQuestionSummary(){this.ss.getQuestionSummary(localStorage.getItem("surveyId")).subscribe(e=>{if(e)for(let o of e)for(let i of this.questionsArr)o?.questionId?.toString()==i?._id?.toString()&&(i.summary=o?.summary);console.log("question summary responses",e)},e=>{console.error(e)})}formartSummary(e){return e?e?.replace(/\n/g,"<br>"):""}goToViewResponses(e){const o=this.filteredMedia.filter(i=>i.question?._id?.toString()===e._id?.toString());this.router.navigate(["/survey/analyse/view-media-responses",e._id],{state:{filteredMedia:o}})}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(T.I),t.rXU(L.I),t.rXU(H.k),t.rXU(q.tw),t.rXU(k.nX),t.rXU(N.F),t.rXU(k.Ix))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-results"]],hostBindings:function(o,i){1&o&&t.bIt("resize",function(){return i.reflowCharts()},!1,t.tSv)},decls:5,vars:5,consts:[["class","col-sm-12 text-center data ",4,"ngIf"],["class","col-sm-12 text-center data ",4,"ngIf"],["class","rs-page-loader",4,"ngIf"],["id","contentToConvert",1,"col-sm-12","pl-3","rs-content-wrap",3,"hidden"],["class","rs-card p-0 print shadow mb-4 rounded ml-2",3,"ngClass",4,"ngFor","ngForOf"],[1,"col-sm-12","text-center","data"],[1,"nodata","d-flex","flex-column","justify-content-center","align-items-center"],[1,"rs-page-loader"],["role","status",1,"spinner-grow",2,"width","2rem","height","2rem","color","#F79522"],[1,"sr-only"],[1,"rs-card","p-0","print","shadow","mb-4","rounded","ml-2",3,"ngClass"],[4,"ngIf"],[1,"rs-card-header","d-flex","align-items-center"],[1,"rs-q-badge"],[1,"rs-q-info"],["class","rs-q-text",4,"ngIf"],[1,"rs-q-type"],[1,"col-sm-8","m-0","d-flex","justify-content-end"],[1,"d-flex","align-items-center","justify-content-end","p-0","pr-2",3,"ngClass"],[1,"rs-q-type","rs-q-type-mobile"],["class","px-0 text-right mr-1",4,"ngIf"],["class","d-flex mr-2 ml-1",4,"ngIf"],["class","p-0 d-flex pl-3",4,"ngIf"],["class","p-0 d-flex pl-2",4,"ngIf"],["class","d-flex justify-content-end p-0 py-2 pr-2",3,"ngClass",4,"ngIf"],["class","text-right py-2 pl-2",4,"ngIf"],["class","pt-2 ml-1 pl-3 text-right pb-2",3,"ngClass",4,"ngIf"],[1,"rs-card-body"],["class","rs-media-row",4,"ngIf"],["class","col-sm-12 d-flex rs-question-row",4,"ngIf"],[1,"rs-q-text"],[1,"px-0","text-right","mr-1"],[1,"d-flex","mr-2","ml-1"],["class","m-auto",4,"ngIf"],[1,"m-auto"],[1,"rs-chart-toggle",2,"margin","0"],["type","checkbox",2,"display","none",3,"change","checked"],[1,"rs-chart-btn"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/bar-chart-1.svg","class","rs-chart-icon","alt","",4,"ngIf"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/bar-chart.svg","class","rs-chart-icon rs-chart-icon--dim","alt","",4,"ngIf"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/pie-chart.svg","class","rs-chart-icon rs-chart-icon--dim","alt","",4,"ngIf"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/pie-chart-active.svg","class","rs-chart-icon","alt","",4,"ngIf"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/bar-chart-1.svg","alt","",1,"rs-chart-icon"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/bar-chart.svg","alt","",1,"rs-chart-icon","rs-chart-icon--dim"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/pie-chart.svg","alt","",1,"rs-chart-icon","rs-chart-icon--dim"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/assets/img/pie-chart-active.svg","alt","",1,"rs-chart-icon"],[1,"p-0","d-flex","pl-3"],["class","rp-native-select rs-scale-select","bindLabel","label","bindValue","value",3,"items","appendTo","clearable","searchable","ngModel","ngModelChange",4,"ngIf"],["bindLabel","label","bindValue","value",1,"rp-native-select","rs-scale-select",3,"ngModelChange","items","appendTo","clearable","searchable","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"p-0","d-flex","pl-2"],[1,"d-flex","justify-content-end","p-0","py-2","pr-2",3,"ngClass"],[1,"px-0","text-right"],[1,"btn","btn-outline-primary",2,"font-size","0.8rem","padding","6px","width","100px",3,"click"],[1,"text-right","py-2","pl-2"],[1,""],[1,"rs-btn-primary",3,"click"],["type","button","class","rs-btn-secondary ml-2",3,"click",4,"ngIf"],["type","button",1,"rs-btn-secondary","ml-2",3,"click"],[1,"pt-2","ml-1","pl-3","text-right","pb-2",3,"ngClass"],[1,"rs-btn-primary",2,"text-decoration","none",3,"click"],[1,"rs-media-row"],[1,"rs-media-text"],[1,"rs-media-count"],[1,"col-sm-12","d-flex","rs-question-row"],[3,"ngClass"],[1,"col-sm-12","row"],["class","row d-flex",4,"ngIf"],["class","col-sm-4 pr-0 mr-0",4,"ngIf"],["role","status",4,"ngIf"],["class","table-container2",4,"ngIf"],["class","col-sm-12 mt-3",4,"ngIf"],[1,"row","d-flex"],["class","col-sm-8 col-md-8 col-lg-8 m-auto",4,"ngIf"],["class","col-sm-8 col-md-8 col-lg-8 m-auto d-flex flex-column justify-content-end align-items-center",4,"ngIf"],["class","col-sm-8 col-md-8 col-lg-8 m-auto d-flex flex-column justify-content-end align-items-center ",3,"ngClass",4,"ngIf"],[1,"col-sm-8","col-md-8","col-lg-8","m-auto"],[2,"min-width","450px","max-width","1400px","height","490px","margin","0 auto",3,"id"],[1,"col-sm-8","col-md-8","col-lg-8","m-auto","d-flex","flex-column","justify-content-end","align-items-center"],[1,"col-sm-8","col-md-8","col-lg-8","m-auto","d-flex","flex-column","justify-content-end","align-items-center",3,"ngClass"],[1,"word-cloud-container",3,"id"],[1,"col-sm-4","pr-0","mr-0"],["class","col-sm-12 pr-0 insight-container-wrapper",4,"ngIf"],[1,"col-sm-12","pr-0","insight-container-wrapper"],[1,"col-sm-12","border-left","insight-container"],[1,"text-center","insight-headline",2,"background-color","#FFEBD3","padding","15px","border-radius","11px"],[1,"ex1","text-center"],[1,"insight-summary",2,"text-align","left",3,"innerHTML"],["role","status"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],["role","status",1,"spinner-grow","mb-2"],[1,"table-container2"],[1,"scrollable-table-wrapper"],[1,"table","mb-0","full-table"],[4,"ngFor","ngForOf"],["controls","",4,"ngIf"],[1,"text-container"],["controls",""],["type","audio/mpeg",3,"src"],[1,"col-sm-12","mt-3"],["class","tbl-fixed",4,"ngIf"],["class","tbl-fixed","style","overflow-x: auto;",4,"ngIf"],[1,"tbl-fixed"],[1,"table","table-bordered"],[1,"thead-dark"],["scope","row"],["class","table table-bordered",4,"ngIf"],["class","table-responsive tbl-fixed","style","max-height: 400px; overflow-y: auto;",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],["scope","col"],[1,"table-responsive","tbl-fixed",2,"max-height","400px","overflow-y","auto"],[1,"table","table-bordered","table-vertical"],[1,"tbl-fixed",2,"overflow-x","auto"]],template:function(o,i){1&o&&(t.DNE(0,Li,3,0,"div",0)(1,zi,3,0,"div",1)(2,Ji,4,0,"div",2),t.j41(3,"div",3),t.DNE(4,Ln,2,4,"div",4),t.k0s()),2&o&&(t.Y8G("ngIf",0==i.dataFlag&&"graph"==i.analyseMode&&0==i.pageLoader&&!i.isComparison&&0==i.questionsArr.length),t.R7$(),t.Y8G("ngIf",i.showNoDataMessage&&0!=i.questionsArr.length),t.R7$(),t.Y8G("ngIf",i.pageLoader),t.R7$(),t.Y8G("hidden",i.pageLoader),t.R7$(),t.Y8G("ngForOf",i.questionsArr))},dependencies:[y.YU,y.Sq,y.bT,O.BC,O.vS,R.vr,R.Uq,R.ZZ,y.lG],styles:["@charset \"UTF-8\";.btn-que[_ngcontent-%COMP%]{background:#f79522!important;color:#fff;border-radius:8px 8px 0 0;font-family:Lato;font-size:14px;font-style:normal;font-weight:800;text-transform:uppercase}.que-text[_ngcontent-%COMP%]{font-family:Rubik;font-size:19px;font-style:normal;font-weight:400;line-height:25px;letter-spacing:0px;text-align:left}.clr-grey[_ngcontent-%COMP%]{color:#4f4f4f}.respondants-txt[_ngcontent-%COMP%]{font-family:Lato;font-size:18px;font-style:normal;font-weight:400;line-height:22px;letter-spacing:0px;text-align:left}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer!important}tr[_ngcontent-%COMP%]{font-family:Lato;font-size:12px;font-style:normal;font-weight:500;line-height:17px;letter-spacing:0px;text-align:left}th[_ngcontent-%COMP%]{font-family:Lato;font-size:14px;font-style:normal;font-weight:700;line-height:17px;letter-spacing:0px;text-align:left}.switch[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{position:relative!important;transform:none!important;bottom:5px!important;left:43px!important}.switch[_ngcontent-%COMP%] .on[_ngcontent-%COMP%]{position:relative!important;transform:none!important;bottom:0!important;left:-43px!important}.pie-inactive[_ngcontent-%COMP%], .pie-active[_ngcontent-%COMP%], .bar-inactive[_ngcontent-%COMP%], .bar-active[_ngcontent-%COMP%]{position:relative;bottom:0}.lbl1[_ngcontent-%COMP%]{margin-left:19px}.lbl2[_ngcontent-%COMP%], .top[_ngcontent-%COMP%]{margin-top:-30px}.card-header[_ngcontent-%COMP%]{cursor:pointer}.bootmClass[_ngcontent-%COMP%]{padding-top:20px;padding-right:20px;padding-bottom:20px;width:265px}.progress-overlay[_ngcontent-%COMP%]{position:absolute;background:#000;width:87%;height:87%;opacity:.7;display:flex;justify-content:center;align-items:center;top:32px}.panel[_ngcontent-%COMP%]{padding:0 18px;background-color:#fff;max-height:0;overflow:hidden;transition:max-height .2s ease-out}.col1[_ngcontent-%COMP%]{color:var(--secondaryColor);background-color:#f7952221}.lefta[_ngcontent-%COMP%]{width:112%;margin-left:-6%;border-right:4px solid #f79522;font-family:var(--lato);font-style:normal;font-weight:400;font-size:var(--size18);line-height:var(--size22);letter-spacing:normal}.heightA[_ngcontent-%COMP%]{height:3%}[aria-expanded=true][_ngcontent-%COMP%]{border-right:4px solid #f79522!important;background-color:#f7952221!important;color:var(--secondaryColor)!important}[aria-expanded=false][_ngcontent-%COMP%] .activeSvg[_ngcontent-%COMP%]{fill:#000!important}[aria-expanded=true].filter-more[_ngcontent-%COMP%]{border-right:0px solid #f79522!important;background-color:#fef1e2!important;color:#000!important}.response[_ngcontent-%COMP%]{font-style:Lato}.print[_ngcontent-%COMP%]{page-break-after:always}.minimized[_ngcontent-%COMP%]{width:0}.maximized[_ngcontent-%COMP%]{margin-left:0!important;min-width:100%}.txt-wrap[_ngcontent-%COMP%]{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{width:300px!important}.remove-icon[_ngcontent-%COMP%]{cursor:pointer;margin-left:5px;font-weight:700;color:0}div.ex1[_ngcontent-%COMP%]{height:400px;overflow:auto}.webbot[_ngcontent-%COMP%]{background-color:#fffbf5;height:293px;border-radius:10px;border-color:#f795225e;border-style:solid}#tabbedContent[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] .nav-item[_ngcontent-%COMP%]{padding-right:42px}.inlineIcon[_ngcontent-%COMP%]{width:17px;margin-top:6px}.bubbleWrapper[_ngcontent-%COMP%]{padding:10px 16px;display:flex;justify-content:flex-end;flex-direction:column;align-self:flex-end;color:#000}.profilePhoto[_ngcontent-%COMP%]{width:32px;object-fit:contain}.otherBubble[_ngcontent-%COMP%]{min-width:60px;max-width:345px;padding:9px 13px;margin:6px 8px;background-color:#dae1f2;border-radius:0 14px 14px;font-family:Lato,sans-serif;font-size:14px;word-wrap:break-word;align-self:flex-start}.inlineContainer[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.ownBubble[_ngcontent-%COMP%]{min-width:60px;max-width:345px;padding:9px 13px;margin:6px 8px;background-color:#ffdcb3;border-radius:14px 0 14px 14px;font-family:Lato,sans-serif;font-size:14px;word-wrap:break-word;color:#000000c7}.inlineContainer.own[_ngcontent-%COMP%]{flex-direction:row-reverse}.own[_ngcontent-%COMP%]{margin-left:11px;align-self:flex-end;font-family:sans-serif;font-size:10px}.ip2[_ngcontent-%COMP%]{border-radius:25px;border:2px solid rgb(246,241,249);padding:20px;width:90%;height:15px;margin-right:20px}.content[_ngcontent-%COMP%]{height:213px}div.ex2[_ngcontent-%COMP%]{height:295px;overflow:auto}.bar-inactive[_ngcontent-vah-c430][_ngcontent-%COMP%]{left:0}.btn-outline-secondary[_ngcontent-%COMP%]{box-shadow:none}.imgtag[_ngcontent-%COMP%]{height:20px;width:20px}.btn-outline-secondary[_ngcontent-%COMP%]:hover, .btn-outline-secondary[_ngcontent-%COMP%]:not(:disabled):not(.disabled):hover, .btn-outline-secondary.focus[_ngcontent-%COMP%], .btn-outline-secondary[_ngcontent-%COMP%]:not(:disabled):not(.disabled).focus{background-color:#f79522;color:#fff}.copy-icon[_ngcontent-%COMP%]{padding:4px;margin-left:10px}.copy-icon.clicked[_ngcontent-%COMP%]{filter:invert(100%)}.mainContent[_ngcontent-%COMP%]{max-height:88vh;overflow-y:auto}.rightsidebar[_ngcontent-%COMP%]{background-color:#f3f9ff;cursor:pointer;max-height:88vh;overflow-y:auto}.sidebarcontainer[_ngcontent-%COMP%]{z-index:999999;background-color:#fff;position:absolute;height:100%}.btn-outline-secondary[_ngcontent-%COMP%]{box-shadow:0}.title[_ngcontent-%COMP%]{font-weight:600;font-size:20px}.data[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68vh}.rs-page-loader[_ngcontent-%COMP%]{width:100%;min-height:70vh;display:flex;align-items:center;justify-content:center;background:#101116}.border-class[_ngcontent-%COMP%]{border-right:5px solid #f79522}.bootmClassbg[_ngcontent-%COMP%]{background:#fef1e2}.showquestions[_ngcontent-%COMP%]{color:#000}.hidequestions[_ngcontent-%COMP%]{color:#929292}.border-noclass[_ngcontent-%COMP%]{border-right:0px}.msg-body[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none;overflow-y:scroll;overflow-y:auto}.msg-body[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;height:100%;overflow-y:auto}.normalloader[_ngcontent-%COMP%]{border:8px solid #f3f3f3;border-radius:50%;border-top:8px solid #f79522;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:10px;margin:0}.loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:5px}
1.circle[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background-color:#007bff;margin:0 3px;animation:_ngcontent-%COMP%_pulse 1s infinite}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.2);background-color:#f79522}to{transform:scale(1)}}.copy-message[_ngcontent-%COMP%]{color:green;margin:0}.question[_ngcontent-%COMP%]{background-color:#f79522;border-top-left-radius:8px;color:#fff}.section-box[_ngcontent-%COMP%]{border-radius:4px;border:.5px solid #252525;padding:10px;position:relative}.section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.filter-input[_ngcontent-%COMP%]{border:none;outline:none;background-color:transparent;width:100%;padding:5px}.highlight-border[_ngcontent-%COMP%]{border:2px solid #f79522;box-shadow:0 0 10px #f79522b3}.filter[_ngcontent-%COMP%]{background-color:#fff;width:100%;min-height:88vh;height:max-content}.width-95[_ngcontent-%COMP%]{width:95%}.width-100[_ngcontent-%COMP%]{width:100%}.width-5[_ngcontent-%COMP%]{width:5%}.width-30[_ngcontent-%COMP%]{width:30%}.width-70[_ngcontent-%COMP%]{width:70%}div[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}@media only screen and (width: 1920px){.ex2[_ngcontent-%COMP%]{height:722px!important}.content[_ngcontent-%COMP%]{height:640px!important}.webbot[_ngcontent-%COMP%]{height:722px!important}.otherBubble[_ngcontent-%COMP%]{min-width:60px!important;max-width:345px!important}}@media only screen and (width: 1366px){.ex2[_ngcontent-%COMP%]{height:460px!important}.content[_ngcontent-%COMP%]{height:386px!important}.webbot[_ngcontent-%COMP%]{height:464px!important}.otherBubble[_ngcontent-%COMP%]{min-width:60px!important;max-width:345px!important}}@media only screen and (width: 1600px){.ex2[_ngcontent-%COMP%]{height:580px!important}.content[_ngcontent-%COMP%]{height:504px!important}.webbot[_ngcontent-%COMP%]{height:580px!important}.otherBubble[_ngcontent-%COMP%]{min-width:60px!important;max-width:345px!important}}h5[_ngcontent-%COMP%]{font-size:16px}h6[_ngcontent-%COMP%]{font-size:14px}#contentToConvert[_ngcontent-%COMP%]{padding-top:20px}.rs-card[_ngcontent-%COMP%]{background:#1d1f26!important;border:1px solid #363A47;box-shadow:0 4px 16px #0006!important;margin-bottom:20px!important;overflow:hidden}.rs-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:4px 6px;border-bottom:1px solid #363A47;flex-wrap:wrap}.rs-q-badge[_ngcontent-%COMP%]{background:#f79522;color:#fff;font-size:12px;font-weight:700;min-width:36px;min-height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0 6px}.rs-q-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.rs-q-text[_ngcontent-%COMP%]{color:#fff;font-size:16px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block;margin-right:16px}.rs-q-type[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#c5c5c5}.rs-q-type--media[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#fff}.rs-q-type-mobile[_ngcontent-%COMP%]{display:none}.rs-media-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:18px 6px 0;margin:-16px -16px 0}.rs-media-text[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#fff}.rs-media-count[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#fff;border-left:1px solid #ffffff;padding-left:12px}
1.rs-card-header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff!important}.rs-card-header[_ngcontent-%COMP%] [class*=col-][_ngcontent-%COMP%]{flex:0 0 auto!important;width:auto!important;max-width:none!important;padding-left:0!important;padding-right:0!important}.rs-card-header[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{background:#2285f7!important;border-color:#2285f7!important;color:#fff!important;border-radius:10px!important;font-size:13px!important;padding:6px 16px!important;white-space:nowrap}.rs-card-header[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]:hover{background:#0870e8!important}.rs-card-header[_ngcontent-%COMP%] .border[_ngcontent-%COMP%], .rs-card-header[_ngcontent-%COMP%] .border.shadow-sm[_ngcontent-%COMP%]{background:#13151c!important;border-color:#363a47!important;border-radius:6px!important}.rs-chart-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:stretch;cursor:pointer;padding:0;gap:0}.rs-chart-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:40px;height:35px;border:1px solid #363A47;padding:9px;background:#191b21;transition:background .15s,border-color .15s}.rs-chart-btn[_ngcontent-%COMP%]:first-of-type{border-right:none;border-radius:14px 0 0 14px}
1.rs-chart-btn[_ngcontent-%COMP%]:last-of-type{border-radius:0 14px 14px 0}.rs-chart-btn--active[_ngcontent-%COMP%]{background:bisque!important;border-color:#f79522!important}.rs-chart-icon[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.rs-chart-icon--dim[_ngcontent-%COMP%]{filter:invert(50%)}.rs-select[_ngcontent-%COMP%]{appearance:none!important;background-color:#191b21!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;border:1px solid #363A47!important;border-radius:10px!important;color:#fff!important;font-size:13px!important;height:35px!important;padding:4px 40px 4px 16px!important;cursor:pointer;min-width:160px}.rs-select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{background:#13151c;color:#fff}.rs-select[_ngcontent-%COMP%]:focus{border-color:#2285f7!important;outline:none}[_nghost-%COMP%] .rs-scale-select.rp-native-select .ng-select-container{height:35px!important;min-height:35px!important}[_nghost-%COMP%] .rs-scale-select.rp-native-select .ng-arrow-wrapper{width:auto!important;padding-right:0!important}.rs-btn-primary[_ngcontent-%COMP%]{background:#191b21;border:1px solid #2285F7;color:#2285f7;border-radius:10px;font-size:13px;height:35px!important;min-width:112px;font-weight:500;padding:6px 16px;cursor:pointer;white-space:nowrap;text-align:center;transition:background .15s}.rs-btn-primary[_ngcontent-%COMP%]:hover{background:#2285f71a}.rs-btn-primary[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.rs-btn-secondary[_ngcontent-%COMP%]{background:transparent;border:1px solid #363A47;color:#9ca3af;border-radius:9999px;font-size:13px;font-weight:500;padding:6px 16px;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}.rs-btn-secondary[_ngcontent-%COMP%]:hover{background:#ffffff0f;color:#fff}.rs-card-body[_ngcontent-%COMP%]{background:#1d1f26!important;padding:16px;color:#e0e0e0}.rs-card-body[_ngcontent-%COMP%] > .col-sm-12.d-flex[_ngcontent-%COMP%]{flex-wrap:wrap}.rs-que-text[_ngcontent-%COMP%]{color:#fff!important;font-size:15px!important;line-height:1.5!important}.rs-card-body[_ngcontent-%COMP%] .table-bordered[_ngcontent-%COMP%]{border-color:#363a47!important;color:#e0e0e0!important;background:#13151c!important}.rs-card-body[_ngcontent-%COMP%] .table-bordered[_ngcontent-%COMP%] thead.thead-dark[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#0b0d12!important;color:#fff!important;border-color:#363a47!important;font-size:13px}.rs-card-body[_ngcontent-%COMP%] .table-bordered[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .rs-card-body[_ngcontent-%COMP%] .table-bordered[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#13151c!important;color:#e0e0e0!important;border-color:#363a47!important;padding:10px 12px!important;vertical-align:middle!important;font-size:13px}.tbl-fixed[_ngcontent-%COMP%] table.table-bordered[_ngcontent-%COMP%]{border-color:#363a47!important}.full-table[_ngcontent-%COMP%]{background:#13151c}.full-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:#0b0d12!important}.full-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#0b0d12!important;color:#fff!important}.full-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#13151c!important;color:#e0e0e0!important;border-color:#363a47!important}.rs-card-body[_ngcontent-%COMP%] .btn-outline-primary[_ngcontent-%COMP%]{background:transparent!important;border:1px solid #2285F7!important;color:#2285f7!important;border-radius:9999px!important;font-size:12px!important}.rs-card-body[_ngcontent-%COMP%] .btn-outline-primary[_ngcontent-%COMP%]:hover{background:#2285f71a!important}.rs-card-body[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{background:#2285f7!important;border-color:#2285f7!important;color:#fff!important;border-radius:9999px!important}.rs-card-body[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]:hover{background:#0870e8!important}.insight-container[_ngcontent-%COMP%]{background:#13151c!important;border-left:3px solid #F79522!important}.insight-headline[_ngcontent-%COMP%]{background:#f7952226!important;color:#fff!important}.insight-summary[_ngcontent-%COMP%]{color:#e0e0e0!important}.reswidth[_ngcontent-%COMP%]{width:20%!important}.word-cloud-container[_ngcontent-%COMP%]{height:490px;margin-top:20px;transition:width .3s ease}.insight-container[_ngcontent-%COMP%]{background-color:#fff;border-left:3px solid #f79522}.insight-headline[_ngcontent-%COMP%]{background-color:#ffebd3;padding:15px;border-radius:11px}.insight-summary[_ngcontent-%COMP%], .insight-error[_ngcontent-%COMP%]{font-size:.8rem}button[disabled][_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#888;border-radius:10px;border:3px solid #cdc6c6}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#a9a7a7}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#f1f1f1}.f16[_ngcontent-%COMP%]{font-size:16px!important}.table-container[_ngcontent-%COMP%]{width:95%;margin:0 auto;border:1px solid #ddd;overflow:hidden}.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#f1f1f1}.highcharts-root[_ngcontent-%COMP%]{width:300px!important}.tbl-fixed[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:auto;width:100%;white-space:nowrap}.tbl-fixed[_ngcontent-%COMP%]::-webkit-scrollbar{height:8px;width:8px}.tbl-fixed[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#0000004d;border-radius:4px}.tbl-fixed[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:#0000001a}.table-container2[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%}.table-container2[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;max-width:1200px;border-collapse:collapse}.table-body-scroll[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;width:100%}.table-body-scroll[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}td[_ngcontent-%COMP%]{vertical-align:middle;padding:10px}.text-container[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer}.scrollable-table-wrapper[_ngcontent-%COMP%]{width:100%;max-height:400px;overflow-y:auto}.full-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.full-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background-color:#f69522;position:sticky;top:0;z-index:1}.full-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:14px;color:#fff;font-weight:600;padding:12px 15px;background-color:#f69522}.full-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 15px;vertical-align:middle;background-color:#fff}.nodata[_ngcontent-%COMP%]{font-size:22px!important;display:flex;align-items:center;color:#8a8a8a;font-weight:400!important} .highcharts-button-symbol{stroke:#fff!important;fill:#fff!important} .highcharts-contextbutton .highcharts-button-box{fill:transparent!important;stroke:#878686!important;stroke-width:1px!important}@media (max-width: 640px){.rs-content-wrap[_ngcontent-%COMP%]{width:104%!important}.rs-card-header[_ngcontent-%COMP%]{padding:10px 12px;gap:8px;row-gap:2px;align-items:flex-start}.rs-q-badge[_ngcontent-%COMP%]{min-width:40px;min-height:40px;font-size:13px}.rs-q-text[_ngcontent-%COMP%]{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;margin-right:0;margin-top:-16px}.rs-q-info[_ngcontent-%COMP%] .rs-q-type[_ngcontent-%COMP%]{display:none}.rs-q-type-mobile[_ngcontent-%COMP%]{display:inline-block}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%]{flex:0 0 100%!important;width:100%!important;justify-content:flex-start!important;flex-wrap:wrap;row-gap:8px;margin-top:-2px}
1.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] > .d-flex.align-items-center.justify-content-end[_ngcontent-%COMP%]{flex:1 0 calc(100% - 48px)!important;width:calc(100% - 48px)!important;margin-left:48px!important;justify-content:flex-start!important;padding:0!important;gap:6px;flex-wrap:nowrap;margin-top:-20px}.rs-card-header[_ngcontent-%COMP%]:has(.rs-q-type--media) > [class*=col-sm-8][_ngcontent-%COMP%] > .d-flex.align-items-center.justify-content-end[_ngcontent-%COMP%]{margin-top:-50px!important}.rs-q-type-mobile[_ngcontent-%COMP%], .rs-card-header[_ngcontent-%COMP%] .px-0.text-right.mr-1[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0}.rs-card-header[_ngcontent-%COMP%] .px-0.text-right.mr-1[_ngcontent-%COMP%]{color:#c5c5c5;font-size:13px}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] .m-auto[_ngcontent-%COMP%]{margin:0!important;min-width:0;flex:1 1 auto}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] > .d-flex.mr-2.ml-1[_ngcontent-%COMP%]{margin:0!important;flex-shrink:0}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] > .p-0.d-flex.pl-3[_ngcontent-%COMP%], .rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] >
1 .p-0.d-flex.pl-2[_ngcontent-%COMP%]{padding:0!important;flex:1 1 auto;min-width:0}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] > .text-right.py-2.pl-2[_ngcontent-%COMP%], .rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%] > .pt-2.ml-1.pl-3.text-right.pb-2[_ngcontent-%COMP%]{padding:0!important;margin:0!important;flex-shrink:0}.rs-card-header[_ngcontent-%COMP%] > [class*=col-sm-8][_ngcontent-%COMP%]{column-gap:4px}.rs-chart-toggle[_ngcontent-%COMP%]{flex-shrink:0}.rs-chart-btn[_ngcontent-%COMP%]{width:24px!important;height:30px!important;padding:4px!important}.rs-chart-btn[_ngcontent-%COMP%]:first-of-type{border-radius:10px 0 0 10px!important}.rs-chart-btn[_ngcontent-%COMP%]:last-of-type{border-radius:0 10px 10px 0!important}.rs-select[_ngcontent-%COMP%]{border:1px solid #43444D;font-size:10px!important;height:30px!important;padding:2px 16px 2px 6px!important;background-position:right 4px center!important;background-size:9px!important;border-radius:8px!important;min-width:0;width:100%}.rs-card-header[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%], .rs-btn-primary[_ngcontent-%COMP%], .rs-btn-secondary[_ngcontent-%COMP%]{font-size:10px!important;height:30px!important;padding:0 8px!important;border-radius:8px!important;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;box-sizing:border-box}[_nghost-%COMP%] .rs-scale-select.rp-native-select .ng-select-container{height:30px!important;min-height:30px!important;font-size:10px!important}.rs-card-body[_ngcontent-%COMP%]{padding:10px 8px}.rs-card-body[_ngcontent-%COMP%] [class*=col-sm-][_ngcontent-%COMP%], .rs-card-body[_ngcontent-%COMP%] [class*=col-md-][_ngcontent-%COMP%], .rs-card-body[_ngcontent-%COMP%] [class*=col-lg-][_ngcontent-%COMP%]{flex-grow:0!important;flex-shrink:0!important;flex-basis:100%!important;max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}[id^=barChart_][_ngcontent-%COMP%], [id^=npsData_][_ngcontent-%COMP%], [id^=csatData_][_ngcontent-%COMP%], [id^=cesData_][_ngcontent-%COMP%]{min-width:0!important;max-width:100%!important;width:100%!important}.word-cloud-container[_ngcontent-%COMP%]{min-width:0!important;width:100%!important}.rs-media-row[_ngcontent-%COMP%]{margin:-10px -8px 0;padding:12px 18px 0 15px}}"]})}return n})();const Z=n=>({"d-none":n});function Jn(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",6)(1,"label",7)(2,"input",8),t.bIt("click",function(i){t.eBV(e);const s=t.XpG();return t.Njj(s.changeResponseType(i.target.value))}),t.k0s(),t.EFF(3," Daily "),t.k0s(),t.j41(4,"label",7)(5,"input",9),t.bIt("click",function(i){t.eBV(e);const s=t.XpG();return t.Njj(s.changeResponseType(i.target.value))}),t.k0s(),t.EFF(6," Weekly "),t.k0s(),t.j41(7,"label",7)(8,"input",10),t.bIt("click",function(i){t.eBV(e);const s=t.XpG();return t.Njj(s.changeResponseType(i.target.value))}),t.k0s(),t.EFF(9," Monthly "),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.AVh("tr-period-active","daily"==e.graphType),t.R7$(),t.Y8G("checked","daily"==e.graphType),t.R7$(2),t.AVh("tr-period-active","weekly"==e.graphType),t.R7$(),t.Y8G("checked","weekly"==e.graphType),t.R7$(2),t.AVh("tr-period-active","monthly"==e.graphType),t.R7$(),t.Y8G("checked","monthly"==e.graphType)}}function Un(n,r){if(1&n&&(t.j41(0,"div",24),t.nrm(1,"div",25),t.j41(2,"h5",26),t.EFF(3),t.k0s()()),2&n){const e=t.XpG().$implicit,o=t.XpG();t.R7$(),t.Y8G("id","barChart_"+e.queId),t.R7$(2),t.JRh(o.graphType)}}function Hn(n,r){if(1&n&&(t.j41(0,"div",27),t.nrm(1,"div",25),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("id","pieChart_"+e.queId)}}function $n(n,r){if(1&n&&(t.j41(0,"th",35),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.JRh(e)}}function Zn(n,r){if(1&n&&(t.j41(0,"td"),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.JRh(e)}}function Wn(n,r){if(1&n&&(t.j41(0,"table",31)(1,"thead",32),t.DNE(2,$n,2,1,"th",33),t.k0s(),t.j41(3,"tbody")(4,"tr"),t.DNE(5,Zn,2,1,"td",34),t.k0s()()()),2&n){const e=t.XpG(3).$implicit;t.R7$(2),t.Y8G("ngForOf",e.options),t.R7$(3),t.Y8G("ngForOf",e.options)}}function Kn(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Wn,6,2,"table",30),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf","Text Based"!==(null==e?null:e.type)||"Autocomplete text"!==e.type)}}function to(n,r){if(1&n&&(t.j41(0,"th",35),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.JRh(e)}}function eo(n,r){if(1&n&&(t.j41(0,"td"),t.EFF(1),t.k0s()),2&n){const e=r.$implicit;t.R7$(),t.JRh(e)}}function io(n,r){if(1&n&&(t.j41(0,"table",31)(1,"thead",32),t.DNE(2,to,2,1,"th",33),t.k0s(),t.j41(3,"tbody")(4,"tr"),t.DNE(5,eo,2,1,"td",34),t.k0s()()()),2&n){const e=t.XpG(3).$implicit;t.R7$(2),t.Y8G("ngForOf",e.percentageOptions),t.R7$(3),t.Y8G("ngForOf",e.percentageOptions)}}function no(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,io,6,2,"table",30),t.k0s()),2&n){const e=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf","Text Based"!==(null==e?null:e.type)||"Autocomplete text"!==e.type)}}function oo(n,r){if(1&n&&(t.j41(0,"div",28),t.DNE(1,Kn,2,1,"div",29)(2,no,2,1,"div",29),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",1==e.countStatus),t.R7$(),t.Y8G("ngIf",0==e.countStatus)}}function so(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",11)(1,"div",12)(2,"div",13),t.EFF(3),t.k0s(),t.j41(4,"div",14)(5,"span",15),t.EFF(6),t.k0s(),t.j41(7,"span",16),t.EFF(8),t.k0s()(),t.j41(9,"div",17)(10,"ng-select",18),t.bIt("ngModelChange",function(i){const s=t.eBV(e).$implicit;return t.Njj(s.scale=i)})("change",function(i){const s=t.eBV(e),l=s.$implicit,a=s.index,c=t.XpG();return t.Njj(c.changeScale(i.value,l,a))}),t.k0s()()(),t.j41(11,"div",19)(12,"div",20),t.DNE(13,Un,4,2,"div",21)(14,Hn,2,1,"div",22),t.k0s(),t.DNE(15,oo,3,2,"div",23),t.k0s()()}if(2&n){const e=r.$implicit,o=t.XpG();t.Y8G("ngClass",t.eq3(13,Z,"Multiple-choice grid"==(null==e?null:e.type)||"Tick box grid"==(null==e?null:e.type)||"Call To Action"==(null==e?null:e.type))),t.R7$(3),t.JRh(e.questionRefernceNo),t.R7$(3),t.JRh(e.text),t.R7$(2),t.JRh("Nominal"==e.type?"Multiple choice":"Text Based"==e.type?"Open-ended":e.type),t.R7$(2),t.Y8G("items",o.scaleOptions)("ngModel",e.scale||"count")("clearable",!1)("searchable",!1)("appendTo","body"),t.R7$(),t.Y8G("ngClass",t.eq3(15,Z,"Multiple-choice grid"==(null==e?null:e.type)||"Tick box grid"==(null==e?null:e.type))),t.R7$(2),t.Y8G("ngIf",!(null!=e&&e.isChecked)),t.R7$(),t.Y8G("ngIf",null==e?null:e.isChecked),t.R7$(),t.Y8G("ngIf",1==(null==e?null:e.showTable))}}function ro(n,r){1&n&&(t.j41(0,"div",36)(1,"h2",37),t.EFF(2,"No data available."),t.k0s()())}function ao(n,r){1&n&&(t.j41(0,"section",38)(1,"div",39)(2,"span",40),t.EFF(3,"Loading..."),t.k0s()()())}E()(p),p.setOptions({chart:{backgroundColor:"transparent"}}),j().vfs=I.b.vfs;let lo=(()=>{class n{constructor(e,o,i){this.ss=e,this.toastrService=o,this.highchartFormatingService=i,this.chartType="Bar",this.analyseMode="graph",this.graphType="monthly",this.pageLoader=!1,this.participientsArr=[],this.questionsArr=[],this.userResponseData=[],this.isBarChart=!0,this.selectedResponseType="count",this.showResponsesAs="all",this.isShowHide=!1,this.scaleType=!1,this.scaleOptions=[{value:"count",label:"Count"},{value:"percent",label:"Percentage"},{value:"percent auto",label:"Percentage Auto Scale"}],this.countStatus=!0,this.labelArr=[],this.participentFilter="all",this.isFilterActive=!1,this.filterObj={},this.destroy$=new U.B,this.loading=!1,this.clickEventsubscription=this.ss.getClickEvent().subscribe(()=>
1{this.getSvg()})}ngOnInit(){this.isFilterActive=!1,this.showResponsesAs=this.highchartFormatingService.participentFilter,this.highchartFormatingService.triggerShowResponsesasFunTrends$.pipe((0,w.F)()).subscribe(e=>{this.participentFilter=e,this.isFilterActive=!1,this.getQuestionResponses()}),this.highchartFormatingService.triggerExportpdfFunTrends$.pipe((0,M.Q)(this.destroy$)).subscribe(e=>{this.getSvg()}),this.highchartFormatingService.triggerFunctionTrends$.pipe((0,w.F)()).subscribe(e=>{this.isFilterActive=!0,this.filterObj=e,this.SplitByQuestion(e)}),this.participentFilter=this.highchartFormatingService.participentFilter,this.surveyCategory=localStorage.getItem("surveyCategory"),this.surveyName=localStorage.getItem("surveyName"),this.getQuestionResponses()}viewParticipentResponse(e){this.userResponseData=e}getQuestionResponses(){this.questionsArr=[],this.pageLoader=!0,this.questionsArr=[],this.ss.getMultiTrendResponses(this.graphType,localStorage.getItem("surveyId"),this.participentFilter).subscribe(e=>{this.chartType="Bar",console.log(e),this.questionsArr=e.allQueArr,this.labelArr=e.label,this.questionsArr.map(o=>{o.isChecked=!1}),this.pageLoader=!1,setTimeout(()=>{for(let o in this.questionsArr)p.charts[o]=p.chart(`barChart_${this.questionsArr[o].queId}`,{exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1},chart:{type:"column"},title:{text:""},xAxis:{categories:e.label},yAxis:{min:0,title:{text:"Responses",align:"high"}},tooltip:{valueSuffix:" Responses"},plotOptions:{column:{dataLabels:{enabled:!0},showInLegend:!0}},credits:{enabled:!1},series:this.questionsArr[o].series})},1e3)},e=>{this.pageLoader=!1,console.error(e)})}SplitByQuestion(e){let o={...e,graphStatus:this.graphType};this.pageLoader=!0,this.ss.SplitByQuestionForTrend(o,this.participentFilter).subscribe(i=>{this.chartType="Bar",console.log(i),this.questionsArr=i.allQueArr,this.labelArr=i.label,this.questionsArr.map(s=>{s.isChecked=!1}),this.pageLoader=!1,setTimeout(()=>{for(let l in this.questionsArr){var s=p.charts[l];s&&s.destroy(),p.charts[l]=p.chart(`barChart_${this.questionsArr[l].queId}`,{exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1},chart:{type:"column"},title:{text:""},xAxis:{categories:i.label},yAxis:{min:0,title:{text:"Responses",align:"high"}},tooltip:{valueSuffix:" Responses"},plotOptions:{column:{dataLabels:{enabled:!0},showInLegend:!0}},credits:{enabled:!1},series:this.questionsArr[l].series})}},1e3)},i=>{this.pageLoader=!1,console.error(i)})}changeResponseType(e){this.graphType=e,1==this.isFilterActive?this.SplitByQuestion(this.filterObj):this.getQuestionResponses()}changeScale(e,o,i){console.log(e,o);let s=0;if("percent"==e||"percent auto"==e){o.series.map(d=>{d.data.map(_=>{s+=_})});let l=[];o.series.map(d=>{l.push({name:d.name,data:[]})});let a=[],c=o.series[0].data.length;for(let d=0;d<c;d++){let _=0;o.series.map(u=>{_+=u.data[d]}),a.push(_)}o.series.map(d=>{d.data.map((_,u)=>{let h=Math.round(100*_/a[u]);l.map(g=>{g.name==d.name&&g.data.push(Number.isNaN(h)?0:h)})})}),this.printPercentBarchart(o.queId,this.labelArr,"percent"==e,l,i),console.log(s)}else this.printBarchart(o.queId,this.labelArr,o.series,i)}printBarchart(e,o,i,s){var l=p.charts[s];l&&l.destroy(),p.charts[s]=p.chart(`barChart_${e}`,{exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1},chart:{type:"column"},title:{text:""},xAxis:{categories:o,scrollbar:{enabled:!0}},yAxis:{min:0,title:{text:"Responses",align:"high"}},tooltip:{valueSuffix:" Responses"},plotOptions:{column:{dataLabels:{enabled:!0},showInLegend:!0}},credits:{enabled:!1},series:i})}printPercentBarchart(e,o,i,s,l){var a=p.charts[l];a&&a.destroy(),p.charts[l]=p.chart(`barChart_${e}`,{exporting:{chartOptions:{plotOptions:{series:{dataLabels:{enabled:!0}}}},fallbackToExportServer:!1},chart:{type:"column"},title:{text:""},xAxis:{categories:o,scrollbar:{enabled:!0}},yAxis:{min:0,max:1==i?100:null,title:{text:"Responses",align:"high"}},tooltip:{valueSuffix:"%"},plotOptions:{column:{dataLabels:{enabled:!0},showInLegend:!0}},credits:{enabled:!1},series:s})}getSvg(){var e=this;return(0,A.A)(function*(){if(e.isLoading)return!1;e.isLoading=!0,console.log("The no of question is ",e.questionsArr.length);let o=[],i={};for(let a=0;a<e.questionsArr.length;a++){console.log(a);const c=p.charts[a];if(i[e.questionsArr[a]?.queId]={text:e.questionsArr[a]?.text,questionRefernceNo:e.questionsArr[a]?.questionRefernceNo}
1,c){console.log("the graph id is ",c.container.id);var s=c.getSVG({chart:{backgroundColor:"#ffffff"},title:{style:{color:"#333333"}},subtitle:{style:{color:"#333333"}},xAxis:{labels:{style:{color:"#333333",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif"}},title:{style:{color:"#333333",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif"}},lineColor:"#cccccc",tickColor:"#cccccc"},yAxis:{labels:{style:{color:"#333333",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif"}},title:{style:{color:"#333333",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif"}},gridLineColor:"#e6e6e6"},legend:{itemStyle:{color:"#333333",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif",fontWeight:"normal"}},plotOptions:{series:{dataLabels:{style:{color:"#333333",textOutline:"none",fontFamily:"DejaVu Sans, Liberation Sans, Arial, sans-serif"}}}}});const d=window.btoa(unescape(encodeURIComponent(s)));o.push({image:"data:image/svg+xml;base64,"+d,qId:e.questionsArr[a].queId,base:e.questionsArr[a].totalResponses})}else console.error("Chart not found")}e.toastrService.success("Pdf generation has been started.Please do not close or refrsh the page.");let l=JSON.parse(localStorage.getItem("currentUser"));e.ss.uploadSvg({data:o,email:l?.email,preparedBy:l?.firstName+" "+l?.lastName+" ("+l?.email+")"}).subscribe(a=>{a&&0!=a?.data.length&&e.createPdf(a?.data,i)},a=>{e.isLoading=!1,console.error(a)})})()}createPdf(e,o){var i=this;return(0,A.A)(function*(){let s=[];s.push({text:"Survey Report",style:"header"}),s.push({text:[{text:"Name of the survey - ",alignment:"left",fontSize:12,bold:!0},{text:localStorage.getItem("surveyName"),alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,50,0,0]}),s.push({text:[{text:"Date - ",alignment:"left",fontSize:12,bold:!0},{text:`${(new Date).toDateString()}`,alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,20,0,0]}),s.push({text:[{text:"Time - ",alignment:"left",fontSize:12,bold:!0},{text:` ${(new Date).getHours()} : ${(new Date).getMinutes()} : ${(new Date).getSeconds()}`,alignment:"left",fontSize:12,bold:!0,italics:!1,color:"#326af1"}],margin:[0,20,0,0]});for(let a=0;a<e.length;a++){const c=o[e[a].qId].text,d=o[e[a].qId].questionRefernceNo+" - ";i.hasEmoji(c)?s.push({image:i.renderEmojiLine(d,"#326af1",c,"#000000",12),width:490,margin:[0,30,0,0],pageBreak:"before"}):s.push({text:[{text:d,fontSize:12,bold:!0,italics:!1,color:"#326af1"},{text:c,fontSize:12,bold:!0,italics:!1,color:"#000"}],margin:[0,30,0,0],pageBreak:"before"});let _=e[a].imgData.url;const u=yield i.convertImgToBase64URL(_,"image/png");s.push({image:u,width:380,style:"logo",margin:[0,100,0,20]})}const l={footer:{columns:[{text:[{text:"Powered By ",alignment:"right",fontSize:8,fontFamily:"Rubik"},{text:"merren.io",link:"https://merren.io/",color:"#f79522",alignment:"right",fontSize:8,fontFamily:"Italic"}],alignment:"right"}],margin:[0,5,5,0]},content:s,unbreakable:!0,styles:{header:{fontSize:20,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#f79522",alignment:"center"},headerValue:{fontSize:18,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#007bff"},questionRef:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"#007bff"},questiontext:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"#000"},questionRef1:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,20,0,0],color:"#007bff"},questiontext1:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,20,0,0],color:"#000"},logo:{alignment:"center"},hlogo:{alignment:"left"},subheader:{fontSize:12,fontFamily:"Rubik",bold:!0,margin:[0,10,10,0],alignment:"center"},response:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"blue",margin:[0,0,0,0],width:"50%"},tableExample:{margin:[0,5,0,15]}}};j().createPdf(l).download(localStorage.getItem("surveyName")+(new Date).getTime()+".pdf"),i.isLoading=!1})()}hasEmoji(e){return/[\u{1F000}-\u{1FFFF}]|[\u{2300}-\u{23FF}]|[\u{2600}-\u{27BF}]|[\u{2B00}-\u{2BFF}]/gu.test(e)}renderEmojiLine(e,o,i,s,l){const c=`600 ${3*l}px -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,d=1470,_=3*l*1.
16,u=document.createElement("canvas"),h=u.getContext("2d");h.font=c;const g=h.measureText(e).width,m=i.split(" "),f=[];let C="",x=!0;for(const b of m){const F=C?`${C} ${b}`:b,D=x?d-g:d;h.measureText(F).width>D&&C?(f.push(C),C=b,x=!1):C=F}C&&f.push(C),0===f.length&&f.push(""),u.width=d,u.height=f.length*_+.4*_,h.font=c,h.textBaseline="top",h.fillStyle=o,h.fillText(e,0,.1*_),h.fillStyle=s,h.fillText(f[0],g,.1*_);for(let b=1;b<f.length;b++)h.fillText(f[b],0,b*_+.1*_);return u.toDataURL("image/png")}convertImgToBase64URL(e,o){return new Promise(i=>{var s=document.createElement("canvas");const l=s.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.onload=function(){s.height=a.height,s.width=a.width,l.drawImage(a,0,0);const c=s.toDataURL(o);i(c),s=null},a.src=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(T.I),t.rXU(q.tw),t.rXU(N.F))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-trends"]],decls:6,vars:5,consts:[[1,"tr-section","ml-2"],["class","tr-period-bar",4,"ngIf"],[3,"hidden"],["class","tr-card rounded mb-4",3,"ngClass",4,"ngFor","ngForOf"],["class","tr-empty text-center nodata",4,"ngIf"],["class","tr-page-loader",4,"ngIf"],[1,"tr-period-bar"],[1,"tr-period-btn"],["type","radio","name","graph","value","daily","hidden","",3,"click","checked"],["type","radio","name","graph","value","weekly","hidden","",3,"click","checked"],["type","radio","name","graph","value","monthly","hidden","",3,"click","checked"],[1,"tr-card","rounded","mb-4",3,"ngClass"],[1,"tr-card-header","d-flex","align-items-center"],[1,"tr-q-badge"],[1,"tr-q-info"],[1,"tr-q-text"],[1,"tr-q-type"],[1,"tr-scale-wrap"],["bindLabel","label","bindValue","value",1,"tr-select",3,"ngModelChange","change","items","ngModel","clearable","searchable","appendTo"],[1,"tr-card-body",3,"ngClass"],[1,"row"],["class","col-sm-12 col-md-12 col-lg-12",4,"ngIf"],["class","col-sm-12 col-md-8 col-lg-8 d-flex flex-column justify-content-end align-items-center",4,"ngIf"],["class","col-sm-12 mt-3",4,"ngIf"],[1,"col-sm-12","col-md-12","col-lg-12"],[2,"max-width","750px","height","470px","margin","0 auto",3,"id"],[1,"tr-graph-label","text-center"],[1,"col-sm-12","col-md-8","col-lg-8","d-flex","flex-column","justify-content-end","align-items-center"],[1,"col-sm-12","mt-3"],[4,"ngIf"],["class","table table-bordered tr-table",4,"ngIf"],[1,"table","table-bordered","tr-table"],[1,"thead-dark"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["scope","col"],[1,"tr-empty","text-center","nodata"],[1,"nodata"],[1,"tr-page-loader"],["role","status",1,"spinner-grow",2,"width","2rem","height","2rem","color","#F79522"],[1,"sr-only"]],template:function(o,i){1&o&&(t.j41(0,"section",0),t.DNE(1,Jn,10,9,"div",1),t.j41(2,"div",2),t.DNE(3,so,16,17,"div",3)(4,ro,3,0,"div",4),t.k0s(),t.DNE(5,ao,4,0,"section",5),t.k0s()),2&o&&(t.R
17$(),t.Y8G("ngIf",!i.pageLoader&&i.questionsArr.length>0),t.R7$(),t.Y8G("hidden",i.pageLoader),t.R7$(),t.Y8G("ngForOf",i.questionsArr),t.R7$(),t.Y8G("ngIf",0==i.questionsArr.length),t.R7$(),t.Y8G("ngIf",i.pageLoader))},dependencies:[y.YU,y.Sq,y.bT,O.BC,O.vS,R.vr],styles:['@charset "UTF-8";.tr-section[_ngcontent-%COMP%]{padding:20px 16px}.tr-page-loader[_ngcontent-%COMP%]{width:100%!important;min-height:70vh!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#101116}.tr-period-bar[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:24px}.tr-period-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:7px 22px;border-radius:9999px;border:1px solid #363A47;background:transparent;color:#9ca3af;font-size:14px;font-weight:500;cursor:pointer;transition:border-color .15s,color .15s,background .15s;-webkit-user-select:none;user-select:none}.tr-period-btn[_ngcontent-%COMP%]:hover{border-color:#3a7bfd;color:#3a7bfd}.tr-period-btn.tr-period-active[_ngcontent-%COMP%]{border-color:#f79522;color:#f79522;background:#f795220f}.tr-period-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{display:none}.tr-card[_ngcontent-%COMP%]{background:#1d1f26;border:1px solid #363A47;box-shadow:0 4px 16px #0006;overflow:hidden;margin-bottom:20px}.tr-card-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid #363A47;flex-wrap:nowrap}.tr-q-badge[_ngcontent-%COMP%]{background:#f79522;color:#fff;font-size:12px;font-weight:700;min-width:36px;min-height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:0 6px}.tr-q-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.tr-q-text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#fff;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tr-q-type[_ngcontent-%COMP%]{font-size:12px;color:#9ca3af}.tr-scale-wrap[_ngcontent-%COMP%]{flex-shrink:0}.tr-select[_ngcontent-%COMP%]{min-width:180px} .tr-select .ng-select-container{min-height:38px!important;background:#13151c!important;border:1px solid #363A47!important;border-radius:8px!important} .tr-select.ng-select-opened .ng-select-container, .tr-select .ng-select-container:hover{border-color:#3a7bfd!important} .tr-select .ng-value-container .ng-value{color:#fff!important;font-size:13px!important} .tr-select .ng-dropdown-panel{background:#13151c!important;border:1px solid #363A47!important;border-radius:8px!important} .tr-select .ng-dropdown-panel .ng-option{background:#13151c!important;color:#fff!important;font-size:13px!important} .tr-select .ng-dropdown-panel .ng-option.ng-option-marked, .tr-select .ng-dropdown-panel .ng-option.ng-option-selected{background:#ffffff14!important;color:#fff!important} .tr-select .ng-arrow-wrapper .ng-arrow{border-color:#9ca3af transparent transparent}.tr-card-body[_ngcontent-%COMP%]{background:#1d1f26;padding:16px}.tr-graph-label[_ngcontent-%COMP%]{font-size:13px;color:#9ca3af;text-transform:capitalize;margin-top:8px}.tr-table[_ngcontent-%COMP%]{border-color:#363a47!important;color:#e0e0e0!important;background:#13151c!important}.tr-table[_ngcontent-%COMP%] thead.thead-dark[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#0b0d12!important;color:#fff!important;border-color:#363a47!important;font-size:13px}.tr-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#13151c!important;color:#e0e0e0!important;border-color:#363a47!important;padding:10px 12px!important;vertical-align:middle!important;font-size:13px}.tr-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;color:#9ca3af}.tr-empty[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#9ca3af}.print[_ngcontent-%COMP%]{page-break-after:always}@media (max-width: 640px){.tr-section[_ngcontent-%COMP%]{padding:12px 12px 12px 16px;margin-left:0!important}.tr-period-bar[_ngcontent-%COMP%]{gap:8px;margin-bottom:16px}.tr-period-btn[_ngcontent-%COMP%]{padding:9px 22px;font-size:14px;background:#1d1f26;border-color:#363a47;color:#e0e0e0;border-radius:8px}.tr-period-btn.tr-period-active[_ngcontent-%COMP%]{background:#f79522;border-color:#f79522;color:#fff}.tr-card[_ngcontent-%COMP%]{border-radius:10px;margin-bottom:14px}.tr-card-header[_ngcontent-%COMP%]{flex-wrap:wrap;gap:10px;padding:12px 14px}.tr-q-text[_ngcontent-%COMP%]{white-space:normal;font-size:13px}.tr-q-type[_ngcontent-%COMP%]{font-size:11px}.tr-scale-wrap[_ngcontent-%COMP%]{width:100%;flex:0 0 100%}.tr-select[_ngcontent-%COMP%]{width:100%!important;min-width:unset} .tr-select .ng-value-container .ng-value{font-size:14px!important}.tr-card-body[_ngcontent-%COMP%]{padding:10px 8px}#pageLoader[_ngcontent-%COMP%]{min-height:40vh;justify-content:center;align-items:center}.tr-empty[_ngcontent-%COMP%]{min-height:62vh}}.question[_ngcontent-%COMP%]{background-color:#f79522;border-top-left-radius:8px;color:#fff}.que-text[_ngcontent-%COMP%]{font-family:Rubik;font-size:15px;font-weight:400;color:#fff}.nodata[_ngcontent-%COMP%]{color:#8a8a8a;font-size:400;font-size:22px}']})}return n})();var co=v(2578),G=v(2288),B=v(2796);const po=(n,r,e)=>({totalItems:n,itemsPerPage:r,currentPage:e});function _o(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.name)}function mo(n,r){1&n&&t.EFF(0),2&n&&t.JRh(r.item.name)}function go(n,r){1&n&&t.nrm(0,"i",27)}function ho(n,r){1&n&&t.nrm(0,"i",28)}function uo(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",23)(1,"button",24),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.exportRespondantDetails())}),t.EFF(2," Export "),t.DNE(3,go,1,0,"i",25)(4,ho,1,0,"i",26),t.k0s()()}if(2&n){const e=t.XpG(2);t.R7$(3),t.Y8G("ngIf",e.loading),t.R7$(),t.Y8G("ngIf",!e.loading)}}function fo(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",17)(1,"div",18)(2,"ng-select",19),t.mxI("ngModelChange",function(i){t.eBV(e);const s=t.XpG();return t.DH7(s.selectedItems,i)||(s.selectedItems=i),t.Njj(i)}),t.bIt("change",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.onSelectionChange())}),t.DNE(3,_o,1,1,"ng-template",20)(4,mo,1,1,"ng-template",21),t.k0s()(),t.DNE(5,uo,5,2,"div",22),t.k0s()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("items",e.items)("clearable",!0)("multiple",!0)("addTag",!0)("searchable",!0)("hideSelected",!0),t.R50("ngModel",e.selectedItems),t.R7$(3),t.Y8G("ngIf",0!=e.participientsArr.length)}}function vo(n,r){1&n&&(t.j41(0,"div",29)(1,"div",30)(2,"span",31),t.EFF(3,"Loading..."),t.k0s()()())}function bo(n,r){if(1&n){const e=t.RV6();t.j41(0,"tr")(1,"td"),t.EFF(2),t.k0s(),t.j41(3,"td"),t.EFF(4),t.nI1(5,"date"),t.k0s(),t.j41(6,"td",41),t.bIt("click",function(){const i=t.eBV(e).$implicit,s=t.XpG(3);return t.Njj(s.viewParticipentResponse(i))}),t.j41(7,"button",42,0),t.nrm(10,"i",43),t.k0s()()()}if(2&n){const e=r.$implicit;t.R7$(2),t.JRh(e.uniqueId),t.R7$(2),t.JRh(t.i5U(5,2,e.created_at,"dd-MMM-yyyy h:mm a"))}}function Co(n,r){if(1&n&&(t.j41(0,"div",35)(1,"table",36)(2,"thead")(3,"tr")(4,"th",37),t.EFF(5,"User Id"),t.k0s(),t.j41(6,"th",38),t.EFF(7,"Date"),t.k0s(),t.j41(8,"th",39),t.EFF(9,"Action"),t.k0s()()(),t.j41(10,"tbody"),t.DNE(11,bo,11,5,"tr",40),t.nI1(12,"paginate"),t.k0s()()()),2&n){const e=t.XpG(2);t.R7$(11),t.Y8G("ngForOf",t.i5U(12,1,e.participientsArr,t.sMw(4,po,e.count,e.pageSize,e.page)))}}function xo(n,r){if(1&n){const e=t.RV6();t.j41(0,"div",44)(1,"pagination-controls",45),t.bIt("pageChange",function(i){t.eBV(e);const s=t.XpG(2);return t.Njj(s.handlePageChange(i))}),t.k0s(),t.j41(2,"ng-select",46),t.mxI("ngModelChange",function(i){t.eBV(e);const s=t.XpG(2);return t.DH7(s.pageSize,i)||(s.pageSize=i),t.Njj(i)}),t.bIt("change",function(i){t.eBV(e);const s=t.XpG(2);return t.Njj(s.handlePageSizeChange(i))}),t.k0s()()}if(2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("items",e.pageSizes),t.R50("ngModel",e.pageSize),t.Y8G("clearable",!1)("searchable",!1)("appendTo","body")}}function yo(n,r){1&n&&(t.j41(0,"div",47)(1,"h2",48),t.EFF(2,"No data available."),t.k0s()())}function Oo(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,Co,13,8,"div",32)(2,xo,3,5,"div",33)(3,yo,3,0,"div",34),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",0!=e.participientsArr.length),t.R7$(),t.Y8G("ngIf",e.participientsArr.length>0),t.R7$(),t.Y8G("ngIf",0==e.participientsArr.length)}}function Ro(n,r){1&n&&(t.j41(0,"div",49)(1,"div",30)(2,"span",31),t.EFF(3,"Loading..."),t.k0s()()())}function Fo(n,r){if(1&n&&(t.j41(0,"p",62)(1,"span",63),t.EFF(2,"Response:"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" ",e.response," ")}}function ko(n,r){if(1&n&&(t.j41(0,"p",62)(1,"span",63),t.EFF(2,"Response:"),t.k0s(),t.EFF(3),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(3),t.SpI(" ",e.question.rank_options[e.response-1]?e.question.rank_options[e.response-1].choice:"-"," ")}}function So(n,r){if(1&n&&(t.j41(0,"div"),t.nrm(1,"audio",64),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("src",e.audioUrl,t.B4B)}}function jo(n,r){if(1&n&&(t.j41(0,"div",66)(1,"h5",59)(2,"span",60),t.EFF(3),t.k0s(),t.EFF(4),t.k0s(),t.j41(5,"p",62)(6,"span",63),t.EFF(7,"Answer:"),t.k0s(),t.EFF(8),t.k0s()()),2&n){const e=r.$implicit,o=r.index;t.R7$(3),t.Lme("","followup"==(null==e?null:e.type)?"Follow up":"Probing"," Q",o+1,":"),t.R7$(),t.SpI("",e.question," "),t.R7$(4),t.SpI(" ",e.answer,"")}}function Mo(n,r){if(1&n&&(t.j41(0,"div"),t.DNE(1,jo,9,4,"div",65),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",e.probingQuestion)}}function Ao(n,r){if(1&n&&(t.j41(0,"td",71)(1,"strong"),t.EFF(2),t.k0s()()),2&n){const e=r.$implicit;t.R7$(2),t.JRh(e.column_text)}}function wo(n,r){1&n&&t.nrm(0,"i",73)}function Io(n,r){if(1&n&&(t.j41(0,"td",71),t.DNE(1,wo,1,0,"i",72),t.k0s()),2&n){const e=r.index,o=t.XpG().$implicit,i=t.XpG(2).$implicit;
1t.R7$(),t.Y8G("ngIf",-1!=(null==i.response[null==o?null:o.row_id]?null:i.response[null==o?null:o.row_id].indexOf(e)))}}function To(n,r){if(1&n&&(t.j41(0,"tr")(1,"th",69),t.EFF(2),t.k0s(),t.DNE(3,Io,2,1,"td",70),t.k0s()),2&n){const e=r.$implicit,o=t.XpG(2).$implicit;t.R7$(2),t.JRh(e.row_text),t.R7$(),t.Y8G("ngForOf",o.question.columns)}}function Po(n,r){if(1&n&&(t.j41(0,"div")(1,"div",67)(2,"table",68)(3,"thead")(4,"tr"),t.nrm(5,"th",69),t.DNE(6,Ao,3,1,"td",70),t.k0s()(),t.j41(7,"tbody"),t.DNE(8,To,4,2,"tr",40),t.k0s()()()()),2&n){const e=t.XpG().$implicit;t.R7$(6),t.Y8G("ngForOf",e.question.columns),t.R7$(2),t.Y8G("ngForOf",e.question.rows)}}function Go(n,r){if(1&n&&(t.j41(0,"div")(1,"p",74),t.EFF(2,"Response:"),t.k0s(),t.j41(3,"ul",75)(4,"li"),t.EFF(5,"Link \u2014 "),t.j41(6,"span",76),t.EFF(7),t.k0s()(),t.j41(8,"li"),t.EFF(9," Text \u2014 "),t.j41(10,"div",77),t.EFF(11),t.k0s()()()()),2&n){const e=t.XpG().$implicit;t.R7$(7),t.JRh(e.response),t.R7$(4),t.JRh((null==e?null:e.audio_text)||"NA")}}function Eo(n,r){if(1&n&&(t.j41(0,"div",58)(1,"h5",59)(2,"span",60),t.EFF(3),t.k0s(),t.EFF(4),t.k0s(),t.DNE(5,Fo,4,1,"p",61)(6,ko,4,1,"p",61)(7,So,2,1,"div",4)(8,Mo,2,1,"div",4)(9,Po,9,2,"div",4)(10,Go,12,2,"div",4),t.k0s()),2&n){const e=r.$implicit;t.R7$(3),t.SpI("",null==e||null==e.question?null:e.question.questionRefernceNo,"."),t.R7$(),t.Lme("",e.question.text," ","Ranking"==e.question.type?"choice -"+e.order:""," "),t.R7$(),t.Y8G("ngIf","Ranking"!=e.question.type&&"Audio"!=(null==e||null==e.question?null:e.question.mediaType)&&"Multiple-choice grid"!=e.question.type&&"Tick box grid"!=e.question.type),t.R7$(),t.Y8G("ngIf","Ranking"==e.question.type&&"Multiple-choice grid"!=e.question.type&&"Tick box grid"!=e.question.type),t.R7$(),t.Y8G("ngIf","Text Based"==e.question.type&&!0===e.question.acceptAudioResponses),t.R7$(),t.Y8G("ngIf",e.probingQuestion&&e.probingQuestion.length),t.R7$(),t.Y8G("ngIf","Multiple-choice grid"==e.question.type||"Tick box grid"==e.question.type),t.R7$(),t.Y8G("ngIf","Audio"==(null==e||null==e.question?null:e.question.mediaType))}}function qo(n,r){if(1&n&&(t.j41(0,"div",50)(1,"div",51)(2,"div",52)(3,"span",53),t.EFF(4,"Respondent ID"),t.k0s(),t.j41(5,"span",54),t.EFF(6),t.k0s()(),t.nrm(7,"div",55),t.j41(8,"div",52)(9,"span",53),t.EFF(10,"Response Date & Time"),t.k0s(),t.j41(11,"span",54),t.EFF(12),t.nI1(13,"date"),t.k0s()()(),t.nrm(14,"div",56),t.DNE(15,Eo,11,9,"div",57),t.k0s()),2&n){const e=t.XpG();t.R7$(6),t.JRh(e.userResponseData.uniqueId),t.R7$(6),t.JRh(t.i5U(13,3,e.userResponseData.created_at,"dd-MMM-yyyy h:mm a")),t.R7$(3),t.Y8G("ngForOf",e.userResponseData.user_responses)}}j().vfs=I.b.vfs;const Do=[{path:"",component:Vi,children:[{path:"",redirectTo:"results",pathMatch:"full"},{path:"results",component:zn},{path:"trends",component:lo},{path:"respondents",component:(()=>{class n{constructor(e,o){this.ss=e,this.authenticationService=o,this.subscription=new J.yU,this.pageLoader=!1,this.showsearching=!1,this.participientsArr=[],this.userResponseData=[],this.acceptAudioResponses=!1,this.searchRecord="",this.page=0,this.count=0,this.pageSize=5,this.pageSizes=[5,10,15,50,100],this.currentPage=0,this.loading=!1,this.items=[],this.selectedItems=[]}ngOnInit(){this.getAllUniqueId(),this.getAllRespondents()}hasEmoji(e){return/[\u{1F000}-\u{1FFFF}]|[\u{2300}-\u{23FF}]|[\u{2600}-\u{27BF}]|[\u{2B00}-\u{2BFF}]|[\u0900-\u097F]|[\u0980-\u09FF]|[\u0A00-\u0A7F]|[\u0A80-\u0AFF]|[\u0B00-\u0B7F]|[\u0B80-\u0BFF]|[\u0C00-\u0C7F]|[\u0C80-\u0CFF]|[\u0D00-\u0D7F]/gu.test(e)}renderEmojiText(e,o,i,s="#000000"){const a=`${i?"600 ":""}${3*o}px -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif`,d=3*o*1.6,_=document.createElement("canvas"),u=_.getContext("2d");u.font=a;const h=e.split(" "),g=[];let m="";for(const f of h){const C=m?`${m} ${f}`:f;u.measureText(C).width>1470&&m?(g.push(m),m=f):m=C}return m&&g.push(m),_.width=1470,_.height=g.length*d+.4*d,u.font=a,u.fillStyle=s,u.textBaseline="top",g.forEach((f,C)=>u.fillText(f,0,C*d+.1*d)),_.toDataURL("image/png")}searchSurveyByName(e){this.searchRecord=e.target.value,this.searchRecord=this.searchRecord.trim(),this.getAllRespondents()}getAllRespondents(){this.pageLoader=!0,this.ss.getAllRespondents(localStorage.getItem("surveyId"),this.currentPage,this.pageSize,this.searchRecord,this.selectedItems).subscribe(e=>{this.pageLoader=!1,this.participientsArr=e.data,this.count=e.count},e=>{this.pageLoader=!1,console.error(e)})}getAllUniqueId(){this.ss.getAllUid(localStorage.getItem("surveyId")).subscribe(e=>{this.items=e.map(o=>({name:o}))})}onSelectionChange(){console.log("Selection changed:",this.selectedItems),this.page=1,this.currentPage=0,this.showsearching=!0,this.selectedItems||(this.showsearching=!1),this.getAllRespondents()}removeSelectedItem(e){const o=this.selectedItems.indexOf(e);-1!==o&&this.selectedItems.splice(o,1)}handlePageChange(e){1===e?(this.page=e,this.currentPage=e-1):e>1&&(this.page=e,this.currentPage=this.pageSize*(e-1)),this.getAllRespondents()}handlePageSizeChange(e){this.pageSize=e,this.page=1,this.currentPage=0,this.getAllRespondents()}viewParticipentResponse(e){this.pageLoader=!0,this.ss.viewParticipentResponse(e._id).subscribe(o=>{this.userResponseData=o,console.log("this is responden data ++++",this.userResponseData),this.userResponseData.user_responses.map(i=>{if("Nominal"==i.question.type){let s=i.response.split(","),l="";s.map((a,c)=>{l=l+i.question.options[+a-1]+(s.length==c+1?"":" , ")}),i.is_other&&1==i.is_other&&(l=l+" ( "+i.is_other_response+" ) "),i.response=l}if(i.audioUrl&&(console.log("Audio URL for response}:",i.audioUrl),console.log("Audio URL for response}:",i.question.acceptAudioResponses)),"Multiple-choice grid"==i.question.type||"Tick box grid"==i.question.type){let s=JSON.parse(i.response);if(!s)return!1;i.response=s}}),this.pageLoader=!1})}respondantPdf(e){this.ss.viewParticipentResponse(e._id).subscribe(o=>{let i=[];i.push({image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAxsAAACBCAYAAACoy6dxAABi1ElEQVR4Xu1dCZhcRbUOCigg8tgMhGS6q+4kgaAoREFARBQVd+UZXBHkKZCZ6b69zCQs8kYFFQiB6b5bTwiEzYdEdhVZBARkkSVsMUBYAoGQhGwz033v7WWm+51zuzqE4U5n67t11/995+tJMuk699yqU+evOnVqHAcHhz9RqYzbYeWc8bvpqfaJOantsLxCvmUo5GxTJtfDz08VVPo2fA6ZCikNZ4RK5Yr2SuUqkKsnVyoL4BPlyjHkKvgdFPx5nlCB76rkVWqArC2o5GVDpnfpSviSQoaeUtTo0aYstFfUtj0rvcfuyNTjCDAqveM+UMa+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P7ecTsyk9qisnDcB8vXjN/NaZ9ovce5fJxuDRbCu1kt7/uRVy+ke9jatIFSuWHiLr0wP1ZbHjfu/wHNmyYOLSxKsgAAAABJRU5ErkJggg==",width:150}),e?.uniqueId?(i.push({text:[{text:"\n\nRespondent ID - ",style:"header"},{text:e.uniqueId,style:"headerValue"}]}),i.push({text:[{text:"\nResponse Date & Time - ",style:"header"},{text:e.created_at,style:"headerValue"},{text:"\n\n"}]})):(i.push({text:[{text:"Phone - ",style:"header"},{text:e.phone_number,style:"headerValue"}]}),i.push({text:[{text:"Response Date & Time - ",style:"header"},{text:e.created_at,style:"headerValue"}]}));let s=1;o.user_responses.map(a=>{if("Nominal"==a.question.type){let h=a.response.split(","),g="";h.map((m,f)=>{g=g+a.question.options[+m-1]+(h.length==f+1?"":" , ")}),a.is_other&&1==a.is_other&&(g=g+" ( "+a.is_other_response+" ) "),a.response=g}const c=`Q${s}. `+a.question.text,d=this.hasEmoji(c)?{image:this.renderEmojiText(c,14,!0),width:490,margin:[0,10,10,0]}:{text:c,style:"subheader"};let _="- "+a.response;"Ranking"==a.question.type&&(_=a.question.rank_options[a.response-1]?"- "+a.question.rank_options[a.response-1].choice:"-");const u=this.hasEmoji(String(_))?{image:this.renderEmojiText(String(_),12,!0,"#0000ff"),width:490,margin:[0,0,0,0]}:{text:_,style:"response"};i.push(d),i.push(u),"Audio"==a.question.mediaType&&i.push({text:"Text - "+(a?.audio_text||"NA"),fontSize:12,margin:[10,10,10,10]}),s++}),console.log(i);const l={content:i,unbreakable:!0,styles:{header:{fontSize:18,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#f79522"},headerValue:{fontSize:18,fontFamily:"Rubik",bold:!0,margin:[10,10,10,10],color:"#007bff"},subheader:{fontSize:14,fontFamily:"Rubik",bold:!0,margin:[0,10,10,0]},response:{fontSize:12,fontFamily:"Rubik",bold:!0,color:"blue",margin:[0,0,0,0],width:"50%"},tableExample:{margin:[0,5,0,15]}}};j().createPdf(l).download(localStorage.getItem("surveyId")+"_"+e.uniqueId+".pdf")})}exportRespondantDetails(){var e=this;return(0,A.A)(function*(){e.loading=!0,e.subscription.add(e.ss.exportRepondantDetails(localStorage.getItem("surveyId")).subscribe(o=>{e.exportAsExcelFile(JSON.parse(o),localStorage.getItem("surveyName")+"-"+(new Date).toDateString()),e.loading=!1},o=>{throw o}))})()}exportAsExcelFile(e,o){let i=G.Wp.book_new(),s=G.Wp.json_to_sheet(e);G.Wp.book_append_sheet(i,s,"Responses");const l=G.M9(i,{bookType:"xlsx",type:"array"});this.saveAsExcelFile(l,o)}saveAsExcelFile(e,o){const i=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});co.saveAs(i,o+"_export_"+(new Date).getTime()+".xlsx")}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(T.I),t.rXU(H.k))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-respondents"]],decls:16,vars:5,consts:[["closeModal","","viewBranchModal",""],[1,"rsp-section","ml-2"],["class","rsp-topbar",4,"ngIf"],["class","rsp-loading rsp-page-loading",4,"ngIf"],[4,"ngIf"],["id","viewBranchModal","tabindex","-1","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog","modal
1-dialog-centered","px-3",2,"max-width","611px","width","611px"],[1,"modal-content","rsp-modal"],[1,"rsp-modal-header"],["src","../../../../assets/img/Merren_name.png","alt","Merren",2,"height","16px"],[1,"d-flex","align-items-center",2,"gap","12px"],["type","button","aria-label","Download",1,"rsp-download-btn",3,"click"],["src","https://merrenbucket.s3.ap-south-1.amazonaws.com/download_FILL0_wght400_GRAD0_opsz48.svg","alt","Download",2,"height","20px","width","20px","filter","brightness(0) invert(0.74)"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"rsp-modal-close"],[1,"fa","fa-times"],["class","rsp-loading p-4",4,"ngIf"],["id","printPdf","class","rsp-modal-body",4,"ngIf"],[1,"rsp-topbar"],[1,"rsp-filter-wrap"],["bindLabel","name","placeholder","Select respondent ID","typeToSearchText","Please enter 2 or more characters",1,"rsp-ng-select",3,"ngModelChange","change","items","clearable","multiple","addTag","searchable","hideSelected","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],["class","rsp-export-wrap",4,"ngIf"],[1,"rsp-export-wrap"],[1,"rsp-export-btn",3,"click"],["class","spinner-grow spinner-grow-sm ml-1","aria-hidden","true",4,"ngIf"],["class","fa fa-chevron-down ml-1","style","font-size:11px;",4,"ngIf"],["aria-hidden","true",1,"spinner-grow","spinner-grow-sm","ml-1"],[1,"fa","fa-chevron-down","ml-1",2,"font-size","11px"],[1,"rsp-loading","rsp-page-loading"],["role","status",1,"spinner-grow",2,"width","2rem","height","2rem","color","#F79522"],[1,"sr-only"],["class","rsp-table-card",4,"ngIf"],["class","rsp-pagination-row",4,"ngIf"],["class","rsp-empty text-center nodata",4,"ngIf"],[1,"rsp-table-card"],[1,"rsp-table"],["scope","col",2,"width","20%"],["scope","col",2,"width","70%"],["scope","col"],[4,"ngFor","ngForOf"],[1,"pointer","cursor-pointer",3,"click"],["data-bs-toggle","modal","data-bs-target","#viewBranchModal","id","viewBranchingModal","data-bs-dismiss","modal",1,"rsp-eye-btn"],[1,"fa","fa-eye"],[1,"rsp-pagination-row"],["previousLabel","Prev","nextLabel","Next","responsive","true",3,"pageChange"],[1,"rsp-page-size","rp-native-select",3,"ngModelChange","change","items","ngModel","clearable","searchable","appendTo"],[1,"rsp-empty","text-center","nodata"],[1,"nodata"],[1,"rsp-loading","p-4"],["id","printPdf",1,"rsp-modal-body"],[1,"rsp-meta-card"],[1,"rsp-meta-col"],[1,"rsp-meta-label"],[1,"rsp-meta-value"],[1,"rsp-meta-vdivider"],[1,"rsp-divider"],["class","rsp-response-item",4,"ngFor","ngForOf"],[1,"rsp-response-item"],[1,"rsp-q-text"],[1,"rsp-q-num"],["class","rsp-answer",4,"ngIf"],[1,"rsp-answer"],[1,"rsp-answer-label"],["controls","",3,"src"],["class","rsp-probing",4,"ngFor","ngForOf"],[1,"rsp-probing"],[1,"table-responsive","rsp-grid-table"],[1,"table","mb-0"],[1,"row-header"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center"],["class","fa fa-check-circle","style","font-size:16px;color:#3a7bfd;",4,"ngIf"],[1,"fa","fa-check-circle",2,"font-size","16px","color","#3a7bfd"],[1,"rsp-answer-label","mb-1"],[1,"rsp-audio-list"],[1,"rsp-meta-val"],[1,"rsp-audio-text","scrollbar"]],template:function(o,i){1&o&&(t.j41(0,"div",1),t.DNE(1,fo,6,8,"div",2)(2,vo,4,0,"div",3)(3,Oo,4,3,"div",4),t.k0s(),t.j41(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8),t.nrm(8,"img",9),t.j41(9,"div",10)(10,"a",11),t.bIt("click",function(){return i.respondantPdf(i.userResponseData)}),t.nrm(11,"img",12),t.k0s(),t.j41(12,"button",13),t.nrm(13,"i",14),t.k0s()()(),t.DNE(14,Ro,4,0,"div",15)(15,qo,16,6,"div",16),t.k0s()()()),2&o&&(t.R
17$(),t.Y8G("ngIf",1==i.showsearching||0!=i.participientsArr.length),t.R7$(),t.Y8G("ngIf",i.pageLoader),t.R7$(),t.Y8G("ngIf",!i.pageLoader),t.R7$(11),t.Y8G("ngIf",i.pageLoader),t.R7$(),t.Y8G("ngIf",!i.pageLoader))},dependencies:[y.Sq,y.bT,O.BC,O.vS,B.ej,R.vr,R.Uq,R.ZZ,y.vh,B.kf],styles:['@charset "UTF-8";.rsp-section[_ngcontent-%COMP%]{padding:20px 16px}.rsp-topbar[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:16px;margin-bottom:20px;flex-wrap:wrap}.rsp-filter-wrap[_ngcontent-%COMP%]{flex:0 0 260px;max-width:260px}[_nghost-%COMP%] .rsp-ng-select .ng-select-container{background:#191b21!important;border:1px solid #363A47!important;border-radius:9999px!important;color:#fff!important;min-height:44px!important;height:44px!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;padding:0 12px!important;overflow:hidden!important}[_nghost-%COMP%] .rsp-ng-select .ng-input input{color:#fff!important}[_nghost-%COMP%] .rsp-ng-select .ng-placeholder{color:#747474!important;font-size:14px!important;line-height:1!important;padding-bottom:0!important;padding-top:10px!important;top:5px!important}[_nghost-%COMP%] .rsp-ng-select .ng-value-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;flex:1!important;padding:0 4px!important}[_nghost-%COMP%] .rsp-ng-select .ng-value-label{color:#fff!important;font-size:13px}[_nghost-%COMP%] .rsp-ng-select .ng-arrow-wrapper{padding-right:12px!important;align-self:center!important;display:flex!important;align-items:center!important}[_nghost-%COMP%] .rsp-ng-select .ng-arrow-wrapper .ng-arrow{border:none!important;width:0!important;height:0!important}[_nghost-%COMP%] .rsp-ng-select .ng-arrow-wrapper:after{content:"";display:inline-block;width:7px;height:7px;border-right:1.5px solid #9ca3af;border-bottom:1.5px solid #9ca3af;transform:rotate(45deg);margin-top:-5px;vertical-align:middle}[_nghost-%COMP%] .rsp-ng-select .ng-dropdown-panel{background:#1d1f26!important;border:1px solid #363A47!important;border-radius:8px!important}[_nghost-%COMP%] .rsp-ng-select .ng-option{background:#1d1f26!important;color:#e0e0e0!important;font-size:13px}[_nghost-%COMP%] .rsp-ng-select .ng-option:hover, [_nghost-%COMP%] .rsp-ng-select .ng-option.ng-option-marked{background:#ffffff0d!important}[_nghost-%COMP%] .rsp-ng-select .ng-value{background:#f7952226!important;border-radius:6px!important;color:#f79522!important;font-size:12px}[_nghost-%COMP%] .rsp-ng-select .ng-clear-wrapper{color:#9ca3af!important}[_nghost-%COMP%] .rsp-ng-select .ng-clear-wrapper:hover{color:#fff!important}.rsp-export-wrap[_ngcontent-%COMP%]{margin-left:auto}.rsp-export-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;border-radius:9999px;border:1px solid #3a7bfd;background:transparent;color:#3a7bfd;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s}.rsp-export-btn[_ngcontent-%COMP%]:hover{background:#3a7bfd1a}.rsp-export-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:not-allowed}.rsp-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:60px 0}.rsp-page-loading[_ngcontent-%COMP%]{width:100%;min-height:70vh;padding:0;background:#101116}.rsp-table-card[_ngcontent-%COMP%]{background:#1d1f26;border:1px solid #363A47;border-radius:12px;overflow:hidden;margin-bottom:16px}.rsp-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse!important}.rsp-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#d0d0d0!important;background:transparent!important;border-bottom:1px solid #363A47!important;border-top:none!important;padding:14px 16px!important;font-size:15px;font-weight:500;white-space:nowrap;vertical-align:middle!important}.rsp-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:#e0e0e0!important;background:transparent!important;border-top:1px solid #363A47!important;border-bottom:none!important;padding:14px 16px!important;font-size:13px;vertical-align:middle!important}.rsp-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]{border-top:none!important}.rsp-eye-btn[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:30%;border:1px solid #F79522;background:transparent;color:#f79522;font-size:14px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}.rsp-eye-btn[_ngcontent-%COMP%]:hover{background:#f7952226}.rsp-pagination-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
1gap:12px;padding:4px 0}[_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination{display:flex;align-items:center;list-style:none;padding:0;margin:0;gap:2px}[_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination a, [_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination button, [_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination span, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination a, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination button, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination span{color:#9ca3af!important;font-size:13px}[_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination a:hover, [_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination button:hover, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination a:hover, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination button:hover{color:#fff!important;background:transparent!important}[_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination .current, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination .current{background:#3a7bfd!important;color:#fff!important;border-radius:6px;padding:3px 10px}[_nghost-%COMP%] .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination .disabled, .rsp-pagination-row[_ngcontent-%COMP%] .ngx-pagination .disabled{color:#727c8d!important}.rsp-page-size[_ngcontent-%COMP%]{width:68px}.rsp-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;color:#9ca3af}.rsp-empty[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#9ca3af}.rsp-modal[_ngcontent-%COMP%]{background:#1c1d26!important;border:1px solid #2A2D38!important;border-radius:14px!important;overflow:hidden;box-shadow:0 24px 48px #0009!important;max-height:90vh;display:flex;flex-direction:column}.rsp-modal-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:#15161c;border-bottom:1px solid #2A2D38;flex-shrink:0}.rsp-modal-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#fff;margin:0}.rsp-modal-close[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:50%;border:1px solid #BCBCBC;background:transparent;color:#bcbcbc;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}.rsp-modal-close[_ngcontent-%COMP%]:hover{background:#0b0d12;color:#fff}.rsp-download-btn[_ngcontent-%COMP%]{cursor:pointer;opacity:.7}.rsp-download-btn[_ngcontent-%COMP%]:hover{opacity:1}.rsp-modal-body[_ngcontent-%COMP%]{padding:24px;overflow-y:auto;overflow-x:hidden;flex:1}.rsp-meta-card[_ngcontent-%COMP%]{display:flex;align-items:stretch;background:#2e2f37;border:1px solid #5C5F69;border-radius:10px;padding:16px 24px;margin-bottom:20px;gap:0}.rsp-meta-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;flex:1}.rsp-meta-vdivider[_ngcontent-%COMP%]{width:1px;background:#5c5f69;margin:0 24px;flex-shrink:0}.rsp-meta-label[_ngcontent-%COMP%]{font-size:13px;color:#9ca3af;font-weight:400}.rsp-meta-value[_ngcontent-%COMP%]{font-size:15px;color:#fff;font-weight:500}.rsp-response-item[_ngcontent-%COMP%]{margin-bottom:24px;padding-bottom:6px}.rsp-response-item[_ngcontent-%COMP%]:last-child{border-bottom:none;margin-bottom:0}.rsp-q-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#b2acac;margin-bottom:8px;line-height:1.5}.rsp-q-num[_ngcontent-%COMP%]{display:inline!important;font-weight:400;margin-right:4px}.rsp-answer[_ngcontent-%COMP%]{font-size:15px;font-weight:500;color:#fff;margin-bottom:4px;overflow-wrap:break-word;word-break:break-word}.rsp-answer-label[_ngcontent-%COMP%]{font-weight:500;color:#fff;margin-right:4px}.rsp-probing[_ngcontent-%COMP%]{margin-top:12px;padding:12px;background:#ffffff08;border-radius:8px;border-left:3px solid #F79522}.rsp-grid-table[_ngcontent-%COMP%]{border:1px solid #F79522;border-radius:10px;overflow:hidden;margin-top:8px}.rsp-grid-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{color:#e0e0e0!important}.rsp-grid-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:transparent}.rsp-grid-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .rsp-grid-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:transparent!important;color:#e0e0e0!important;border-color:#2a2d38!important;padding:8px 12px!important;font-size:13px}.rsp-audio-list[_ngcontent-%COMP%]{color:#e0e0e0;font-size:14px;margin-left:20px}.rsp-audio-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:8px;overflow-wrap:break-word;word-break:break-word}.rsp-audio-text[_ngcontent-%COMP%]{border:1px solid #2A2D38;border-radius:8px;background:#0b0d12;color:#e0e0e0;padding:12px;max-height:200px;overflow-y:auto;margin-top:4px;line-height:1.5;font-size:13px}.rsp-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.rsp-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.rsp-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#1c1d26;border-radius:99px}.rsp-modal-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#3a3d4a}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#2a2d38;border-radius:99px}.f16[_ngcontent-%COMP%]{font-size:16px}.nodata[_ngcontent-%COMP%]{color:#8a8a8a;font-weight:400;font-size:22px}@media (max-width: 640px){.rsp-section[_ngcontent-%COMP%]{padding:12px 12px 12px 16px;margin-left:0!important}.rsp-topbar[_ngcontent-%COMP%]{flex-wrap:nowrap;align-items:center;gap:10px;margin-top:12px;margin-bottom:14px}.rsp-filter-wrap[_ngcontent-%COMP%]{flex:1;max-width:unset}.rsp-export-wrap[_ngcontent-%COMP%]{margin-left:0;flex-shrink:0}.rsp-table-card[_ngcontent-%COMP%]{overflow-x:auto;border-radius:10px}.rsp-table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .rsp-table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:13px;padding:12px!important}.rsp-pagination-row[_ngcontent-%COMP%]{flex-wrap:wrap;gap:8px}.rsp-loading[_ngcontent-%COMP%]{min-height:68vh;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.rsp-empty[_ngcontent-%COMP%]{min-height:68vh}.modal-dialog[_ngcontent-%COMP%]{max-width:92vw!important;width:92vw!important;margin:auto!important;padding:0!important;min-height:calc(100vh - 3.5rem)!important;display:flex!important;align-items:center}.rsp-modal[_ngcontent-%COMP%]{border-radius:14px!important;max-height:80vh!important;width:100%}.rsp-modal-body[_ngcontent-%COMP%]{padding:14px 12px}.rsp-modal-header[_ngcontent-%COMP%]{padding:12px 16px}.rsp-meta-card[_ngcontent-%COMP%]{flex-direction:row;padding:12px 14px;gap:0}.rsp-meta-col[_ngcontent-%COMP%]{gap:4px}.rsp-meta-label[_ngcontent-%COMP%]{font-size:11px}.rsp-meta-value[_ngcontent-%COMP%]{font-size:13px}.rsp-meta-vdivider[_ngcontent-%COMP%]{width:1px;height:auto;margin:0 12px}}']})}return n})()}]}];let Vo=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.$C({type:n});static#i=this.\u0275inj=t.G2t({imports:[k.iI.forChild(Do),k.iI]})}return n})();var W=v(1626),K=v(1827),Yo=v(1697);let Xo=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#e=this.\u0275mod=t.$C({type:n});static#i=this.\u0275inj=t.G2t({providers:[{provide:W.a7,useClass:K.Vw,multi:!0},{provide:W.a7,useClass:K.wZ,multi:!0}],imports:[y.MD,Vo,k.iI,Yo.N,O.X1,O.YN,B.ed,R.MQ,z.Ve]})}return n})()}}]);
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.