PageSourceSearch

https://tool.teamsupporter.nl/5305-es2015.5764df995550c2fa303e.js

js teamsupporter.nl collected 2026-10-08 16:33:39 UTC 157,607 bytes, 1 lines download raw bytes

1(self.webpackChunkteamsupporter=self.webpackChunkteamsupporter||[]).push([[5305],{49457:function(t,e){var i,s,n;s=[],void 0!==(n="function"==typeof(i=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,i){var s=new XMLHttpRequest;s.open("GET",t),s.responseType="blob",s.onload=function(){l(s.response,e,i)},s.onerror=function(){console.error("could not download file")},s.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(i){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,e,a){var l=o.URL||o.webkitURL,r=document.createElement("a");e=e||t.name||"download",r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin===location.origin?n(r):s(r.href)?i(t,e,a):n(r,r.target="_blank")):(r.href=l.createObjectURL(t),setTimeout(function(){l.revokeObjectURL(r.href)},4e4),setTimeout(function(){n(r)},0))}:"msSaveOrOpenBlob"in navigator?function(t,o,a){if(o=o||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),o);else if(s(t))i(t,o,a);else{var l=document.createElement("a");l.href=t,l.target="_blank",setTimeout(function(){n(l)})}}:function(t,e,s,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,s);var l="application/octet-stream"===t.type,r=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||l&&r||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=t:location=t,n=null},u.readAsDataURL(t)}else{var g=o.URL||o.webkitURL,d=g.createObjectURL(t);n?n.location=d:location.href=d,n=null,setTimeout(function(){g.revokeObjectURL(d)},4e4)}});o.saveAs=l.saveAs=l,t.exports=l})?i.apply(e,s):i)&&(t.exports=n)},30299:function(t,e,i){"use strict";i.r(e),i.d(e,{EditSurveyPageModule:function(){return Di}});var s=i(38583),n=i(3679),o=i(52267),a=i(56137),l=i(97582),r=i(57680),c=i(49457),u=i(16738),g=i(15257),d=i(37716),h=i(33372),p=i(29790),m=i(53501),f=i(70706),_=i(85925),x=i(84465),Z=i(54838),v=i(34063),w=i(52360),y=i(99057),Q=i(16171),T=i(79942),L=i(80707),q=i(75234);class b{constructor(t,e,i,s,n,o,a,l,r,c,u,g){this.auth=t,this.nav=e,this.icon=i,this.toast=s,this.translate=n,this.combineTeamPipe=o,this.firestore=a,this.modal=l,this.helpers=r,this.functions=c,this.filterSearch=u,this.sortBy=g,this.teams=[],this.teamStructure=[],this.showImport=!1,this.showImportStructure=!1,this.searchTeams="",this.searchTeamsStructure="",this.organisation_id="",this.selectedTeams=[],this.importedData=[],this.importedTeams={},this.teamsObj={}}getUniqueMembersByEmail(t=[]){var e;let i=[],s=[];for(let n=0;n<t.length;n++){if(!(null===(e=t[n])||void 0===e?void 0:e.email))continue;let o=(t[n].email+"").trim().toLowerCase();if(-1==s.indexOf(o))s.push(o),i.push(Object.assign(Object.assign({},t[n]),{email:o}));else for(let e=0;e<i.length;e++)i[e].email==o&&t[n].admin&&(i[e].admin=!0)}return i}askNewMemberInviteConfirmation(t){return(0,l.mG)(this,void 0,void 0,function*(){return yield new Promise(e=>{this.modal.verification(t=>{e(!!(null==t?void 0:t.data))},t,[{value:!1,text:this.translate.instant("btn_no"),color:"primary"},{value:!0,text:this.translate.instant("btn_yes"),color:"tertiary"}],this.translate.instant("page_edit_organisation_new_teammember_title"),!1)})})}get allSelected(){for(let t in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"]))if(!this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"])[t].selected)return!1;return!0}
1get allSelectedStructure(){for(let t in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"]))if(!this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"])[t].selected)return!1;return!0}structureItemExists(t){if(!this.auth.getOrgInfo(this.organisation_id).basic_structure)return!1;for(let e in this.auth.getOrgInfo(this.organisation_id).basic_structure)if(t==this.auth.getOrgInfo(this.organisation_id).basic_structure[e].code)return!0;return!1}preventBubble(t){t.stopPropagation()}showAllSelected(){this.showSelect&&this.selectAll(!0),this.showSelect=!this.showSelect}selectAll(t){if(this.allSelected||t)for(let e in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"])[e].selected=!1;else for(let e in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"])[e].selected=!0}
1showAllSelectedStructure(){this.showSelectStructure&&this.selectAllStructure(!0),this.showSelectStructure=!this.showSelectStructure}selectAllStructure(t){if(this.allSelectedStructure||t)for(let e in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"])[e].selected=!1;else for(let e in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"])[e].selected=!0}deleteSelectedTeamsStructure(){this.modal.verification(t=>{if(null==t?void 0:t.data){let t=[];for(let i in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"])[i].selected&&t.push(this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_structure,this.searchTeamsStructure,!1,["name","parent","code"])[i].code);if(0==t.length)return void this.toast.show(this.translate.instant("page_edit_organisation_no_selected_teams"),3e3,"middle");let e=this.firestore.getSubDoc("organisations",this.organisation_id,"basic","structure").subscribe(i=>{let s=i.payload.data();e.unsubscribe();for(let e=0;e<t.length;e++)delete s[t[e]];this.firestore.setSub("organisations",this.organisation_id,"basic","structure",s)});JSON.parse(JSON.stringify(this.auth.getOrgInfo(this.organisation_id).basic_structure));for(let i=0;i<t.length;i++);}},this.translate.instant("page_edit_organisation_verification_delete_teams"),null,this.translate.instant("modal_edit_lists_delete"))}editTeam(t,e){var i;return(0,l.mG)(this,void 0,void 0,function*(){if(!e&&!t&&(!(null===(i=this.auth.currentSubscription(this.organisation_id))||void 0===i?void 0:i.licenses)||!this.auth.getOrgInfo(this.organisation_id).basic_teams||this.auth.getOrgInfo(this.organisation_id).basic_teams.length>=this.auth.currentSubscription(this.organisation_id).licenses))return void this.toast.show(this.translate.instant("page_edit_organisation_no_licenses"),4e3,"middle");if(this.toast.showLoader(),this.modalTeamOpen)return;this.modalTeamOpen=!0;let s=!1;if(t)if(e)this.toast.hideLoader(),this.editMembers(t,s,e);else{let i=this.firestore.getSubDoc("organisations",this.organisation_id,"teams",t.id).subscribe(n=>{t=n.payload.data(),i.unsubscribe(),this.toast.hideLoader(),this.editMembers(t,s,e)})}else e?(s=!0,t={name:"",code:"",parent:""}):(s=!0,t={memberList:[],members:[],name:"",team_time:"0",code:"",parent:"",max_miniscans:this.auth.currentSubscription(this.organisation_id).max_miniscans,used_miniscans:0}),this.toast.hideLoader(),this.editMembers(t,s,e)})}editMembers(t,e,i){this.modal.editMembers(t,s=>(0,l.mG)(this,void 0,void 0,function*(){var n;
1if("delete"!=(null==s?void 0:s.data)||i){if("delete"==(null==s?void 0:s.data)&&i){let e=this.firestore.getSubDoc("organisations",this.organisation_id,"basic","structure").subscribe(i=>{let s=i.payload.data();delete s[t.code],this.firestore.setSub("organisations",this.organisation_id,"basic","structure",s).then(()=>{this.toast.show(this.translate.instant("page_edit_organisation_team_deleted"),4e3,"middle")}),e.unsubscribe()})}else if((null==s?void 0:s.data)&&!i){if(null==s.data.parent&&(s.data.parent=""),JSON.stringify(t)!=JSON.stringify(s.data)){let i=(null===(n=s.data.members)||void 0===n?void 0:n.length)||0;s.data.members=this.getUniqueMembersByEmail(s.data.members||[]),i!=s.data.members.length&&this.toast.show("Dubbele e-mailadressen zijn verwijderd.",4e3,"middle"),s.data.memberList=[];let o=[];for(let e=0;e<s.data.members.length;e++)-1==t.memberList.indexOf(s.data.members[e].email)&&o.push(s.data.members[e]),s.data.memberList.push(s.data.members[e].email);let a=[];for(let e=0;e<t.memberList.length;e++)-1==s.data.memberList.indexOf(t.memberList[e])&&a.push(t.memberList[e]);if(console.log("deletedMembers",a),a.length>0)for(let e=0;e<a.length;e++)this.firestore.create("toBeDeletedPlannedScans",{team_id:t.id,email:a[e],organisation_id:this.organisation_id});if(o.length>0&&this.auth.currentSubscription(this.organisation_id).latestTeamsScanList&&this.auth.currentSubscription(this.organisation_id).latestTeamsScanList.indexOf(t.id)>-1&&(yield this.askNewMemberInviteConfirmation(this.translate.instant("page_edit_organisation_new_teammember_openscan")))){let e={members:t.members,individual:o,team_name:t.name,team_time:t.team_time,team_size:t.members.length>15?"large":t.members.length>10?"medium":"small",team_id:t.id,timing:this.auth.currentSubscription(this.organisation_id).busy_scans,single:!1,type:"team",lang:this.translate.currentLang,sender:this.auth.userInfo.displayName,sender_email:this.auth.userInfo.email,invite:this.auth.getOrgInfo(this.organisation_id).email_content.invite,organisation_id:this.organisation_id};this.firestore.create("processing_scans",e,t=>{this.toast.show(this.translate.instant("page_my_account_msg_invitation_ready"))})}let l=[];if(this.auth.getOrgInfo(this.organisation_id).surveys&&this.auth.getOrgInfo(this.organisation_id).surveys.length>0)for(let e=0;e<this.auth.getOrgInfo(this.organisation_id).surveys.length;e++){let i=this.auth.getOrgInfo(this.organisation_id).surveys[e];if(i&&i.settings&&"active"==i.settings.status&&i.settings.teams&&i.settings.teams.length>0){if(i.settings.startdate&&i.settings.startdate>u().format("YYYY-MM-DD"))continue;for(let e=0;e<i.settings.teams.length;e++)if(i.settings.teams[e].id==t.id){l.push(i);break}}}if(o.length>0&&l.length>0&&(yield this.askNewMemberInviteConfirmation(this.translate.instant("page_edit_organisation_new_teammember_opensurvey")))){for(let e=0;e<l.length;e++){let i=JSON.parse(JSON.stringify(l[e]));!(null==i?void 0:i.settings)||(i.organisation_id=this.organisation_id,i.settings.organisation_id=this.organisation_id,i.settings.survey_id=i.settings.survey_id||i.id,i.settings.sender_name=this.auth.userInfo.displayName,i.settings.sender_email=this.auth.userInfo.email,i.settings.teams=[{id:t.id,name:t.name}],i.settings.team_id=t.id,i.settings.team_name=t.name,i.individual=o,this.functions.httpsCallable("sendInviteSurveyOrganisation",i).subscribe())}this.toast.show(this.translate.instant("page_my_account_msg_invitation_ready"))}if(e&&!s.data.organisation_id)this.auth.updateOrganisation(),this.firestore.createSub("organisations",this.organisation_id,"teams",{name:s.data.name,members:s.data.members,memberList:s.data.memberList,team_time:s.data.team_time,code:s.data.code,parent:s.data.parent,organisation_id:this.organisation_id,max_miniscans:s.data.max_miniscans,used_miniscans:s.data.used_miniscans},t=>{if(null==t?void 0:t.id){this.auth.updateOrganisation(),this.firestore.updateSub("organisations",this.organisation_id,"teams",t.id,{id:t.id,team_id:t.id});let e=this.firestore.getSubDoc("organisations",this.organisation_id,"basic","teams").subscribe(i=>{let n=i.payload.data();n||(n={}),n[t.id]={id:t.id,members:s.data.members.length,name:s.data.name,code:s.data.code,team_time:s.data.team_time},this.auth.updateOrganisation(),this.firestore.updateSub("organisations",this.organisation_id,"basic","teams",n),e.unsubscribe()})}});else if(e&&s.data.organisation_id)this.firestore.setSub("organisations",this.organisation_id,"teams",s.data.id,{members:s.data.members,memberList:s.data.memberList,organisation_id:s.data.organisation_id,name:s.data.name,team_time:s.data.team_time,code:s.data.code,parent:s.data.parent,team_id:s.data.id,id:s.data.id,max_miniscans:s.data.max_miniscans,used_miniscans:s.data.used_miniscans}
1).then(()=>{for(let t in this.auth.myTeams)this.auth.myTeams[t].id==s.data.id&&this.firestore.update("teams",s.data.id,{organisation_id:this.organisation_id})});else{let e=this.firestore.getSubDoc("organisations",this.organisation_id,"basic","teams").subscribe(i=>{let n=i.payload.data();n[t.id]={id:t.id,members:s.data.members.length,name:s.data.name,code:s.data.code,team_time:s.data.team_time},this.auth.updateOrganisation(),this.firestore.updateSub("organisations",this.organisation_id,"basic","teams",n),e.unsubscribe()});this.auth.updateOrganisation(),this.firestore.updateSub("organisations",this.organisation_id,"teams",t.id,{name:s.data.name,team_time:s.data.team_time,code:s.data.code,parent:s.data.parent,memberList:s.data.memberList,members:s.data.members})}}}else if((null==s?void 0:s.data)&&i&&(null==s.data.parent&&(s.data.parent=""),JSON.stringify(t)!=JSON.stringify(s.data))){let e=this.firestore.getSubDoc("organisations",this.organisation_id,"basic","structure").subscribe(i=>{let n=i.payload.data();t.code&&t.code==s.data.code?n[t.code]={name:s.data.name,code:s.data.code,organisation_id:s.data.organisation_id,parent:s.data.parent}:t.code||this.structureItemExists(s.data.code)?(n[s.data.code]={name:s.data.name,code:s.data.code,organisation_id:s.data.organisation_id,parent:s.data.parent},delete n[t.code]):n[s.data.code]={name:s.data.name,code:s.data.code,organisation_id:this.organisation_id,parent:s.data.parent},this.auth.updateOrganisation(),this.firestore.setSub("organisations",this.organisation_id,"basic","structure",n),e.unsubscribe()})}}else this.firestore.deleteSub("organisations",this.organisation_id,"teams",t.id).then(()=>{this.toast.show(this.translate.instant("page_edit_organisation_team_deleted"),4e3,"middle")});this.modalTeamOpen=!1}),{organisation:this.organisation_id,newTeam:e,checkTeams:e,structure:i})}get orgStructure(){return this.auth.getOrgInfo(this.organisation_id).basic_structure&&0!=Object.keys(this.auth.getOrgInfo(this.organisation_id).basic_structure).length?this.getChildren():[]}getChildren(t){let e=[];for(let i in this.auth.getOrgInfo(this.organisation_id).basic_structure)(this.auth.getOrgInfo(this.organisation_id).basic_structure[i].parent==t||!t&&(void 0===this.auth.getOrgInfo(this.organisation_id).basic_structure[i].parent||""===this.auth.getOrgInfo(this.organisation_id).basic_structure[i].parent))&&e.push({name:this.auth.getOrgInfo(this.organisation_id).basic_structure[i].name,code:this.auth.getOrgInfo(this.organisation_id).basic_structure[i].code,children:this.getChildren(this.auth.getOrgInfo(this.organisation_id).basic_structure[i].code)});return e}filterTeams(t,e,i){let s=[];if(e){if(i)for(let t=0;t<this.auth.getOrgInfo(this.organisation_id).basic_teams.length;t++)(!this.auth.currentSubscription(this.organisation_id,"scanTeamList_"+e)||this.auth.currentSubscription(this.organisation_id,"latestTeamsScanList").indexOf(this.auth.getOrgInfo(this.organisation_id).basic_teams[t].id)>-1)&&s.push(this.auth.getOrgInfo(this.organisation_id).basic_teams[t]);else{for(let t=0;t<this.auth.getOrgInfo(this.organisation_id).basic_teams.length;t++)(!this.auth.currentSubscription(this.organisation_id,"scanTeamList_"+e)||-1==this.auth.currentSubscription(this.organisation_id,"scanTeamList_"+e).indexOf(this.auth.getOrgInfo(this.organisation_id).basic_teams[t].id))&&s.push(this.auth.getOrgInfo(this.organisation_id).basic_teams[t]);if(0==s.length)return void this.toast.show(this.translate.instant("page_edit_organisation_all_teams_busy"),6e3,"middle")}this.modal.selectItem(this.translate.instant("page_view_organisation_select_teams_text"),s,i=>{(null==i?void 0:i.data)&&(this.selectedTeams=i.data,t(e))},null,this.translate.instant("page_view_organisation_select_teams_title"),{multiple:!0,object:!0,field:"name"})}else{for(let t=0;t<this.auth.getOrgInfo(this.organisation_id).basic_teams.length;t++)s.push(this.auth.getOrgInfo(this.organisation_id).basic_teams[t]);this.modal.selectItem(this.translate.instant("page_view_organisation_select_teams_text"),s,e=>{(null==e?void 0:e.data)&&(this.selectedTeams=e.data,t())},null,this.translate.instant("page_view_organisation_select_teams_title"),{multiple:!0,object:!0,field:"name"})}}downloadTemplate(t){"teams"==t&&window.open("https://www.teamsupporter.nl/wp-content/uploads/2023/04/template_import_teams.csv","_blank")}showTeamMembers(t){this.showingTeamMembers!=t?this.showingTeamMembers=t:this.showingTeamMembers=void 0}get countImportErrors(){let t=0;for(let e in this.importedTeams)this.importedTeams[e].error&&t++;return t}get countImportNew(){let t=0;for(let e in this.importedTeams)this.importedTeams[e].existing||t++;return t}get countImportExistingTeams(){let t=0;for(let e in this.importedTeams)this.importedTeams[e].existing&&t++;return t}changeAdminImport(t,e){if(!t||void 0===e)return;let i,s=0;for(let n in this.importedTeams[t].members)this.importedTeams[t].members[n].admin&&(s++,i=n);(s>1||i!=e)&&(this.importedTeams[t].members[e].admin=!this.importedTeams[t].members[e].admin)}importAll(t){this.toast.showLoader();let e=0,i={};if(t){if("structure"==t){for(let t in this.importedTeams)this.teamsObj[this.importedTeams[t].code]=this.importedTeams[t];this.firestore.setSub("organisations",this.organisation_id,"basic","structure",this.importedTeams).then(()=>{this.clearImportData(),this.showImportStructure=!1,this.toast.hideLoader()})}}else for(let s in this.importedTeams){let t=this.importedTeams[s];this.teamsObj[this.importedTeams[s].code]&&!this.importedTeams[s].replace?i[this.importedTeams[s].code]=this.firestore.getSubDoc("organisations",this.organisation_id,"teams",this.teamsObj[this.importedTeams[s].code].id).subscribe(n=>{t=n.payload.data();for(let e=0;e<this.importedTeams[s].members.length;e++)-1==t.memberList.indexOf(this.importedTeams[s].members[e].email)&&(t.memberList.push(this.importedTeams[s].members[e].email),t.members.push({email:this.importedTeams[s].members[e].email,displayName:this.importedTeams[s].members[e].displayName}));i[this.importedTeams[s].code].unsubscribe(),this.firestore.setSub("organisations",this.organisation_id,"teams",this.teamsObj[this.importedTeams[s].code].id,t).then(()=>{e+=2,Object.keys(this.importedTeams).length<=e&&(this.importedTeams={},this.importedData=[],this.showImport=!1,this.toast.hideLoader(),this.toast.show(this.translate.instant("page_edit_organisation_import_completed"),4e3,"middle"))})}):this.teamsObj[this.importedTeams[s].code]&&this.importedTeams[s].replace&&(t.id=this.teamsObj[this.importedTeams[s].code].id),this.importedTeams[s].existing?this.importedTeams[s].replace&&(this.firestore.updateSub("organisations",this.organisation_id,"teams",t.id,{memberList:this.importedTeams[s].memberList,members:this.importedTeams[s].members}).then(()=>{e+=1,Object.keys(this.importedTeams).length<=e&&(this.importedTeams={},this.importedData=[],this.showImport=!1,this.toast.hideLoader(),this.toast.show(this.translate.instant("page_edit_organisation_import_completed"),4e3,"middle"))}),this.firestore.setSub("organisations",this.organisation_id,"teams",t.id,t.memberList,"memberList",!0).then(()=>{e+=1,Object.keys(this.importedTeams).length<=e&&(this.importedTeams={},this.importedData=[],this.showImport=!1,this.toast.hideLoader(),this.toast.show(this.translate.instant("page_edit_organisation_import_completed"),4e3,"middle"))})):(t.max_miniscans=this.auth.currentSubscription(this.organisation_id).max_miniscans,t.used_miniscans=0,this.firestore.createSub("organisations",this.organisation_id,"teams",t,t=>{(null==t?void 0:t.id)&&this.firestore.setSub("organisations",this.organisation_id,"teams",t.id,t.id,"id")}).then(()=>{e+=2,Object.keys(this.importedTeams).length<=e&&(this.importedTeams={},this.importedData=[],this.showImport=!1,this.toast.hideLoader(),this.toast.show(this.translate.instant("page_edit_organisation_import_completed"),4e3,"middle"))}))}}
1deleteSelectedTeams(){this.modal.verification(t=>{if(null==t?void 0:t.data){let t=[];for(let i in this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"]))this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"])[i].selected&&t.push(this.filterSearch.transform(this.auth.getOrgInfo(this.organisation_id).basic_teams,this.searchTeams,!1,["name"])[i].id);let e=0;0==t.length&&this.toast.show(this.translate.instant("page_edit_organisation_no_selected_teams"),3e3,"middle");for(let i=0;i<t.length;i++)this.firestore.deleteSub("organisations",this.organisation_id,"teams",t[i]).then(()=>{e++,e==t.length&&(1==e?this.toast.show(e+" "+this.translate.instant("page_edit_organisation_team_deleted_msg"),3e3,"middle"):this.toast.show(e+" "+this.translate.instant("page_edit_organisation_teams_deleted_msg"),3e3,"middle"))})}},this.translate.instant("page_edit_organisation_verification_delete_teams"))}setFocusSearchTeams(t){var e,i=document.getElementsByTagName("ion-popover");for(e=i.length-1;e>=0;e--)i[e].parentNode.removeChild(i[e]);this.toast.hideTooltip(),this.toast.hideTooltip(),this.toast.hideTooltip(),this.toast.hideTooltip(),this.inputSearchTeams.setFocus()}tooManyTeams(){let t=this.auth.currentSubscription(this.organisation_id),e=this.auth.getOrgInfo(this.organisation_id);return!!(t&&(null==e?void 0:e.basic_teams)&&e.basic_teams.length>t.licenses)}exportData(){let t=[],e=[];console.log(this.auth.getOrgInfo(this.organisation_id));let i=this.firestore.getSub("organisations",this.organisation_id,"teams").subscribe(s=>{s.forEach(t=>{let i=t.payload.doc.data();i.id=t.payload.doc.id,e.push(i)}),i.unsubscribe(),console.log(e),e=e.sort((t,e)=>t.code<e.code?-1:t.code>e.code?1:0),t.push(["Team code","Team naam","Naam Teamlid","E-mail Teamlid"]);for(let i in e)if(e[i].members)for(let s in e[i].members)t.push([e[i].code,e[i].name,e[i].members[s].displayName,e[i].members[s].email]);console.log(t);let n=[];for(let e=0;e<t.length;e++)n.push(t[e].join(";"));n=n.join("\r\n");var o=new Blob([n],{type:"text/csv"});(0,c.saveAs)(o,this.translate.instant("teams")+" "+this.auth.getOrgInfo(this.organisation_id).organisation+" "+u().format("YYYY-MM-DD")+".csv")})}uploadClick(t){"structure"==t?this.fileStructure.nativeElement.click():this.file.nativeElement.click()}upload(t,e){var i;(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.files[0])&&this.readFile(t.target.files[0],e)}readFile(t,e){var i=new FileReader;i.onload=()=>{this.file2Data(i.result,e)},i.readAsText(t)}clearImportData(){this.importedData=[]}file2Data(t,e){this.newRows=!1,this.importedData=[];let i,s=t.split(String.fromCharCode(10));for(let n=1;n<s.length;n++)s[n]=s[n].split("\r").join(""),i=s[n].split(";"),i[1]||(i=s[n].split(",")),e?"structure"==e&&this.importedData.push({code:i[0],name:i[1],parent:i[2]}):null!=i[0]&&null!=i[1]&&null!=i[2]&&null!=i[3]&&null!=i[5]&&(parseInt(i[2])>=0&&parseInt(i[2])<10||(parseInt(i[2])?parseInt(i[2])>=10&&(i[2]="10+"):i[2]="0"),this.importedData.push({code:i[0],name:i[1],team_time:i[2],displayName:i[3]+" "+i[4],email:i[5]}));if(this.teamsObj={},e){if("structure"==e){this.auth.getOrgInfo(this.organisation_id).basic_structure;for(let t in this.auth.getOrgInfo(this.organisation_id).basic_structure)this.auth.getOrgInfo(this.organisation_id).basic_structure[t].code&&(this.teamsObj[this.auth.getOrgInfo(this.organisation_id).basic_structure[t].code]=this.auth.getOrgInfo(this.organisation_id).basic_structure[t]);this.importedTeams={};for(let t=0;t<this.importedData.length;t++)this.importedTeams[this.importedData[t].code]||(this.importedTeams[this.importedData[t].code]={name:this.importedData[t].name,code:this.importedData[t].code,organisation_id:this.organisation_id,parent:this.importedData[t].parent}),this.teamsObj[this.importedData[t].code]&&(this.importedTeams[this.importedData[t].code].existing=!0)}}else{for(let t in this.auth.getOrgInfo(this.organisation_id).basic_teams)this.auth.getOrgInfo(this.organisation_id).basic_teams[t].code&&(this.teamsObj[this.auth.getOrgInfo(this.organisation_id).basic_teams[t].code]=this.auth.getOrgInfo(this.organisation_id).basic_teams[t]);this.importedTeams={};for(let t=0;t<this.importedData.length;t++)this.importedTeams[this.importedData[t].code]||(this.importedTeams[this.importedData[t].code]={name:this.importedData[t].name,team_time:this.importedData[t].team_time,code:this.importedData[t].code,organisation_id:this.organisation_id,members:[],memberList:[]}),this.teamsObj[this.importedData[t].code]&&(this.importedTeams[this.importedData[t].code].existing=!0),-1==this.importedTeams[this.importedData[t].code].memberList.indexOf(this.importedData[t].email)&&(this.importedTeams[this.importedData[t].code].memberList.push(this.importedData[t].email),this.importedTeams[this.importedData[t].code].members.push({email:this.importedData[t].email,displayName:this.importedData[t].displayName,uid:""}),1==this.importedTeams[this.importedData[t].code].members.length&&(this.importedTeams[this.importedData[t].code].members[0].admin=!0),new RegExp("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-z]{2,15}$").test(this.importedData[t].email)||(this.importedTeams[this.importedData[t].code].error=!0,this.importedTeams[this.importedData[t].code].members[this.importedTeams[this.importedData[t].code].members.length-1].emailError=!0))}}}b.\u0275fac=function(t){return new(t||b)(d.LFG(h.e),d.LFG(m.t),d.LFG(f.
1j),d.LFG(x.k),d.LFG(p.sK),d.LFG(L.y),d.LFG(_.C),d.LFG(Z.Z),d.LFG(v.$),d.LFG(Q.g),d.LFG(q.u),d.LFG(y.W))},b.\u0275prov=d.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"});var A=i(43646),S=i(39577),O=i(82941);function J(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",27),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).showDashboard()}),d.TgZ(1,"span"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d._UZ(4,"span",25),d._UZ(5,"fa-icon",28),d.qZA()}if(2&t){const t=d.oxw(3);d.xp6(2),d.Oqu(d.lcZ(3,2,"survey_view_analysis")),d.xp6(3),d.Q6J("icon",t.icon.get("faChartPie"))}}const N=function(t){return{transform:t}};function I(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",23),d.TgZ(1,"div",24),d._UZ(2,"span",25),d.YNc(3,J,6,4,"div",26),d.TgZ(4,"div",27),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2);return e.nav.go("edit-organisation/"+e.organisation_id)}),d.TgZ(5,"span"),d._uU(6),d.ALo(7,"translate"),d.qZA(),d._UZ(8,"span",25),d._UZ(9,"fa-icon",28),d.qZA(),d.TgZ(10,"div",29),d.NdJ("click",function(e){return d.CHM(t),d.oxw(2).openDashboardMenu(e)}),d.TgZ(11,"span"),d._uU(12),d.ALo(13,"translate"),d.qZA(),d._UZ(14,"span",25),d._UZ(15,"fa-icon",30),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize||"lg"==t.media.screenSize?3:"md"==t.media.screenSize?5:12),d.xp6(3),d.Q6J("ngIf","closed"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(3),d.Oqu(d.lcZ(7,7,"page_edit_organisation_title")),d.xp6(3),d.Q6J("icon",t.icon.get("faPen")),d.xp6(3),d.Oqu(d.lcZ(13,9,"change_dashboard")),d.xp6(3),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(11,N,t.showDashboardMenu?"rotate(180deg)":"rotate(0deg)"))}}function M(t,e){1&t&&(d.TgZ(0,"ion-col",31),d.TgZ(1,"div",32),d._UZ(2,"img",33),d.qZA(),d.qZA())}function C(t,e){1&t&&d._UZ(0,"div",37)}function U(t,e){1&t&&(d.TgZ(0,"span",38),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_select_other")))}function k(t,e){1&t&&(d.TgZ(0,"span",38),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_select")))}function D(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",23),d.TgZ(1,"div",34),d.NdJ("click",function(e){d.CHM(t);const i=d.oxw(2);return null!=i.auth.getOrgInfo(i.organisation_id).surveys&&i.auth.getOrgInfo(i.organisation_id).surveys.length?i.showListSurveys(e):null}),d.YNc(2,C,1,0,"div",35),d.YNc(3,U,3,3,"span",36),d.YNc(4,k,3,3,"span",36),d._UZ(5,"div",25),d._UZ(6,"fa-icon",28),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize?3:"lg"==t.media.screenSize?4:6),d.xp6(2),d.Q6J("ngIf",!(null!=t.auth.getOrgInfo(t.organisation_id).surveys&&t.auth.getOrgInfo(t.organisation_id).surveys.length)),d.xp6(1),d.Q6J("ngIf",t.survey_id&&"new"!=t.survey_id),d.xp6(1),d.Q6J("ngIf",!t.survey_id||"new"==t.survey_id),d.xp6(2),d.Q6J("icon",t.icon.get("faChevronDown"))}}function Y(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",23),d.TgZ(1,"div",39),d.NdJ("click",function(e){return d.CHM(t),d.oxw(2).newSurvey(e)}),d.TgZ(2,"span",38),d._uU(3),d.ALo(4,"translate"),d.qZA(),d._UZ(5,"div",25),d._UZ(6,"fa-icon",28),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize?3:"lg"==t.media.screenSize?4:6),d.xp6(3),d.Oqu(d.lcZ(4,3,"edit_ess_tooltip_add_survey")),d.xp6(3),d.Q6J("icon",t.icon.get("faPlus"))}}function z(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",23),d.TgZ(1,"div",39),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2);return e.showEditTeams=!e.showEditTeams,e.showQuestions=!1,e.showNewOptions=!1,e.survey_id="",e.allQuestionsList={}}),d.TgZ(2,"span",38),d._uU(3),d.ALo(4,"translate"),d.qZA(),d._UZ(5,"div",25),d._UZ(6,"fa-icon",28),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize?3:"lg"==t.media.screenSize?4:6),d.xp6(3),d.Oqu(d.lcZ(4,3,"survey_edit_teams")),d.xp6(3),d.Q6J("icon",t.icon.get("faPen"))}}function E(t,e){if(1&t&&d._UZ(0,"ion-col",23),2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize?9:"lg"==t.media.screenSize?8:6)}}function F(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",23),d.TgZ(1,"div",39),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2);return e.showQuestions=!e.showQuestions}),d._UZ(2,"fa-icon",28),d.TgZ(3,"span",40),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xl"==t.media.screenSize?3:"lg"==t.media.screenSize?4:6),d.xp6(2),d.Q6J("icon",t.icon.get("faArrowLeft")),d.xp6(2),d.Oqu(d.lcZ(5,3,"header_back"))}}function H(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",51),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).newCat()}),d.TgZ(1,"span"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d._UZ(4,"fa-icon",52),d.qZA()}if(2&t){const t=d.oxw(3);d.xp6(2),d.Oqu(d.lcZ(3,2,"survey_new_category")),d.xp6(2),d.Q6J("icon",t.icon.get("faPlus"))}}function P(t,e){if(1&t&&(d.TgZ(0,"span",61),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){const t=d.oxw().$implicit,e=d.oxw(3);d.xp6(1),d.AsE("(",e.allQuestionsList[t].length," ",d.lcZ(2,2,"question"),")")}}function j(t,e){if(1&t&&(d.TgZ(0,"span",61),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t){const t=d.oxw().$implicit,e=d.oxw(3);d.xp6(1),d.AsE("(",e.allQuestionsList[t].length," ",d.lcZ(2,2,"questions"),")")}}function B(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",59),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(3).renameCat(e)}),d._UZ(1,"fa-icon",28),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("icon",t.icon.get("faTag"))}}function $(t,e){if(1&t&&d._UZ(0,"fa-icon",28),2&t){const t=d.oxw(5);d.Q6J("icon",t.icon.get("faPlus"))}}function R(t,e){if(1&t&&d._UZ(0,"fa-icon",28),2&t){const t=d.oxw(5);d.Q6J("icon",t.icon.get("faMinus"))}}function G(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",59),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(3).showNewCatQuestion(e)}),d.YNc(1,$,1,1,"fa-icon",60),d.YNc(2,R,1,1,"fa-icon",60),d.qZA()}if(2&t){const t=d.oxw().index,e=d.oxw(3);d.xp6(1),d.Q6J("ngIf",e.newCatQuestion!=t),d.xp6(1),d.Q6J("ngIf",e.newCatQuestion==t)}}function K(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",62),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(3).removeCat(e)}),d._UZ(1,"fa-icon",28),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("icon",t.icon.get("faTrashAlt"))}}function W(t,e){if(1&t&&d._UZ(0,"fa-icon",28),2&t){const t=d.oxw(4);d.Q6J("icon",t.icon.get("faChevronDown"))}}function V(t,e){if(1&t&&d._UZ(0,"fa-icon",28),2&t){const t=d.oxw(4);d.Q6J("icon",t.icon.get("faChevronUp"))}}function X(t,e){1&t&&(d.TgZ(0,"ion-select-option",89),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_question_level_1-5")))}function tt(t,e){1&t&&(d.TgZ(0,"ion-select-option",90),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_question_level_1-7")))}function et(t,e){1&t&&(d.TgZ(0,"ion-select-option",91),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_question_level_1-10")))}function it(t,e){1&t&&(d.TgZ(0,"ion-select-option",92),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_question_level_slider")))}function st(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-item"),d.TgZ(1,"ion-label",65),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"ion-select",66),d.NdJ("ngModelChange",function(e){d.CHM(t);const i=d.oxw().index;return d.oxw(5).questionNew[i].level=e}),d._UZ(5,"ion-select-option",82),d.YNc(6,X,3,3,"ion-select-option",83),d.YNc(7,tt,3,3,"ion-select-option",84),d.YNc(8,et,3,3,"ion-select-option",85),d.YNc(9,it,3,3,"ion-select-option",86),d.TgZ(10,"ion-select-option",87),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.TgZ(13,"ion-select-option",88),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw().index,e=d.oxw(5);d.xp6(2),d.Oqu(d.lcZ(3,8,"survey_question_level")),d.xp6(2),d.Q6J("ngModel",e.questionNew[t].level),d.xp6(2),d.Q6J("ngIf","scale-5"==e.questionNew[t].type||"7-scale"==e.questionNew[t].type),d.xp6(1),d.Q6J("ngIf","scale-7"==e.questionNew[t].type||"7-scale"==e.questionNew[t].type),d.xp6(1),d.Q6J("ngIf","scale-10"==e.questionNew[t].type||"slider"==e.questionNew[t].type),d.xp6(1),d.Q6J("ngIf","slider"==e.questionNew[t].type),d.xp6(2),d.Oqu(d.lcZ(12,10,"survey_question_level_agree")),d.xp6(3),d.Oqu(d.lcZ(15,12,"survey_question_level_positivity"))}}function nt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",95),d.TgZ(1,"div",96),d.TgZ(2,"ion-label"),d._uU(3),d.qZA(),d._UZ(4,"span",25),d.TgZ(5,"ion-icon",97),d.NdJ("click",function(){const e=d.CHM(t).index,i=d.oxw(2).index,s=d.oxw(2).index;return d.oxw(3).removeOptions(i,e,s,!0)}),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(3),d.Oqu(t.value)}}function ot(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",93),d.TgZ(1,"ion-label",65),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",76),d.TgZ(5,"ion-input",77),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(6).newOption=e})("keyup.enter",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).addOptions(e,i,!0)}),d.qZA(),d.TgZ(6,"ion-button",78),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).addOptions(e,i,!0)}),d.TgZ(7,"span"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.qZA(),d.TgZ(10,"ion-row"),d.YNc(11,nt,6,1,"ion-col",94),d.qZA(),d.qZA()}if(2&t){const t=d.oxw().index,e=d.oxw(5);d.xp6(2),d.Oqu(d.lcZ(3,6,"survey_options")),d.xp6(3),d.Q6J("placeholder","Voeg hier een optie toe")("ngModel",e.newOption),d.xp6(1),d.Q6J("disabled",!e.newOption),d.xp6(2),d.Oqu(d.lcZ(9,8,"btn_add")),d.xp6(3),d.Q6J("ngForOf",e.questionNew[t].options)}}function at(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-item",98),d.TgZ(1,"ion-checkbox",99),d.NdJ("ngModelChange",function(e){d.CHM(t);const i=d.oxw().index;return d.oxw(5).questionNew[i].multiple=e}),d.qZA(),d.TgZ(2,"ion-label"),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.qZA()}if(2&t){const t=d.oxw().index,e=d.oxw(5);d.xp6(1),d.Q6J("ngModel",e.questionNew[t].multiple),d.xp6(2),d.Oqu(d.lcZ(4,2,"survey_multiple_answers_select"))}}function lt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",102),d.TgZ(1,"span"),d._uU(2),d.qZA(),d.TgZ(3,"ion-icon",103),d.NdJ("click",function(){const e=d.CHM(t).index,i=d.oxw(2).index;return d.oxw(5).removeTag(i,e,null,!0)}),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(2),d.Oqu(t)}}function rt(t,e){if(1&t&&(d.TgZ(0,"div",100),d.YNc(1,lt,4,1,"div",101),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("ngForOf",t.questionNew[0].tags)}}function ct(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card",64),d.TgZ(1,"ion-card-content"),d.TgZ(2,"ion-item"),d.TgZ(3,"ion-label",65),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"ion-input",66),d.NdJ("ngModelChange",function(e){const i=d.CHM(t).index;return d.oxw(5).questionNew[i].question=e}),d.qZA(),d.qZA(),d.TgZ(7,"ion-item"),d.TgZ(8,"ion-label",65),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"ion-select",66),d.NdJ("ngModelChange",function(e){const i=d.CHM(t).index;return d.oxw(5).questionNew[i].type=e}),d.TgZ(12,"ion-select-option",67),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"ion-select-option",68),d._uU(16),d.ALo(17,"translate"),d.qZA(),d.TgZ(18,"ion-select-option",69),d._uU(19),d.ALo(20,"translate"),d.qZA(),d.TgZ(21,"ion-select-option",70),d._uU(22),d.ALo(23,"translate"),d.qZA(),d.TgZ(24,"ion-select-option",71),d._uU(25),d.ALo(26,"translate"),d.qZA(),d.TgZ(27,"ion-select-option",72),d._uU(28),d.ALo(29,"translate"),d.qZA(),d.qZA(),d.qZA(),d.YNc(30,st,16,14,"ion-item",0),d.YNc(31,ot,12,10,"div",73),d.YNc(32,at,5,4,"ion-item",74),d.TgZ(33,"ion-item"),d.TgZ(34,"ion-label",65),d._uU(35),d.ALo(36,"translate"),d.qZA(),d.TgZ(37,"ion-input",66),d.NdJ("ngModelChange",function(e){const i=d.CHM(t).index;return d.oxw(5).questionNew[i].explanation=e}),d.qZA(),d.qZA(),d.TgZ(38,"div",75),d.TgZ(39,"ion-label",65),d._uU(40),d.ALo(41,"translate"),d.qZA(),d.TgZ(42,"div",76),d.TgZ(43,"ion-input",77),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(5).newTag=e})("keyup.enter",function(){const e=d.CHM(t).index;return d.oxw(5).addTag(e,null,!0)}),d.qZA(),d.TgZ(44,"ion-button",78),d.NdJ("click",function(){const e=d.CHM(t).index;return d.oxw(5).addTag(e,null,!0)}),d.TgZ(45,"span"),d._uU(46),d.ALo(47,"translate"),d.qZA(),d.qZA(),d.qZA(),d.YNc(48,rt,2,1,"div",79),d.qZA(),d.TgZ(49,"ion-item",80),d.TgZ(50,"ion-button",81),d.NdJ("click",function(){return d.CHM(t),d.oxw(5).addItem()}),d.TgZ(51,"span"),d._uU(52),d.ALo(53,"translate"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.index,i=d.oxw(5);d.xp6(4),d.Oqu(d.lcZ(5,23,"survey_question")),d.xp6(2),d.Q6J("ngModel",i.questionNew[t].question),d.xp6(3),d.Oqu(d.lcZ(10,25,"survey_question_type")),d.xp6(2),d.Q6J("ngModel",i.questionNew[t].type),d.xp6(2),d.Oqu(d.lcZ(14,27,"survey_question_type_text")),d.xp6(3),d.Oqu(d.lcZ(17,29,"survey_question_type_scale-5")),d.xp6(3),d.Oqu(d.lcZ(20,31,"survey_question_type_scale-7")),d.xp6(3),d.Oqu(d.lcZ(23,33,"
1survey_question_type_scale-10")),d.xp6(3),d.Oqu(d.lcZ(26,35,"survey_question_type_slider")),d.xp6(3),d.Oqu(d.lcZ(29,37,"survey_question_type_options")),d.xp6(2),d.Q6J("ngIf",i.questionNew[t].type&&"text"!=i.questionNew[t].type&&i.questionNew[t].type&&"options"!=i.questionNew[t].type),d.xp6(1),d.Q6J("ngIf","options"==i.questionNew[t].type),d.xp6(1),d.Q6J("ngIf","options"==i.questionNew[t].type),d.xp6(3),d.Oqu(d.lcZ(36,39,"survey_explanation_question")),d.xp6(2),d.Q6J("ngModel",i.questionNew[t].explanation),d.xp6(3),d.Oqu(d.lcZ(41,41,"survey_tag")),d.xp6(3),d.Q6J("placeholder",i.translate.instant("survey_add_tags"))("ngModel",i.newTag),d.xp6(1),d.Q6J("disabled",!i.newTag),d.xp6(2),d.Oqu(d.lcZ(47,43,"survey_add_tag")),d.xp6(2),d.Q6J("ngIf",i.questionNew[0].tags&&i.questionNew[0].tags.length>0),d.xp6(2),d.Q6J("disabled",!i.validNw()),d.xp6(2),d.Oqu(d.lcZ(53,45,"btn_add"))}}function ut(t,e){if(1&t&&(d.TgZ(0,"div"),d.YNc(1,ct,54,47,"ion-card",63),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("ngForOf",t.questionNew)}}function gt(t,e){if(1&t&&(d.TgZ(0,"div",102),d.TgZ(1,"span"),d._uU(2),d.qZA(),d.qZA()),2&t){const t=e.$implicit;d.xp6(2),d.Oqu(t)}}function dt(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",28),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faCircle"))}}function ht(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",28),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faCircle"))}}function pt(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",28),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faCircle"))}}function mt(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",28),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faComments"))}}function ft(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",28),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faSlidersH"))}}function _t(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-icon",111),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).toggleDetails(e,i)}),d.qZA()}}function xt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-icon",112),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).toggleDetails(e,i)}),d.qZA()}}function Zt(t,e){1&t&&(d.TgZ(0,"ion-select-option",89),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_answer_level_1-5")))}function vt(t,e){1&t&&(d.TgZ(0,"ion-select-option",90),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_answer_level_1-7")))}function wt(t,e){1&t&&(d.TgZ(0,"ion-select-option",91),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_answer_level_1-10")))}function yt(t,e){1&t&&(d.TgZ(0,"ion-select-option",92),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_answer_level_1-100")))}function Qt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-item",113),d.TgZ(1,"ion-label",65),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"ion-select",66),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(2).$implicit.level=e}),d.YNc(5,Zt,3,3,"ion-select-option",83),d.YNc(6,vt,3,3,"ion-select-option",84),d.YNc(7,wt,3,3,"ion-select-option",85),d.YNc(8,yt,3,3,"ion-select-option",86),d.TgZ(9,"ion-select-option",87),d._uU(10),d.ALo(11,"translate"),d.qZA(),d.TgZ(12,"ion-select-option",88),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2).$implicit,e=d.oxw(5);d.Q6J("disabled","concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(3,9,"survey_answer_level")),d.xp6(2),d.Q6J("ngModel",t.level),d.xp6(1),d.Q6J("ngIf","scale-5"==t.type||"7-scale"==t.type),d.xp6(1),d.Q6J("ngIf","scale-7"==t.type||"7-scale"==t.type),d.xp6(1),d.Q6J("ngIf","scale-10"==t.type||"slider"==t.type),d.xp6(1),d.Q6J("ngIf","slider"==t.type),d.xp6(2),d.Oqu(d.lcZ(11,11,"survey_answer_level_agree")),d.xp6(3),d.Oqu(d.lcZ(14,13,"survey_answer_level_positivity"))}}function Tt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",95),d.TgZ(1,"div",96),d.TgZ(2,"ion-label"),d._uU(3),d.qZA(),d._UZ(4,"span",25),d.TgZ(5,"ion-icon",97),d.NdJ("click",function(){const e=d.CHM(t).index,i=d.oxw(3).index,s=d.oxw(2).index,n=d.oxw(3);return"concept"!=(null==n.allQuestionsList.settings?null:n.allQuestionsList.settings.status)?n.doNothing():n.removeOptions(i,e,s)}),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(3),d.Oqu(t.value)}}function Lt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-item",122),d.TgZ(1,"ion-checkbox",123),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(3).$implicit.multiple=e})("ionChange",function(){return d.CHM(t),d.oxw(8).updateWithdelay()}),d.qZA(),d.TgZ(2,"ion-label"),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(3).$implicit,e=d.oxw(5);d.Q6J("disabled","concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngModel",t.multiple),d.xp6(2),d.Oqu(d.lcZ(4,3,"survey_multiple_answers_select"))}}function qt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",120),d.TgZ(1,"ion-label",65),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"div",76),d.TgZ(5,"ion-input",77),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(7).newOption=e})("keyup.enter",function(){d.CHM(t);const e=d.oxw(2).index,i=d.oxw(2).index;return d.oxw(3).addOptions(e,i)}),d.qZA(),d.TgZ(6,"ion-button",78),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2).index,i=d.oxw(2).index;return d.oxw(3).addOptions(e,i)}),d.TgZ(7,"span"),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.qZA(),d.qZA(),d.TgZ(10,"ion-row"),d.YNc(11,Tt,6,1,"ion-col",94),d.qZA(),d.YNc(12,Lt,5,5,"ion-item",121),d.qZA()}if(2&t){const t=d.oxw(2).$implicit,e=d.oxw(5);d.xp6(2),d.Oqu(d.lcZ(3,7,"survey_options")),d.xp6(3),d.Q6J("placeholder","Voeg hier een optie toe")("ngModel",e.newOption),d.xp6(1),d.Q6J("disabled",!e.newOption||"concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(9,9,"btn_add")),d.xp6(3),d.Q6J("ngForOf",t.options),d.xp6(1),d.Q6J("ngIf","o
1ptions"==t.type)}}function bt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",124),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2).index,i=d.oxw(2).index;return d.oxw(3).addTag(e,i)}),d.TgZ(1,"span"),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.qZA()}2&t&&(d.xp6(2),d.Oqu(d.lcZ(3,1,"btn_add")))}function At(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",102),d.TgZ(1,"span"),d._uU(2),d.qZA(),d.TgZ(3,"ion-icon",103),d.NdJ("click",function(){const e=d.CHM(t).index,i=d.oxw(2).index,s=d.oxw(2).index;return d.oxw(3).removeTag(i,e,s)}),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit;d.xp6(2),d.Oqu(t)}}function St(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",125),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2).index,i=d.oxw(2).index;return d.oxw(3).deleteItem(e,i)}),d.TgZ(1,"span"),d._uU(2,"Verwijderen"),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(7);d.Q6J("disabled","concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status))}}function Ot(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card-content"),d.TgZ(1,"ion-item",113),d.TgZ(2,"ion-label",65),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.TgZ(5,"ion-input",66),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw().$implicit.question=e}),d.qZA(),d.qZA(),d.TgZ(6,"ion-item",113),d.TgZ(7,"ion-label",65),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"ion-select",66),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw().$implicit.type=e}),d.TgZ(11,"ion-select-option",67),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.TgZ(14,"ion-select-option",68),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.TgZ(17,"ion-select-option",69),d._uU(18),d.ALo(19,"translate"),d.qZA(),d.TgZ(20,"ion-select-option",70),d._uU(21),d.ALo(22,"translate"),d.qZA(),d.TgZ(23,"ion-select-option",71),d._uU(24),d.ALo(25,"translate"),d.qZA(),d.TgZ(26,"ion-select-option",72),d._uU(27),d.ALo(28,"translate"),d.qZA(),d.qZA(),d.qZA(),d.YNc(29,Qt,15,15,"ion-item",114),d.YNc(30,qt,13,11,"div",115),d.TgZ(31,"ion-item",113),d.TgZ(32,"ion-label",65),d._uU(33),d.ALo(34,"translate"),d.qZA(),d.TgZ(35,"ion-input",66),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw().$implicit.explanation=e}),d.qZA(),d.qZA(),d.TgZ(36,"ion-item"),d.TgZ(37,"ion-label",65),d._uU(38),d.ALo(39,"translate"),d.qZA(),d.TgZ(40,"div",76),d.TgZ(41,"ion-input",116),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(6).newTag=e})("keyup.enter",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).addTag(e,i)})("onblur",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).index;return d.oxw(3).addTag(e,i)}),d.qZA(),d.YNc(42,bt,4,3,"ion-button",117),d.qZA(),d.TgZ(43,"div",100),d.YNc(44,At,4,1,"div",101),d.qZA(),d.qZA(),d.TgZ(45,"div",118),d._UZ(46,"span",25),d.YNc(47,St,3,1,"ion-button",119),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(),e=t.$implicit,i=t.index,s=d.oxw(2).index,n=d.oxw(3);d.xp6(1),d.Q6J("disabled","concept"!=(null==n.allQuestionsList.settings?null:n.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(4,22,"survey_question")),d.xp6(2),d.Q6J("ngModel",e.question),d.xp6(1),d.Q6J("disabled","concept"!=(null==n.allQuestionsList.settings?null:n.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(9,24,"survey_question_type")),d.xp6(2),d.Q6J("ngModel",e.type),d.xp6(2),d.Oqu(d.lcZ(13,26,"survey_question_type_text")),d.xp6(3),d.Oqu(d.lcZ(16,28,"survey_question_type_scale-5")),d.xp6(3),d.Oqu(d.lcZ(19,30,"survey_question_type_scale-7")),d.xp6(3),d.Oqu(d.lcZ(22,32,"survey_question_type_scale-10")),d.xp6(3),d.Oqu(d.lcZ(25,34,"survey_question_type_slider")),d.xp6(3),d.Oqu(d.lcZ(28,36,"survey_question_type_options")),d.xp6(2),d.Q6J("ngIf",e.type&&"text"!=e.type&&e.type&&"options"!=e.type),d.xp6(1),d.Q6J("ngIf",e.type&&"options"==e.type),d.xp6(1),d.Q6J("disabled","concept"!=(null==n.allQuestionsList.settings?null:n.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(34,38,"survey_explanation_question")),d.xp6(2),d.Q6J("ngModel",e.explanation),d.xp6(3),d.Oqu(d.lcZ(39,40,"survey_tags")),d.xp6(3),d.Q6J("ngModel",n.newTag),d.xp6(1),d.Q6J("ngIf",n.newTag),d.xp6(2),d.Q6J("ngForOf",e.tags),d.xp6(3),d.Q6J("ngIf",n.checkShowDetail
1s(i,s))}}function Jt(t,e){if(1&t&&(d.TgZ(0,"div",105),d.TgZ(1,"ion-card-header",106),d.TgZ(2,"ion-card-title"),d._uU(3),d.qZA(),d._UZ(4,"span",25),d.TgZ(5,"div",107),d.YNc(6,gt,3,1,"div",101),d.qZA(),d.TgZ(7,"span",108),d.YNc(8,dt,2,1,"span",0),d.YNc(9,ht,2,1,"span",0),d.YNc(10,pt,2,1,"span",0),d.YNc(11,mt,2,1,"span",0),d.YNc(12,ft,2,1,"span",0),d.qZA(),d.YNc(13,_t,1,0,"ion-icon",109),d.YNc(14,xt,1,0,"ion-icon",110),d.qZA(),d.YNc(15,Ot,48,42,"ion-card-content",0),d.qZA()),2&t){const t=e.$implicit,i=e.index,s=d.oxw(2).index,n=d.oxw(3);d.xp6(3),d.AsE("",i+1+". ","",t.question,""),d.xp6(3),d.Q6J("ngForOf",t.tags),d.xp6(2),d.Q6J("ngIf","scale-5"==t.type),d.xp6(1),d.Q6J("ngIf","scale-7"==t.type),d.xp6(1),d.Q6J("ngIf","scale-10"==t.type),d.xp6(1),d.Q6J("ngIf","text"==t.type),d.xp6(1),d.Q6J("ngIf","slider"==t.type),d.xp6(1),d.Q6J("ngIf",!n.checkShowDetails(i,s)),d.xp6(1),d.Q6J("ngIf",n.checkShowDetails(i,s)),d.xp6(1),d.Q6J("ngIf",n.checkShowDetails(i,s))}}function Nt(t,e){if(1&t&&(d.TgZ(0,"div"),d.YNc(1,Jt,16,11,"div",104),d.qZA()),2&t){const t=d.oxw().$implicit,e=d.oxw(3);d.xp6(1),d.Q6J("ngForOf",e.allQuestionsList[t])}}const It=function(t){return{"padding-bottom":t}};function Mt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",53),d.NdJ("cdkDropListDropped",function(e){return d.CHM(t),d.oxw(3).drop(e)}),d.TgZ(1,"div",54),d.TgZ(2,"span"),d.TgZ(3,"span",55),d._uU(4),d.qZA(),d.YNc(5,P,3,4,"span",56),d.YNc(6,j,3,4,"span",56),d.qZA(),d._UZ(7,"span",25),d.YNc(8,B,2,1,"ion-button",57),d.YNc(9,G,3,2,"ion-button",57),d.YNc(10,K,2,1,"ion-button",58),d.TgZ(11,"ion-button",59),d.NdJ("click",function(){const e=d.CHM(t).index;return d.oxw(3).toggleDetailsCat(e)}),d.YNc(12,W,1,1,"fa-icon",60),d.YNc(13,V,1,1,"fa-icon",60),d.qZA(),d.qZA(),d.YNc(14,ut,2,1,"div",0),d.YNc(15,Nt,2,1,"div",0),d.qZA()}if(2&t){const t=e.$implicit,i=e.index,s=d.oxw(3);d.Q6J("cdkDropListData",s.allQuestionsList[t])("cdkDropListDisabled","concept"!=(null==s.allQuestionsList.settings?null:s.allQuestionsList.settings.status))("ngStyle",d.VKq(14,It,0==s.allQuestionsList[t].length?"0px":s.checkShowDetailsCat(i)?"10px":"0px"))("id",i),d.xp6(4),d.Oqu(t),d.xp6(1),d.Q6J("ngIf",1==s.allQuestionsList[t].length),d.xp6(1),d.Q6J("ngIf",1!=s.allQuestionsList[t].length),d.xp6(2),d.Q6J("ngIf","concept"==(null==s.allQuestionsList.settings?null:s.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf","concept"==(null==s.allQuestionsList.settings?null:s.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf",s.allQuestionsList.settings.order.length>1&&"concept"==(null==s.allQuestionsList.settings?null:s.allQuestionsList.settings.status)),d.xp6(2),d.Q6J("ngIf",!s.checkShowDetailsCat(i)),d.xp6(1),d.Q6J("ngIf",s.checkShowDetailsCat(i)),d.xp6(1),d.Q6J("ngIf",s.newCatQuestion==i&&"concept"==(null==s.allQuestionsList.settings?null:s.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf",s.checkShowDetailsCat(i))}}function Ct(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",41),d.TgZ(1,"h3",42),d._uU(2),d.qZA(),d.TgZ(3,"div",43),d.TgZ(4,"ion-label"),d.TgZ(5,"span",44),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"span",45),d._uU(9),d.qZA(),d.qZA(),d._UZ(10,"span",25),d.YNc(11,H,5,4,"ion-button",46),d.qZA(),d.TgZ(12,"div",47),d.TgZ(13,"div",48),d.NdJ("cdkDropListDropped",function(e){return d.CHM(t),d.oxw(2).dropCat(e)}),d.TgZ(14,"div",49),d.YNc(15,Mt,16,16,"div",50),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.xp6(2),d.hij(" ",t.allQuestionsList.settings.name," "),d.xp6(4),d.hij(" ",d.lcZ(7,7,"survey_questions")," "),d.xp6(3),d.hij("(",t.countCatsAndQuestions(),")"),d.xp6(2),d.Q6J("ngIf","concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Q6J("cdkDropListData",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.order)("cdkDropListDisabled","concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Q6J("ngForOf",null==t.allQuestionsList||null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.order)}}function Ut(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",128),d.TgZ(1,"ion-card",129),d.TgZ(2,"ion-card-header"),d.TgZ(3,"ion-card-title"),d._uU(4),d.qZA(),d.qZA(),d.TgZ(5,"ion-card-content"),d.TgZ(6,"p"),d._uU(7),d.qZA(),d.TgZ(8,"table",130),d.TgZ(9,"tr"),d.TgZ(10,"td"),d.TgZ(11,"strong"),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.qZA(),d.TgZ(14,"td",131),d._uU(15),d.qZA(),d.qZA(),d.TgZ(16,"tr"),d.TgZ(17,"td"),d.TgZ(18,"strong"),d._uU(19),d.ALo(20,"translate"),d.qZA(),d.qZA(),d.TgZ(21,"td",131),d._uU(22),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d._UZ(23,"span",25),d.TgZ(24,"div",132),d._UZ(25,"div",25),d.TgZ(26,"ion-button",133),d.NdJ("click",function(){const e=d.CHM(t).$implicit;return d.oxw(3).createSurvey("template",e.id)}),d._uU(27),d.ALo(28,"translate"),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit,i=d.oxw(3);d.Q6J("size","xl"==i.media.screenSize||"lg"==i.media.screenSize||"md"==i.media.screenSize?6:12),d.xp6(4),d.Oqu(t.settings.name),d.xp6(3),d.Oqu(t.settings.template_information),d.xp6(5),d.Oqu(d.lcZ(13,8,"survey_categories")),d.xp6(3),d.Oqu(t.settings.order.length),d.xp6(4),d.Oqu(d.lcZ(20,10,"survey_questions")),d.xp6(3),d.Oqu(i.getSurveyQuestionCount(t)),d.xp6(5),d.Oqu(d.lcZ(28,12,"btn_ok"))}}function kt(t,e){if(1&t&&(d.TgZ(0,"ion-col",41),d.TgZ(1,"h3",126),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"ion-row"),d.YNc(5,Ut,29,14,"ion-col",127),d.qZA(),d.qZA()),2&t){const t=d.oxw(2);d.xp6(2),d.Oqu(d.lcZ(3,2,"survey_new_template_create")),d.xp6(3),d.Q6J("ngForOf",t.templateSurveys)}}function Dt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",14),d.TgZ(1,"h3",126),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.TgZ(4,"ion-card",134),d.TgZ(5,"ion-card-content",135),d.TgZ(6,"ion-item"),d.TgZ(7,"ion-label",136),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.TgZ(10,"ion-input",137),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(2).newSurveyName=e}),d.qZA(),d.qZA(),d.TgZ(11,"ion-button",138),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).createSurvey("empty")}),d._uU(12),d.ALo(13,"translate"),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.Q6J("size","xs"==t.media.screenSize||"sm"==t.media.screenSize?12:6),d.xp6(2),d.Oqu(d.lcZ(3,6,"survey_new_empty_create")),d.xp6(6),d.Oqu(d.lcZ(9,8,"survey_new_empty_name")),d.xp6(2),d.Q6J("ngModel",t.newSurveyName),d.xp6(1),d.Q6J("disabled",!t.newSurveyName),d.xp6(1),d.Oqu(d.lcZ(13,10,"btn_ok"))}}function Yt(t,e){1&t&&(d.TgZ(0,"h3",144),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_edit_organisation_import_team_data")))}function zt(t,e){1&t&&(d.TgZ(0,"span",164),d.TgZ(1,"span"),d._uU(2," | "),d.qZA(),d.TgZ(3,"span"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.qZA()),2&t&&(d.xp6(4),d.Oqu(d.lcZ(5,1,"page_edit_organisation_max_team
1s")))}function Et(t,e){if(1&t&&(d.TgZ(0,"h3",144),d._uU(1),d.ALo(2,"translate"),d.TgZ(3,"span"),d._uU(4," | "),d.qZA(),d.TgZ(5,"span",162),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"span"),d._uU(9," | "),d.qZA(),d.TgZ(10,"span",162),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.YNc(13,zt,6,3,"span",163),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,6,"page_edit_organisation_check_data")," "),d.xp6(5),d.AsE("",t.editTeamsService.countImportNew," ",d.lcZ(7,8,"page_edit_organisation_import_new_teams"),""),d.xp6(5),d.AsE("",t.editTeamsService.countImportExistingTeams," ",d.lcZ(12,10,"page_edit_organisation_import_existing_teams"),""),d.xp6(2),d.Q6J("ngIf",t.auth.getOrgInfo(t.organisation_id).basic_teams.length+t.editTeamsService.countImportNew>t.auth.currentSubscription(t.organisation_id).licenses)}}function Ft(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",165),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).editTeamsService.importAll()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}if(2&t){const t=d.oxw(4);let e;d.Q6J("disabled",t.editTeamsService.countImportErrors>0||!(null!=(e=t.auth.currentSubscription(t.organisation_id))&&e.licenses)||!t.auth.getOrgInfo(t.organisation_id).basic_teams||t.auth.getOrgInfo(t.organisation_id).basic_teams.length+t.editTeamsService.countImportNew>t.auth.currentSubscription(t.organisation_id).licenses),d.xp6(1),d.hij(" ",d.lcZ(2,2,"btn_save")," ")}}function Ht(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",166),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).editTeamsService.clearImportData()}),d._UZ(1,"fa-icon",28),d.qZA()}if(2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("btn_cancel")),d.xp6(1),d.Q6J("icon",t.icon.get("faUndoAlt"))}}function Pt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",146),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(4);return e.editTeamsService.showImport=!e.editTeamsService.showImport,e.editTeamsService.showImportStructure=!1,e.editTeamsService.clearImportData()}),d._UZ(1,"fa-icon",147),d.qZA()}if(2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("btn_cancel")),d.xp6(1),d.Q6J("icon",t.icon.get("faTimes"))}}function jt(t,e){1&t&&(d.TgZ(0,"div",167),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"page_edit_organisation_import_team_members")," "))}function Bt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",132),d.TgZ(1,"ion-button",168),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).editTeamsService.downloadTemplate("teams")}),d._uU(2),d.ALo(3,"translate"),d.qZA(),d._UZ(4,"span",25),d.TgZ(5,"ion-button",169),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).editTeamsService.uploadClick()}),d._uU(6),d.ALo(7,"translate"),d.qZA(),d.TgZ(8,"input",170,171),d.NdJ("change",function(e){return d.CHM(t),d.oxw(4).editTeamsService.upload(e)}),d.qZA(),d.qZA()}2&t&&(d.xp6(2),d.Oqu(d.lcZ(3,2,"page_edit_organisation_download_template")),d.xp6(4),d.Oqu(d.lcZ(7,4,"page_edit_organisation_import_file")))}function $t(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"span",180),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().$implicit;return e.value.replace=!e.value.replace}),d._uU(1),d.ALo(2,"translate"),d._UZ(3,"fa-icon",181),d.qZA()}if(2&t){const t=d.oxw(6);d.xp6(1),d.hij(" ",d.lcZ(2,2,"page_edit_organisation_add_to_existing_team")," "),d.xp6(2),d.Q6J("icon",t.icon.get("faSyncAlt"))}}function Rt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"span",180),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().$implicit;return e.value.replace=!e.value.replace}),d._uU(1),d.ALo(2,"translate"),d._UZ(3,"fa-icon",181),d.qZA()}if(2&t){const t=d.oxw(6);d.xp6(1),d.hij(" ",d.lcZ(2,2,"page_edit_organisation_overwrite_existing_team")," "),d.xp6(2),d.Q6J("icon",t.icon.get("faSyncAlt"))}}function Gt(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",181),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function Kt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",182),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(5).editTeamsService.showTeamMembers(e)}),d.qZA()}if(2&t){const t=d.oxw(6);d.Q6J("icon",t.icon.get("faChevronDown"))("tooltip",t.translate.instant("page_edit_organisation_tooltip_show_members"))}}function Wt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",182),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(5).editTeamsService.showTeamMembers(e)}),d.qZA()}if(2&t){const t=d.oxw(6);d.Q6J("icon",t.icon.get("faChevronUp"))("tooltip",t.translate.instant("page_edit_organisation_tooltip_hide_members"))}}function Vt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",190),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).$implicit;return d.oxw(5).editTeamsService.changeAdminImport(i.key,e)}),d.qZA()}if(2&t){const t=d.oxw(8);d.Q6J("icon",t.icon.get("faUser"))}}function Xt(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",191),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index,i=d.oxw(2).$implicit;return d.oxw(5).editTeamsService.changeAdminImport(i.key,e)}),d.qZA()}if(2&t){const t=d.oxw(8);d.Q6J("icon",t.icon.get("faUserCog"))}}function te(t,e){if(1&t&&(d.TgZ(0,"span"),d._UZ(1,"fa-icon",181),d.qZA()),2&t){const t=d.oxw(8);d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function ee(t,e){1&t&&(d.TgZ(0,"span",192),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_edit_organisation_team_admin")))}const ie=function(t){return{emailError:t}};function se(t,e){if(1&t&&(d.TgZ(0,"div",185),d.YNc(1,Vt,1,1,"fa-icon",186),d.YNc(2,Xt,1,1,"fa-icon",187),d.TgZ(3,"span"),d._uU(4),d.qZA(),d.TgZ(5,"span",188),d._uU(6),d.YNc(7,te,2,1,"span",0),d._uU(8," ) "),d.qZA(),d.YNc(9,ee,3,3,"span",189),d.qZA()),2&t){const t=e.$implicit;d.xp6(1),d.Q6J("ngIf",!t.admin),d.xp6(1),d.Q6J("ngIf",t.admin),d.xp6(2),d.Oqu(t.displayName),d.xp6(1),d.Q6J("ngClass",d.VKq(7,ie,t.emailError)),d.xp6(1),d.hij(" ( ",t.email," "),d.xp6(1),d.Q6J("ngIf",t.emailError),d.xp6(2),d.Q6J("ngIf",t.admin)}}function ne(t,e){if(1&t&&(d.TgZ(0,"div",183),d.YNc(1,se,10,9,"div",184),d.qZA()),2&t){const t=d.oxw().$implicit;d.xp6(1),d.Q6J("ngForOf",t.value.members)}}const oe=function(t,e){return{teamError:t,existing:e}};function ae(t,e){if(1&t&&(d.TgZ(0,"div",174),d.TgZ(1,"div",132),d.TgZ(2,"div",175),d._uU(3),d.YNc(4,$t,4,4,"span",176),d.YNc(5,Rt,4,4,"span",176),d.YNc(6,Gt,2,1,"span",0),d.qZA(),d._UZ(7,"span",25),d.TgZ(8,"span",177),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,Kt,1,2,"fa-icon",178),d.YNc(12,Wt,1,2,"fa-icon",178),d.qZA(),d.YNc(13,ne,2,1,"div",179),d.qZA()),2&t){const t=e.$implicit,i=e.index,s=d.oxw(5);d.Q6J("ngClass",d.WLB(13,oe,t.value.error,t.value.existing)),d.xp6(3),d.AsE(" ",t.value.name," (",t.value.code,") "),d.xp6(1),d.Q6J("ngIf",t.value.existing&&!t.value.replace),d.xp6(1),d.Q6J("ngIf",t.value.existing&&t.value.replace),d.xp6(1),d.Q6J("ngIf",t.value.error),d.xp6(3),d.AsE("",t.value.members.length," ",d.lcZ(10,11,"team_members"),""),d.xp6(2),d.Q6J("ngIf",s.editTeamsService.showingTeamMembers!=i),d.xp6(1),d.Q6J("ngIf",s.editTeamsService.showingTeamMembers==i),d.xp6(1),d.Q6J("ngIf",s.editTeamsService.showingTeamMembers==i)}}function le(t,e){if(1&t&&(d.TgZ(0,"div",172),d.YNc(1,ae,14,16,"div",173),d.ALo(2,"keyvalue"),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("ngForOf",d.lcZ(2,1,t.editTeamsService.importedTeams))}}function re(t,e){if(1&t&&(d.TgZ(0,"ion-card",153),d.TgZ(1,"div",142),d.YNc(2,Yt,3,3,"h3",154),d.YNc(3,Et,14,12,"h3",154),d._UZ(4,"span",25),d.YNc(5,Ft,3,4,"ion-button",155),d.YNc(6,Ht,2,2,"ion-button",156),d.YNc(7,Pt,2,2,"ion-button",157),d.qZA(),d.TgZ(8,"ion-card-content",158),d.YNc(9,jt,3,3,"div",159),d.YNc(10,Bt,10,6,"div",160),d.YNc(11,le,3,3,"div",161),d.qZA(),d.qZA()),2&t){const t=d.oxw(3);d.xp6(2),d.Q6J("ngIf",!t.editTeamsService.importedData||0==t.editTeamsService.importedData.length),d.xp6(1),d.Q6J("ngIf",(null==t.editTeamsService.importedData?null:t.editTeamsService.importedData.length)>0),d.xp6(2),d.Q6J("ngIf",(null==t.editTeamsService.importedData?null:t.editTeamsService.importedData.length)>0),d.xp6(1),d.Q6J("ngIf",(null==t.editTeamsService.importedData?null:t.editTeamsService.importedData.length)>0),d.xp6(1),d.Q6J("ngIf",!t.editTeamsService.importedData||0==(null==t.editTeamsService.importedData?null:t.editTeamsService.importedData.length)),d.xp6(2),d.Q6J("ngIf",!t.editTeamsService.importedData||0==t.editTeamsService.importedData.length),d.xp6(1),d.Q6J("ngIf",!t.editTeamsService.importedData||0==t.editTeamsService.importedData.length),d.xp6(1),d.Q6J("ngIf",(null==t.editTeamsService.importedData?null:t.editTeamsService.importedData.length)>0)}}function ce(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",193),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).editTeamsService.selectAll()}
1),d._UZ(1,"ion-checkbox",194),d.qZA()}if(2&t){const t=d.oxw(3);d.xp6(1),d.Q6J("ngModel",t.editTeamsService.allSelected)}}function ue(t,e){if(1&t&&(d.TgZ(0,"ion-button",195),d._UZ(1,"fa-icon",196),d.qZA()),2&t){const t=d.oxw(3);d.Q6J("tooltip",t.translate.instant("page_edit_organisation_remove_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function ge(t,e){if(1&t&&d._UZ(0,"fa-icon",147),2&t){const t=d.oxw(3);d.Q6J("icon",t.icon.get("faChevronDown"))}}function de(t,e){if(1&t&&d._UZ(0,"fa-icon",147),2&t){const t=d.oxw(3);d.Q6J("icon",t.icon.get("faChevronUp"))}}function he(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-checkbox",201),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw().$implicit.selected=e}),d.qZA()}if(2&t){const t=d.oxw().$implicit;d.Q6J("ngModel",t.selected)}}function pe(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",197),d.YNc(1,he,1,1,"ion-checkbox",198),d.TgZ(2,"div",199),d.TgZ(3,"ion-label"),d._uU(4),d.qZA(),d.qZA(),d._UZ(5,"span",25),d.TgZ(6,"span",177),d._uU(7),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"fa-icon",200),d.NdJ("click",function(){const e=d.CHM(t).$implicit;return d.oxw(3).editTeamsService.editTeam(e)}),d.qZA(),d.qZA()}if(2&t){const t=e.$implicit,i=d.oxw(3);d.xp6(1),d.Q6J("ngIf",i.editTeamsService.showSelect),d.xp6(3),d.Oqu(t.name),d.xp6(3),d.AsE("",t.members," ",d.lcZ(8,5,"team_members"),""),d.xp6(2),d.Q6J("icon",i.icon.get("faPen"))}}const me=function(t,e){return{"border-bottom-width":t,margin:e}},fe=function(){return["name"]},_e=function(t){return{"max-height":t}};function xe(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-col",139),d.YNc(1,re,12,8,"ion-card",140),d.TgZ(2,"ion-card",141),d.TgZ(3,"ion-row"),d.TgZ(4,"div",142),d.YNc(5,ce,2,1,"ion-button",143),d.TgZ(6,"h3",144),d._uU(7),d.ALo(8,"translate"),d.qZA(),d._UZ(9,"span",25),d.YNc(10,ue,2,2,"ion-button",145),d.TgZ(11,"ion-button",146),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).editTeamsService.showAllSelected()}),d._UZ(12,"fa-icon",147),d.qZA(),d.TgZ(13,"ion-button",146),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2);return e.editTeamsService.showImport=!e.editTeamsService.showImport,e.editTeamsService.showImportStructure=!1,e.editTeamsService.clearImportData()}),d._UZ(14,"fa-icon",147),d.qZA(),d.TgZ(15,"ion-button",146),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).editTeamsService.exportData()}),d._UZ(16,"fa-icon",147),d.qZA(),d.TgZ(17,"ion-button",146),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).editTeamsService.editTeam()}),d._UZ(18,"fa-icon",147),d.qZA(),d.TgZ(19,"ion-button",146),d.NdJ("click",function(){return d.CHM(t),d.oxw(2).editTeamsService.deleteSelectedTeams()}),d._UZ(20,"fa-icon",147),d.qZA(),d.TgZ(21,"ion-button",146),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(2);return e.showTeams=!e.showTeams}),d.YNc(22,ge,1,1,"fa-icon",148),d.YNc(23,de,1,1,"fa-icon",148),d.qZA(),d.qZA(),d._UZ(24,"div",149),d.qZA(),d.TgZ(25,"ion-row",135),d.TgZ(26,"ion-col",150),d.ALo(27,"sortBy"),d.ALo(28,"filterSearch"),d.TgZ(29,"ion-card-content",151),d.YNc(30,pe,10,7,"div",152),d.ALo(31,"sortBy"),d.ALo(32,"filterSearch"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(2);d.xp6(1),d.Q6J("ngIf",t.editTeamsService.showImport),d.xp6(1),d.Q6J("ngStyle",d.VKq(41,It,t.showTeams?"20px":0)),d.xp6(3),d.Q6J("ngIf",t.editTeamsService.showSelect),d.xp6(2),d.Oqu(d.lcZ(8,21,"team
1s")),d.xp6(3),d.Q6J("ngIf",t.editTeamsService.tooManyTeams()),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_select_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faCheckSquare")),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_import")),d.xp6(1),d.Q6J("icon",t.icon.get("faCloudUploadAlt")),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_export")),d.xp6(1),d.Q6J("icon",t.icon.get("faCloudDownloadAlt")),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_add_team")),d.xp6(1),d.Q6J("icon",t.icon.get("faPlus")),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_delete_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faTrashAlt")),d.xp6(1),d.Q6J("tooltip",t.translate.instant("page_edit_organisation_tooltip_collapse")),d.xp6(1),d.Q6J("ngIf",!t.showTeams),d.xp6(1),d.Q6J("ngIf",t.showTeams),d.xp6(1),d.Q6J("ngStyle",d.WLB(43,me,t.showTeams?"1px":0,t.showTeams?"20px 0px":"10px")),d.xp6(2),d.Q6J("ngStyle",d.VKq(47,_e,t.showTeams?70*d.Dn7(27,23,d.gM2(28,27,t.auth.getOrgInfo(t.organisation_id).basic_teams,t.editTeamsService.searchTeams,!1,d.DdM(46,fe)),-1,"name").length+"px":"0")),d.xp6(4),d.Q6J("ngForOf",d.Dn7(31,32,d.gM2(32,36,t.auth.getOrgInfo(t.organisation_id).basic_teams,t.editTeamsService.searchTeams,!1,d.DdM(49,fe)),-1,"name"))}}function Ze(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",234),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).save()}),d._uU(1,"Wijzigingen opslaan"),d.qZA()}}function ve(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",235),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).removeSurvey()}),d._UZ(1,"fa-icon",207),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("icon",t.icon.get("faTrashAlt"))}}function we(t,e){1&t&&(d.TgZ(0,"span",236),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_concept")))}function ye(t,e){1&t&&(d.TgZ(0,"span",237),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_active")))}function Qe(t,e){1&t&&(d.TgZ(0,"span",238),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_future")))}function Te(t,e){1&t&&(d.TgZ(0,"span",239),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_closed")))}function Le(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",240),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).cancelSurvey()}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"btn_cancel")," "))}function qe(t,e){if(1&t&&(d.TgZ(0,"span",45),d._uU(1),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.Oqu(t.helpers.showLocalDate(t.allQuestionsList.settings.startdate))}}function be(t,e){if(1&t&&(d.TgZ(0,"ion-label"),d.TgZ(1,"span",242),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,qe,2,1,"span",232),d.qZA()),2&t){const t=d.oxw(5);d.xp6(2),d.hij("",d.lcZ(3,2,"survey_started"),":"),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.startdate)}}function Ae(t,e){if(1&t&&(d.TgZ(0,"span",45),d._uU(1),d.qZA()),2&t){const t=d.oxw(7);d.xp6(1),d.Oqu(t.helpers.showLocalDate(t.allQuestionsList.settings.enddate))}}function Se(t,e){if(1&t&&(d.TgZ(0,"span",45),d._uU(1),d.TgZ(2,"span",243),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.YNc(5,Ae,2,1,"span",232),d.qZA()),2&t){const t=d.oxw(6);d.xp6(1),d.hij("",t.helpers.showLocalDate(t.allQuestionsList.settings.startdate)," "),d.xp6(2),d.Oqu(d.lcZ(4,3,"survey_started_to")),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.enddate)}}function Oe(t,e){if(1&t&&(d.TgZ(0,"ion-label"),d.TgZ(1,"span",242),d._uU(2),d.ALo(3,"translate"),d.qZA(),d.YNc(4,Se,6,5,"span",232),d.qZA()),2&t){const t=d.oxw(5);d.xp6(2),d.hij("",d.lcZ(3,2,"survey_started_from"),":"),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.startdate)}}const Je=function(t,e){return{"max-height":t,overflow:e}};function Ne(t,e){if(1&t&&(d.TgZ(0,"ion-card",219),d.TgZ(1,"div",241),d.YNc(2,be,5,4,"ion-label",0),d.YNc(3,Oe,5,4,"ion-label",0),d._UZ(4,"span",25),d.qZA(),d.qZA()),2&t){const t=d.oxw(4);d.Q6J("ngStyle",d.WLB(3,Je,t.showPlanning?"1200px":"80px",t.showPlanning?"auto":"hidden")),d.xp6(2),d.Q6J("ngIf","active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf","closed"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status))}}function Ie(t,e){if(1&t&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.hij("(",null==t.allQuestionsList.settings.teams?null:t.allQuestionsList.settings.teams.length,")")}}function Me(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",244),d.NdJ("click",function(e){return d.CHM(t),d.oxw(4).removeAllTeams(e)}),d._UZ(1,"fa-icon",207),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("icon",t.icon.get("faTrashAlt"))}}function Ce(t,e){if(1&t&&(d.TgZ(0,"ion-button",245),d._UZ(1,"fa-icon",207),d.qZA()),2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("tooltip_survey_no_participating_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function Ue(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-button",246),d.NdJ("click",function(e){return d.CHM(t),d.oxw(4).addTeams(e)}),d._UZ(1,"fa-icon",207),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("icon",t.icon.get("faPlus"))}}function ke(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-icon",103),d.NdJ("click",function(){d.CHM(t);const e=d.oxw().index;return d.oxw(5).aSelectTeam(e)}),d.qZA()}}function De(t,e){if(1&t&&(d.TgZ(0,"ion-chip"),d.TgZ(1,"ion-label"),d._uU(2),d.qZA(),d.YNc(3,ke,1,0,"ion-icon",249),d.qZA()),2&t){const t=e.$implicit,i=d.oxw(5);d.xp6(2),d.Oqu(t.name),d.xp6(1),d.Q6J("ngIf","concept"==(null==i.allQuestionsList.settings?null:i.allQuestionsList.settings.status))}}function Ye(t,e){1&t&&(d.TgZ(0,"ion-label",250),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"tooltip_survey_no_participating_teams")))}function ze(t,e){if(1&t&&(d.TgZ(0,"ion-card-content"),d.YNc(1,De,4,2,"ion-chip",247),d.YNc(2,Ye,3,3,"ion-label",248),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("ngForOf",t.allQuestionsList.settings.teams),d.xp6(1),d.Q6J("ngIf",!t.allQuestionsList.settings.teams||0==t.allQuestionsList.settings.teams.length)}}function Ee(t,e){if(1&t&&(d.TgZ(0,"ion-button",245),d._UZ(1,"fa-icon",207),d.qZA()),2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("tooltip_survey_settings_not_checked")),d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function Fe(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card-content",251),d.TgZ(1,"ion-item"),d.TgZ(2,"ion-label",252),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.TgZ(5,"div",253),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).editMinAnswers()}),d._uU(6),d.qZA(),d.qZA(),d.TgZ(7,"ion-item",113),d.TgZ(8,"ion-label",252),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.TgZ(11,"ion-toggle",254),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(4).allQuestionsList.settings.teamReport=e})("ionChange",function(){return d.CHM(t),d.oxw(4).update()}),d.qZA(),d.qZA(),d.TgZ(12,"ion-item",113),d.TgZ(13,"ion-label",252),d._uU(14),d.ALo(15,"translate"),d.qZA(),d.TgZ(16,"ion-toggle",254),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(4).allQuestionsList.settings.emailClose=e})("ionChange",function(){return d.CHM(t),d.oxw(4).update()}),d.qZA(),d.qZA(),d.TgZ(17,"ion-item",113),d.TgZ(18,"ion-label",252),d._uU(19),d.ALo(20,"translate"),d.qZA(),d.TgZ(21,"ion-checkbox",255),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(4).allQuestionsList.settings.tagsSet=e})("ionChange",function(){return d.CHM(t),d.oxw(4).update()}),d.qZA(),d.qZA(),d.TgZ(22,"ion-item",113),d.TgZ(23,"ion-label",252),d._uU(24),d.ALo(25,"translate"),d.qZA(),d.TgZ(26,"ion-checkbox",255),d.NdJ("ngModelChange",function(e){d.CHM(t);return d.oxw(4).allQuestionsList.settings.settingsChecked=e})("ionChange",function(){return d.CHM(t),d.oxw(4).update()}),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(3),d.Oqu(d.lcZ(4,14,"survey_setting_min_answers")),d.xp6(3),d.Oqu(t.allQuestionsList.settings.minAnswers&&t.allQuestionsList.settings.minAnswers>3?t.allQuestionsList.settings.minAnswers:3),d.xp6(1),d.Q6J("disabled","closed"===(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(10,16,"survey_setting_team_report")),d.xp6(2),d.Q6J("ngModel",t.allQuestionsList.settings.teamReport),d.xp6(1),d.Q6J("disabled","closed"===(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(15,18,"survey_setting_email_close")),d.xp6(2),d.Q6J("ngModel",t.allQuestionsList.settings.emailClose),d.xp6(1),d.Q6J("disabled","concept"!==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(20,20,"survey_setting_tags_set")),d.xp6(2),d.Q6J("ngModel",t.allQuestionsList.settings.tagsSet),d.xp6(1),d.Q6J("disabled","concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Oqu(d.lcZ(25,22,"survey_setting_checked")),d.xp6(2),d.Q6J("ngModel",t.allQuestionsList.settings.settingsChecked)}}function He(t,e){1&t&&d._UZ(0,"div",256)}const Pe=function(t){return{width:t}};function je(t,e){if(1&t&&(d.TgZ(0,"div",257),d._UZ(1,"div",258),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("ngStyle",d.VKq(1,Pe,t.teamStatusListAllShowingScorePerc+"%"))}}function Be(t,e){if(1&t&&(d.TgZ(0,"div",259),d._uU(1),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.hij("",t.teamStatusListAllShowingScorePerc,"%")}}function $e(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",260),d.NdJ("click",function(e){return d.CHM(t),d.oxw(4).showStatusOpenSurveys(e)}),d.qZA()}if(2&t){const t=d.oxw(4);d.Q6J("icon",t.icon.get("faRedoAlt"))}}function Re(t,e){1&t&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"survey_progress_loading")," "))}function Ge(t,e){if(1&t&&(d.TgZ(0,"div",263),d.TgZ(1,"ion-label",264),d._uU(2),d.qZA(),d.TgZ(3,"div",265),d._UZ(4,"div",258),d.qZA(),d.TgZ(5,"div",266),d._uU(6),d.qZA(),d.qZA()),2&t){const t=e.$implicit;d.xp6(1),d.Q6J("title",t.name),d.xp6(1),d.Oqu(t.name),d.xp6(2),d.Q6J("ngStyle",d.VKq(4,Pe,t.showingScorePerc+"%")),d.xp6(2),d.hij("",t.showingScorePerc||0,"%")}}function Ke(t,e){if(1&t&&(d.TgZ(0,"div"),d.YNc(1,Ge,7,6,"div",262),d.qZA()),2&t){const t=d.oxw(5);d.xp6(1),d.Q6J("ngForOf",t.teamStatusList)}}function We(t,e){if(1&t&&(d.TgZ(0,"ion-card-content",261),d.YNc(1,Re,3,3,"div",0),d.YNc(2,Ke,2,1,"div",0),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.Q6J("ngIf",0==(null==t.teamStatusList?null:t.teamStatusList.length)),d.xp6(1),d.Q6J("ngIf",(null==t.teamStatusList?null:t.teamStatusList.length)>0)}}function Ve(t,e){if(1&t&&(d.TgZ(0,"ion-button",245),d._UZ(1,"fa-icon",207),d.qZA()),2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("tooltip_survey_no_participating_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function Xe(t,e){if(1&t&&d._UZ(0,"div",271),2&t){const t=d.oxw(5);d.Q6J("innerHTML",t.helpers.convertSpaces(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.intro_text),d.oJD)}}function ti(t,e){1&t&&(d.TgZ(0,"span",272),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_intro_text_missing")))}function ei(t,e){if(1&t&&d._UZ(0,"div",271),2&t){const t=d.oxw(5);d.Q6J("innerHTML",t.helpers.convertSpaces(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.outro_text),d.oJD)}}function ii(t,e){1&t&&(d.TgZ(0,"span",272),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_outro_text_missing")))}function si(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card-content"),d.TgZ(1,"ion-card",267),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(4);return e.editText(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.intro_text,"intro_text")}),d.TgZ(2,"ion-label",268),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.YNc(5,Xe,1,1,"div",269),d.YNc(6,ti,3,3,"span",270),d.qZA(),d.TgZ(7,"ion-card",267),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(4);return e.editText(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.outro_text,"outro_text")}),d.TgZ(8,"ion-label",268),d._uU(9),d.ALo(10,"translate"),d.qZA(),d.YNc(11,ei,1,1,"div",269),d.YNc(12,ii,3,3,"span",270),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(3),d.hij("",d.lcZ(4,6,"survey_intro_text_title"),": "),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.intro_text),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.intro_text)),d.xp6(3),d.hij("",d.lcZ(10,8,"survey_outro_text_title"),": "),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.outro_text),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.outro_text))}}function ni(t,e){if(1&t&&d._UZ(0,"div",271),2&t){const t=d.oxw(5);d.Q6J("innerHTML",t.helpers.convertSpaces(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.template_information),d.oJD)}}function oi(t,e){1&t&&(d.TgZ(0,"span",272),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"survey_intro_report_missing")))}function ai(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card-content"),d.TgZ(1,"ion-card",267),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(4);return e.editText(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.template_information,"template_information")}),d.TgZ(2,"ion-label",268),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.YNc(5,ni,1,1,"div",269),d.YNc(6,oi,3,3,"span",270),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(3),d.hij("",d.lcZ(4,3,"survey_intro_report_title"),": "),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.template_information),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.template_information))}}function li(t,e){if(1&t&&(d.TgZ(0,"span",45),d._uU(1),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.hij(": ",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_name,"")}}function ri(t,e){if(1&t&&(d.TgZ(0,"span",45),d._uU(1),d.qZA()),2&t){const t=d.oxw(4);d.xp6(1),d.hij(": ",t.auth.user.displayName,"")}}function ci(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"fa-icon",273),d.NdJ("click",function(e){return d.CHM(t),d.oxw(4).removeSender(e)}),d.qZA()}if(2&t){const t=d.oxw(4);d.Q6J("icon",t.icon.get("faTrashAlt"))}}function ui(t,e){if(1&t&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&t){const t=d.oxw(5);d.xp6(1),d.Oqu(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_name)}}function gi(t,e){if(1&t&&(d.TgZ(0,"span"),d._uU(1),d.qZA()),2&t){const t=d.oxw(5);d.xp6(1),d.Oqu(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_email)}}function di(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card-content"),d.TgZ(1,"ion-card",274),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).changeSender()}),d.TgZ(2,"ion-label",275),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.YNc(5,ui,2,1,"span",0),d.qZA(),d.TgZ(6,"ion-card",274),d.NdJ("click",function(){return d.CHM(t),d.oxw(4).changeSender()}),d.TgZ(7,"ion-label",275),d._uU(8),d.ALo(9,"translate"),d.qZA(),d.YNc(10,gi,2,1,"span",0),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(4);d.xp6(3),d.hij("",d.lcZ(4,4,"modal_personal_info_name"),": "),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_name),d.xp6(3),d.hij("",d.lcZ(9,6,"modal_personal_info_email"),": "),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_email)}}function hi(t,e){if(1&t&&(d.TgZ(0,"ion-button",245),d._UZ(1,"fa-icon",207),d.qZA()),2&t){const t=d.oxw(4);d.Q6J("tooltip",t.translate.instant("tooltip_survey_no_participating_teams")),d.xp6(1),d.Q6J("icon",t.icon.get("faExclamationTriangle"))}}function pi(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-row",203),d.TgZ(1,"ion-col",41),d.TgZ(2,"div",204),d.TgZ(3,"div",132),d.TgZ(4,"h3",42),d._uU(5),d.qZA(),d._UZ(6,"span",25),d.YNc(7,Ze,2,0,"ion-button",205),d.TgZ(8,"ion-button",206),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).renameSurvey()}),d._UZ(9,"fa-icon",207),d.qZA(),d.TgZ(10,"ion-button",206),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).copySurvey()}),d._UZ(11,"fa-icon",207),d.qZA(),d.YNc(12,ve,2,1,"ion-button
1",208),d.qZA(),d.TgZ(13,"ion-card",209),d.TgZ(14,"div",210),d.TgZ(15,"ion-label",211),d.TgZ(16,"span",212),d._uU(17),d.ALo(18,"translate"),d.qZA(),d.YNc(19,we,3,3,"span",213),d.YNc(20,ye,3,3,"span",214),d.YNc(21,Qe,3,3,"span",215),d.YNc(22,Te,3,3,"span",216),d.qZA(),d._UZ(23,"span",25),d.YNc(24,Le,3,3,"ion-button",217),d.qZA(),d.qZA(),d.YNc(25,Ne,5,6,"ion-card",218),d.TgZ(26,"ion-card",219),d.TgZ(27,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showTeams=!e.showTeams}),d.TgZ(28,"ion-label",212),d._uU(29),d.ALo(30,"translate"),d.YNc(31,Ie,2,1,"span",0),d.qZA(),d._UZ(32,"span",25),d.YNc(33,Me,2,1,"ion-button",221),d.YNc(34,Ce,2,2,"ion-button",222),d.YNc(35,Ue,2,1,"ion-button",223),d._UZ(36,"fa-icon",224),d.qZA(),d.YNc(37,ze,3,2,"ion-card-content",0),d.qZA(),d.TgZ(38,"ion-card",219),d.TgZ(39,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showSettings=!e.showSettings}),d.TgZ(40,"ion-label"),d.TgZ(41,"span",212),d._uU(42),d.ALo(43,"translate"),d.qZA(),d.qZA(),d._UZ(44,"span",25),d.YNc(45,Ee,2,2,"ion-button",222),d._UZ(46,"fa-icon",224),d.qZA(),d.YNc(47,Fe,27,24,"ion-card-content",225),d.qZA(),d.TgZ(48,"ion-card",219),d.YNc(49,He,1,0,"div",226),d.TgZ(50,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return"concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)?e.showProgress=!e.showProgress:e.doNothing()}),d.TgZ(51,"ion-label",227),d._uU(52),d.ALo(53,"translate"),d.qZA(),d.YNc(54,je,2,3,"div",228),d._UZ(55,"span",25),d.YNc(56,Be,2,1,"div",229),d.YNc(57,$e,1,1,"fa-icon",230),d._UZ(58,"fa-icon",224),d.qZA(),d.YNc(59,We,3,2,"ion-card-content",231),d.qZA(),d.TgZ(60,"ion-card",219),d.TgZ(61,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showMessages=!e.showMessages}),d.TgZ(62,"ion-label",212),d._uU(63),d.ALo(64,"translate"),d.qZA(),d._UZ(65,"span",25),d.YNc(66,Ve,2,2,"ion-button",222),d._UZ(67,"fa-icon",224),d.qZA(),d.YNc(68,si,13,10,"ion-card-content",0),d.qZA(),d.TgZ(69,"ion-card",219),d.TgZ(70,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showReportSettings=!e.showReportSettings}),d.TgZ(71,"ion-label",212),d._uU(72),d.ALo(73,"translate"),d.qZA(),d._UZ(74,"span",25),d._UZ(75,"fa-icon",224),d.qZA(),d.YNc(76,ai,7,5,"ion-card-content",0),d.qZA(),d.TgZ(77,"ion-card",219),d.TgZ(78,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showSender=!e.showSender}),d.TgZ(79,"ion-label"),d.TgZ(80,"span",212),d._uU(81),d.ALo(82,"translate"),d.qZA(),d.YNc(83,li,2,1,"span",232),d.YNc(84,ri,2,1,"span",232),d.qZA(),d._UZ(85,"span",25),d.YNc(86,ci,1,1,"fa-icon",233),d._UZ(87,"fa-icon",224),d.qZA(),d.YNc(88,di,11,8,"ion-card-content",0),d.qZA(),d.TgZ(89,"ion-card",219),d.TgZ(90,"div",220),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.showQuestions=!e.showQuestions}),d.TgZ(91,"ion-label"),d.TgZ(92,"span",212),d._uU(93),d.ALo(94,"translate"),d.qZA(),d.TgZ(95,"span",45),d._uU(96),d.qZA(),d.qZA(),d._UZ(97,"span",25),d.YNc(98,hi,2,2,"ion-button",222),d._UZ(99,"fa-icon",224),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(3);d.xp6(5),d.hij(" ",t.allQuestionsList.settings.name," "),d.xp6(2),d.Q6J("ngIf",t.checkShowBtn()),d.xp6(2),d.Q6J("icon",t.icon.get("faTag")),d.xp6(2),d.Q6J("icon",t.icon.get("faCopy")),d.xp6(1),d.Q6J("ngIf",t.allQuestionsList.settings.order&&"active"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(5),d.hij("",d.lcZ(18,61,"survey_status"),":"),d.xp6(2),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.status)||"concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf","active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)&&!t.surveyPlannedInFuture),d.xp6(1),d.Q6J("ngIf","active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)&&t.surveyPlannedInFuture),d.xp6(1),d.Q6J("ngIf","closed"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(2),d.Q6J("ngIf","active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)&&t.surveyPlannedInFuture),d.xp6(1),d.Q6J("ngIf","active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)||"closed"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngStyle",d.WLB(77,Je,t.showTeams?"1200px":"80px",t.showTeams?"auto":"hidden")),d.xp6(3),d.hij(" ",d.lcZ(30,63,"survey_participating_teams")," "),d.xp6(2),d.Q6J("ngIf",(null==t.allQuestionsList.settings.teams?null:t.allQuestionsList.settings.teams.length)>0),d.xp6(2),d.Q6J("ngIf",t.showTeams&&(null==t.allQuestionsList.settings.teams?null:t.allQuestionsList.settings.teams.length)>0&&"concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("ngIf",!(t.showTeams||null!=t.allQuestionsList.settings.teams&&t.allQuestionsList.settings.teams.length||"concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status))),d.xp6(1),d.Q6J("ngIf",t.showTeams&&"concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(80,N,t.showTeams?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showTeams),d.xp6(1),d.Q6J("ngStyle",d.WLB(82,Je,t.showSettings?"1200px":"80px",t.showSettings?"auto":"hidden")),d.xp6(4),d.Oqu(d.lcZ(43,65,"survey_settings")),d.xp6(3),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.settingsChecked&&null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.tagsSet||"concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status))),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(85,N,t.showSettings?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showSettings),d.xp6(1),d.Q6J("ngStyle",d.WLB(87,Je,t.showProgress?"1200px":"80px",t.showProgress?"auto":"hidden")),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.status)||"concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)||t.surveyPlannedInFuture),d.xp6(3),d.Oqu(d.lcZ(53,67,"survey_progress")),d.xp6(2),d.Q6J("ngIf",(null==t.teamStatusList?null:t.teamStatusList.length)>0),d.xp6(2),d.Q6J("ngIf",(null==t.teamStatusList?null:t.teamStatusList.length)>0),d.xp6(1),d.Q6J("ngIf",(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)&&"active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(90,N,t.showProgress?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showProgress),d.xp6(1),d.Q6J("ngStyle",d.WLB(92,Je,t.showMessages?"1200px":"80px",t.showMessages?"auto":"hidden")),d.xp6(3),d.Oqu(d.lcZ(64,69,"survey_texts_title")),d.xp6(3),d.Q6J("ngIf",!(t.showMessages||null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.intro_text&&null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.outro_text||"concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status))),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(95,N,t.showMessages?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showMessages),d.xp6(1),d.Q6J("ngStyle",d.WLB(97,Je,t.showReportSettings?"1200px":"80px",t.showReportSettings?"auto":"hidden")),d.xp6(3),d.Oqu(d.lcZ(73,71,"survey_report_text_title")),d.xp6(3),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(100,N,t.showReportSettings?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showReportSettings),d.xp6(1),d.Q6J("ngStyle",d.WLB(102,Je,t.showSender?"1200px":"80px",t.showSender?"auto":"hidden")),d.xp6(4),d.Oqu(d.lcZ(82,73,"survey_sender")),d.xp6(2),d.Q6J("ngIf",null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_name),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.sender_name)),d.xp6(2),d.Q6J("ngIf",t.showSender&&(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.sender_name)),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(105,N,t.showSender?"rotate(180deg)":"rotate(0deg)")),d.xp6(1),d.Q6J("ngIf",t.showSender),d.xp6(1),d.Q6J("ngStyle",d.VKq(107,_e,t.showQuestions?"1200px":"80px")),d.xp6(4),d.hij(" ",d.lcZ(94,75,"survey_questions")," "),d.xp6(3),d.hij("(",t.countCatsAndQuestions(),")"),d.xp6(2),d.Q6J("ngIf",!t.showMessages&&t.countQuestions()<1&&"concept"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faChevronDown"))("ngStyle",d.VKq(109,N,t.showQuestions?"rotate(180deg)":"rotate(0deg)"))}}function mi(t,e){if(1&t&&(d.TgZ(0,"ion-col",139),d.YNc(1,pi,100,111,"ion-row",202),d.qZA()),2&t){const t=d.oxw(2);
1d.xp6(1),d.Q6J("ngIf",t.survey_id&&"new"!=t.survey_id&&(null==t.allQuestionsList?null:t.allQuestionsList.settings))}}function fi(t,e){1&t&&d._UZ(0,"div",294)}function _i(t,e){1&t&&d._UZ(0,"div",295)}function xi(t,e){1&t&&d._UZ(0,"div",295)}function Zi(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_invite_write")))}function vi(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_invite_edit")))}function wi(t,e){1&t&&d._UZ(0,"div",295)}function yi(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_reminder_write")))}function Qi(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_reminder_edit")))}function Ti(t,e){1&t&&d._UZ(0,"div",295)}function Li(t,e){1&t&&(d.TgZ(0,"span",286),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"close_survey")," "))}function qi(t,e){1&t&&(d.TgZ(0,"span",286),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"page_edit_organisation_analyzing_scans")," "))}function bi(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_close_write")))}function Ai(t,e){1&t&&(d.TgZ(0,"span",296),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&t&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"page_my_account_email_close_edit")))}const Si=function(t){return{"margin-bottom":t}};function Oi(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"ion-card",277),d.YNc(1,fi,1,0,"div",278),d.TgZ(2,"div"),d.TgZ(3,"div",279),d.TgZ(4,"h3",280),d._uU(5),d.ALo(6,"translate"),d.ALo(7,"translate"),d.qZA(),d._UZ(8,"span",25),d.qZA(),d.TgZ(9,"ion-card",281),d.TgZ(10,"div",282),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return null!=e.allQuestionsList.settings&&e.allQuestionsList.settings.status&&"concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)?e.doNothing():e.activateSurvey()}),d.YNc(11,_i,1,0,"div",283),d._UZ(12,"fa-icon",284),d.TgZ(13,"div",285),d.TgZ(14,"span",286),d._uU(15),d.ALo(16,"translate"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.TgZ(17,"ion-card",287),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return"concept"!=(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)?e.doNothing():e.editEmail("invite")}),d.YNc(18,xi,1,0,"div",283),d._UZ(19,"fa-icon",288),d.YNc(20,Zi,3,3,"span",289),d.YNc(21,vi,3,3,"span",289),d.qZA(),d.TgZ(22,"div",279),d.TgZ(23,"h3",280),d._uU(24),d.ALo(25,"translate"),d.ALo(26,"translate"),d.qZA(),d._UZ(27,"span",25),d.qZA(),d.TgZ(28,"ion-card",281),d.TgZ(29,"div",290),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.auth.fullyLoaded&&e.auth.currentSubscription(e.organisation_id).subscription_type&&"active"==(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)?e.reminder():e.doNothing()}),d.YNc(30,wi,1,0,"div",283),d._UZ(31,"fa-icon",284),d.TgZ(32,"div",285),d.TgZ(33,"span",286),d._uU(34),d.ALo(35,"translate"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.TgZ(36,"ion-card",291),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).editEmail("reminder")}),d._UZ(37,"fa-icon",288),d.YNc(38,yi,3,3,"span",289),d.YNc(39,Qi,3,3,"span",289),d.qZA(),d.TgZ(40,"div",279),d.TgZ(41,"h3",280),d._uU(42),d.ALo(43,"translate"),d.ALo(44,"translate"),d.qZA(),d._UZ(45,"span",25),d.qZA(),d.TgZ(46,"ion-card",281),d.TgZ(47,"div",290),d.NdJ("click",function(){d.CHM(t);const e=d.oxw(3);return e.auth.fullyLoaded&&e.auth.currentSubscription(e.organisation_id).subscription_type&&"active"==(null==e.allQuestionsList.settings?null:e.allQuestionsList.settings.status)?e.closeSurvey():e.doNothing()}),d.YNc(48,Ti,1,0,"div",283),d._UZ(49,"fa-icon",284),d.TgZ(50,"div",285),d.YNc(51,Li,3,3,"span",292),d.YNc(52,qi,3,3,"span",292),d.qZA(),d.qZA(),d.qZA(),d.TgZ(53,"ion-card",291),d.NdJ("click",function(){return d.CHM(t),d.oxw(3).editEmail("close")}),d._UZ(54,"fa-icon",288),d.YNc(55,bi,3,3,"span",289),d.YNc(56,Ai,3,3,"span",289),d.qZA(),d.qZA(),d.TgZ(57,"div",293),d.O4$(),d.TgZ(58,"svg",6),d.TgZ(59,"g",7),d._UZ(60,"circle",8),d.qZA(),d.qZA(),d.qZA(),d.qZA()}if(2&t){const t=d.oxw(3);let e;d.xp6(1),d.Q6J("ngIf","closed"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)||"active"==(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)&&t.surveyPlannedInFuture),d.xp6(4),d.AsE("",d.lcZ(6,28,"step")," 1: ",d.lcZ(7,30,"new_survey"),""),d.xp6(6),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.status)||"concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faSearch")),d.xp6(3),d.hij(" ",d.lcZ(16,32,"survey_btn_activate")," "),d.xp6(2),d.Q6J("ngStyle",d.VKq(44,Si,(null==(e=t.auth.currentSubscription(t.organisation_id))?null:e.busy_scans)>0?"0px":"30px")),d.xp6(1),d.Q6J("ngIf",!(null!=t.allQuestionsList.settings&&t.allQuestionsList.settings.status)||"concept"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faPen")),d.xp6(1),d.Q6J("ngIf",!(null!=t.auth.getOrgInfo(t.organisation_id).email_content&&t.auth.getOrgInfo(t.organisation_id).email_content.invite)),d.xp6(1),d.Q6J("ngIf",null==t.auth.getOrgInfo(t.organisation_id).email_content?null:t.auth.getOrgInfo(t.organisation_id).email_content.invite),d.xp6(3),d.AsE("",d.lcZ(25,34,"step")," 2: ",d.lcZ(26,36,"reminder"),""),d.xp6(6),d.Q6J("ngIf","active"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faBell")),d.xp6(3),d.hij(" ",d.lcZ(35,38,"page_edit_organisation_send_reminder")," "),d.xp6(3),d.Q6J("icon",t.icon.get("faPen")),d.xp6(1),d.Q6J("ngIf",!(null!=t.auth.getOrgInfo(t.organisation_id).email_content&&t.auth.getOrgInfo(t.organisation_id).email_content.reminder)),d.xp6(1),d.Q6J("ngIf",null==t.auth.getOrgInfo(t.organisation_id).email_content?null:t.auth.getOrgInfo(t.organisation_id).email_content.reminder),d.xp6(3),d.AsE("",d.lcZ(43,40,"step")," 3: ",d.lcZ(44,42,"close_scan"),""),d.xp6(6),d.Q6J("ngIf","active"!=(null==t.allQuestionsList.settings?null:t.allQuestionsList.settings.status)),d.xp6(1),d.Q6J("icon",t.icon.get("faBell")),d.xp6(2),d.Q6J("ngIf",!t.auth.currentSubscription(t.organisation_id).calculatingScan),d.xp6(1),d.Q6J("ngIf",t.auth.currentSubscription(t.organisation_id).calculatingScan),d.xp6(2),d.Q6J("icon",t.icon.get("faPen")),d.xp6(1),d.Q6J("ngIf",!(null!=t.auth.getOrgInfo(t.organisation_id).email_content&&t.auth.getOrgInfo(t.organisation_id).email_content.close)),d.xp6(1),d.Q6J("ngIf",null==t.auth.getOrgInfo(t.organisation_id).email_content?null:t.auth.getOrgInfo(t.organisation_id).email_content.close)}}function Ji(t,e){if(1&t&&(d.TgZ(0,"ion-col",139),d.YNc(1,Oi,61,46,"ion-card",276),d.qZA()),2&t){const t=d.oxw(2);let e;d.xp6(1),d.Q6J("ngIf",null==(e=t.auth.currentSubscription(t.organisation_id))?null:e.subscription_type)}}function Ni(t,e){if(1&t&&(d.TgZ(0,"ion-content"),d.TgZ(1,"div",1),d.TgZ(2,"div",2),d.TgZ(3,"div",3),d.TgZ(4,"h1",4),d._uU(5),d.ALo(6,"translate"),d.qZA(),d.qZA(),d.qZA(),d.TgZ(7,"div",5),d.O4$(),d.TgZ(8,"svg",6),d.TgZ(9,"g",7),d._UZ(10,"circle",8),d.qZA(),d.qZA(),d.qZA(),d.kcU(),d._UZ(11,"div",9),d.qZA(),d.TgZ(12,"div",10),d.TgZ(13,"div",11),d.TgZ(14,"ion-grid",12),d.TgZ(15,"ion-row",13),d.TgZ(16,"ion-col",14),d.TgZ(17,"div",15),d.TgZ(18,"p",16),d._uU(19),d.ALo(20,"translate"),d.qZA(),d.TgZ(21,"h2",17),d._uU(22),d.qZA(),d.qZA(),d.qZA(),d.YNc(23,I,16,13,"ion-col",18),d.YNc(24,M,3,0,"ion-col",19),d.qZA(),d.TgZ(25,"ion-row"),d.YNc(26,D,7,5,"ion-col",18),d.YNc(27,Y,7,5,"ion-col",18),d.YNc(28,z,7,5,"ion-col",18),d.YNc(29,E,1,1,"ion-col",18),d.YNc(30,F,6,5,"ion-col",18),d.qZA(),d.TgZ(31,"ion-row",13),d.YNc(32,Ct,16,9,"ion-col",20),d.qZA(),d.TgZ(33,"ion-row"),d.YNc(34,kt,6,4,"ion-col",20),d.YNc(35,Dt,14,12,"ion-col",21),d.YNc(36,xe,33,50,"ion-col",22),d.YNc(37,mi,2,1,"ion-col",22),d.YNc(38,Ji,2,1,"ion-col",22),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.qZA()),2&t){const t=d.oxw();d.xp6(5),d.Oqu(d.lcZ(6,17,"page_edit_ess_title")),d.xp6(11),d.Q6J("size","xs"!=t.media.screenSize&&"sm"!=t.media.screenSize?7:12),d.xp6(3),d.Oqu(d.lcZ(20,19,"page_edit_ess_title")),d.xp6(3),d.Oqu(t.auth.getOrgInfo(t.organisation_id).organisation),d.xp6(1),d.Q6J("ngIf","xs"!=t.media.screenSize&&"sm"!=t.media.screenSize),d.xp6(1),d.Q6J("ngIf","xs"!=t.media.screenSize&&"sm"!=t.media.screenSize&&"md"!=t.media.screenSize),d.xp6(2),d.Q6J("ngIf",!t.showQuestions),d.xp6(1),d.Q6J("ngIf",!t.showQuestions),d.xp6(1),d.Q6J("ngIf",!t.showQuestions),d.xp6(1),d.Q6J("ngIf",t.showQuestions),d.xp6(1),d.Q6J("ngIf",t.showQuestions),d.xp6(2),d.Q6J("ngIf",t.showQuestions),d.xp6(2),d.Q6J("ngIf",t.showNewOptions&&"template"==t.selectedOptionNew),d.xp6(1),d.Q6J("ngIf",t.showNewOptions&&"new"==t.selectedOptionNew),d.xp6(1),d.Q6J("ngIf",t.showEditTeams&&!t.showQuestions&&!t.showNewOptions),d.xp6(1),d.Q6J("ngIf",!t.showQuestions&&!t.showNewOptions&&!t.showEditTeams),d.xp6(1),d.Q6J("ngIf",!t.showQuestions&&!t.showNewOptions&&t.survey_id&&"new"!=t.survey_id&&
1(null==t.allQuestionsList?null:t.allQuestionsList.settings)&&!t.showEditTeams)}}class Ii{constructor(t,e,i,s,n,o,a,l,r,c,u,g,d,h){this.auth=t,this.translate=e,this.nav=i,this.icon=s,this.route=n,this.firestore=o,this.toast=a,this.modal=l,this.helpers=r,this.media=c,this.sortBy=u,this.functions=g,this.filterKeyPipe=d,this.editTeamsService=h,this.mySurveys=[],this.selectedOptionNew="",this.showNewOptions=!1,this.newSurveyName="",this.newSurveyDescription="",this.showPlanning=!1,this.showTeams=!1,this.showProgress=!1,this.showQuestions=!1,this.allQuestionsList={},this.allQuestionsListOrig={},this.showDetails=[],this.lang="",this.questionNew=[],this.listToExcel="",this.copyItemSelected=void 0,this.openingDashBoardMenu=!1,this.showDashboardMenu=!1,this.showMessages=!1,this.showSender=!1,this.showEditTeams=!1,this.showSettings=!1,this.showReportSettings=!1,this.showDetailsCat=[],this.newTag="",this.newCatQuestion=void 0,this.newOption="",this.teamStatusList=[]}addIds(){console.log(JSON.parse(JSON.stringify(this.allQuestionsList)))}ngOnInit(){this.route.params.subscribe(t=>{t.organisation_id&&(this.organisation_id=t.organisation_id,this.editTeamsService.organisation_id=this.organisation_id),t.survey_id&&(this.survey_id=t.survey_id,"new"==this.survey_id?(this.showNewOptions=!0,this.selectedOptionNew="new"):(this.showNewOptions=!1,this.setSurveyData())),this.organisation_id?this.getTemplateSurveys():this.nav.go("dashboard")})}openDashboardMenu(t){if(1!=this.auth.myTeams.length||this.auth.myOrganisations.length&&0!=this.auth.myOrganisations.length){if(!this.openingDashBoardMenu){this.showDashboardMenu=!0,this.openingDashBoardMenu=!0;let e=[];for(let t in this.auth.myTeams){let i=JSON.parse(JSON.stringify(this.auth.myTeams[t]));if(i.title=i.name,this.auth.myTeams[t].organisation_id){let t=this.auth.getOrgInfo(i.organisation_id).organisation;i.note=t}i.type="team",e.push(i)}e=this.sortBy.transform(e,-1,"note"),e.push({title:this.translate.instant("page_my_account_team_new_team_title"),value:"create",valueOnly:!0,new:!0,type:"team"});let i=[];for(let t in this.auth.myOrganisations){let e=JSON.parse(JSON.stringify(this.auth.myOrganisations[t]));e.title=e.organisation,e.type="organisation",i.push(e)}i=this.sortBy.transform(i,-1,"title"),i.push({title:this.translate.instant("page_my_account_add_organisation"),value:"create",valueOnly:!0,new:!0,type:"organisation"});let s=[{title:this.translate.instant("team"),subList:e},{title:this.translate.instant("organisation"),subList:i}];this.toast.showPopoverMenu(t,s,t=>{this.openingDashBoardMenu=!1,this.showDashboardMenu=!1,(null==t?void 0:t.data)&&("create"==t.data.value?"team"==t.data.type?this.nav.addNewTeam():"organisation"==t.data.type&&("nl"==this.translate.currentLang?window.open("https://www.teamsupporter.nl/quote/","_blank"):window.open("https://www.teamsupporter.nl/"+this.translate.currentLang+"/quote/","_blank")):"team"==t.data.type?this.nav.go("dashboard/team/"+t.data.id):"organisation"==t.data.type&&this.nav.go("view-organisation/"+t.data.id))},!0)}}else this.nav.go("dashboard/team/"+this.auth.myTeams[0].id)}getSurveyQuestionCount(t){return t&&t.settings&&t.settings.order?t.settings.order.reduce((e,i)=>{var s;return e+((null===(s=t[i])||void 0===s?void 0:s.length)||0)},0):0}renameSurvey(){this.modal.inputFields("Hernoem Survey","Geef de survey een nieuwe naam",[{value:this.allQuestionsList.settings.name,title:"Naam",type:"text"}],t=>{t.data&&t.data[0].value&&(this.allQuestionsList.settings.name=t.data[0].value,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())})}removeSurvey(){this.modal.verification(t=>{t.data&&(this.firestore.deleteSub("organisations",this.organisation_id,"surveys",this.survey_id),this.nav.go("edit-survey/"+this.organisation_id))},"Weet je zeker dat je deze survey wilt verwijderen?")}copySurvey(){this.modal.verification(t=>{t.data&&(this.copyItemSelected=this.allQuestionsList.id,this.createSurvey("copy"))},"Weet je zeker dat je deze survey wilt kopieren?")}createSurvey(t,e){if(console.log("createSurvey",t,this.newSurveyName),"empty"==t){if(!this.newSurveyName)return;this.toast.showLoader();let t={settings:{name:this.newSurveyName,description:this.newSurveyDescription,order:[this.translate.instant("survey_basic_category")]}};t[this.translate.instant("survey_basic_category")]=[],this.firestore.createSub("organisations",this.organisation_id,"surveys",t,t=>{setTimeout(()=>{for(let t in this.auth.getOrgInfo(this.organisation_id).surveys)this.auth.getOrgInfo(this.organisation_id).surveys[t].settings.name==this.newSurveyName&&this.nav.go("edit-survey/"+this.organisation_id+"/"+this.auth.getOrgInfo(this.organisation_id).surveys[t].id);this.newSurveyName="",this.newSurveyDescription="",this.toast.hideLoader()},1e3)})}else if("copy"==t){if(console.log(this.copyItemSelected),this.copyItemSelected||(this.copyItemSelected=e),!this.copyItemSelected)return;let t;this.toast.showLoader();for(let e in this.auth.getOrgInfo(this.organisation_id).surveys)this.auth.getOrgInfo(this.organisation_id).surveys[e].id==this.copyItemSelected&&(t=JSON.parse(JSON.stringify(this.auth.getOrgInfo(this.organisation_id).surveys[e])));if(!t)return void console.log("survey not found");t.settings.name=t.settings.name+" - "+this.translate.instant("copy"),delete t.id,delete t.survey_id,t.settings.status="concept",t.settings.teams=[],t.settings.startdate="",t.settings.enddate="",delete t.settings.survey_id,delete t.settings.survey_id_original,this.firestore.createSub("organisations",this.organisation_id,"surveys",t).then(t=>{setTimeout(()=>{for(let t in this.auth.getOrgInfo(this.organisation_id).surveys)this.auth.getOrgInfo(this.organisation_id).surveys[t].settings.name==this.getSurveyData(this.copyItemSelected).settings.name+" - "+this.translate.instant("copy")&&this.nav.go("edit-survey/"+this.organisation_id+"/"+this.auth.getOrgInfo(this.organisation_id).surveys[t].id);this.toast.hideLoader()},1e3)})}else if("template"==t){if(console.log(this.copyItemSelected),e&&(this.copyItemSelected=e),!this.copyItemSelected)return;let t;this.toast.showLoader(),console.log(this.templateSurveys);for(let e in this.templateSurveys)this.templateSurveys[e].id==this.copyItemSelected&&(t=JSON.parse(JSON.stringify(this.templateSurveys[e])));if(!t)return void console.log("survey not found");t.settings.name=t.settings.name+" - "+this.translate.instant("copy"),delete t.id,delete t.survey_id,delete t.settings.survey_id,delete t.settings.survey_id_original,t.settings.status="concept",this.firestore.createSub("organisations",this.organisation_id,"surveys",t).then(t=>{setTimeout(()=>{for(let t in this.auth.getOrgInfo(this.organisation_id).surveys)this.auth.getOrgInfo(this.organisation_id).surveys[t].settings.name==this.getSurveyData(this.copyItemSelected,!0).settings.name+" - "+this.translate.instant("copy")&&(this.nav.go("edit-survey/"+this.organisation_id+"/"+this.auth.getOrgInfo(this.organisation_id).surveys[t].id),this.showQuestions=!0,this.showNewOptions=!1);this.toast.hideLoader()},500)})}}setSurveyData(){if(this.survey_id&&"new"!=this.survey_id){let t=this.survey_id;for(let e of this.auth.getOrgInfo(this.organisation_id).surveys)if(e.id==t)return this.allQuestionsList=JSON.parse(JSON.stringify(e)),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)),void this.showStatusOpenSurveys()}}getSurveyData(t,e){if(t&&!e){for(let e of this.auth.getOrgInfo(this.organisation_id).surveys)if(e.id==t)return e}else if(t&&e)for(let i of this.templateSurveys)if(i.id==t)return i;return{}}getTemplateSurveys(){this.surveySubscription||(this.surveySubscription=this.firestore.get("surveyQuestions").subscribe(t=>{this.templateSurveys=t.map(t=>{let e=t.payload.doc.data();return e.id=t.payload.doc.id,e}),this.templateSurveys=JSON.parse(JSON.stringify(this.templateSurveys))}))}aSelectTeam(t){this.allQuestionsList.settings.teams.splice(t,1),this.update()}checkShowBtn(){return JSON.stringify(this.allQuestionsListOrig)!=JSON.stringify(this.allQuestionsList)}
1toggleDetails(t,e){let i=this.showDetails.indexOf(t+"-"+e);i>-1?this.showDetails.splice(i,1):this.showDetails.push(t+"-"+e)}checkShowDetails(t,e){return-1!=this.showDetails.indexOf(t+"-"+e)}checkShowDetailsCat(t){return-1!=this.showDetailsCat.indexOf(t)}toggleDetailsCat(t){let e=this.showDetailsCat.indexOf(t);e>-1?this.showDetailsCat.splice(e,1):this.showDetailsCat.push(t)}save(){this.modal.verification(t=>{t.data&&(console.log(this.allQuestionsList),this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)))},"Weet je zeker dat je de wijzigingen wilt opslaan?",null,this.translate.instant("btn_save"))}update(){this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList))}drop(t){console.log(t.container.id,t);let e=t.container.id;if(t.previousContainer===t.container){(0,r.bA)(t.container.data,t.previousIndex,t.currentIndex);for(let i=0;i<t.container.data.length;i++)console.log(e,this.allQuestionsList),this.allQuestionsList[this.allQuestionsList.settings.order[e]][i].order=i;this.checkShowDetails(t.previousIndex,e)&&this.toggleDetails(t.previousIndex,e)}else{(0,r.EA)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex),this.allQuestionsList[this.allQuestionsList.settings.order[e]][t.currentIndex].category=this.allQuestionsList.settings.order[e],this.allQuestionsList[this.allQuestionsList.settings.order[e]][t.currentIndex].order=t.currentIndex;for(let i=0;i<t.container.data.length;i++)this.allQuestionsList[this.allQuestionsList.settings.order[e]][i].order=i;for(let i=0;i<t.previousContainer.data.length;i++)this.allQuestionsList[this.allQuestionsList.settings.order[e]][i].order=i}this.checkShowDetails(t.previousIndex,e)&&this.toggleDetails(t.currentIndex,e),this.setOrder(),this.update()}removeNew(){this.questionNew=[]}updateWithdelay(){setTimeout(()=>{this.update()},300)}addTagNew(){this.newTag&&(this.questionNew[0].tags.push(this.newTag.toLowerCase()),this.newTag="")}addTag(t,e,i){i?this.newTag&&(this.questionNew[0].tags.push(this.newTag.toLowerCase()),this.newTag=""):this.newTag&&(this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].tags||(this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].tags=[]),this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].tags.push(this.newTag.toLowerCase()),this.newTag="",this.update())}removeTag(t,e,i,s){s?this.questionNew[0].tags.splice(e,1):(this.allQuestionsList[this.allQuestionsList.settings.order[i]][t].tags.splice(e,1),this.update())}validNw(){return!(!this.questionNew[0]||!this.questionNew[0].question||!this.questionNew[0].category||!this.questionNew[0].tags||null===this.questionNew[0].order||this.questionNew[0].order<0||!this.questionNew[0].type||!this.questionNew[0].level&&"text"!=this.questionNew[0].type&&"options"!=this.questionNew[0].type)}addItem(){let t={category:this.questionNew[0].category,created:99999999999999-(new Date).getTime(),id:btoa(1e8*Math.random()+this.questionNew[0].order),question:this.questionNew[0].question,tags:this.questionNew[0].tags,explanation:this.questionNew[0].explanation,order:this.allQuestionsList[this.allQuestionsList.settings.order[this.newCatQuestion]].length,type:this.questionNew[0].type,level:this.questionNew[0].level,multiple:this.questionNew[0].multiple||!1};this.questionNew[0].level||(t.level=""),this.questionNew[0].explanation||(t.explanation=""),this.questionNew[0].options&&"options"==this.questionNew[0].type&&(t.options=this.questionNew[0].options),this.allQuestionsList[this.allQuestionsList.settings.order[this.newCatQuestion]].push(t),this.questionNew=[],this.newCatQuestion=void 0,this.setOrder(),this.update()}deleteItem(t,e){this.modal.verification(i=>{i.data&&(this.toggleDetails(t,e),this.allQuestionsList[this.allQuestionsList.settings.order[e]].splice(t,1),this.setOrder(),this.update())},"Weet je zeker dat je deze vraag wilt verwijderen?")}changeVolgorde(t,e){let i=this.allQuestionsList[this.allQuestionsList.settings.order[e]][t];this.toggleDetails(t,e),this.allQuestionsList[this.allQuestionsList.settings.order[e]].splice(t,1),i.order,this.allQuestionsList[this.allQuestionsList.settings.order[e]].splice(i.order,0,i),this.toggleDetails(i.order,e),this.setOrder(),this.update()}setOrder(){for(let t in this.allQuestionsList)"settings"!=t&&"id"!=t&&this.allQuestionsList[t].sort((t,e)=>t.order-e.order)}removeUndefined(t){return t.filter(t=>null!=t)}downloadQuestions(){this.listToExcel="Categorie;Vraag;Tags;Uitleg;Volgorde\n";for(let e in this.allQuestionsList)if("settings"!=e)for(let t=0;t<this.allQuestionsList[e].length;t++)this.listToExcel=this.listToExcel+this.allQuestionsList[e][t].category,this.listToExcel=this.listToExcel+";",this.listToExcel=this.listToExcel+this.allQuestionsList[e][t].question,this.listToExcel=this.listToExcel+";",this.allQuestionsList[e][t].tags&&(this.listToExcel=this.listToExcel+this.removeUndefined(this.allQuestionsList[e][t].tags).join(", ")),this.listToExcel=this.listToExcel+";",this.allQuestionsList[e][t].explanation&&(this.listToExcel=this.listToExcel+this.allQuestionsList[e][t].explanation),this.listToExcel=this.listToExcel+";",this.listToExcel=this.listToExcel+(parseInt(this.allQuestionsList[e][t].order)+1),this.listToExcel=this.listToExcel+"\n";let t=new Blob([this.listToExcel],{type:"text/csv"});c.saveAs(t,"questions.csv")}editLang(t){this.lang="nl"==t?"":t+"_",this.ngOnInit()}
1showNewCatQuestion(t){this.newCatQuestion==t?(this.newCatQuestion=void 0,this.questionNew=[]):(this.newCatQuestion=t,console.log(t,this.allQuestionsList.settings.order[t]),this.questionNew=[{category:this.allQuestionsList.settings.order[t],tags:[],order:this.allQuestionsList[this.allQuestionsList.settings.order[t]].length}])}newCat(){this.modal.inputFields("Nieuw Thema","Geef het nieuwe thema een naam",[{value:"",title:"Naam",type:"text"}],t=>{if(console.log(t.data),t.data&&t.data[0].value){let e=t.data[0].value;this.allQuestionsList[e]=[],this.allQuestionsList.settings.order.push(e),this.allQuestionsList.settings.order=this.allQuestionsList.settings.order,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.setOrder(),this.update()}})}newSurvey(t){var e,i;let s=[{title:this.translate.instant("survey_empty"),value:"empty",valueOnly:!0},{title:this.translate.instant("survey_copy"),value:"copy",valueOnly:!0,disabled:!(null===(i=null===(e=this.auth.getOrgInfo(this.organisation_id))||void 0===e?void 0:e.surveys)||void 0===i?void 0:i.length)},{title:this.translate.instant("survey_template"),value:"template",valueOnly:!0}];this.toast.showPopoverMenu(t,s,e=>{console.log(e),(null==e?void 0:e.data)&&("empty"==e.data.value?this.nav.go("edit-survey/"+this.organisation_id+"/new"):"copy"==e.data.value?this.showListSurveys(t,!0):"template"==e.data.value&&(this.showNewOptions=!0,this.selectedOptionNew="template"))},!0)}removeCat(t){this.modal.verification(e=>{if(e.data){let e=this.allQuestionsList.settings.order[t];delete this.allQuestionsList[e],this.allQuestionsList.settings.order.splice(t,1),this.allQuestionsList.settings.order=this.allQuestionsList.settings.order,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.setOrder(),this.update()}},"Weet je zeker dat je deze categorie wilt verwijderen, inclusief alle vragen?")}renameCat(t){this.modal.inputFields("Hernoem Thema","Geef het thema een nieuwe naam",[{value:this.allQuestionsList.settings.order[t],title:"Naam",type:"text"}],e=>{if(console.log(e.data),e.data&&e.data[0].value){let i=e.data[0].value;this.allQuestionsList[i]=this.allQuestionsList[this.allQuestionsList.settings.order[t]],delete this.allQuestionsList[this.allQuestionsList.settings.order[t]],this.allQuestionsList.settings.order[t]=i,this.allQuestionsList.settings.order=this.allQuestionsList.settings.order,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.setOrder(),this.update()}})}dropCat(t){(0,r.bA)(this.allQuestionsList.settings.order,t.previousIndex,t.currentIndex),console.log(JSON.parse(JSON.stringify(this.allQuestionsList.settings.order)));for(let e=0;e<this.allQuestionsList.settings.order.length;e++)this.allQuestionsList[this.allQuestionsList.settings.order[e]].order=e;this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.setOrder(),this.update()}selectCopyItem(t){this.copyItemSelected==t?this.copyItemSelected=void 0:this.copyItemSelected=t}changeDate(t){let e=this.allQuestionsList.settings[t];e||(e=u().format("YYYY-MM-DD")),this.modal.inputFields("Datum","Geef de nieuwe datum op",[{value:e,title:"Datum",type:"date"}],e=>{e.data&&e.data[0].value&&(this.allQuestionsList.settings[t]=e.data[0].value,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())})}addTeams(t){var e,i,s;t&&t.stopPropagation();let n=[];if(null===(s=null===(i=null===(e=this.allQuestionsList)||void 0===e?void 0:e.settings)||void 0===i?void 0:i.teams)||void 0===s?void 0:s.length)for(let a=0;a<this.allQuestionsList.settings.teams.length;a++)n.push(this.allQuestionsList.settings.teams[a].id);let o=[];for(let a=0;a<this.auth.getOrgInfo(this.organisation_id).basic_teams.length;a++)-1==n.indexOf(this.auth.getOrgInfo(this.organisation_id).basic_teams[a].id)&&o.push(this.auth.getOrgInfo(this.organisation_id).basic_teams[a]);0!=o.length?this.modal.selectItem(this.translate.instant("page_view_organisation_select_teams_text"),o,t=>{if(null==t?void 0:t.data){this.allQuestionsList.settings.teams||(this.allQuestionsList.settings.teams=[]);for(let e=0;e<t.data.length;e++)this.allQuestionsList.settings.teams.push(t.data[e]);this.update()}},null,this.translate.instant("page_view_organisation_select_teams_title"),{multiple:!0,object:!0,field:"name"}):this.toast.show("Alle teams zijn al toegevoegd.")}removeAllTeams(t){t.stopPropagation(),this.allQuestionsList.settings.teams=[],this.update()}editEmail(t){let e=this.allQuestionsList.settings.messages;e||(e={}),this.modal.editEmailContentSurvey({organisation_id:this.organisation_id,type:t,surveyContent:e},e=>{t&&e.data&&(this.allQuestionsList.settings.messages||(this.allQuestionsList.settings.messages={}),this.allQuestionsList.settings.messages[t]=e.data,this.update())})}editText(t,e){this.modal.editHtml({value:t},t=>{t.data&&t.data.value&&(this.allQuestionsList.settings[e]=t.data.value,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())})}selectDate(t,e){return(0,l.mG)(this,void 0,void 0,function*(){let i=u().add(1,"days").format("YYYY-MM-DD");e&&"number"==typeof e?i=u.unix(e).format("YYYY-MM-DD"):e&&"string"==typeof e&&(i=e),this.modal.inputFields(this.translate.instant(this.translate.instant("select_date")),null,[{name:"date",title:this.translate.instant("date"),type:"date",value:i,placeholder:this.translate.instant("page_edit_organisation_select_date"),required:!0,min:u().add(1,"days").format("YYYY-MM-DD")}],e=>(0,l.mG)(this,void 0,void 0,function*(){t(e.data)}))})}activateSurvey(){var t,e,i,s,n,o,a,r;this.countQuestions()<1?this.toast.show(this.translate.instant("survey_btn_activate_add_questions")):(null===(t=this.allQuestionsList.settings)||void 0===t?void 0:t.intro_text)&&(null===(e=this.allQuestionsList.settings)||void 0===e?void 0:e.intro_text.trim())&&(null===(i=this.allQuestionsList.settings)||void 0===i?void 0:i.outro_text)&&(null===(s=this.allQuestionsList.settings)||void 0===s?void 0:s.outro_text.trim())?(null===(a=null===(o=null===(n=this.allQuestionsList)||void 0===n?void 0:n.settings)||void 0===o?void 0:o.messages)||void 0===a?void 0:a.invite)?(null===(r=this.allQuestionsList.settings.teams)||void 0===r?void 0:r.length)?this.allQuestionsList.settings.tagsSet?this.allQuestionsList.settings.settingsChecked?this.modal.verification(t=>{"now"==(null==t?void 0:t.data)?(this.allQuestionsList.settings.status="active",this.allQuestionsList.settings.organisation_id=this.organisation_id,this.allQuestionsList.settings.survey_id=this.survey_id,this.allQuestionsList.settings.survey_id_original=this.survey_id,this.allQuestionsList.settings.startdate=u().format("YYYY-MM-DD"),this.allQuestionsList.settings.timestamp=u(this.allQuestionsList.settings.startdate).unix(),this.allQuestionsList.settings.now=!0,this.allQuestionsList.settings.sender_name||(this.allQuestionsList.settings.sender_name=this.auth.user.displayName,this.allQuestionsList.settings.sender_email=this.auth.user.email),this.allQuestionsList.organisation_id=this.organisation_id,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)),this.functions.httpsCallable("sendInviteSurveyOrganisation",this.allQuestionsList).subscribe(()=>{this.toast.show(this.translate.instant("survey_btn_activate_success_today"))})):"later"==(null==t?void 0:t.data)&&this.selectDate(t=>(0,l.mG)(this,void 0,void 0,function*(){!t||(this.allQuestionsList.settings.status="active",this.allQuestionsList.settings.organisation_id=this.organisation_id,this.allQuestionsList.settings.survey_id=this.survey_id,this.allQuestionsList.settings.survey_id_original=this.survey_id,this.allQuestionsList.settings.startdate=t[0].value,this.allQuestionsList.settings.timestamp=u(t[0].value+" 08:55").unix(),this.allQuestionsList.settings.sender_name||(this.allQuestionsList.settings.sender_name=this.auth.user.displayName,this.allQuestionsList.settings.sender_email=this.auth.user.email),this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)),this.firestore.set("processing_surveys",this.survey_id,this.allQuestionsList).then(()=>{this.toast.show(this.translate.instant("survey_btn_activate_success"))}))}))},this.translate.instant("new_survey_question"),[{value:null,text:this.translate.instant("btn_cancel"),color:"dark"},{value:"now",text:this.translate.instant("new_survey_question_direct"),color:"secondary"},{value:"later",text:this.translate.instant("new_survey_question_later"),color:"tertiary"}],this.translate.instant("new_survey_question_title"),!0):this.toast.show(this.translate.instant("tooltip_survey_settings_not_checked")):this.toast.show(this.translate.instant("tooltip_survey_settings_tags_not_checked")):this.toast.show(this.translate.instant("survey_btn_activate_add_teams")):this.writeFirst("invite"):this.toast.show(this.translate.instant("survey_btn_activate_add_intro_outro_text"))}countQuestions(){let t=0;for(let e in this.allQuestionsList)"settings"!=e&&"id"!=e&&(t+=this.allQuestionsList[e].length);return t}countCatsAndQuestions(){let t=0,e=0;for(let n in this.allQuestionsList)"settings"!=n&&"id"!=n&&(t++,e+=this.allQuestionsList[n].length);let i=this.translate.instant("survey_categorys");1==t&&(i=this.translate.instant("survey_category"));let s=this.translate.instant("questions");return 1==e&&(s=this.translate.instant("question")),t+" "+i+", "+e+" "+s}changeSender(){this.modal.inputFields("Afzender","Geef de nieuwe afzender op",[{value:this.allQuestionsList.settings.sender_name,title:"Afzender naam",type:"text",required:!0},{value:this.allQuestionsList.settings.sender_email,title:"Afzender e-mail",type:"text",required:!0,pattern:"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-z]{2,15}$"}],t=>{t.data&&t.data[0].value&&(this.allQuestionsList.settings.sender_name=t.data[0].value,this.allQuestionsList.settings.sender_email=t.data[1].value,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())})}removeSender(t){t&&t.stopPropagation(),this.modal.verification(t=>{t.data&&(this.allQuestionsList.settings.sender_name="",this.allQuestionsList.settings.sender_email="",this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())},this.translate.instant("survey_delete_sender_verification"))}doNothing(){}get surveyPlannedInFuture(){if(this.allQuestionsList.settings.startdate){if(u().format("YYYY-MM-DD")<this.allQuestionsList.settings.startdate)return!0;
1if(u().format("YYYY-MM-DD")==this.allQuestionsList.settings.startdate&&u().format("HH:mm")<"09:00"&&!this.allQuestionsList.settings.now)return!0}return!1}cancelSurvey(){this.modal.verification(t=>{t.data&&(this.allQuestionsList.settings.status="concept",this.allQuestionsList.settings.startdate="",this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)),this.functions.httpsCallable("cancelFutureSurvey",{organisation_id:this.organisation_id,survey_id:this.survey_id}).pipe((0,g.q)(1)).subscribe(),this.toast.show(this.translate.instant("survey_btn_cancel_success")))},this.translate.instant("survey_btn_cancel_verification"))}closeSurvey(){var t,e;if("active"!=this.allQuestionsList.settings.status)return;(null===(t=this.allQuestionsList.settings.messages)||void 0===t?void 0:t.close)||!(null===(e=this.allQuestionsList.settings)||void 0===e?void 0:e.emailClose)?this.modal.verification(t=>(0,l.mG)(this,void 0,void 0,function*(){if(null==t?void 0:t.data){let t=this.allQuestionsList.settings.timestamp,e=this.allQuestionsList.settings.sender_name||this.auth.userInfo.displayName,i=this.allQuestionsList.settings.sender_email||this.auth.userInfo.email,s={organisation_id:this.organisation_id,timestamp:t,free:!0,message:this.allQuestionsList.settings.messages.close||"",teamList:this.allQuestionsList.settings.teams,teams:this.allQuestionsList.settings.teams,sender:e||"",sender_email:i||"",release:!0,survey_id:this.survey_id,enddate:u().format("YYYY-MM-DD")};console.log(s),this.toast.showLoader(),yield this.functions.httpsCallable("closeSurveyOrganisation",s).toPromise(),this.allQuestionsList.settings.status="closed",this.allQuestionsList.settings.enddate=u().format("YYYY-MM-DD"),this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.firestore.setSub("organisations",this.organisation_id,"surveys",this.survey_id,this.allQuestionsList),this.allQuestionsListOrig=JSON.parse(JSON.stringify(this.allQuestionsList)),this.toast.hideLoader(),this.allQuestionsList.settings.emailClose?this.toast.show(this.translate.instant("survey_edit_closed_for_all"),4e3,"middle"):this.toast.show(this.translate.instant("survey_edit_closed_for_all_no_message"),4e3,"middle")}}),this.allQuestionsList.settings.emailClose?this.translate.instant("survey_edit_close_verification"):this.translate.instant("survey_edit_close_verification_no_message"),null,this.translate.instant("survey_edit_close_title")):this.writeFirst("close")}addOptions(t,e,i){i?(this.questionNew[0].options||(this.questionNew[0].options=[]),this.questionNew[0].options.push({value:this.newOption,selected:!1}),this.newOption=""):(this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].options||(this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].options=[]),this.allQuestionsList[this.allQuestionsList.settings.order[e]][t].options.push({value:this.newOption,selected:!1}),this.newOption="",this.update())}removeOptions(t,e,i,s){s?this.questionNew[0].options.splice(e,1):(this.allQuestionsList[this.allQuestionsList.settings.order[i]][t].options.splice(e,1),this.update())}showStatusOpenSurveys(t){var e,i;if(t&&t.stopPropagation(),this.teamStatusListAllShowingScorePerc=0,this.teamStatusList=[],!(null===(i=null===(e=this.allQuestionsList)||void 0===e?void 0:e.settings)||void 0===i?void 0:i.teams))return;let s=this.functions.httpsCallable("getStatusPlannedSurveys",{organisation_id:this.organisation_id,timestamp:this.allQuestionsList.settings.timestamp,survey_id:this.survey_id}).subscribe(t=>{this.teamStatusList=[];let e=0,i=0;for(let s of this.allQuestionsList.settings.teams){let n=JSON.parse(JSON.stringify(s));n.open=[],n.closed=[],200==(null==t?void 0:t.status)&&t.result[n.id]?(n.open=t.result[n.id].open,n.closed=t.result[n.id].closed,i+=n.closed.length,(null==n.members||n.members>n.open.length+n.closed.length&&n.open.length)&&(n.members=n.open.length+n.closed.length),e+=n.members,n.showingScore=n.members?n.closed.length/n.members:0,n.showingScore>1&&(n.showingScore=1),n.showingScorePerc=Math.round(100*n.showingScore)):(e+=n.members||0,console.log(e)),this.teamStatusList.push(n)}setTimeout(()=>{console.log(i,e),this.teamStatusListAllShowingScorePerc=e?Math.round(i/e*100):0}
1,1e3),s.unsubscribe()})}showDetailsStatusScan(t){let e="<ul>";for(let n in t.open)e=e+"<li>"+t.open[n].email+"</li>";e+="</ul>","<ul></ul>"==e&&(e='<p style="padding-left:30px">'+this.translate.instant("survey_all_filled")+"</p>");let i="<ul>";for(let n in t.closed)i=i+"<li>"+t.closed[n].email+"</li>";i+="</ul>","<ul></ul>"==i&&(i='<p style="padding-left:30px">'+this.translate.instant("survey_none_filled")+"</p>");let s="\n    <h3 font-title>"+this.translate.instant("survey_open_title")+"</h3>\n      "+e+"\n      <h3 font-title>"+this.translate.instant("survey_closed_title")+"</h3>\n      "+i;this.modal.showText(s,this.translate.instant("survey_progress_team_title")+" "+t.name)}showDashboard(){this.nav.go("survey-dashboard/"+this.organisation_id+"/"+this.survey_id)}clearTest(){var t,e;this.firestore.get("plannedSurveys").subscribe(t=>{for(let e in t){let i=t[e].payload.doc.id;this.firestore.delete("plannedSurveys",i)}}),this.firestore.get("surveys").subscribe(t=>{for(let e in t){let i=t[e].payload.doc.id;this.firestore.delete("surveys",i)}});for(let s of null===(e=null===(t=this.allQuestionsList)||void 0===t?void 0:t.settings)||void 0===e?void 0:e.teams)this.firestore.getSub("teams",s.id,"combinedSurveys").subscribe(t=>{for(let e in t){let i=t[e].payload.doc.id;this.firestore.deleteSub("teams",s.id,"combinedSurveys",i)}});this.firestore.get("activeSurveys").subscribe(t=>{for(let e in t){let i=t[e].payload.doc.id;this.firestore.delete("activeSurveys",i)}});let i=JSON.parse(JSON.stringify(this.allQuestionsList.settings));i.status="concept",this.firestore.updateSub("organisations",this.organisation_id,"surveys",this.survey_id,{settings:i})}showListSurveys(t,e){let i=[];if(this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","concept").length>0){i.push({title:this.translate.instant("survey_concept"),header:"true"});for(let t of this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","concept"))i.push({title:t.settings.name,value:t.id,valueOnly:!0})}if(this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","active").length>0){i.push({title:this.translate.instant("survey_active"),header:"true"});for(let t of this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","active"))i.push({title:t.settings.name,value:t.id,valueOnly:!0})}if(this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","closed").length>0){let t=[],e=[],s=u().subtract(90,"days").format("YYYY-MM-DD");for(let i of this.filterKeyPipe.transform(this.auth.getOrgInfo(this.organisation_id).surveys,"settings.status","closed"))i.settings.enddate&&i.settings.enddate>=s?t.push(i):e.push(i);if(t.length>0){i.push({title:this.translate.instant("survey_closed_recent"),header:"true"});for(let e of t)i.push({title:e.settings.name,value:e.id})}if(e.length>0){i.push({title:this.translate.instant("survey_closed_older"),header:"true",subList:[],showIcon:!0});for(let t of e)i[i.length-1].subList.push({title:t.settings.name,value:t.id})}}this.toast.showPopoverMenu(t,i,t=>{(null==t?void 0:t.data)&&(t.data.value&&e?this.createSurvey("copy",t.data.value):t.data.value&&this.nav.go("edit-survey/"+this.organisation_id+"/"+t.data.value+"/"+u().format("YYYYMMDDHHmmss")))})}writeFirst(t){setTimeout(()=>{this.toast.show(this.translate.instant("page_my_account_warning_write_msg"),6e3,"middle")},300),this.editEmail(t)}reminder(){var t,e,i;(null===(i=null===(e=null===(t=this.allQuestionsList)||void 0===t?void 0:t.settings)||void 0===e?void 0:e.messages)||void 0===i?void 0:i.reminder)?this.modal.verification(t=>{var e,i,s;if(null==t?void 0:t.data){let t=[];for(let e=0;e<this.allQuestionsList.settings.teams.length;e++)t.push(this.allQuestionsList.settings.teams[e].id);this.toast.showLoader();let n=this.allQuestionsList.settings.sender_name,o=this.allQuestionsList.settings.sender_email;n||(n=this.auth.userInfo.displayName,o=this.auth.userInfo.email),this.functions.httpsCallable("sendReminderSurveyOrganisation",{organisation_id:this.organisation_id,survey_id:this.survey_id,reminder:null===(s=null===(i=null===(e=this.allQuestionsList)||void 0===e?void 0:e.settings)||void 0===i?void 0:i.messages)||void 0===s?void 0:s.reminder,teamList:t,sender:n,sender_email:o}).subscribe(t=>{this.toast.hideLoader(),this.toast.show(this.translate.instant("page_my_account_msg_reminder_ready"),4e3,"middle")})}},this.translate.instant("page_my_account_warning_send_reminder"),null,"Reminder"):this.writeFirst("reminder")}editMinAnswers(){this.modal.inputFields(this.translate.instant("btn_edit"),this.translate.instant("survey_min_answers_text"),[{value:this.allQuestionsList.settings.minAnswers||3,title:this.translate.instant("survey_min_answers_field"),type:"number",min:3,required:!0}],t=>{t.data&&t.data[0].value&&(("number"!=typeof t.data[0].value||t.data[0].value<3)&&(t.data[0].value=3),this.allQuestionsList.settings.minAnswers=t.data[0].value,this.allQuestionsList=JSON.parse(JSON.stringify(this.allQuestionsList)),this.update())})}}Ii.\u0275fac=function(t){return new(t||Ii)(d.Y36(h.e),d.Y36(p.sK),d.Y36(m.t),d.Y36(f.j),d.Y36(a.gz),d.Y36(_.C),d.Y36(x.k),d.Y36(Z.Z),d.Y36(v.$),d.Y36(w.y),d.Y36(y.W),d.Y36(Q.g),d.Y36(T.m),d.Y36(b))},Ii.\u0275cmp=d.Xpm({type:Ii,selectors:[["app-survey-ess"]],decls:2,vars:1,consts:[[4,"ngIf"],["flex","","center-ver","","center-hor","",1,"fullHeader","fullHeaderSm",2,"background","var(--ion-color-secondary)","border-bottom-left-radius","75px"],[2,"max-width","1350px","width","100%","padding","20px","text-align","left","z-index","2"],[2,"display","inline-block"],[2,"font-size","48px"],[1,"parallax-layer",2,"z-index","1","left","60%","top","35%"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 50 50"],["fill","",1,"nc-icon-wrapper"],["cx","25","cy","25","r","25"],[1,"header-overlay"],["flex","","center-hor","",2,"width","100%"],["relative","",2,"max-width","1350px","width","100%","padding","20px"],["align-left",""],[2,"margin-top","25px"],[3,"size"],[1,"toolbox-title"],[1,"subtitle-top"],[1,"title"],["class","filterCol",3,"size",4,"ngIf"],["size","2",4,"ngIf"],["size","12",4,"ngIf"],[3,"size",4,"ngIf"],["size","6",4,"ngIf"],[1,"filterCol",3,"size"],["flex","","flex-column","","fullheight",""],[1,"spacer"],["class","filterTitle filterTitleBlank","
1style","margin-bottom:15px","flex","","center-ver","",3,"click",4,"ngIf"],["flex","","center-ver","",1,"filterTitle","filterTitleBlank",2,"margin-bottom","15px",3,"click"],[3,"icon"],["flex","","center-ver","",1,"filterTitle",3,"click"],[3,"icon","ngStyle"],["size","2"],["align-right",""],["src","https://www.teamsupporter.nl/wp-content/uploads/2022/11/grid-dot.png"],["relative","","flex","","center-ver","","center-hor","",1,"filterTitle",3,"click"],["class","overlay","style","height:100%;border-radius: 16px;",4,"ngIf"],["style","margin-right:5px",4,"ngIf"],[1,"overlay",2,"height","100%","border-radius","16px"],[2,"margin-right","5px"],["flex","","center-ver","","center-hor","",1,"filterTitle",3,"click"],[2,"margin-left","10px"],["size","12"],[2,"font-size","22px","margin","15px","margin-top","0"],["font-title","","flex","","center-ver","",2,"padding","0 15px"],["size22","","weight700",""],["medium-color",""],["color","primary","fill","outline","style","margin-right:20px","size","small",3,"click",4,"ngIf"],["noPadding","","transitionFlow",""],["cdkDropList","",3,"cdkDropListData","cdkDropListDisabled","cdkDropListDropped"],["cdkDropListGroup","","cdkDragHandle",""],["cdkDropList","","class","enqueteList","cdkDrag","",3,"cdkDropListData","cdkDropListDisabled","ngStyle","id","cdkDropListDropped",4,"ngFor","ngForOf"],["color","primary","fill","outline","size","small",2,"margin-right","20px",3,"click"],[2,"margin-left","10px",3,"icon"],["cdkDropList","","cdkDrag","",1,"enqueteList",3,"cdkDropListData","cdkDropListDisabled","ngStyle","id","cdkDropListDropped"],["cdkDragHandle","","flex","","center0-ver","",1,"enqueteHeader"],["headerCat",""],["titleMemo","",4,"ngIf"],["fill","clear","size20","","color","dark","size","small",3,"click",4,"ngIf"],["fill","clear","size20","","color","danger","size","small",3,"click",4,"ngIf"],["fill","clear","size20","","color","dark","size","small",3,"click"],[3,"icon",4,"ngIf"],["titleMemo",""],["fill","clear","size20","","color","danger","size","small",3,"click"],["class","newQuestion",4,"ngFor","ngForOf"],[1,"newQuestion"],["position","stacked"],["type","text",3,"ngModel","ngModelChange"],["value","text"],["value","scale-5"],["value","scale-7"],["value","scale-10"],["value","slider"],["value","options"],["style","padding:15px;padding-bottom:5px",4,"ngIf"],["style","--padding-start:0;--inner-padding-start:15px","flex","","center-ver","",4,"ngIf"],[2,"border-bottom","solid 1px rgba(0,0,0,0.1)","padding","15px"],["flex","","center-ver","",2,"justify-content","left"],["type","text",2,"margin-right","10px",3,"placeholder","ngModel","ngModelChange","keyup.enter"],["color","secondary","size","small",1,"headerBtn",3,"disabled","click"],["class","tagsList",4,"ngIf"],["lines","none"],["color","tertiary",1,"headerBtn",3,"disabled","click"],["value",""],["value","1-5",4,"ngIf"],["value","1-7",4,"ngIf"],["value","1-10",4,"ngIf"],["value","1-100",4,"ngIf"],["value","agree"],["value","positivity"],["value","1-5"],["value","1-7"],["value","1-10"],["value","1-100"],[2,"padding","15px","padding-bottom","5px"],["size","4",4,"ngFor","ngForOf"],["size","4"],[1,"option"],["pointer","","slot","end","name","close-circle",3,"click"],["flex","","center-ver","",2,"--padding-start","0","--inner-padding-start","15px"],["color","secondary",2,"margin-right","10px",3,"ngModel","ngModelChange"],[1,"tagsList"],["class","tag",4,"ngFor","ngForOf"],[1,"tag"],["name","close-circle",3,"click"],["cdkDrag","","class","enqueteItem",4,"ngFor","ngForOf"],["cdkDrag","",1,"enqueteItem"],["flex","","center-ver","",2,"padding","15px 20px"],[1,"tagsList",2,"margin-right","10px"],[2,"margin-right","40px"],["name","chevron-down","style","z-index: 2; position: absolute;right: 15px;font-size: 28px;cursor: pointer;",3,"click",4,"ngIf"],["name","chevron-up","style","z-index: 2; position: absolute;right: 15px;font-size: 28px;cursor: pointer;",3,"click",4,"ngIf"],["name","chevron-down",2,"z-index","2","position","absolute","right","15px","font-size","28px","cursor","pointer",3,"click"],["name","chevron-up",2,"z-index","2","position","absolute","right","15px","font-size","28px","cursor","pointer",3,"click"],[3,"disabled"],[3,"disabled",4,"ngIf"],["style","padding:15px;",4,"ngIf"],["type","text",2,"margin-right","10px",3,"ngModel","ngModelChange","keyup.enter","onblur"],["color","secondary","size","small","class","headerBtn",3,"click",4,"ngIf"],["flex",""],["class","headerBtn","size","small","color","danger",3,"disabled","click",4,"ngIf"],[2,"padding","15px"],["style","--padding-start:0;--inner-padding-start:15px","flex","","center-ver","",3,"disabled",4,"ngIf"],["flex","","center-ver","",2,"--padding-start","0","--inner-padding-start","15px",3,"disabled"],["color","secondary",2,"margin-right","10px",3,"ngModel","ngModelChange","ionChange"],["color","secondary","size","small",1,"headerBtn",3,"click"],["size","small","color","danger",1,"headerBtn",3,"disabled","click"],["noMargin","",2,"font-size","22px","text-align","left!important","padding","20px"],["style","margin-bottom:20px;",3,"size",4,"ngFor","ngForOf"],[2,"margin-bottom","20px",3,"size"],["flex","","flex-column","",1,"card","selectionCard",2,"height","100%"],["marginTopBasic",""],[2,"padding-left","10px"],["flex","","center-ver","","fullwidth",""],["expand","block",3,"click"],[1,"card","selectionCard"],["noPadding",""],["position","floating"],[3,"ngModel","ngModelChange"],["expand","block","color","secondary",3,"disabled","click"],["size","6"],["class","card",4,"ngIf"],[1,"card",2,"height","auto",3,"ngStyle"],["flex","","center-ver","","fullWidth",""],["slot","icon-only","fill","clear",3,"click",4,"ngIf"],["noMargin","",2,"font-size","22px","text-align","left!important"],["slot","icon-only","fill","clear",3,"tooltip",4,"ngIf"],["slot","icon-only","fill","clear",3,"tooltip","click"],["text-color","","size20","","weight600","",3,"icon"],["text-color","","size20","","weight600","",3,"icon",4,"ngIf"],["fullwidth","",2,"border-bottom","solid 1px rgba(0,0,0,0.2)","position","relative","margin","20p
1x 0","transition","all 0.2s ease",3,"ngStyle"],["size","12","noPadding","",2,"transition","all 1s ease-in-out","height","auto",3,"ngStyle"],["fullwidth","",2,"padding","0"],["class","teamItem","flex","","center-ver","","fullwidth","",4,"ngFor","ngForOf"],[1,"card"],["noMargin","","style","font-size:22px;text-align:left!important",4,"ngIf"],["btnNormal","","color","tertiary",3,"disabled","click",4,"ngIf"],["slot","icon-only","btnNormal","","color","secondary",3,"tooltip","click",4,"ngIf"],["slot","icon-only","fill","clear",3,"tooltip","click",4,"ngIf"],[2,"padding-top","0"],["style","text-align:center;padding:40px 0px;font-size:16px",4,"ngIf"],["flex","","center-ver","","fullwidth","",4,"ngIf"],["style","padding-top:30px",4,"ngIf"],[2,"font-size","0.75em"],["style","color:var(--ion-color-danger);font-size:0.75em",4,"ngIf"],[2,"color","var(--ion-color-danger)","font-size","0.75em"],["btnNormal","","color","tertiary",3,"disabled","click"],["slot","icon-only","btnNormal","","color","secondary",3,"tooltip","click"],[2,"text-align","center","padding","40px 0px","font-size","16px"],["fill","outline","btnLarge","","color","secondary",3,"click"],["color","tertiary","btnLarge","",3,"click"],["hidden","","type","file",3,"change"],["file",""],[2,"padding-top","30px"],["class","teamItem",3,"ngClass",4,"ngFor","ngForOf"],[1,"teamItem",3,"ngClass"],["font-title","","weight500",""],["pointer","","class","smallNote",3,"click",4,"ngIf"],[2,"margin-right","10px"],["pointer","",3,"icon","tooltip","click",4,"ngIf"],["style","padding:10px 20px",4,"ngIf"],["pointer","",1,"smallNote",3,"click"],[2,"margin-left","5px",3,"icon"],["pointer","",3,"icon","tooltip","click"],[2,"padding","10px 20px"],["style","margin-bottom:5px",4,"ngFor","ngForOf"],[2,"margin-bottom","5px"],["style","margin-right: 10px;",3,"icon","click",4,"ngIf"],["style","margin-right: 10px;color:var(--ion-color-secondary)",3,"icon","click",4,"ngIf"],[3,"ngClass"],["style","margin-left:5px;font-style: italic;color:var(--ion-color-secondary);font-size: 0.8em;",4,"ngIf"],[2,"margin-right","10px",3,"icon","click"],[2,"margin-right","10px","color","var(--ion-color-secondary)",3,"icon","click"],[2,"margin-left","5px","font-style","italic","color","var(--ion-color-secondary)","font-size","0.8em"],["slot","icon-only","fill","clear",3,"click"],["text-color","","size20","","weight600","","disabled","","color","dark",3,"ngModel"],["slot","icon-only","fill","clear",3,"tooltip"],["text-color-warning","","size20","","weight600","",3,"icon"],["flex","","center-ver","","fullwidth","",1,"teamItem"],["text-color","","size20","","weight600","","color","dark","style","margin-right:10px;",3,"ngModel","ngModelChange",4,"ngIf"],["font-title",""],["pointer","",3,"icon","click"],["text-color","","size20","","weight600","","color","dark",2,"margin-right","10px",3,"ngModel","ngModelChange"],["style","margin-top:20px;",4,"ngIf"],[2,"margin-top","20px"],["relative",""],["color","secondary","size","small","style","margin-right:20px",3,"click",4,"ngIf"],["fill","clear","color","dark","size","small",3,"click"],["size20","",3,"icon"],["fill","clear","color","danger","size","small",3,"click",4,"ngIf"],["flex","","center-ver","",1,"card","selectionCard",2,"height","80px","padding","20px"],["font-title","","flex","","center-ver","","fullwidth",""],["size20","","weight700","","flex","","center-ver",""],["size20","","weight700",""],["size16","","style","margin-left:10px","warning-color","",4,"ngIf"],["size16","","style","margin-left:10px","success-color","",4,"ngIf"],["size16","","style","margin-left:10px","text-color-tertiary","",4,"ngIf"],["size16","","style","margin-left:10px","medium-color","",4,"ngIf"],["color","danger","noMargin","","size","small",3,"click",4,"ngIf"],["class","card selectionCard",3,"ngStyle",4,"ngIf"],[1,"card","selectionCard",3,"ngStyle"],["font-title","","flex","","center-ver","",3,"click"],["color","danger","fill","clear","style","margin-right:10px","size","small",3,"click",4,"ngIf"],["color","warning","fill","clear","style","margin-right:10px","size","small",3,"tooltip",4,"ngIf"],["color","dark","fill","clear","style","margin-right:20px","size","small",3,"click",4,"ngIf"],["pointer","","size20","",3,"icon","ngStyle"],["style","padding: 10px 0px;",4,"ngIf"],["class","inactiveCard",4,"ngIf"],["size20","","weight700","",2,"margin-right","20px"],["class","bar","pointer","","style","max-width:calc(100% - 200px)",4,"ngIf"],["class","progressPerc","style","margin:0px 10px;",4,"ngIf"],["pointer","","style","margin-right:10px;","size18","",3,"icon","click",4,"ngIf"],["style","padding-top:20px;",4,"ngIf"],["medium-color","",4,"ngIf"],["pointer","","marginRightBasic","","style","color:var(--ion-color-danger)","size20","",3,"icon","click",4,"ngIf"],["color","secondary","size","small",2,"margin-right","20px",3,"click"],["fill","clear","color","danger","size","small",3,"click"],["size16","","warning-color","",2,"margin-left","10px"],["size16","","success-color","",2,"margin-left","10px"],["size16","","text-color-tertiary","",2,"margin-left","10px"],["size16","","medium-color","",2,"margin-left","10px"],["color","danger","noMargin","","size","small",3,"click"],["font-title","","flex","","center-ver",""],["size20","","weight700","","marginRightBasic",""],["size20","","weight700","",2,"margin","0 5px"],["color","danger","fill","clear","size","small",2,"margin-right","10px",3,"click"],["color","warning","fill","clear","size","small",2,"margin-right","10px",3,"tooltip"],["color","dark","fill","clear","size","small",2,"margin-right","20px",3,"click"],[4,"ngFor","ngForOf"],["italic","",4,"ngIf"],["name","close-circle",3,"click",4,"ngIf"],["italic",""],[2,"padding","10px 0px"],[1,"ion-text-wrap"],["pointer","","slot","end",1,"surveySett
1ingInput",3,"click"],["color","secondary",3,"ngModel","ngModelChange","ionChange"],["color","secondary",2,"margin-left","10px","margin-right","20px",3,"ngModel","ngModelChange","ionChange"],[1,"inactiveCard"],["pointer","",1,"bar",2,"max-width","calc(100% - 200px)"],[1,"barProgress",3,"ngStyle"],[1,"progressPerc",2,"margin","0px 10px"],["pointer","","size18","",2,"margin-right","10px",3,"icon","click"],[2,"padding-top","20px"],["flex","","center-ver","","style","padding-bottom:20px",4,"ngFor","ngForOf"],["flex","","center-ver","",2,"padding-bottom","20px"],["size18","","weight600","",1,"progressTeam",3,"title"],["pointer","",1,"bar"],[1,"progressPerc"],[1,"card","selectionCard",2,"font-size","14px",3,"click"],["size18","","weight600",""],["medium-color","",3,"innerHTML",4,"ngIf"],["warning-color","",4,"ngIf"],["medium-color","",3,"innerHTML"],["warning-color",""],["pointer","","marginRightBasic","","size20","",2,"color","var(--ion-color-danger)",3,"icon","click"],[1,"card","selectionCard",3,"click"],["bold",""],["style","background:var(--ion-color-secondary);height:auto","class","card ad",4,"ngIf"],[1,"card","ad",2,"background","var(--ion-color-secondary)","height","auto"],["class","overlay","style","height:100%",4,"ngIf"],["flex","","center-ver","",2,"margin-bottom","10px","margin-left","5px"],[2,"text-align","left!important","color","var(--ion-color-secondary-contrast)"],["relative","",1,"card",2,"z-index","2","background","none","padding","0","margin","0"],["relative","","flex-column","","pointer","","button","",1,"card",2,"margin-bottom","10px","padding","20px",3,"click"],["class","overlay",4,"ngIf"],[1,"buttonImgIcon",2,"color","var(--color)",3,"icon"],["flex","","center-ver",""],[1,"text",2,"font-weight","bold"],["button","","noMargin","","relative","","flex","","center-ver","",1,"card",2,"z-index","2","font-weight","600","margin","0px 0px 30px 0px",3,"ngStyle","click"],[1,"buttonImgIcon",2,"color","var(--color)","margin-right","10px","font-size","16px",3,"icon"],["style","font-weight:bold;",4,"ngIf"],["flex-column","","pointer","","button","",1,"card",2,"margin-bottom","10px","padding","20px",3,"click"],["button","","relative","","flex","","center-ver","",1,"card",2,"z-index","2","font-weight","600","margin","0px 0px 30px 0px",3,"click"],["class","text","style","font-weight:bold;",4,"ngIf"],[1,"parallax-layer",2,"z-index","1","left","60%","top","55%"],[1,"overlay",2,"height","100%"],[1,"overlay"],[2,"font-weight","bold"]],template:function(t,e){1&t&&(d._UZ(0,"app-header"),d.YNc(1,Ni,39,21,"ion-content",0)),2&t&&(d.xp6(1),d.Q6J("ngIf",e.auth&&e.auth.userInfo))},directives:[A.G,s.O5,o.W2,o.jY,o.Nd,o.wI,S.BN,s.PC,o.Q$,r.Wj,r.Fd,r.Bh,s.sg,o.YG,r.Zt,o.PM,o.FN,o.Ie,o.pK,o.j9,n.JJ,n.On,o.t9,o.QI,o.n0,o.gu,o.nz,o.w,o.Zi,o.Dq,O.i,s.mk,o.hM,o.ho],pipes:[p.X$,y.W,q.u,s.Nd],styles:[".selectionCard[_ngcontent-%COMP%]{border-radius:10px;box-shadow:0 0 30px 20px #6375b50f;transition:all .3s;cursor:pointer;height:auto;max-height:800px;padding:20px}.teamItem[_ngcontent-%COMP%]{width:100%;margin:5px 0;padding:15px;border-radius:10px;justify-content:flex-start;text-align:left;border:solid 2px var(--ion-color-secondary)}.teamItem[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{font-weight:600;font-size:18px}[font-title][_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{transition:all .3s}.separationLine[_ngcontent-%COMP%]{border-top:1px solid var(--ion-color-secondary);margin:20px 0}.tag[_ngcontent-%COMP%]{padding:2px 10px;display:flex;align-items:center;background:var(--ion-color-tertiary);border-radius:10px;margin-right:10px;margin-bottom:10px;text-transform:uppercase;font-size:10px}.tag[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{margin-left:10px;font-size:1em;cursor:pointer}.tagsList[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin:10px}.enqueteHeader[_ngcontent-%COMP%]{align-items:center;font-weight:bold;text-transform:uppercase;font-size:18px;padding:20px 15px;margin-top:0;width:100%;background:white;border-radius:10px}.enqueteHeader[_ngcontent-%COMP%]   [headerCat][_ngcontent-%COMP%]{font-weight:600;margin-right:10px}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0;height:80px}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.enqueteList.cdk-drop-list-dragging[_ngcontent-%COMP%]   .enqueteItem[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.enqueteItem[_ngcontent-%COMP%]{background-color:#fff;cursor:move;margin:20px;border-radius:10px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px}.enqueteItem[_ngcontent-%COMP%]   ion-card-title[_ngcontent-%COMP%]{font-size:16px}.enqueteList[_ngcontent-%COMP%]{padding-bottom:10px;background-color:#00000008;margin:20px 0;border-radius:10px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px}.newQuestion[_ngcontent-%COMP%]{margin:20px;border:solid 2px var(--ion-color-secondary)}[titleMemo][_ngcontent-%COMP%]{font-size:.8em;color:var(--ion-color-medium);text-transform:lowercase}.inactiveCard[_ngcontent-%COMP%]{opacity:.5;pointer-events:none;position:absolute;width:100%;height:100%;background:white;z-index:3;border-radius:10px;top:0;left:0}.option[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px;border:1px solid var(--ion-color-secondary);border-radius:5px;overflow-wrap:anywhere}.option[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:20px;width:35px}.progressPerc[_ngcontent-%COMP%]{font-size:1.2em;text-transform:lowercase;width:80px;min-width:50px;text-align:right}
1.progressTeam[_ngcontent-%COMP%]{width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;margin-right:20px}.progressTeam[_ngcontent-%COMP%]:hover{width:100%;min-width:400px;max-width:100%}.bar[_ngcontent-%COMP%]{width:100%;height:20px;background:rgba(0,0,0,.1);border-top-right-radius:2px;border-bottom-right-radius:2px;position:relative}.barProgress[_ngcontent-%COMP%]{height:14px;border-top-right-radius:2px;border-bottom-right-radius:2px;transition:width ease 2s;position:absolute;top:3px;background:var(--ion-color-secondary)}.overlay[_ngcontent-%COMP%]{position:absolute;z-index:3;width:100%;height:calc(100% - 10px);background:rgba(255,255,255,.6);border-radius:20px;cursor:not-allowed;top:0;left:0}.surveySettingInput[_ngcontent-%COMP%]{padding:10px;border:1px solid var(--ion-color-secondary);border-radius:5px;max-width:50px;width:50px;display:flex;justify-content:center;align-items:center;text-align:center;font-weight:600;font-size:20px}"]});const Mi=[{path:"",component:Ii}];class Ci{}Ci.\u0275fac=function(t){return new(t||Ci)},Ci.\u0275mod=d.oAB({type:Ci}),Ci.\u0275inj=d.cJS({imports:[[a.Bz.forChild(Mi)],a.Bz]});var Ui=i(65878),ki=i(35503);class Di{}Di.\u0275fac=function(t){return new(t||Di)},Di.\u0275mod=d.oAB({type:Di}),Di.\u0275inj=d.cJS({imports:[[s.ez,n.u5,o.Pc,Ci,n.UX,S.uH,Ui.K,r._t,p.aw.forChild(),ki.D]]})}}]);

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.