PageSourceSearch

https://tool.teamsupporter.nl/3009-es2015.c284e7c3b0f1ad0e0c53.js

js teamsupporter.nl collected 2026-10-08 16:33:00 UTC 27,856 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkteamsupporter=self.webpackChunkteamsupporter||[]).push([[3009],{13009:function(i,t,n){n.r(t),n.d(t,{EditMailingPageModule:function(){return ai}});var e=n(38583),o=n(3679),s=n(52267),a=n(56137),l=n(97582),c=n(16738),r=n(37716),g=n(29790),p=n(70706),d=n(33372),u=n(53501),m=n(85925),f=n(84465),h=n(54838),x=n(16171),Z=n(34063),T=n(43646),b=n(39577),w=n(82941),A=n(59354);function _(i,t){1&i&&r._UZ(0,"ion-buttons",10)}function q(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-buttons",11),r.TgZ(1,"ion-button",12),r.NdJ("click",function(){return r.CHM(i),r.oxw().getTokens()}),r._UZ(2,"ion-icon",13),r._uU(3," Get tokens Temp!! "),r.qZA(),r.TgZ(4,"ion-button",14),r.NdJ("click",function(){return r.CHM(i),r.oxw().activateSend()}),r._UZ(5,"ion-icon",15),r._uU(6," Verstuur mailings "),r.qZA(),r.TgZ(7,"ion-button",12),r.NdJ("click",function(){return r.CHM(i),r.oxw().addItem()}),r._UZ(8,"ion-icon",16),r._uU(9," Voeg item toe "),r.qZA(),r.qZA()}}function v(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-icon",27),r.NdJ("click",function(){r.CHM(i);const t=r.oxw(2).index;return r.oxw().toggleDetails(t)}),r.qZA()}}function M(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-icon",28),r.NdJ("click",function(){r.CHM(i);const t=r.oxw(2).index;return r.oxw().toggleDetails(t)}),r.qZA()}}function y(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-card-header",20),r.TgZ(1,"div"),r.TgZ(2,"ion-card-title"),r._uU(3),r.qZA(),r.TgZ(4,"ion-card-subtitle",21),r._uU(5),r.qZA(),r.qZA(),r._UZ(6,"span",22),r.TgZ(7,"ion-icon",23),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().$implicit;return r.oxw().addItem(t)}),r.qZA(),r.TgZ(8,"ion-icon",24),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().index;return r.oxw().deleteSetting(t)}),r.qZA(),r.YNc(9,v,1,0,"ion-icon",25),r.YNc(10,M,1,0,"ion-icon",26),r.qZA()}if(2&i){const i=r.oxw(),t=i.$implicit,n=i.index,e=r.oxw();r.xp6(3),r.Oqu(t.title),r.xp6(2),r.Oqu(t.status),r.xp6(4),r.Q6J("ngIf",!e.checkShowDetails(n)),r.xp6(1),r.Q6J("ngIf",e.checkShowDetails(n))}}function J(i,t){if(1&i&&(r.TgZ(0,"ion-select-option",48),r._uU(1),r.qZA()),2&i){const i=t.$implicit;r.Q6J("value",i.value),r.xp6(1),r.Oqu(i.label)}}function C(i,t){if(1&i&&(r.TgZ(0,"ion-select-option",48),r._uU(1),r.qZA()),2&i){const i=t.$implicit;r.Q6J("value",i.value),r.xp6(1),r.Oqu(i.label)}}function k(i,t){if(1&i&&(r.TgZ(0,"ion-select-option",48),r._uU(1),r.qZA()),2&i){const i=t.$implicit;r.Q6J("value",i.value),r.xp6(1),r.Oqu(i.label)}}function N(i,t){if(1&i&&(r.TgZ(0,"ion-select-option",48),r._uU(1),r.qZA()),2&i){const i=t.$implicit;r.Q6J("value",i.id),r.xp6(1),r.Oqu(i.id)}}function U(i,t){if(1&i&&(r.TgZ(0,"ion-col",51),r._UZ(1,"fa-icon",65),r.qZA()),2&i){const i=r.oxw(5);r.xp6(1),r.Q6J("icon",i.icon.get("faUsers"))}}function I(i,t){if(1&i&&(r.TgZ(0,"ion-col",51),r._UZ(1,"fa-icon",66),r.qZA()),2&i){const i=r.oxw(5);r.xp6(1),r.Q6J("icon",i.icon.get("faBuilding"))}}function Q(i,t){if(1&i&&(r.TgZ(0,"ion-col",53),r._uU(1),r.qZA()),2&i){const i=r.oxw().$implicit;r.xp6(1),r.Oqu(i.team_info.name)}}function j(i,t){if(1&i&&(r.TgZ(0,"ion-col",53),r._uU(1),r.qZA()),2&i){const i=r.oxw().$implicit;r.xp6(1),r.Oqu(i.organisation_info.organisation)}}function O(i,t){1&i&&(r.TgZ(0,"span"),r._uU(1,", "),r.qZA())}function L(i,t){if(1&i&&(r.TgZ(0,"span"),r._uU(1),r.YNc(2,O,2,0,"span",19),r.qZA()),2&i){const i=t.$implicit,n=t.last;r.xp6(1),r.Oqu(i.displayName),r.xp6(1),r.Q6J("ngIf",!n)}}function $(i,t){if(1&i&&(r.TgZ(0,"ion-col",54),r.YNc(1,L,3,2,"span",67),r.qZA()),2&i){const i=r.oxw().$implicit;r.xp6(1),r.Q6J("ngForOf",null==i.team_info?null:i.team_info.administratorInfo)}}function z(i,t){1&i&&(r.TgZ(0,"span"),r._uU(1,", "),r.qZA())}function Y(i,t){if(1&i&&(r.TgZ(0,"span"),r._uU(1),r.YNc(2,z,2,0,"span",19),r.qZA()),2&i){const i=t.$implicit,n=t.last;r.xp6(1),r.Oqu(i.displayName),r.xp6(1),r.Q6J("ngIf",!n)}}function D(i,t){if(1&i&&(r.TgZ(0,"ion-col",54),r.YNc(1,Y,3,2,"span",67),r.qZA()),2&i){const i=r.oxw().$implicit;r.xp6(1),r.Q6J("ngForOf",null==i.organisation_info?null:i.organisation_info.administratorInfo)}}function H(i,t){1&i&&(r.TgZ(0,"span"),r._uU(1,"Niet verlengen"),r.qZA())}function S(i,t){1&i&&(r.TgZ(0,"span"),r._uU(1,"Automatisch verlengen"),r.qZA())}function F(i,t){1&i&&(r.TgZ(0,"span"),r._uU(1,"Downgrade"),r.qZA())}function E(i,t){if(1&i&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&i){const i=r.oxw().$implicit,t=r.oxw(3).$implicit,n=r.oxw();r.xp6(1),r.Oqu(n.helpers.showLocalDate(i.start_date_readable,"DD MMMM",t.momentDays))}}function P(i,t){if(1&i&&(r.TgZ(0,"span"),r._uU(1),r.qZA()),2&i){const i=r.oxw().$implicit,t=r.oxw(3).$implicit,n=r.oxw();r.xp6(1),r.Oqu(n.helpers.showLocalDate(i.end_date_readable,"DD MMMM",t.momentDays))}}function B(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-button",68),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().$implicit,n=r.oxw(3).$implicit;return r.oxw().sendMailing(n,t)}),r._UZ(1,"fa-icon",69),r.qZA()}if(2&i){const i=r.oxw(5);r.Q6J("tooltip","Verstuur bericht nu"),r.xp6(1),r.Q6J("icon",i.icon.get("faEnvelope"))}}function V(i,t){if(1&i&&(r.TgZ(0,"ion-button",70),r._UZ(1,"fa-icon",71),r.qZA()),2&i){const i=r.oxw().$implicit,t=r.oxw(3).$implicit,n=r.oxw();
1r.Q6J("tooltip","Dit bericht is verstuurd op "+n.helpers.showLocalDate(n.alreadySend(t,i).timestamp,null,null,!0)),r.xp6(1),r.Q6J("icon",n.icon.get("faPaperPlane"))}}function W(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-button",72),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().$implicit,n=r.oxw(3).$implicit;return r.oxw().reActivateMailing(n,t)}),r._UZ(1,"fa-icon",73),r.qZA()}if(2&i){const i=r.oxw().$implicit,t=r.oxw(3).$implicit,n=r.oxw();r.Q6J("tooltip","Dit bericht is geannuleerd op "+n.helpers.showLocalDate(n.alreadySend(t,i).timestamp,null,null,!0)),r.xp6(1),r.Q6J("icon",n.icon.get("faTimesCircle"))}}function G(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-button",74),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().$implicit,n=r.oxw(3).$implicit;return r.oxw().abortMailing(n,t)}),r._UZ(1,"fa-icon",69),r.qZA()}if(2&i){const i=r.oxw(5);r.Q6J("tooltip","Annuleer het versturen van dit bericht"),r.xp6(1),r.Q6J("icon",i.icon.get("faTimes"))}}function K(i,t){if(1&i&&(r.TgZ(0,"div",57),r.TgZ(1,"ion-row",20),r.YNc(2,U,2,1,"ion-col",58),r.YNc(3,I,2,1,"ion-col",58),r.YNc(4,Q,2,1,"ion-col",59),r.YNc(5,j,2,1,"ion-col",59),r.YNc(6,$,2,1,"ion-col",60),r.YNc(7,D,2,1,"ion-col",60),r.TgZ(8,"ion-col",51),r.TgZ(9,"span"),r._uU(10),r.qZA(),r.qZA(),r.TgZ(11,"ion-col",51),r.TgZ(12,"span"),r._uU(13),r.qZA(),r.qZA(),r.TgZ(14,"ion-col",53),r.YNc(15,H,2,0,"span",19),r.YNc(16,S,2,0,"span",19),r.YNc(17,F,2,0,"span",19),r.qZA(),r.TgZ(18,"ion-col",51),r.YNc(19,E,2,1,"span",19),r.YNc(20,P,2,1,"span",19),r.qZA(),r.TgZ(21,"ion-col",55),r.YNc(22,B,2,2,"ion-button",61),r.YNc(23,V,2,2,"ion-button",62),r.YNc(24,W,2,2,"ion-button",63),r.YNc(25,G,2,2,"ion-button",64),r.qZA(),r.qZA(),r.qZA()),2&i){const i=t.$implicit,n=r.oxw(3).$implicit,e=r.oxw();let o,s;r.xp6(2),r.Q6J("ngIf","teams"==i.parentName),r.xp6(1),r.Q6J("ngIf","organisations"==i.parentName),r.xp6(1),r.Q6J("ngIf",i.team_info),r.xp6(1),r.Q6J("ngIf",i.organisation_info),r.xp6(1),r.Q6J("ngIf",null==i.team_info?null:i.team_info.administratorInfo),r.xp6(1),r.Q6J("ngIf",null==i.organisation_info?null:i.organisation_info.administratorInfo),r.xp6(3),r.Oqu(e.subscriptionTypes[i.subscription_type]),r.xp6(3),r.AsE("",i.start_date_readable," - ",i.end_date_readable,""),r.xp6(2),r.Q6J("ngIf",!i.auto_renew),r.xp6(1),r.Q6J("ngIf",i.auto_renew&&(!i.renewal_type||i.renewal_type==i.subscription_type)),r.xp6(1),r.Q6J("ngIf",i.auto_renew&&i.renewal_type&&i.renewal_type<i.subscription_type),r.xp6(2),r.Q6J("ngIf","subscription_start"==n.momentType),r.xp6(1),r.Q6J("ngIf","subscription_end"==n.momentType),r.xp6(2),r.Q6J("ngIf",!e.alreadySend(n,i)),r.xp6(1),r.Q6J("ngIf","sent"==(null==(o=e.alreadySend(n,i))?null:o.status)),r.x
1p6(1),r.Q6J("ngIf","canceled"==(null==(s=e.alreadySend(n,i))?null:s.status)),r.xp6(1),r.Q6J("ngIf",!e.alreadySend(n,i))}}function X(i,t){if(1&i&&(r.TgZ(0,"ion-col",49),r.TgZ(1,"div",50),r.TgZ(2,"ion-row",20),r.TgZ(3,"ion-col",51),r.TgZ(4,"span",52),r._uU(5,"T/O"),r.qZA(),r.qZA(),r.TgZ(6,"ion-col",53),r.TgZ(7,"span",52),r._uU(8,"Naam"),r.qZA(),r.qZA(),r.TgZ(9,"ion-col",54),r.TgZ(10,"span",52),r._uU(11,"Admin"),r.qZA(),r.qZA(),r.TgZ(12,"ion-col",51),r.TgZ(13,"span",52),r._uU(14,"Type"),r.qZA(),r.qZA(),r.TgZ(15,"ion-col",51),r.TgZ(16,"span",52),r._uU(17,"Periode"),r.qZA(),r.qZA(),r.TgZ(18,"ion-col",53),r.TgZ(19,"span",52),r._uU(20,"Verlengen"),r.qZA(),r.qZA(),r.TgZ(21,"ion-col",51),r.TgZ(22,"span",52),r._uU(23,"Planning"),r.qZA(),r.qZA(),r.TgZ(24,"ion-col",55),r.TgZ(25,"span",52),r._uU(26,"Actie"),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r.YNc(27,K,26,18,"div",56),r.qZA()),2&i){const i=r.oxw(2).$implicit;r.xp6(27),r.Q6J("ngForOf",i.mailings)}}function R(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"ion-card-content"),r.TgZ(1,"ion-grid"),r.TgZ(2,"ion-row"),r.TgZ(3,"ion-col",29),r.TgZ(4,"ion-item",30),r.TgZ(5,"ion-label",31),r._uU(6,"Naam"),r.qZA(),r.TgZ(7,"ion-input",32),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.title=t})("change",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"title")}),r.qZA(),r.qZA(),r.TgZ(8,"ion-item",30),r.TgZ(9,"ion-label",31),r._uU(10,"Onderwerp"),r.qZA(),r.TgZ(11,"ion-input",32),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.subject=t})("change",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"subject")}),r.qZA(),r.qZA(),r.TgZ(12,"ion-item",30),r.TgZ(13,"ion-label",31),r._uU(14,"Status"),r.qZA(),r.TgZ(15,"ion-select",33),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.status=t})("ionChange",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"status")}),r.TgZ(16,"ion-select-option",34),r._uU(17,"Concept"),r.qZA(),r.TgZ(18,"ion-select-option",35),r._uU(19,"Actief"),r.qZA(),r.TgZ(20,"ion-select-option",36),r._uU(21,"Archief"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(22,"ion-item",30),r.TgZ(23,"ion-label",31),r._uU(24,"Ontvangers"),r.qZA(),r.TgZ(25,"ion-select",33),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.receiverType=t})("ionChange",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"receiverType")}),r.YNc(26,J,2,2,"ion-select-option",37),r.qZA(),r.qZA(),r.TgZ(27,"ion-item",30),r.TgZ(28,"ion-label",31),r._uU(29,"Moment"),r.qZA(),r.TgZ(30,"ion-select",33),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.momentType=t})("ionChange",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"momentType")}),r.YNc(31,C,2,2,"ion-select-option",37),r.qZA(),r.qZA(),r.TgZ(32,"ion-item",30),r.TgZ(33,"ion-label",31),r._uU(34,"Specificatie Moment"),r.qZA(),r.TgZ(35,"ion-select",33),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.momentTypeSpecific=t})("ionChange",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"momentTypeSpecific")}),r.YNc(36,k,2,2,"ion-select-option",37),r.qZA(),r.qZA(),r.TgZ(37,"ion-item",30),r.TgZ(38,"ion-label",31),r._uU(39,"Dagen na/voor"),r.qZA(),r.TgZ(40,"ion-input",38),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.momentDays=t})("change",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"momentDays")}),r.qZA(),r.qZA(),r.TgZ(41,"ion-item",30),r.TgZ(42,"ion-label",31),r._uU(43,"Vaste Datum"),r.qZA(),r.TgZ(44,"ion-input",32),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.momentDate=t})("change",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"momentDate")}),r.qZA(),r.qZA(),r.TgZ(45,"ion-item",30),r.TgZ(46,"ion-label",31),r._uU(47,"Template"),r.qZA(),r.TgZ(48,"ion-select",33),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.template=t})("ionChange",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"template")}),r.YNc(49,N,2,2,"ion-select-option",37),r.qZA(),r.qZA(),r.TgZ(50,"ion-item",30),r.TgZ(51,"ion-label",31),r._uU(52,"html content"),r.qZA(),r.TgZ(53,"ion-button",39),r.NdJ("click",function(){r.CHM(i);const t=r.oxw(),n=t.index,e=t.$implicit;return r.oxw().editHtml(n,e.html)}),r._UZ(54,"ion-icon",40),r.qZA(),r.TgZ(55,"ion-textarea",41),r.NdJ("ngModelChange",function(t){r.CHM(i);return r.oxw().$implicit.html=t})("change",function(t){r.CHM(i);const n=r.oxw().index;return r.oxw().change(n,t,"html")}),r.qZA(),r.qZA(),r.qZA(),r.TgZ(56,"ion-col",29),r.TgZ(57,"div",42),r.TgZ(58,"table"),r.TgZ(59,"tr"),r.TgZ(60,"td",43),r._uU(61,"Aan:"),r.qZA(),r.TgZ(62,"td"),r._uU(63),r.qZA(),r.qZA(),r.TgZ(64,"tr"),r.TgZ(65,"td",43),r._uU(66,"Onderwerp:"),r.qZA(),r.TgZ(67,"td"),r._uU(68),r.qZA(),r.qZA(),r.qZA(),r.qZA(),r._UZ(69,"div",44),r.ALo(70,"sanitizeHtml"),r.qZA(),r.qZA(),r.TgZ(71,"ion-row",45),r.TgZ(72,"ion-toolbar"),r.TgZ(73,"ion-buttons",10),r.TgZ(74,"ion-button",46),r.NdJ("click",function(){r.CHM(i);const t=r.oxw().index;return r.oxw().getSubscriptions(t)}),r._uU(75," Toon mailings "),r.qZA(),r.qZA(),r.qZA(),r.YNc(76,X,28,1,"ion-col",47),r.qZA(),r.qZA(),r.qZA()}if(2&i){const i=r.oxw(),t=i.$implicit,n=i.index,e=r.oxw();r.xp6(7),r.Q6J("ngModel",t.title),r.xp6(4),r.Q6J("ngModel",t.subject),r.xp6(4),r.Q6J("ngModel",t.status),r.xp6(10),r.Q6J("ngModel",t.receiverType),r.xp6(1),r.Q6J("ngForOf",e.receiverTypes),r.x
1p6(4),r.Q6J("ngModel",t.momentType),r.xp6(1),r.Q6J("ngForOf",e.momentTypes),r.xp6(4),r.Q6J("ngModel",t.momentTypeSpecific),r.xp6(1),r.Q6J("ngForOf",e.momentTypesSpecific),r.xp6(4),r.Q6J("ngModel",t.momentDays),r.xp6(4),r.Q6J("ngModel",t.momentDate),r.xp6(4),r.Q6J("ngModel",t.template),r.xp6(1),r.Q6J("ngForOf",e.emailTemplates),r.xp6(6),r.Q6J("ngModel",t.html),r.xp6(8),r.Oqu(t.receiverType),r.xp6(5),r.Oqu(t.subject),r.xp6(1),r.Q6J("innerHTML",r.lcZ(70,18,e.mailContent(n)),r.oJD),r.xp6(7),r.Q6J("ngIf",t.mailings)}}function ii(i,t){if(1&i){const i=r.EpF();r.TgZ(0,"div",17),r.NdJ("dblclick",function(){const t=r.CHM(i).index;return r.oxw().toggleDetails(t)}),r.YNc(1,y,11,4,"ion-card-header",18),r.YNc(2,R,77,20,"ion-card-content",19),r.qZA()}if(2&i){const i=t.$implicit,n=t.index,e=r.oxw();r.Q6J("ngClass",i.status),r.xp6(1),r.Q6J("ngIf",i.title),r.xp6(1),r.Q6J("ngIf",e.checkShowDetails(n))}}class ti{constructor(i,t,n,e,o,s,a,l,c){this.translate=i,this.icon=t,this.auth=n,this.nav=e,this.firestore=o,this.toast=s,this.modal=a,this.functions=l,this.helpers=c,this.showDetail
1s=[],this.momentTypes=[{label:"Abonnement - Begindatum",value:"subscription_start"},{label:"Abonnement - Einddatum",value:"subscription_end"},{label:"User - login",value:"user_login"}],this.momentTypesSpecific=[{label:"Abonnement - Wordt automatisch verlengd",value:"subscription_auto_renew"},{label:"Abonnement - Verloopt",value:"subscription_end"},{label:"Abonnement - Wordt gedowngraded",value:"subscription_downgrade"}],this.receiverTypes=[{label:"Alle Admins",value:"admins"},{label:"Organisatie Admins",value:"organisation_admins"},{label:"Team Admins",value:"team_admins"},{label:"Teamleden",value:"team_members"},{label:"Team Coaches",value:"team_coaches"},{label:"Team Supporters",value:"team_supporters"}],this.subscriptionTypes={0:"Persoonlijk",1:"Basis",2:"Plus",3:"Pro"},this.emailTemplates=[],this.settingList=[],this.settingListOrigin=[],this.sendList={},this.sendListArray=[],this.changingCount=0}getTokens(){return(0,l.mG)(this,void 0,void 0,function*(){})}sendMailingInvites(i){i.template="scan_mails",i.subject=i.displayName+", tijd voor de korte scan van "+i.team_name;let t=this.emailTemplates.find(t=>t.id==i.template),n='Beste <displayName>,<br><br>\n      Zoals afgespoken met je team scannen jullie regelmatig de stand van zaken in jullie team <team_name> m.b.t. <onderwerpen>. Vandaag vragen we je weer om de scan in te vullen.<br>\n      Klik op onderstaande link om de scan te starten.<br><br>\n      <div style="display:inline;background:rgb(72,201,255);padding:15px 30px;border-radius:30px;"><a href="<link>" style="color:white;text-decoration:none;text-transform:uppercase;">Start de scan</a></div><br><br>\n      <br><br>\n      Met vriendelijke groet,<br><br>\n      Mark van Team Supporter';n=n.split("[subject]").join("<displayName>, tijd voor de korte scan"),n=n.replace("<onderwerpen>",i.subjects.join(" en ")),n=n.replace("<link>","https://tool.teamsupporter.nl/teamscan/"+i.token),n=n.replace("<team_name>",i.team_name),n=n.replace("<displayName>",i.displayName);let e=t.html.split("[text]").join(n);e=e.split("[subject]").join(i.subject);let o={message:{html:e,subject:i.subject,text:e.split("<br>").join("\n").split("<br/>").join("\n").split("<br />").join("\n").replace(/<[^>]*>/g,"")},to:i.email,from:"Mark van Team Supporter <[email protected]>",bcc:"[email protected]"};this.firestore.set("automated_mailings",i.timestamp+"_"+i.email,o).then(i=>{console.log("set to sent")})}ngOnInit(){this.auth.isAdmin?(this.firestore.get("email_templates").subscribe(i=>{i.forEach(i=>{let t=i.payload.doc.data();t.id=i.payload.doc.id,this.emailTemplates.push(t)}),console.log(this.emailTemplates)}),this.firestore.get("settingsMailings").subscribe(i=>{i.forEach(i=>{let t=i.payload.doc.data();t.id=i.payload.doc.id;let n=this.settingsIndex(t);n>=0?this.settingList[n]=t:this.settingList.push(t)}),console.log(this.settingList),this.settingList=this.settingList.sort((i,t)=>i.title>t.title?1:-1),this.settingListOrigin=JSON.parse(JSON.stringify(this.settingList))}),this.firestore.query("sendMailings","timestamp",c().unix()-864e4,">=").subscribe(i=>{i.forEach(i=>{let t=i.payload.doc.data();t.id=i.payload.doc.id,this.sendList[t.id]=t}),console.log(this.sendList)})):this.nav.go("dashboard")}settingsIndex(i){for(let t=0;t<this.settingList.length;t++)if(this.settingList[t].id==i.id)return t;return-1}
1toggleDetails(i){-1==i&&(this.showDetails=[]);let t=this.showDetails.indexOf(i);t>-1?this.showDetails.splice(t,1):this.showDetails.push(i)}checkShowDetails(i){return-1!=this.showDetails.indexOf(i)}addItem(i){let t={};t=i?JSON.parse(JSON.stringify(i)):{title:"Nieuwe instelling",template:"basic_with_image",momentType:"",momentTypeSpecific:"",receiverType:"",status:"concept",html:"",subject:""},delete t.mailings,delete t.id,this.firestore.create("settingsMailings",t).then(i=>{})}change(i,t,n){var e,o;if(console.log(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.value,this.settingListOrigin[i][n]),(null===(o=null==t?void 0:t.target)||void 0===o?void 0:o.value)&&t.target.value!=this.settingListOrigin[i][n]){if(this.changingCount<2){let t=JSON.parse(JSON.stringify(this.settingList[i]));delete t.mailings,this.firestore.update("settingsMailings",this.settingList[i].id,t).then(i=>{}),this.changingCount++}setTimeout(()=>{this.changingCount=0},1e3)}}editHtml(i,t){console.log(t),this.modal.editHtml({value:t},t=>{var n;null!=(null===(n=t.data)||void 0===n?void 0:n.value)&&(this.settingList[i].html=t.data.value,this.firestore.update("settingsMailings",this.settingList[i].id,this.settingList[i]).then(i=>{}))})}mailContent(i,t,n){let e="";if(n)for(let o=0;o<this.emailTemplates.length;o++)this.emailTemplates[o].id==i.template&&(e=this.emailTemplates[o].html);else for(let o=0;o<this.emailTemplates.length;o++)this.emailTemplates[o].id==this.settingList[i].template&&(e=this.emailTemplates[o].html);return e=e.split("[subject]").join(n?i.subject:this.settingList[i].subject),e=e.split("[text]").join(n?i.html:this.settingList[i].html),t&&(e=e.split("[displayName]").join(t)),e||(e=""),e}getSubscriptions(i){if(!this.settingList[i].momentType)return;let t={momentType:this.settingList[i].momentType,momentTypeSpecific:this.settingList[i].momentTypeSpecific,momentDays:this.settingList[i].momentDays,settingsMailingsId:this.settingList[i].id};console.log(t),this.functions.httpsCallable("getSubscriptions",t).subscribe(t=>{if(console.log(t),200==(null==t?void 0:t.status)){this.settingList[i].mailings=t.result;for(let t in this.settingList[i].mailings)this.settingList[i].mailings[t].sendId=this.settingList[i].id+"_"+this.settingList[i].mailings[t].id}})}sendMailing(i,t){this.modal.verification(n=>{if(console.log(n),null==n?void 0:n.data){let n=[];n=t.organisation_info?t.organisation_info.administratorInfo:t.team_info.administratorInfo;for(let e=0;e<n.length;e++){let o={message:{html:this.mailContent(i,n[e].displayName,!0),subject:i.subject,text:i.html.split("<br>").join("\n").split("<br/>").join("\n").split("<br />").join("\n").replace(/<[^>]*>/g,"").split("[displayName]").join(n[e].displayName?n[e].displayName:"Team Ontwikkelaar")},to:n[e].email,from:"Team Supporter <[email protected]>"};this.firestore.set("automated_mailings",t.id+"_"+i.id,o).then(i=>{console.log("set to sent")}),this.firestore.set("sendMailings",t.id+"_"+i.id,{status:"sent",timestamp:c().unix()}).then(i=>{console.log("set to done")})}}},"Weet je zeker dat je deze mailing nu wilt versturen?")}alreadySend(i,t){if(this.sendList[t.id+"_"+i.id]&&"active"!=this.sendList[t.id+"_"+i.id].status)return this.sendList[t.id+"_"+i.id]}getAdminEmails(i){let t="";for(let n=0;n<i.length;n++)t+=i[n].email+",";return t}abortMailing(i,t){this.modal.verification(n=>{n.data&&this.firestore.set("sendMailings",t.id+"_"+i.id,{status:"canceled",timestamp:c().unix()}).then(i=>{console.log("set to canceled")})},"Weet je zeker dat je deze mailing wilt annuleren?")}reActivateMailing(i,t){this.modal.verification(n=>{n.data&&this.firestore.set("sendMailings",t.id+"_"+i.id,{status:"active",timestamp:c().unix()}).then(i=>{console.log("set to active")})},"Weet je zeker dat je deze mailing alsnog wilt activeren?")}deleteSetting(i){this.modal.verification(t=>{t.data&&this.firestore.delete("settingsMailings",this.settingList[i].id).then(i=>{this.toast.show("Item verwijderd",6e3,"bottom"),window.location.reload()})},"Weet je zeker dat je deze instelling wilt verwijderen?")}activateSend(){this.modal.verification(i=>{i.data&&this.functions.httpsCallable("checkMailings",{}).subscribe(i=>{console.log(i),this.toast.show("Verzending uitgevoerd. De pagina wodt opnieuw geladen",6e3,"bottom")})},"Weet je zeker dat je de verzending wilt starten? Dit betreft alleen de mailings die zijn gepland en nog niet zijn verzonden.")}}ti.\u0275fac=function(i){return new(i||ti)(r.Y36(g.sK),r.Y36(p.j),r.Y36(d.e),r.Y36(u.t),r.Y36(m.C),r.Y36(f.k),r.Y36(h.Z),r.Y36(x.g),r.Y36(Z.$))},ti.\u0275cmp=r.Xpm({type:ti,selectors:[["app-edit-mailing"]],decls:16,vars:3,consts:[["flex","","center-ver","","center-hor","",1,"fullHeader",2,"background","var(--ion-color-secondary)"],[2,"max-width","1350px","width","100%","padding","20px","text-align","left","z-index","2"],[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"],["slot","start",4,"ngIf"],["slot","end",4,"ngIf"],["class","cardItem",3,"ngClass","dblclick",4,"ngFor","ngForOf"],["slot","start"],["slot","end"],["fill","clear",3,"click"],["slot","start","name","refresh"],["fill","solid",3,"click"],["slot","start","name","mail"],["slot","start","name","add"],[1,"cardItem",3,"ngClass","dblclick"],["flex","","center-ver","",4,"ngIf"],[4,"ngIf"],["flex","","center-ver",""],["color","dark"],[1,"spacer"],["name","copy","color","",1,"iconClick",2,"font-size","2em","cursor","pointer","margin-right","20px",3,"click"],["name","trash","color","danger",1,"iconClick",2,"font-size","2em","cursor","pointer","margin-right","20px",3,"click"],["name","chevron-down","class","iconClick","style","font-size: 2em;cursor: pointer;",3,"click",4,"ngIf"],["name","chevron-up","class","iconClick","style","font-size: 2em;cursor: pointer;",3,"click",4,"ngIf"],["name","chevron-down",1,"iconClick",2,"font-size","2em","cursor","pointer",3,"click"],["name","chevron-up",1,"iconClick",2,"font-size","2em","cursor","pointer",3,"click"],["size","12","size-md","6"],[2,"margin-bottom","10px"],["position","stacked"],[3,"ngModel","ngModelChange","change"],[3,"ngModel","ngModelChange","ionChange"],["value","concept"],["value","active"],["value","archive"],[3,"value",4,"ngFor","ngForOf"],["type","number",3,"ngModel","ngModelChange","change"],["color","secondary","fill","clear",1,"btnHtmlEditor",3,"click"],["slot","icon-only","name","code"],["rows","5",3,"ngModel","ngModelChange","change"],[1,"mail_to"],[2,"font-weight","600","width","100px"],[1,"mail_content",3,"innerHTML"],[2,"margin-top","20px"],["color","danger","fill","clear",3,"click"],["size","12","paddingBasic","",4,"ngIf"],[3,"value"],["size","12","paddingBasic",""],["bg-color-secondary","",1,"mailinglistItem"],["size","1"],["weight600",""],["size","2"],["size","3"],["size","1","flex","","center-ver","","center-right",""],["class","mailinglistItem",4,"ngFor","ngForOf"],[1,"mailinglistItem"],["size","1",4,"ngIf"],["size","2",4,"ngIf"],["size","3",4,"ngIf"],["fill","clear","style","margin-right:10px",3,"tooltip","click",4,"ngIf"],["color","success","fill","clear","style","margin-right:10px",3,"tooltip",4,"ngIf"],["color","danger","fill","clear","style","margin-right:10px",3,"tooltip","click",4,"ngIf"],["fill","clear","color","dark",3,"tooltip","click",4,"ngIf"],[2,"color","orange","font-size","28px",3,"icon"],[2,"color","darkblue","font-size","28px",3,"icon"],[4,"ngFor","ngForOf"],["fill","clear",2,"margin-right","10px",3,"tooltip","click"],[3,"icon"],["color","success","fill","clear",2,"margin-right","10px",3,"tooltip"],[2,"color","green",3,"icon"],["color","danger","fill","clear",2,"margin-right","10px",3,"tooltip","click"],[2,"color","red",3,"icon"],["fill","clear","color","dark",3,"tooltip","click"]],template:function(i,t){1&i&&(r._UZ(0,"app-header"),r.TgZ(1,"ion-content"),r.TgZ(2,"div",0),r.TgZ(3,"div",1),r.TgZ(4,"h1"),r._uU(5,"Edit Mailings"),r.qZA(),r.qZA(),r.TgZ(6,"div",2),r.O4$(),r.TgZ(7,"svg",3),r.TgZ(8,"g",4),r._UZ(9,"circle",5),r.qZA(),r.qZA(),r.qZA(),r.kcU(),r._UZ(10,"div",6),r.qZA(),r.TgZ(11,"ion-toolbar"),r.YNc(12,_,1,0,"ion-buttons",7),r.YNc(13,q,10,0,"ion-buttons",8),r.qZA(),r.YNc(14,ii,3,3,"div",9),r._UZ(15,"ion-content"),r.qZA()),2&i&&(r.xp6(12),r.Q6J("ngIf",t.auth.isLoggedIn&&t.auth.isAdmin),r.xp6(1),r.Q6J("ngIf",t.auth.isLoggedIn&&t.auth.isAdmin),r.xp6(1),r.Q6J("ngForOf",t.settingList))},directives:[T.G,s.W2,s.sr,e.O5,e.sg,s.Sm,s.YG,s.gu,e.mk,s.Zi,s.Dq,s.tO,s.FN,s.jY,s.Nd,s.wI,s.Ie,s.Q$,s.pK,s.j9,o.JJ,o.On,s.t9,s.QI,s.n0,s.as,s.g2,b.BN,w.i],pipes:[A.A],styles:[".cardItem[_ngcontent-%COMP%]{cursor:pointer;margin:10px;border-radius:4px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px}ion-badge[_ngcontent-%COMP%]{display:flex;align-items:center;width:25px;height:25px;border-radius:100%;justify-content:center;font-size:14px;top:3px;position:relative;margin-left:5px}.catNote[_ngcontent-%COMP%]{font-size:10px;position:relative;top:5px;background:rgba(0,0,0,.4);border-radius:5px;height:18px;padding:3px 5px;color:#fff;font-weight:700;margin-left:10px}.active[_ngcontent-%COMP%]{background:#d1ffbd}.concept[_ngcontent-%COMP%]{background:#ffbdbd}.archive[_ngcontent-%COMP%]{background:#c2c2c2}.mail_content[_ngcontent-%COMP%]{padding:20px;border-radius:4px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px;background:white}.mail_to[_ngcontent-%COMP%]{padding:20px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px;margin-bottom:10px;background:white;font-size:16px}.mailinglistItem[_ngcontent-%COMP%]{padding:20px;border-radius:4px;box-shadow:#0003 0 3px 1px -2px,#00000024 0 2px 2px,#0000001f 0 1px 5px;background:white;margin-bottom:10px;width:100%}"]});const ni=[{path:"",component:ti}];class ei{}ei.\u0275fac=function(i){return new(i||ei)},ei.\u0275mod=r.oAB({type:ei}),ei.\u0275inj=r.cJS({imports:[[a.Bz.forChild(ni)],a.Bz]});var oi=n(65878),si=n(35503);class ai{}ai.\u0275fac=function(i){return new(i||ai)},ai.\u0275mod=r.oAB({type:ai}),ai.\u0275inj=r.cJS({imports:[[e.ez,o.u5,s.Pc,ei,oi.K,o.UX,b.uH,g.aw.forChild(),si.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.