PageSourceSearch

https://profermer.com/en//616.ce0b6554317a133e.js

js profermer.com collected 2026-10-06 23:52:09 UTC 34,451 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprofermer_web=self.webpackChunkprofermer_web||[]).push([[616],{32616:(Je,O,p)=>{p.r(O),p.d(O,{DictionaryEmailTemplateModule:()=>ke});var s=p(83970),d=p(48322),Y=p(30532),h=p(8929),i=p(95078),u=(()=>{return(a=u||(u={})).common="\u041e\u0431\u0449\u0435\u0435",a.pft="PFT",a.participant="\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438",a.crm_company_partner="CRM \u041a\u043e\u043c\u043f\u0430\u043d\u0438\u0438",a.crm_price_list="\u041f\u0440\u0430\u0439\u0441 \u043b\u0438\u0441\u0442",a.offer="\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f",u;var a})();const b=[{categoryLink:"common",categoryType:u.common,listOfEnteredEmailTemplateType:[i.Vv.ENUM.EmailTemplateType.Type.verification_code,i.Vv.ENUM.EmailTemplateType.Type.send_participant_invitation,i.Vv.ENUM.EmailTemplateType.Type.empty,i.Vv.ENUM.EmailTemplateType.Type.welcome_with_first_registration,i.Vv.ENUM.EmailTemplateType.Type.new_company_workspace_created,i.Vv.ENUM.EmailTemplateType.Type.new_personal_workspace_created,i.Vv.ENUM.EmailTemplateType.Type.feedback_form],listOfEmailTemplatesGroupModel:[]},{categoryLink:"pft",categoryType:u.pft,listOfEnteredEmailTemplateType:[i.Vv.ENUM.EmailTemplateType.Type.pft_dealer_request,i.Vv.ENUM.EmailTemplateType.Type.pft_optimization_request,i.Vv.ENUM.EmailTemplateType.Type.pft_dealer_congratulations,i.Vv.ENUM.EmailTemplateType.Type.pft_project_created,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_project_created,i.Vv.ENUM.EmailTemplateType.Type.pft_project_confirmation,i.Vv.ENUM.EmailTemplateType.Type.pft_project_rejected,i.Vv.ENUM.EmailTemplateType.Type.pft_ori_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_forced_ori_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_forced_ori_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_ori_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_mod_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_mod_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_log_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_log_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_other_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_other_uploaded,i.Vv.ENUM.EmailTemplateType.Type.pft_new_comments,i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_new_comments],listOfEmailTemplatesGroupModel:[]},{categoryLink:"participant",categoryType:u.participant,listOfEnteredEmailTemplateType:[i.Vv.ENUM.EmailTemplateType.Type.participant_invite,i.Vv.ENUM.EmailTemplateType.Type.participant_invite_accept,i.Vv.ENUM.EmailTemplateType.Type.participant_invite_decline],listOfEmailTemplatesGroupModel:[]},{categoryLink:"crm-companies",categoryType:u.crm_company_partner,listOfEnteredEmailTemplateType:[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_to_network,i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite,i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_accept,i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_reject,i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_autoInvite],listOfEmailTemplatesGroupModel:[]},{categoryLink:"price-list",categoryType:u.crm_price_list,listOfEnteredEmailTemplateType:[i.Vv.ENUM.EmailTemplateType.Type.crm_price_list_invite_decline],listOfEmailTemplatesGroupModel:[]}];var e=p(94650),T=p(36895);function P(a,n){if(1&a&&(e.TgZ(0,"li",10)(1,"a",11),e._uU(2),e.qZA()()),2&a){const t=n.$implicit,o=e.oxw();e.xp6(1),e.ekj("active",(null==t?null:t.categoryType)==(null==o.activeCategory?null:o.activeCategory.categoryType)),e.Q6J("routerLink","/email-templates/list/"+t.categoryLink),e.xp6(1),e.hij(" ",t.categoryType," ")}}const W=function(){return["../-1/custom-email"]};let L=(()=>{class a{constructor(){this.destroySubject=new h.xQ,this.listOfEmailTemplateCategory=b}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete()}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["email-template-list-wrapper"]],decls:13,vars:3,consts:[[1,"app-content","app-content--content","app-content--content-column"],[1,"app-content_header"],[1,"app-content_header_title"],[1,"app-content_header_settings"],[1,"btn","btn-dark","btn-md","text-nowrap",3,"routerLink"],[1,"app-content_body","ovf-hidden","d-flex","flex-column","p-0"],[1,"ps-gap-default","pe-gap-default","pt-gap-default"],[1,"tabs","tabs-default"],["class","nav-item",4,"ngFor","ngForOf"],[1,"app-content_body","pt-20","app-content_body--pd","ovf-auto"],[1,"nav-item"],[1,"nav-link",3,"routerLink"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"h6",2),e._uU(3,"E-Mail Templates"),e.qZA(),e.TgZ(4,"div",3)(5,"a",4),e._uU(6," \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 email "),e.qZA()()(),e.TgZ(7,"div",5)(8,"div",6)(9,"ul",7),e.YNc(10,P,3,4,"li",8),e.qZA()(),e.TgZ(11,"div",9),e._UZ(12,"router-outlet"),e.qZA()()()),2&t&&(e.xp6(5),e.Q6J("routerLink",e.DdM(2,W)),e.xp6(
15),e.Q6J("ngForOf",o.listOfEmailTemplateCategory))},dependencies:[T.sg,s.lC,s.yS],encapsulation:2}),a})();var M=p(94202),f=p(7625),U=p(82805);function $(a,n){1&a&&e._UZ(0,"loading-spinner")}function z(a,n){if(1&a&&e._UZ(0,"img",12),2&a){const t=n.$implicit,o=e.oxw().$implicit,l=e.oxw();e.ekj("disabled",!o[t.value]),e.Q6J("src",l.localeIconsUrlTypeMap.get(t.value),e.LSH)}}const H=function(a){return["../../",a]};function X(a,n){if(1&a&&(e.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),e._uU(4),e.qZA()(),e.TgZ(5,"div",7)(6,"div",8),e.YNc(7,z,1,3,"img",9),e.qZA()(),e.TgZ(8,"div",10)(9,"a",11),e._uU(10,"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"),e.qZA()()()()),2&a){const t=n.$implicit,o=e.oxw();e.xp6(4),e.Oqu(o.emailTemplateTypeMap.get(t.type)),e.xp6(3),e.Q6J("ngForOf",o.localeTypeOptions),e.xp6(2),e.Q6J("routerLink",e.VKq(3,H,t.type))}}class K{constructor(n){this.type=n}}let v=(()=>{class a{constructor(t,o,l){this.httpRepository=t,this.route=o,this.destroySubject=new h.xQ,this.isLoading=!1,this.emailTemplateTypeMap=i.Vv.ENUM.EmailTemplateType.TypeMap,this.localeTypeOptions=d.ib.L10n.TypeOptions,this.localeIconsUrlTypeMap=d.ib.L10n.IconsUrlTypeMap,this.listOfEmailTemplateCategory=b,this.route.parent.params.pipe((0,f.R)(this.destroySubject)).subscribe(c=>{this.activeCategory=b.find(_=>_.categoryType==o.snapshot.data.tabType),l.activeCategory=this.activeCategory,this.getData()})}getData(){this.listOfEmailTemplateCategory.forEach(t=>{t.listOfEmailTemplatesGroupModel=[]}),i.Vv.ENUM.EmailTemplateType.TypeOptions.forEach(t=>{const o=new K(+t.value);d.ib.L10n.TypeOptions.forEach(l=>{o[l.value]=!1}),this.listOfEmailTemplateCategory.forEach(l=>{l.listOfEnteredEmailTemplateType.includes(+t.value)&&l.listOfEmailTemplatesGroupModel.push(o)})}),this.httpRepository.v2.dictionaries.email_template.load({take:999,skip:0}).subscribe(t=>{t.list.forEach(o=>{this.listOfEmailTemplateCategory.forEach(l=>{const c=l.listOfEmailTemplatesGroupModel.find(_=>_.type===o.type);c&&(c[o.locale]=!0)})})})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete()}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(M.$o),e.Y36(s.gz),e.Y36(L))},a.\u0275cmp=e.Xpm({type:a,selectors:[["email-template-list"]],decls:3,vars:2,consts:[[4,"ngIf"],[1,"card-list"],["class","card-col",4,"ngFor","ngForOf"],[1,"card-col"],[1,"card-item","card","card-item--email-templates"],[1,"card-item_header"],[1,"card-item_title"],[1,"card-item_desription"],[1,"d-flex","mb-20"],["alt","","width","30","class","me-2",3,"src","disabled",4,"ngFor","ngForOf"],[1,"card-item_footer"],[1,"btn","btn-md","btn-primary",3,"routerLink"],["alt","","width","30",1,"me-2",3,"src"]],template:function(t,o){1&t&&(e.YNc(0,$,1,0,"loading-spinner",0),e.TgZ(1,"div",1),e.YNc(2,X,11,5,"div",2),e.qZA()),2&t&&(e.Q6J("ngIf",o.isLoading),e.xp6(2),e.Q6J("ngForOf",o.activeCategory.listOfEmailTemplatesGroupModel))},dependencies:[T.sg,T.O5,s.yS,U.g],encapsulation:2}),a})();var m=p(84719),C=p(24049),E=p(4970),x=p(15936),ee=p(34202),G=p(92198),Z=p(61709),V=p(72986);const g={subject:[],body:[{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c",value:"initiator_company_name"},{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c",value:"target_company_name"},{label:"\u041f\u0440\u0438\u043d\u044f\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435",value:"invite_link"}]},k=[{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f",value:"company_short-name"},{label:"\u0418\u043c\u044f",value:"member_name"},{label:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",value:"member_first-name"},{label:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0439 \u0422\u0435\u043b\u0435\u0444\u043e\u043d",value:"member_phone"},{label:"E-Mail",value:"member_email"},{label:"\u0421\u0441\u044b\u043b\u043a\u0430",value:"invite_link"}],S={subject:k,body:k},r={subject:[{label:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c/Brand",value:"brand"},{label:"\u041c\u043e\u0434\u0435\u043b\u044c",value:"model_name"},{label:"\u0413\u043e\u0434 \u0432\u044b\u043f\u0443\u0441\u043a\u0430",value:"year_of_construction"},{label:"\u0421\u0435\u0440\u0438\u0439\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440",value:"serial_number"},{label:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043c\u043e\u0442\u043e\u0440\u0430",value:"motor_manufacturer"},{label:"\u041d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u0430\u0448\u0438\u043d\u044b",value:"motor_hours"},{label:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430",value:"name"},{label:"\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u0434\u0430\u0442\u0430",value:"planned_date"},{label:"\u041a\u043b\u0438\u0435\u043d\u0442",value:"client_name"},{label:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0435 \u043b\u0438\u0446\u043e",value:"client_contact_person"},{label:"\u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439",value:"responsible_user"},{label:"\u0414\u0438\u043b\u0435\u0440",value:"implementer_dealer"},{label:"\u0417\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435 \u0443\u0441\u043b\u0443\u0433\u0438",value:"requested_services"}],body:[{label:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c/Brand",value:"brand"},{label:"\u041c\u043e\u0434\u0435\u043b\u044c",value:"model_name"},{label:"\u0413\u043e\u0434 \u0432\u044b\u043f\u0443\u0441\u043a\u0430",value:"year_of_construction"},{label:"\u0421\u0435\u0440\u0438\u0439\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440",value:"serial_number"},{label:"\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043c\u043e\u0442\u043e\u0440\u0430",value:"motor_manufacturer"},{label:"\u041d\u0430\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u0430\u0448\u0438\u043d\u044b",value:"motor_hours"},{label:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430",value:"name"},{label:"\u041f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u0434\u0430\u0442\u0430",value:"planned_date"},{label:"\u041a\u043b\u0438\u0435\u043d\u0442",value:"client_name"},{label:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u043e\u0435 \u043b\u0438\u0446\u043e",value:"client_contact_person"},{label:"\u041e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439",value:"responsible_user"},{label:"\u0414\u0438\u043b\u0435\u0440",value:"implementer_dealer"},{label:"\u0417\u0430\u043f\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u0435 \u0443\u0441\u043b\u0443\u0433\u0438",value:"requested_services"},{label:"\u0418\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0443\u0441\u043b\u0443\u0433\u0438",value:"implemented_services"},{label:"\u041f\u0440\u043e\u0435\u043a\u0442 URL",value:"project_url"}]},oe={subject:r.subject,body:[...r.body,{label:"\u0421\u0441\u044b\u043b\u043a\u0430 \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c/\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c",value:"project_approve_or_reject"}]},w={subject:r.subject,body:r.body},I={subject:r.subject,body:r.body},F={subject:r.subject,body:[...r.body,{label:"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439",value:"comment"}]},J={subject:r.subject,body:r.body},Q={subject:r.subject,body:r.body},re=new Map([[i.Vv.ENUM.EmailTemplateType.Type.verification_code,{subject:[{label:"\u041a\u043e\u0434 \u0412\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438",value:"verification_code"}],body:[{label:"\u041a\u043e\u0434 \u0412\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438",value:"verification_code"}]}],[i.Vv.ENUM.EmailTemplateType.Type.pft_optimization_request,{subject:[],body:[{label:"\u0418\u043c\u044f",value:"first_name"},{label:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",value:"last_name"},{label:"\u0422\u0435\u043b\u0435\u0444\u043e\u043d",value:"phone"},{label:"E-Mail",value:"email"},{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f",value:"company_name"}]}],[i.Vv.ENUM.EmailTemplateType.Type.pft_dealer_request,{subject:[],body:[{label:"\u0418\u043c\u044f",value:"first_name"},{label:"\u0424\u0430\u043c\u0438\u043b\u0438\u044f",value:"last_name"},{label:"\u0422\u0435\u043b\u0435\u0444\u043e\u043d",value:"phone"},{label:"E-Mail",value:"email"},{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f",value:"company_name"}]}],[i.Vv.ENUM.EmailTemplateType.Type.pft_project_created,{subject:r.subject,body:r.body}],[i.Vv.ENUM.EmailTemplateType.Type.pft_project_confirmation,Q],[i.Vv.ENUM.EmailTemplateType.Type.pft_project_rejected,Q],[i.Vv.ENUM.EmailTemplateType.Type.pft_new_comments,F],[i.Vv.ENUM.EmailTemplateType.Type.pft_ori_uploaded,J],[i.Vv.ENUM.EmailTemplateType.Type.pft_mod_uploaded,I],[i.Vv.ENUM.EmailTemplateType.Type.pft_log_uploaded,w],[i.Vv.ENUM.EmailTemplateType.Type.pft_other_uploaded,{subject:r.subject,body:r.body}],[i.Vv.ENUM.EmailTemplateType.Type.pft_forced_ori_uploaded,{subject:r.subject,body:r.body}],[i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_ori_uploaded,J],[i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_mod_uploaded,I],[i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_log_uploaded,w],[i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_project_created,oe],[i.Vv.ENUM.EmailTemplateType.Type.pft_engineer_new_comments,F],[i.Vv.ENUM.EmailTemplateType.Type.pft_dealer_congratulations,{subject:[{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f",value:"company_name"}],body:[{label:"\u041a\u043e\u043c\u043f\u0430\u043d\u0438\u044f",value:"company_name"}]}],[i.Vv.ENUM.EmailTemplateType.Type.participant_invite,S],[i.Vv.ENUM.EmailTemplateType.Type.participant_invite_accept,S],[i.Vv.ENUM.EmailTemplateType.Type.participant_invite_decline,S],[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite,g],[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_accept,g],[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_reject,g],[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_autoInvite,g],[i.Vv.ENUM.EmailTemplateType.Type.crm_company_partner_invite_to_network,g]]);var D=p(44352);function se(a,n){1&a&&e._UZ(0,"loading-spinner")}function ce(a,n){if(1&a&&(e.TgZ(0,"li",12)(1,"a",13),e._uU(2),e.qZA()()),2&a){const t=n.$implicit,o=e.oxw(2);e.xp6(1),e.ekj("active",o.activeLocale==t.value),e.Q6J("routerLink","../"+t.value),e.xp6(1),e.hij(" ",t.label," ")}}function ue(a,n){if(1&a&&(e.TgZ(0,"div",9)(1,"ul",10),e.YNc(2,ce,3,4,"li",11),e.qZA()()),2&a){const t=e.oxw();e.xp6(2),e.Q6J("ngForOf",t.localeTypeOptions)}}let N=(()=>
1{class a{constructor(){this.isLoading=!1,this.isCustomEmail=!1,this.localeTypeOptions=d.ib.L10n.TypeOptions,this.localeTypeMap=d.ib.L10n.TypeMap}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["email-template-manage-wrapper-page"]],decls:11,vars:4,consts:[[4,"ngIf"],[1,"app-content","app-content--manage"],[1,"app-content_header"],[1,"app-content_header_title_link","link","link-white"],[1,"app-content_header_back",3,"routerLink"],["icon","icon-keyboard_backspace_black_24dp"],[1,"app-content_header_title","me-auto"],[1,"app-content_body","d-flex","flex-column"],["class","mb-20 d-flex justify-content-between align-items-start",4,"ngIf"],[1,"mb-20","d-flex","justify-content-between","align-items-start"],[1,"tabs","tabs-default","mt-1","mb-auto"],["class","nav-item",4,"ngFor","ngForOf"],[1,"nav-item"],[1,"nav-link",3,"routerLink"]],template:function(t,o){1&t&&(e.YNc(0,se,1,0,"loading-spinner",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e._UZ(5,"svg-icon",5),e.qZA(),e.TgZ(6,"div",6),e._uU(7),e.qZA()()(),e.TgZ(8,"div",7),e.YNc(9,ue,3,1,"div",8),e._UZ(10,"router-outlet"),e.qZA()()),2&t&&(e.Q6J("ngIf",o.isLoading),e.xp6(4),e.Q6J("routerLink",o.backUrl),e.xp6(3),e.Oqu(o.activePageName?o.activePageName:"\u041d\u0430\u0437\u0430\u0434"),e.xp6(2),e.Q6J("ngIf",!o.isCustomEmail))},dependencies:[T.sg,T.O5,s.lC,s.yS,D.b,U.g],encapsulation:2}),a})();var q=p(35922),de=p(20388),R=p(94277),_e=p(82075),Te=p(53661);function ye(a,n){if(1&a&&(e.TgZ(0,"div",16)(1,"input-text",17),e.ynx(2,8),e._uU(3,"E-Mail To"),e.BQk(),e.qZA()()),2&a){const t=e.oxw();e.Q6J("formGroup",t.sendCustomEmailFormGroup)}}function fe(a,n){1&a&&(e.TgZ(0,"input-textarea",18),e.ynx(1,8),e._uU(2,"Body"),e.BQk(),e.qZA())}function ve(a,n){if(1&a&&e._UZ(0,"html-editor",19),2&a){const t=e.oxw();e.Q6J("tags",t.tagsForBody)}}function Ee(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const l=e.oxw();return e.KtG(l.onSave())}),e._uU(1," \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c "),e.qZA()}}function ge(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"button",20),e.NdJ("click",function(){e.CHM(t);const l=e.oxw();return e.KtG(l.onSendCustomEmail())}),e._uU(1," \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c "),e.qZA()}}function he(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"div",21)(1,"button",22),e.NdJ("click",function(){e.CHM(t);const l=e.oxw();return e.KtG(l.onDelete())}),e.SDv(2,23),e.qZA()()}}function be(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"div",24)(1,"div",25)(2,"h6",26),e._uU(3,"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 email"),e.qZA(),e.TgZ(4,"div",16)(5,"input-text",17),e.ynx(6,8),e._uU(7,"E-Mail"),e.BQk(),e.qZA()(),e.TgZ(8,"button",20),e.NdJ("click",function(){e.CHM(t);const l=e.oxw();return e.KtG(l.onSendTestEmail())}),e._uU(9,"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c"),e.qZA(),e.TgZ(10,"a",27),e._uU(11," \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 "),e.qZA()()()}if(2&a){const t=e.oxw();e.xp6(4),e.Q6J("formGroup",t.sendTestEmailFormGroup)}}let B=(()=>{class a{constructor(t,o,l,c,_,y,we,A){this.router=t,this.route=o,this.httpRepository=l,this.wrapperCmp=c,this.snotifyService=_,this.modalService=y,this.authService=we,this.wrapper=A,this.destroySubject=new h.xQ,this.isLoading=!0,this.localeTypeOptions=d.ib.L10n.TypeOptions,this.localeTypeMap=d.ib.L10n.TypeMap,this.cmpClass="d-flex flex-column flex-1 max-h-100",this.formGroup=new E.l5({id:new m.p4,type:new m.p4,locale:new m.p4,subject:new m.p4,body:new m.p4}),this.tagsForBody=[],this.tagsForSubject=[],this.EmailTemplate=i.Vv.ENUM.EmailTemplateType.Type,this.sendTestEmailFormGroup=new E.l5({sendToEmail:new m.p4(null,[m.kI.email,m.kI.required])}),this.sendCustomEmailFormGroup=new E.l5({sendToEmail:new m.p4(null,[m.kI.email,m.kI.required])}),t.events.pipe((0,G.h)(j=>j instanceof s.m2),(0,Z.zg)(()=>this.route.parent.params.pipe((0,V.q)(1))),(0,f.R)(this.destroySubject)).subscribe(j=>{this.formGroup.reset(),this.initialDto=null,this.wrapperCmp.isLoading=!0,this.currentLocale=this.route.
1snapshot.params.locale,this.currentType=+j.id,this.wrapper.activeLocale=this.currentLocale,this.wrapperCmp.isCustomEmail=o.snapshot.data.isCustomEmail,c.isCustomEmail?(A.backUrl="/email-templates/list",this.wrapperCmp.isLoading=!1):(c.activePageName=i.Vv.ENUM.EmailTemplateType.TypeMap.get(this.currentType),A.backUrl=`/email-templates/list/${b.find(Ie=>null!=Ie.listOfEnteredEmailTemplateType.find(Fe=>Fe==this.currentType)).categoryLink}`,this.getTemplate()),this.setTags()})}setTags(){const t=re.get(this.currentType);t&&(this.tagsForSubject=t.subject,this.tagsForBody=t.body)}getTemplate(){this.formGroup.controls.type.reset(this.currentType),this.formGroup.controls.locale.reset(this.currentLocale),this.httpRepository.v2.dictionaries.email_template.getSingle(this.currentType,this.currentLocale).subscribe(t=>{this.wrapperCmp.isLoading=!1,t.model&&(this.initialDto=t.model,this.formGroup.reset(t.model),this.wrapperCmp.isLoading=!1)}),this.authService.userInfo.email&&this.sendTestEmailFormGroup.controls.sendToEmail.reset(this.authService.userInfo.email)}onDelete(){const o=this.modalService.show(C.ys,{class:"modal-md",initialState:{deleteTypeName:"E-Mail template",bsModalService:this.modalService,confirmCallback:l=>{this.httpRepository.v2.dictionaries.email_template.delete({type:this.formGroup.controls.type.value,locale:this.formGroup.controls.locale.value}).pipe((0,f.R)(this.destroySubject)).subscribe(_=>{this.snotifyService.success("E-Mail template \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0443\u0434\u0430\u043b\u0435\u043d"),this.formGroup.controls.id.reset(),this.formGroup.controls.subject.reset(),this.formGroup.controls.body.reset(),this.initialDto=null,o.hide()},_=>{this.snotifyService.error(`\u041e\u0448\u0438\u0431\u043a\u0430: ${_.message}`)})},cancelCallback:()=>{}}})}onSave(){this.onSave$().pipe((0,f.R)(this.destroySubject)).subscribe(()=>{})}onSendTestEmail(){x.W9.used(this.sendTestEmailFormGroup),this.sendTestEmailFormGroup.valid&&this.onSave$().pipe((0,f.R)(this.destroySubject)).subscribe(()=>{this.httpRepository.v2.dictionaries.email_template.sendTestEmail({email:this.sendTestEmailFormGroup.value.sendToEmail,type:this.formGroup.controls.type.value,locale:this.formGroup.controls.locale.value}).subscribe(o=>{this.snotifyService.success("E-Mail \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d")})})}onSendCustomEmail(){x.W9.used(this.sendCustomEmailFormGroup),this.sendCustomEmailFormGroup.valid&&this.httpRepository.v2.dictionaries.email_template.sendCustomEmail({email:this.sendCustomEmailFormGroup.value.sendToEmail,subject:this.formGroup.controls.subject.value,content:this.formGroup.controls.body.value}).subscribe(o=>{this.snotifyService.success("E-Mail \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d")})}onSave$(){return new ee.y(t=>{if(x.W9.used(this.formGroup),this.formGroup.valid){this.wrapperCmp.isLoading=!0;const o=this.formGroup.getRawValue();this.httpRepository.v2.dictionaries.email_template.save(o).subscribe(l=>{this.wrapperCmp.isLoading=!1,this.initialDto=l.model,this.snotifyService.success(d.sr.NotificationMessages.EntitySaved),t.next(!0),t.complete()})}else this.snotifyService.error(d.sr.NotificationMessages.EnteredDataIsInvalid),t.next(!1),t.complete()})}ngOnDestroy(){this.destroySubject.next()}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(s.F0),e.Y36(s.gz),e.Y36(M.$o),e.Y36(N),e.Y36(q.VZ),e.Y36(de.tT),e.Y36(M.e8),e.Y36(N))},a.\u0275cmp=e.Xpm({type:a,selectors:[["email-template-manage-page"]],hostVars:2,hostBindings:function(t,o){2&t&&e.Tol(o.cmpClass)},decls:18,vars:10,consts:function(){let n;return n="Delete",[[1,"row","flex-1","max-h-100","max-h-xl-initial"],[1,"col-xxl-7","col-xl-8","col-lg-12","flex-column","max-h-100","max-h-xl-initial"],[1,"acc-list"],[1,"acc-list_body","d-flex","flex-column"],[1,"container","container--acc-list","pt-20","flex-1","d-flex","flex-column",3,"formGroup"],["class","form-group",3,"formGroup",4,"ngIf"],[1,"form-group"],["formControlName","subject",3,"tags","allowToolbar"],["title",""],[1,"form-group","flex-1","d-flex","flex-column"],["class","html-editor-full-height max-height-100","formControlName","body",4,"ngIf"],["class","html-editor-full-height max-height-100","formControlName","body",3,"tags",4,"ngIf"],[1,"acc-list_footer"],["class","btn btn-primary btn-md",3,"click",4,"ngIf"],["class","ms-auto",4,"ngIf"],["class","col-xxl-3 col-xl-4 mt-20 mt-xl-0 d-xl-block",4,"ngIf"],[1,"form-group",3,"formGroup"],["type","email","formControlName","sendToEmail"],["formControlName","body",1,"html-editor-full-height","max-height-100"],["formControlName","body",1,"html-editor-full-height","max-height-100",3,"tags"],[1,"btn","btn-primary","btn-md",3,"click"],[1,"ms-auto"],[1,"link","link-primary",3,"click"],n,[1,"col-xxl-3","col-xl-4","mt-20","mt-xl-0","d-xl-block"],[1,"card","card--pd"],[1,"card-title","mb-15"],["routerLink","../../../../notification-settings",1,"btn","btn-primary","btn-md","mt-10"]]},template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.YNc(5,ye,4,1,"div",5),e.TgZ(6,"div",6)(7,"html-editor",7),e.ynx(8,8),e._uU(9,"Subject"),e.BQk(),e.qZA()(),e.TgZ(10,"div",9),e.YNc(11,fe,3,0,"input-textarea",10),e.YNc(12,ve,1,1,"html-editor",11),e.qZA()()(),e.TgZ(13,"div",12),e.YNc(14,Ee,2,0,"button",13),e.YNc(15,ge,2,0,"button",13),e.YNc(16,he,3,0,"div",14),e.qZA()()(),e.YNc(17,be,12,1,"div",15),e.qZA()),2&t&&(e.xp6(4),e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("ngIf",o.wrapperCmp.isCustomEmail),e.xp6(2),e.Q6J("tags",o.tagsForSubject)("allowToolbar",!1),e.xp6(4),e.Q6J("ngIf",o.currentType==o.EmailTemplate.empty),e.xp6(1),e.Q6J("ngIf",o.currentType!=o.EmailTemplate.empty),e.xp6(2),e.Q6J("ngIf",!o.wrapperCmp.isCustomEmail),e.xp6(1),e.Q6J("ngIf",o.wrapperCmp.isCustomEmail),e.xp6(1),e.Q6J("ngIf",o.initialDto),e.xp6(1),e.Q6J("ngIf",!o.wrapperCmp.isCustomEmail))},dependencies:[T.O5,s.yS,m.JJ,m.JL,m.sg,m.u,R.m,_e.Q,Te.y],encapsulation:2}),a})();class Me{constructor(){this.locale=new m.p4(null,m.kI.required),this.email=new m.p4(null,[m.kI.required,m.kI.email])}}
1class Ce extends E.l5{constructor(){super(new Me)}}class xe extends E.aX{constructor(){super([],!1)}createFormControl(n){const t=new Ce;return n&&t.reset(n),t}}var Ne=p(88796),Ue=p(67099),Ze=p(93330),Se=p(4691),Ae=p(37559);function je(a,n){1&a&&e._UZ(0,"loading-spinner")}function Oe(a,n){if(1&a&&(e.TgZ(0,"div",26)(1,"div",27),e._UZ(2,"input-checkbox",28),e.TgZ(3,"div",29),e._uU(4),e.qZA()(),e.TgZ(5,"div",30),e._uU(6),e.qZA()()),2&a){const t=n.item;e.xp6(4),e.Oqu(t.first_name),e.xp6(2),e.Oqu(null==t?null:t.email)}}function Le(a,n){if(1&a&&(e.TgZ(0,"div",26)(1,"div",27),e._UZ(2,"input-checkbox",28),e.TgZ(3,"div",29),e._uU(4),e.qZA()(),e.TgZ(5,"div",30),e._uU(6),e.qZA()()),2&a){const t=n.item;e.xp6(4),e.Oqu(t.first_name),e.xp6(2),e.Oqu(null==t?null:t.email)}}function Ge(a,n){if(1&a){const t=e.EpF();e.TgZ(0,"div",31)(1,"div",32)(2,"div",33)(3,"input-text",34),e.ynx(4,15),e._uU(5,"E-Mail"),e.BQk(),e.qZA()(),e.TgZ(6,"div",35)(7,"input-select",36),e.ynx(8,15),e._uU(9,"\u041b\u043e\u043a\u0430\u043b\u044c"),e.BQk(),e.qZA()(),e.TgZ(10,"div",37)(11,"button",38),e.NdJ("click",function(){const c=e.CHM(t).$implicit,_=e.oxw();return e.KtG(_.onRemoveCustomEmailItem(c))}),e._UZ(12,"svg-icon",39),e.qZA()()()()}if(2&a){const t=n.$implicit,o=e.oxw();e.Q6J("formGroup",t),e.xp6(7),e.Q6J("options",o.localeOptions)}}let Ve=(()=>{class a{constructor(t,o,l,c,_){this.router=t,this.route=o,this.httpRepository=l,this.snotifyService=c,this.areaContainerService=_,this.destroySubject=new h.xQ,this.isLoading=!1,this.localeOptions=d.ib.L10n.TypeOptions,this.EmailTemplateTypeMap=i.Vv.ENUM.EmailTemplateType.TypeMap,this.cmpClass="d-flex flex-column flex-1 max-h-100",this.formGroup=new E.l5({email_type:new m.p4,send_to_recipient:new m.p4,send_to_diller:new m.p4,copy_to_members:new m.p4,copy_to_engineers:new m.p4,copy_to_custom_emails:new xe}),this.areaContainerService.viewMode.next(C.Sr.Type.Edit),t.events.pipe((0,G.h)(y=>y instanceof s.m2),(0,Z.zg)(()=>this.route.parent.params.pipe((0,V.q)(1))),(0,Z.zg)(y=>(this.currentType=+y.id,this.httpRepository.v2.dictionaries.email_template.notification.getSingle(this.currentType))),(0,f.R)(this.destroySubject)).subscribe(y=>{this.formGroup.reset(y?.model??{email_type:this.currentType})})}onAddCustomEmailItem(){this.formGroup.controls.copy_to_custom_emails.push(this.formGroup.controls.copy_to_custom_emails.createFormControl())}onRemoveCustomEmailItem(t){this.formGroup.controls.copy_to_custom_emails.removeAt(this.formGroup.controls.copy_to_custom_emails.controls.findIndex(o=>o.uniqueId==t.uniqueId))}save(){if(x.W9.used(this.formGroup),this.formGroup.valid){this.isLoading=!0;const t=this.formGroup.getRawValue(),o={email_type:this.currentType,send_to_recipient:t.send_to_recipient,send_to_diller:t.send_to_diller,copy_to_members:t.copy_to_members?.map(l=>l.id)??[],copy_to_engineers:t.copy_to_engineers?.map(l=>l.id)??[],copy_to_custom_emails:t.copy_to_custom_emails??[]};this.httpRepository.v2.dictionaries.email_template.notification.store(o).subscribe(l=>{this.isLoading=!1,this.snotifyService.success(d.sr.NotificationMessages.EntitySaved)})}else this.snotifyService.error(d.sr.NotificationMessages.EnteredDataIsInvalid)}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete()}}return a.\u0275fac=function(t){return new(t||a)(e.Y36(s.F0),e.Y36(s.gz),e.Y36(M.$o),e.Y36(q.VZ),e.Y36(C.lI))},a.\u0275cmp=e.Xpm({type:a,selectors:[["email-template-notification-settings"]],hostVars:2,hostBindings:function(t,o){2&t&&e.Tol(o.cmpClass)},features:[e._Bn([C.lI])],decls:39,vars:12,consts:[[4,"ngIf"],[1,"app-content","app-content--manage"],[1,"app-content_header"],["routerLink","../",1,"app-content_header_title_link","link","link-white"],[1,"app-content_header_back"],["icon","icon-keyboard_backspace_black_24dp"],[1,"app-content_header_title","me-auto"],[1,"app-content_body","d-flex","flex-column"],[1,"row","flex-1","max-h-100"],[1,"col-xxl-7","col-xl-8","col-lg-12","flex-column","max-h-100"],[1,"acc-list"],[1,"acc-list_body","d-flex","flex-column",3,"formGroup"],[1,"container","container--acc-list","pt-20"],[1,"form-group"],["formControlName","send_to_recipient"],["title",""],["bindLabel","first_name","formControlName","copy_to_members",1,"input-control--auto-height",3,"api","multiple","closeOnSelect","customOptionTemplate"],["ng-option-tmp",""],["usersCustomerOptionTemplate",""],["bindLabel","first_name","formControlName","copy_to_engineers",1,"input-control--auto-height",3,"api","multiple","closeOnSelect","customOptionTemplate"],["usersCopyToEngineersOptionTemplate",""],[1,"mb-20"],[3,"formArray","addNewItem"],["formArrayLineItem",""],[1,"acc-list_footer"],[1,"btn","btn-primary","btn-md",3,"click"],[1,"d-flex","align-items-center","flex-1"],[1,"flex-1","pe-3","d-flex","align-items-center"],[1,"input-control--dark","ng-option_label_control","me-10"],[1,"ng-option_label_title"],[1,"flex-1"],[1,"container","container--acc-list",3,"formGroup"],[1,"row"],[1,"col-8"],["formControlName","email"],[1,"col-3"],["formControlName","locale","bindLabel","label","bindValue","value",3,"options"],[1,"col-1","d-flex","align-items-center","justify-content-center"],[1,"btn-icon","btn-icon-dark",3,"click"],["icon","icon-close"]],template:function(t,o){if(1&t&&(e.YNc(0,je,1,0,"loading-spinner",0),e.TgZ(1,"div",1)(2,"div",2)(3,"a",3)(4,"div",4),e._UZ(5,"svg-icon",5),e.qZA(),e._uU(6),e.qZA(),e.TgZ(7,"div",6),e._uU(8,"/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f"),e.qZA()(),e.TgZ(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"input-checkbox",14),e.ynx(17,15),e._uU(18,"\u0423\u0432\u0435\u0434\u043e\u043c\u0438\u0442\u044c \u0418\u043d\u0438\u0446\u0438\u0430\u0442\u043e\u0440\u0430"),e.BQk(),e.qZA()(),e.TgZ(19,"div",13)(20,"input-select-async",16),e.ynx(21,15),e._uU(22,"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438"),e.BQk(),e.YNc(23,Oe,7,2,"ng-template",17,18,e.W1O),e.qZA()(),e.TgZ(25,"div",13)(26,"input-select-async",19),e.ynx(27,15),e._uU(28,"\u0418\u043d\u0436\u0435\u043d\u0435\u0440\u044b"),e.BQk(),e.YNc(29,Le,7,2,"ng-template",17,20,e.W1O),e.qZA()(),e.TgZ(31,"h6",21),e._uU(32,"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u0438\u0442\u044c"),e.qZA()(),e.TgZ(33,"option-area-form-array",22),e.NdJ("addNewItem",function(){return o.onAddCustomEmailItem()}),e.YNc(34,Ge,13,2,"ng-template",null,23,e.W1O),e.qZA()(),e.TgZ(36,"div",24)(37,"button",25),e.NdJ("click",function(){return o.save()}),e._uU(38,"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"),e.qZA()()()()()()()),2&t){const l=e.MAs(24),c=e.MAs(30);e.Q6J("ngIf",o.isLoading),e.xp6(6),e.hij(" ",o.EmailTemplateTypeMap.get(o.currentType)," "),e.xp6(7),e.Q6J("formGroup",o.formGroup),e.xp6(7),e.Q6J("api",o.httpRepository.v2.member.searchAdminsAndEngineers)("multiple",!0)("closeOnSelect",!1)("customOptionTemplate",l),e.xp6(6),e.Q6J("api",o.httpRepository.v2.member.searchAdminsAndEngineers)("multiple",!0)("closeOnSelect",!1)("customOptionTemplate",c),e.xp6(7),e.Q6J("formArray",o.formGroup.controls.copy_to_custom_emails)}},dependencies:[T.O5,s.yS,m.JJ,m.JL,m.sg,m.u,Ne.ir,Ue.r,Ze.Z,Se.p,R.m,D.b,U.g,Ae.U],encapsulation:2}),a})(),ke=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[Y.m,s.Bz.forChild([{path:"list",component:L,children:[{path:"common",data:{tabType:u.common},component:v},{path:"pft",data:{tabType:u.pft},component:v},{path:"participant",data:{tabType:u.participant},component:v},{path:"crm-companies",data:{tabType:u.crm_company_partner},component:v},{path:"price-list",data:{tabType:u.crm_price_list},component:v},{path:"offer",data:{tabType:u.offer},component:v},{path:"**",redirectTo:"common"}]},{path:":id",children:[{path:"custom-email",component:N,children:[{path:"",component:B,data:{isCustomEmail:!0}},{path:"**",redirectTo:""}]},{path:"notification-settings",component:Ve},{path:":locale",component:N,children:[{path:"",component:B},{path:"**",redirectTo:""}]},{path:"**",redirectTo:d.ib.L10n.Type.En}]},{path:"**",redirectTo:"list"}])]}),a})()}}]);

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.