1import{a as Ee,b as Fe}from"./chunk-VC6Q36P3.js";import{a as we,b as Me}from"./chunk-MAYJGD77.js";import{s as Ie}from"./chunk-QFPXHDSI.js";import"./chunk-PXYMM34B.js";import"./chunk-DLJJL426.js";import{a as B}from"./chunk-EEEAYVPF.js";import{a as je,b as Ae}from"./chunk-VALVK5GN.js";import"./chunk-ZNPPCW4L.js";import"./chunk-XH6BEHGY.js";import"./chunk-6BB2P36Q.js";import"./chunk-4SXIL6RB.js";import"./chunk-7WMFJWTR.js";import"./chunk-MS4AQ6UA.js";import"./chunk-O2HTKXBS.js";import{a as Pe,b as Be,c as Oe,e as Ve,i as Re}from"./chunk-62CDGUSA.js";import{a as Te}from"./chunk-LU67H3NU.js";import"./chunk-J3UGQKB5.js";import"./chunk-3XORJJA4.js";import"./chunk-YB3EGUOV.js";import"./chunk-2RNO6VAM.js";import"./chunk-EBOM3FLD.js";import"./chunk-WVJHT65Q.js";import"./chunk-HRXSP2SL.js";import"./chunk-IVR6OPIX.js";import"./chunk-SUTBK5PK.js";import"./chunk-23UOLJGU.js";import"./chunk-C3M5GFWG.js";import{f as Se,i as ke}from"./chunk-LJRNXR4Z.js";import"./chunk-T4MK7QAN.js";import{g as Ne,h as Ce}from"./chunk-N5H33MAT.js";import"./chunk-DCR4YP2M.js";import{b as ye}from"./chunk-SWDGNTZF.js";import"./chunk-F5X5MWHG.js";import"./chunk-57JUTFV6.js";import"./chunk-SGYCFQGT.js";import"./chunk-GWZHENGH.js";import"./chunk-PYVFHOBF.js";import"./chunk-4ZZX3EUT.js";import"./chunk-FHNA7NOX.js";import{a as ve,b as xe}from"./chunk-UKOH47LE.js";import{c as ce}from"./chunk-YYOXQINR.js";import"./chunk-W4J2SMRF.js";import{a as fe,b as ue}from"./chunk-ICLKOHZ2.js";import{d as be,g as _e}from"./chunk-E4JDWYYD.js";import"./chunk-STYHDWK5.js";import"./chunk-3RK6DDJD.js";import{b as me,h as pe,i as de,k as he,l as ge}from"./chunk-PX3ZDZPI.js";import"./chunk-EWTLMG7H.js";import"./chunk-XFQOOWRA.js";import"./chunk-HVXXTVPX.js";import"./chunk-YOQYUK2P.js";import"./chunk-OM52GCBP.js";import"./chunk-6RGPRWVV.js";import"./chunk-U44HLD2S.js";import"./chunk-R4DV5QZ2.js";import"./chunk-VNN7MPNT.js";import{e as O,g as V}from"./chunk-KLYQFF2A.js";import{D as ne,G as re,H as se,I as le,c as Z,e as R,h as ee,i as te,n as ie,s as oe,v as ae}from"./chunk-H2ADB6ED.js";import"./chunk-UNBDIFOL.js";import{$d as Y,Bb as p,Ca as y,Cd as J,Da as N,Dc as L,Lc as d,Mc as f,Qb as o,Qc as W,Rb as n,Sb as _,Tb as G,Ub as U,Wb as S,Zd as X,_b as x,_d as I,a as T,aa as D,ac as g,b as j,bb as H,cb as A,ce as F,ee as P,gb as r,ie as q,mb as h,mc as $,nd as K,oc as l,od as Q,pc as E,qc as u,rb as M,sa as w,sb as k,xb as b}from"./chunk-POIHHM7P.js";var Le=(()=>{let a=class a{constructor(e,t,s,m,v,C){this.http=e,this.route=t,this.translate=s,this.preloaderService=m,this.cookieService=v,this.router=C,this.selectLanguage="en",this.schema=[{name:"id",label:"",isHidden:!0,cssClasses:null,sortable:!1,dataType:"string",renderOptions:{renderType:"Value"}},{name:"subject",label:"Subject",cssClasses:null,sortColumnName:"subject",sortable:!1,allowFilter:!0,dataType:"string",renderOptions:{renderType:"Value"}},{name:"format",label:"Send On Events",cssClasses:null,sortColumnName:"format",sortable:!1,allowFilter:!0,dataType:"string",renderOptions:{renderType:"Value"}},{label:"Actions",width:83,renderOptions:{renderType:"Actions"},schema:[{renderAs:"link",label:"",iconName:"edit",actionType:"Redirect",action:"redirect",routeTemplate:"form",resolvedUrl:""}]}],this.config={pagerHidden:!1,isSelectable:!1,sortingMode:"whitespace",setQueryParamsToUrl:!1,page:1,perPage:20,paginationSizes:[10,20,30,40,50,100,200],key:"notification-emails",headerHidden:!0,filterRowHidden:!0,tableHeight:null,globalSearchHidden:!1,isSingleSort:!0},this.cookieService.get("ccLang")&&(this.selectLanguage=this.cookieService.get("ccLang"))}ngOnInit(){this.dataUrl="/api2/notifications-emails?filter=(lang=null)"}onChangeHandler(e){switch(e.action){case"getHttpData":this.getHttpData(e);break;case"redirect":this.redirect(e);break}}redirect(e){this.router.navigate(["./"+e.resolvedUrl],{relativeTo:this.route,queryParams:{event:e.rowData.event}})}getHttpData(e){this.preloaderService.preloaderSubject.next({show:!0,spinnerColor:"dark"}),this.http.getReq({url:e.url,options:{observe:"response"}}).subscribe(t=>{this.preloaderService.preloaderSubject.next(!1),e.callback(t.body,t.headers)})}};a.\u0275fac=function(t){return new(t||a)(h(V),h(F),h(X),h(O),h(B),h(P))},a.\u0275cmp=M({type:a,selectors:[["app-notification-emails"]],standalone:!1,decls:6,vars:7,consts:[[1,"fixed_header"],[1,"position-relative"],[1,"cc-admin-data-grid-container",3,"onchange","schema","config","dataUrl","updater"]],template:function(t,s){t&1&&(o(0,"div",0)(1,"h4"),l(2),d(3,"translate"),n()(),o(4,"div",1)(5,"ni-data-grid-lib",2),x("onchange",function(v){return s.onChangeHandler(v)}),n()()),t&2&&(r(2),u(" ",f(3,5,"NotificationModule.Notification")," "),r(3),p("schema",s.schema)("config",s.config)("dataUrl",s.dataUrl)("updater",s.updater))},dependencies:[je,I],styles:[".actions-list .action-item{margin-right:18px!important} .actions-list .action-item .material-icons{position:relative!important;left:0!important} table.mat-table, table.mdc-tab{overflow:hidden!important} table thead tr:nth-child(1) th{color:#9e9e9e!important;font-weight:500;font-size:12px;background-color:#fafafa!important}.add_button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{top:-20px!important;right:-29px;position:absolute;z-index:3}"]});let i=a;return i})();var qe={key:"appNotificationImage",placeholder:"Image",title:"",text:"Recommended image should be 600x400",required:!1,image:"",dataUrl:"/api2/v1/files/upload",classImage:"headerPushImage",context:{ratio:1.5,resizeToWidth:600,resizeToHeight:400}},ze=[{key:"html",value:"HTML"},{key:"text",value:"Text"}];var Xe=()=>({key:"appNotificationBody"}),Ye=()=>({key:"body"});function Ze(i,a){if(i&1&&(o(0,"span",9),l(1),n()),i&2){let c=g().$implicit;r(),E(c.value)}}function et(i,a){i&1&&(o(0,"mat-error"),l(1),d(2,"translate"),n()),i&2&&(r(),u("",f(2,1,"NotificationModule.Field is required")," "))}function tt(i,a){i&1&&(o(0,"span",33),l(1),d(2,"translate"),n()),i&2&&(r(),u(" ",f(2,1,"NotificationModule.Field is required")," "))}function it(i,a){i&1&&(o(0,"span",33),l(1),d(2,"translate"),n()),i&2&&(r(),u(" ",f(2,1,"NotificationModule.Push notification title or preview text is required")," "))}function ot(i,a){if(i&1&&(o(0,"div",14)(1,"label",15),l(2),d(3,"translate"),o(4,"span",34)(5,"span",35),l(6,"info"),n(),o(7,"div",36),_(8,"img",37),n()()(),_(9,"app-image-cropper-field",42),n()),i&2){let c=g(5);r(2),u("",f(3,5,"NotificationModule.Header Image")," "),r(6),p("src","/images/examples/screnshots/header-image-place.jpg",A),r(),p("classImage",c.appNotificationImageField==null?null:c.appNotificationImageField.classImage)("form",c.form)("field",c.appNotificationImageField)}}function at(i,a){if(i&1&&(o(0,"div",27)(1,"label",15),l(2),d(3,"translate"),n(),_(4,"app-editor-field",43),n()),i&2){let c=g(4).$implicit,e=g();r(2),u("",f(3,6,"NotificationModule.Message"),":"),r(2),p("field",L(8,Xe))("isOrganizerOrAdminTemplate",!0)("idx","appNotificationBody"+c.key)("tokensField",e.tokens
1Field)("form",e.form)}}function nt(i,a){if(i&1&&(G(0),o(1,"div",14)(2,"label",15),l(3),d(4,"translate"),o(5,"span",34)(6,"span",35),l(7,"info"),n(),o(8,"div",36),_(9,"img",37),n()()(),o(10,"mat-form-field",17),_(11,"input",38),n()(),o(12,"div",14)(13,"label",15),l(14),d(15,"translate"),n(),o(16,"textarea",39),l(17," "),n(),b(18,it,3,3,"span",21),n(),b(19,ot,10,7,"div",40)(20,at,5,9,"div",41),U()),i&2){let c=g(4);r(3),u("",f(4,6,"NotificationModule.Notification Title")," : "),r(6),p("src","/images/examples/screnshots/notification-title-place.jpg",A),r(5),u("",f(15,8,"NotificationModule.Notification Preview")," :"),r(4),p("ngIf",c.form.hasError("pushTitleOrBodyRequired")&&(c.form.get("pushNotificationTitle").touched||c.form.get("pushNotificationBody").touched)),r(),p("ngIf",c.form),r(),p("ngIf",c.showPushEditor)}}function rt(i,a){if(i&1&&_(0,"app-editor-field",43),i&2){let c=g(3).$implicit,e=g();p("field",L(5,Ye))("isOrganizerOrAdminTemplate",!0)("idx","bodyDescription"+c.value)("tokensField",e.tokensField)("form",e.form)}}function st(i,a){if(i&1){let c=S();o(0,"div",44),x("click",function(){y(c);let t=g(4),s=$(13);return N(t.openModal(s))}),o(1,"h2",45),l(2),d(3,"translate"),n(),o(4,"div",46)(5,"mat-icon",47),l(6,"visibility"),n(),o(7,"span",24),l(8),d(9,"translate"),n()()()}i&2&&(r(2),E(f(3,2,"NotificationModule.Preview")),r(6),E(f(9,4,"NotificationModule.Preview mode")))}function lt(i,a){if(i&1){let c=S();o(0,"form",12),x("ngSubmit",function(){y(c);let t=g(3);return N(t.onSubmit())}),o(1,"fieldset",13)(2,"div",14)(3,"label",15),l(4),d(5,"translate"),o(6,"span",16),l(7,"*"),n()(),o(8,"mat-form-field",17),_(9,"input",18),b(10,et,3,3,"mat-error",19),n()(),o(11,"div",14)(12,"label",15),l(13),d(14,"translate"),o(15,"span",16),l(16,"*"),n()(),_(17,"ng-select",20),b(18,tt,3,3,"span",21),n(),o(19,"div",14)(20,"label",15),l(21),d(22,"translate"),n(),o(23,"mat-form-field",17),_(24,"input",22),n()(),o(25,"div",14)(26,"mat-checkbox",23),x("change",function(){y(c);let t=g(3);return N(t.changePushEditor())}),o(27,"span",24),l(28),d(29,"translate"),n()()(),b(30,nt,21,10,"ng-container",19),o(31,"div",25)(32,"label",15),l(33),d(34,"translate"),o(35,"span",16),l(36,"*"),n()(),_(37,"ng-select",26),n(),o(38,"div",27)(39,"label",15),l(40),d(41,"translate"),n(),b(42,rt,1,6,"app-editor-field",28),n(),b(43,st,10,6,"div",29),o(44,"div",30)(45,"button",31),x("click",function(){y(c);let t=g(3);return N(t.back())}),l(46),d(47,"translate"),n(),o(48,"button",32),l(49),d(50,"translate"),n()()()()}if(i&2){let c,e=g(3);p("formGroup",e.form),r(4),u("",f(5,25,"NotificationModule.Subject"),":"),r(6),p("ngIf",e.subject.hasError("required")),r(3),u("",f(14,27,"NotificationModule.Send on events")," : "),r(4),p("items",e.customizedNotificationEvents)("multiple",!1)("selectableGroup",!1)("clearable",!1)("searchable",!1)("closeOnSelect",!0),r(),p("ngIf",e.form.get("event").hasError("required")&&e.form.get("event").touched),r(3),u("",f(22,29,"NotificationModule.Reply-To")," :"),r(7),u(" ",f(29,31,"NotificationModule.Send a push notification"),"? "),r(2),p("ngIf",(c=e.form.get("sendPushNotification"))==null?null:c.value),r(3),u("",f(34,33,"NotificationModule.Body Type")," :"),r(4),p("items",e.bodyTypeArr)("multiple",!1)("clearable",!1)("searchable",!1)("closeOnSelect",!0),r(3),u("",f(41,35,"NotificationModule.Body"),":"),r(2),p("ngIf",e.showEditor),r(),p("ngIf",e.form&&e.form.get("body").value),r(3),u(" ",f(47,37,"NotificationModule.Cancel")," "),r(3),u(" ",f(50,39,"NotificationModule.Save")," ")}}function ct(i,a){if(i&1&&(o(0,"div",10),b(1,lt,51,41,"form",11),n()),i&2){let c=g(2);r(),p("ngIf",c.form)}}function mt(i,a){i&1&&(o(0,"mat-tab"),b(1,Ze,2,1,"ng-template",7)(2,ct,2,1,"ng-template",8),n())}function pt(i,a){if(i&1){let c=S();o(0,"div",48)(1,"button",49),x("click",function(){y(c);let t=g();return N(t.modalRef.hide())}),o(2,"em",50),l(3,"close"),n()(),o(4,"div",51)(5,"div",52)(6,"div"),_(7,"div",53),d(8,"noSanitize"),n()()()()}if(i&2){let c=g();r(7),p("innerHTML",f(8,1,c.form.get("body").value),H)}}var De=(()=>{let a=class a{constructor(e,t,s,m,v,C,Ge,Ue){this.utils=e,this.route=t,this.http=s,this.router=m,this.cookieService=v,this.preloaderService=C,this.fb=Ge,this.modalService=Ue,this.customizedNotificationEvents=[],this.bodyTypeArr=[],this.allNotificationsEmails=[],this.languages=[],this.isInit=!0,this.bodyTypeArr=ze,this.appNotificationImageField=qe,this.notificationId=+this.route.
1snapshot.params.notificationId,this.event=this.route.snapshot.queryParams.event}get subject(){return this.form.get("subject")}static pushTitleOrBodyValidator(e){var m,v;let t=(m=e.get("pushNotificationTitle"))==null?void 0:m.value,s=(v=e.get("pushNotificationBody"))==null?void 0:v.value;return!(t!=null&&t.trim())&&!(s!=null&&s.trim())?{pushTitleOrBodyRequired:!0}:null}ngOnInit(){this.editorConfig={base_url:"/tinymce",suffix:".min",append_to:document.body,height:500,selector:"textarea",content_style:"\n body {\n font-family: 'Public Sans', sans-serif !important;\n }\n body img {\n max-width: 100% !important;\n height: auto !important;\n display: block !important;\n }\n",paste_convert_word_fake_lists:!1,block_formats:"Header 1=h1;Header 2=h2",fontsize_formats:"8pt 10pt 11pt 12pt 14pt 18pt 24pt 36pt",menubar:!0,paste_as_text:!0,toolbar_items_size:"small",font_formats:"Acumin Pro Condensed Black=Acumin Pro Condensed Black,sans-serif;Akira Expanded Demo=Akira Expanded Demo,sans-serif;Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Avant Garde Bold=Avant Garde Bold,sans-serif;Avant Garde Extra Light=Avant Garde Extra Light,sans-serif;Avant Garde Regular=Avant Garde Regular,sans-serif;Avenir=Avenir,sans-serif;Digital-7=Digital-7,sans-serif;Avenir Next Condensed=Avenir Next Condensed,sans-serif;Babotta=Babotta,sans-serif;Bender=Bender,sans-serif;Bender-Black=Bender-Black,sans-serif;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Contes=Contes,sans-serif;Courier New=courier new,courier;Face Off M54=Face Off M54,sans-serif;Futura=Futura,sans-serif;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Lato=Lato,sans-serif;Lora=Lora,serif;Montserrat=Montserrat,sans-serif;Montserrat Bold=Montserrat Bold,sans-serif;Montserrat Regular=Montserrat Regular,sans-serif;Open Sans=Open Sans,sans-serif;Oswald=Oswald,sans-serif;Poppins Bold=Poppins Bold,sans-serif;Poppins Extra Bold=Poppins Extra Bold,sans-serif;Poppins Regular=Poppins Regular,sans-serif;PT Sans=PT Sans,sans-serif;PT Serif=pt serif,serif;Raleway=Raleway,sans-serif;Ravi Prakash=ravi prakash, cursive;Roboto=Roboto,sans-serif;Roboto Condensed=Roboto Condensed,sans-serif;Slabo27px=Slabo27px,serif;Source Sans Pro=Source Sans Pro,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;The Blackmore=The Blackmore,sans-serif;Times New Roman=times new roman,times;Trade Gothic=Trade Gothic,sans-serif;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",allow_conditional_comments:!1,relative_urls:!0,image_advtab:!0,branding:!1,menu:{edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"spellchecker visualaid"},insert:{title:"Insert",items:"image link media | template hr"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript | blockquote align | formats | removeformat"},table:{title:"Table",items:"table inserttable tableprops deletetable | cell row column"}},plugins:["textcolor colorpicker advlist wordcount advlist autolink lists link image hr table","searchreplace image code table","insertdatetime media table paste wordcount contextmenu fullpage"],toolbar:"undo redo | backcolor | bold italic underline strikethrough | alignleft aligncenter alignright al
1ignjustify | numlist bullist | outdent indent blockquote removeformat subscript superscript table image link media code | styleselect formatselect fontselect fontsizeselect | dynamicTokensList | mybutton"},this.http.getReq({url:"/api2/v1/lookups/languages"}).subscribe(e=>{this.languages=e.body,this.cookieService.get("ccLang")&&(this.selectLanguage=this.cookieService.get("ccLang"),this.activeTabIdx=this.languages.findIndex(t=>t.key===this.selectLanguage)),this.getModel()})}getModel(){this.getNotificationEvents(),this.event?(this.preloaderService.preloaderSubject.next({show:!0}),this.http.getReq({url:'/api2/notifications-emails?filter=(event="'.concat(this.event,'")')}).pipe(D(()=>{this.preloaderService.preloaderSubject.next(!1)})).subscribe(e=>{this.allNotificationsEmails=e.body;let t=this.allNotificationsEmails.find(m=>m.lang===this.selectLanguage);this.selectNotifications=t||this.allNotificationsEmails[0],!this.selectNotifications&&this.selectLanguage==="en"&&(this.selectNotifications=this.allNotificationsEmails.find(m=>m.lang==="en"||!m.lang));let s=this.allNotificationsEmails.find(m=>m.event);this.selectNotifications||(this.selectNotifications={event:s==null?void 0:s.event}),this.getNotificationTypes(this.selectNotifications.event),this.http.getReq({url:"/api2/v1/lookups/account-roles"}).subscribe(()=>{this.model=e.body}),this.initForm(this.selectNotifications)})):(this.getNotificationTypes(null),this.initForm({}))}getNotificationEvents(){this.http.getReq({url:"/api2/v1/lookups/customized-notification-events"}).subscribe(e=>{this.customizedNotificationEvents=e.body.map(t=>({eventUid:t.key,resolvedValue:t.value}))})}initForm(e){this.form=this.fb.group({id:[e&&e.id||null],subject:[e&&e.subject||"",R.required],body:[e&&e.body||""],bodyType:[e&&e.bodyType||"",R.required],useContextRecipients:[e&&e.useContextRecipients||!1],fromType:[e&&e.fromType||""],sendPushNotification:[(e==null?void 0:e.sendPushNotification)||!1],pushNotificationTitle:[(e==null?void 0:e.pushNotificationTitle)||""],appNotificationBody:[(e==null?void 0:e.appNotificationBody)||""],pushNotificationBody:[(e==null?void 0:e.pushNotificationBody)||""],appNotificationImage:[e==null?void 0:e.appNotificationImage],createDate:[e&&e.createDate||null],createAccountId:[e&&e.createAccountId||null],replyToEmail:[e&&e.replyToEmail||""],event:[e&&e.event||"",R.required],updateDate:[e&&e.updateDate||null],updateAccountId:[e&&e.updateAccountId||null]}),e!=null&&e.sendPushNotification&&(this.sendPushNotificationRequired(e==null?void 0:e.sendPushNotification),this.changePushEditor()),this.form.get("sendPushNotification").valueChanges.subscribe(t=>{this.sendPushNotificationRequired(t)}),e.event&&this.form.controls.event.disable()}sendPushNotificationRequired(e){e?this.form.addValidators(a.pushTitleOrBodyValidator):this.form.removeValidators(a.pushTitleOrBodyValidator),this.form.updateValueAndValidity()}back(){this.router.navigate(["../"],{relativeTo:this.route})}onTabChange(e){if(!this.isInit){this.timeout&&clearTimeout(this.timeout),this.selectLanguage=this.languages[e.index].key,this.selectNotifications=this.allNotificationsEmails.find(s=>s.lang===this.selectLanguage),!this.selectNotifications&&this.selectLanguage==="en"&&(this.selectNotifications=this.allNotificationsEmails.find(s=>s.lang==="en"||!s.lang));let t=this.allNotificationsEmails.find(s=>s.event);this.selectNotifications||(this.selectNotifications={event:t==null?void 0:t.event}),this.initForm(this.selectNotifications),this.showEditor=!1,this.timeout=setTimeout(()=>{this.showEditor=!0},1e3)}this.isInit=!1}changePushEditor(){this.showPushEditor=!1,setTimeout(()=>{this.showPushEditor=!0},1e3)}onSubmit(){this.form.valid?this.form.value.id?this.onEditNotificationEmails():this.onCreateNotificationEmails():this.utils.validateForm({form:this.form})}openModal(e){this.modalRef=this.modalService.show(e,{class:"modal-size--xxl _mi-modal",backdrop:!0,keyboard:!1,ignoreBackdropClick:!0})}getNotificationTypes(e){let t="/api/v1/notification/resolvetokens?notificationTypesStr="+encodeURIComponent('["'+e+'"]');this.http.getReq({url:t,options:{observe:"response"}}).subscribe(s=>{this.showEditor=!1,setTimeout(()=>{this.showEditor=!0,this.tokensField={arrKey:Object.keys(s.body),arrValue:Object.values(s.body)}},20)})}onEditNotificationEmails(){var s,m;let e=(s=this.form.getRawValue().event)!=null&&s.resolvedValue?(m=this.form.getRawValue().event)==null?void 0:m.resolvedValue:this.form.getRawValue().event,t=j(T(T({},this.selectNotifications),this.form.getRawValue()),{event:e,lang:this.selectLanguage});delete t.format,this.preloaderService.preloaderSubject.next({show:!0}),this.http.putReq({url:"/api2/notifications-emails/".concat(this.form.getRawValue().id),body:t}).subscribe(()=>{this.preloaderService.preloaderSubject.next(!1),this.back()},()=>this.preloaderService.preloaderSubject.next(!1))}onCreateNotificationEmails(){var s,m;let e=(s=this.form.getRawValue().event)!=null&&s.resolvedValue?(m=this.form.getRawValue().event)==null?void 0:m.resolvedValue:this.form.getRawValue().event,t=j(T({},this.form.getRawValue()),{event:e,lang:this.selectLanguage});this.preloaderService.preloaderSubject.next({show:!0}),this.http.postReq({url:"/api2/notifications-emails",body:t}).subscribe(()=>{this.preloaderService.preloaderSubject.next(!1),this.back()},()=>this.preloaderService.preloaderSubject.next(!1))}};a.\u0275fac=function(t){return new(t||a)(h(ce),h(F),h(V),h(P),h(B),h(O),h(re),h(ye))},a.\u0275cmp=M({type:a,selectors:[["app-notification-emails-form"]],standalone:!1,decls:14,vars:8,consts:[["previewModal",""],[1,"fixed_header"],[1,"d-flex"],[1,"active-cursor",3,"click"],[1,"material-icons",2,"margin","0 11px"],[1,"cc-admin-tab-group",3,"selectedTabChange","selectedIndex"],[4,"ngFor","ngForOf"],["mat-tab-label",""],["matTabContent",""],[1,"tab-title"],[1,"notification-container"],["class","form-container m-0 cc-admin-dynamic-form",3,"formGroup","ngSubmit",4,"ngIf"],[1,"form-container","m-0","cc-admin-dynamic-form",3,"ngSubmit","formGroup"],[2,"margin","0"],[1,"form-group"],[1,"cc-admin-input-label","cc-admin-mb--8px"],[1,"text-danger"],["appearance","fill",1,"selectWidth"],["formControlName","subject","matInput","","placeholder",""],[4,"ngIf"],["bindLabel","resolvedValue","bindValue","eventUid","formControlName","event",3,"items","multiple","selectableGroup","clearable","searchable","closeOnSelect"],["class","field-validation-error p-0 m-0",4,"ngIf"],["formControlName","replyToEmail","matInput","","placeholder",""],["formControlName","sendPushNotification",1,"cc-admin-material-checkbox-wrapper","cc-admin-mb--12px","mat-accent","pb-0",3,"change"],[1,"ml-2"],[1,"form-group","body-type"],["bindLabel","value","bindValue","key","formControlName","bodyType",3,"items","multiple","clearable","searchable","closeOnSelect"],[1,"form-group","mb-5"],[3,"field","isOrganizerOrAdminTemplate","idx","tokens
1Field","form",4,"ngIf"],["class","mb-5",3,"click",4,"ngIf"],[1,"d-flex","justify-content-between","pt-2","border-top"],["type","button",1,"cc-admin-btn-text","cc-admin-button--small","cc-admin-button--bordered","cc-admin-text-primary-color--black","cc-admin-bg-transparent",3,"click"],["type","submit",1,"cc-admin-btn-text","cc-admin-button--small","cc-admin-text-primary-color--white","cc-admin-bg-primary-color--green"],[1,"field-validation-error","p-0","m-0"],[1,"info-icon-wrapper"],[1,"material-icons","cc-admin-text-primary-color--black"],[1,"image-tooltip"],["alt","",3,"src"],["formControlName","pushNotificationTitle","matInput","","placeholder",""],["id","pushNotificationBody","formControlName","pushNotificationBody","rows","4","maxlength","500",1,"cc-admin-textarea"],["class","form-group",4,"ngIf"],["class","form-group mb-5",4,"ngIf"],[3,"classImage","form","field"],[3,"field","isOrganizerOrAdminTemplate","idx","tokensField","form"],[1,"mb-5",3,"click"],[1,"pb-4","mb-0"],[1,"p-2","d-flex","preview-mode","cc-admin-btn-text","cc-admin-button--small"],[1,"mr-0"],[1,"modal-body"],["type","button","mat-button","","aria-label","Close",1,"close","pull-right","mat-icon-button","mat-autocomplete-panel",2,"right","-15px","top","11px !important",3,"click"],[1,"material-icons","mr-0"],[1,"container","mb-5",2,"margin-top","4rem"],[1,"row","d-flex","justify-content-center"],[3,"innerHTML"]],template:function(t,s){if(t&1){let m=S();o(0,"div",1)(1,"div",2)(2,"h4",3),x("click",function(){return y(m),N(s.back())}),l(3),d(4,"translate"),n(),o(5,"em",4),l(6,"keyboard_arrow_right"),n(),o(7,"h4"),l(8),d(9,"translate"),n()()(),o(10,"mat-tab-group",5),x("selectedTabChange",function(C){return y(m),N(s.onTabChange(C))}),b(11,mt,3,0,"mat-tab",6),n(),b(12,pt,9,3,"ng-template",null,0,W)}t&2&&(r(3),u(" ",f(4,4,"NotificationModule.Notification")," "),r(5),E(f(9,6,"NotificationModule.Edit")),r(2),p("selectedIndex",s.activeTabIdx),r(),p("ngForOf",s.languages))},dependencies:[K,Q,ie,Z,ee,te,ne,oe,ae,pe,me,he,Ne,ve,we,be,Ee,fe,Pe,Be,Oe,Ve,Se,I],styles:['.mat-form-field-appearance-fill .mat-mdc-form-field-flex{background-color:#fff!important} .modal-size--xxl .modal-content{border-radius:15px} .mat-mdc-tab-header{margin-bottom:4rem!important} .mat-input-element{color:#363636!important} fieldset{max-width:600px!important} .mat-form-field-appearance-fill .mat-mdc-form-field-infix{padding:0 0 1.185em!important;border-top-width:.4375em!important} .body-type .ng-arrow-wrapper{bottom:19px!important}.mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}textarea[_ngcontent-%COMP%]{min-width:100%!important}form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-bottom:32px!important}.pull-right[_ngcontent-%COMP%]{padding:4px;border:1px solid gray;border-radius:7px}.preview-mode[_ngcontent-%COMP%]{border:2px solid #008a7b;font-weight:600;color:#008a7b;cursor:pointer;border-radius:4px}.event-logo[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);bottom:-43px;height:96px;width:96px;border-radius:10px}.close[_ngcontent-%COMP%]{top:7px!important}.info-icon-wrapper[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;cursor:pointer;top:2px}.info-icon-wrapper[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:18px;color:#666;transition:color .2s}.info-icon-wrapper[_ngcontent-%COMP%]:hover .material-icons[_ngcontent-%COMP%]{color:#007bff}.image-tooltip[_ngcontent-%COMP%]{opacity:0;visibility:hidden;pointer-events:none;position:absolute;top:100%;left:50%;transform:translate(-50%);z-index:1000;width:280px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:12px;box-shadow:0 4px 20px #00000026;margin-top:10px;transition:opacity .2s ease,visibility .2s ease}.image-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-6px;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid white}.image-tooltip[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-7px;left:50%;transform:translate(-50%);width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #e0e0e0;z-index:-1}.info-icon-wrapper[_ngcontent-%COMP%]:hover .image-tooltip[_ngcontent-%COMP%]{opacity:1;visibility:visible;pointer-events:auto}.image-tooltip[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;border-radius:4px;margin-bottom:8px;
1border:1px solid #f0f0f0}']});let i=a;return i})();var dt=[{path:"",component:Le},{path:"form",component:De}],He=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=k({type:a}),a.\u0275inj=w({imports:[q.forChild(dt),q]});let i=a;return i})();var ri=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=k({type:a}),a.\u0275inj=w({imports:[J,He,Ae,le,se,Ie,de,ge,Ce,xe,Me,_e,Fe,ke,ue,Re,Y,Te]});let i=a;return i})();export{ri as NotificationEmailsModule};
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.