1import{a as Ge}from"./chunk-5MHPRWFK.js";import{a as $e}from"./chunk-3B5PB3ZA.js";import"./chunk-4H2ORHSZ.js";import"./chunk-H56FLT6R.js";import{a as Oe}from"./chunk-FM6WEN77.js";import"./chunk-NOX7JG5Z.js";import"./chunk-OJRGJ36H.js";import"./chunk-IQFHJYYX.js";import{a as ze}from"./chunk-O6ZJZCPW.js";import"./chunk-UY2BI633.js";import"./chunk-ZBWM3UAT.js";import{a as Be}from"./chunk-ZLQKSU6L.js";import{ja as qe}from"./chunk-XIR7ZRCX.js";import"./chunk-25HTGXIH.js";import{Ba as Pe,Ea as Ve,M as Re,Pa as Ae,ra as je}from"./chunk-5ZW75MFF.js";import{b as ke,e as Fe,f as Me,g as Ee,l as Ie,o as De}from"./chunk-ZZ4GDZDV.js";import{$ as T,$d as xe,Aa as Z,Ba as l,Bb as K,Be as we,Gb as u,Gd as de,Ha as N,Hb as E,Ib as y,Id as ge,Jd as ue,Ka as Y,Kc as ie,La as B,Lb as V,Le as Ne,Mb as A,Md as he,Nb as q,Oe as Le,Rb as M,V as D,Va as k,Wb as ee,Wd as fe,Xd as ye,Za as _,_ as x,_a as S,_c as ae,ab as R,ac as p,ad as oe,ae as Te,bb as j,bc as d,cb as z,ce as ve,db as v,dd as U,eb as m,ee as Ce,fb as c,ga as W,gb as F,gd as ne,id as I,ie as be,ld as se,md as le,nb as P,pb as w,pd as re,qd as ce,rb as C,se as _e,te as Se,vb as J,wb as H,wd as me,xb as X,xd as pe,yc as te,za as Q}from"./chunk-4EYOHIBV.js";import"./chunk-NGIL7LUH.js";import"./chunk-B5XQ7TKQ.js";import"./chunk-UMUHYRWG.js";import"./chunk-4WGKOXNC.js";import"./chunk-6CGJ6UIB.js";import"./chunk-FQEZT2EZ.js";import"./chunk-RDFGVLAH.js";import"./chunk-GSPA3JH4.js";import"./chunk-5UOXAQIA.js";import"./chunk-IRNL5CBJ.js";import"./chunk-SSIY6M6Z.js";import"./chunk-ATO6E22I.js";import"./chunk-7PCKDJEZ.js";import"./chunk-B6G5Y36B.js";import"./chunk-XIPQDBNZ.js";import"./chunk-3VPKZZES.js";import"./chunk-55MUSWHY.js";import"./chunk-IHRC3SYL.js";import"./chunk-PJKO2XHO.js";import"./chunk-S6YUVJNO.js";import{k as b}from"./chunk-P2XWNIA6.js";var Qe=["table"],Ze=["selectSurvey"],Ye=()=>({standalone:!0});function Je(s,a){if(s&1&&(m(0,"mat-option",34),u(1),p(2,"translate"),c()),s&2){let e=a.$implicit;v("value",e.LocaleCode),l(),y(" ",d(2,2,e.SystemTranslationCode)," ")}}function Ke(s,a){if(s&1){let e=P();m(0,"ion-row",50)(1,"ion-col",52)(2,"ion-text",29),u(3),p(4,"translate"),c()(),m(5,"ion-col",53)(6,"div",54)(7,"ion-item",55)(8,"mat-select",56),p(9,"translate"),p(10,"translate"),q("ngModelChange",function(o){x(e);let n=C(2);return A(n.locale,o)||(n.locale=o),T(o)}),w("ngModelChange",function(){x(e);let o=C(2);return T(o.changeLocale())}),j(11,Je,3,4,"mat-option",34,R),c()()()()()}if(s&2){let e=C(2);l(3),E(d(4,5,"label-Language")),l(5),v("placeholder",M(d(9,7,"label-SelectLocale"))),V("ngModel",e.locale),k("aria-label",d(10,9,"label-SelectLocale")),l(3),z(e.locales)}}function et(s,a){s&1&&(m(0,"ion-row",60)(1,"ion-col",80)(2,"div",81)(3,"ion-text"),u(4),p(5,"translate"),c()()()()),s&2&&(l(4),y("",d(5,1,"msg-FieldRequired")," "))}function tt(s,a){s&1&&(m(0,"ion-row",60)(1,"ion-col",80)(2,"div",81)(3,"ion-text"),u(4),p(5,"translate"),c()()()()),s&2&&(l(4),y("",d(5,1,"msg-FieldRequired")," "))}function it(s,a){if(s&1&&(m(0,"mat-option",34),u(1),p(2,"translate"),c()),s&2){let e=a.$implicit;v("value",e.MessageTemplateTypeId),l(),y(" ",d(2,2,e.Name)," ")}}function at(s,a){s&1&&(m(0,"ion-text"),u(1),p(2,"translate"),c()),s&2&&(l(),y("",d(2,1,"msg-FieldRequired")," "))}function ot(s,a){if(s&1&&(m(0,"div",81),_(1,at,3,3,"ion-text"),c()),s&2){let e=C(4);l(),S(e.f.Type.errors.required?1:-1)}}function nt(s,a){if(s&1&&(m(0,"ion-row",60)(1,"ion-col",82),_(2,ot,2,1,"div",81),c()()),s&2){let e=C(3);l(2),S(e.submitted&&e.f.Type.errors||e.f.Type.errors&&e.messageForm.get("Type").touched?2:-1)}}function st(s,a){s&1&&(m(0,"ion-text"),u(1),p(2,"translate"),c()),s&2&&(l(),y("",d(2,1,"msg-FieldRequired")," "))}function lt(s,a){if(s&1&&(m(0,"ion-row",79)(1,"ion-col",83)(2,"div",81),_(3,st,3,3,"ion-text"),c()()()),s&2){let e=C(3);l(3),S(e.f.Body.errors.required?3:-1)}}function rt(s,a){if(s&1){let e=P();m(0,"form",57),w("ngSubmit",function(){x(e);let o=C(2);return T(o.onSubmit("save"))}),m(1,"ion-row",58)(2,"ion-col",52)(3,"ion-text",29),u(4),p(5,"translate"),c()(),m(6,"ion-col",53)(7,"div",40)(8,"input",59),p(9,"translate"),p(10,"translate"),w("blur",function(){x(e);let o=C(2);return T(o.nameNotNull())}),c()()()(),_(11,et,6,3,"ion-row",60),m(12,"ion-row",61)(13,"ion-col",52)(14,"ion-text",29),u(15),p(16,"translate"),c()(),m(1
17,"ion-col",53)(18,"div",62)(19,"textarea",63,3),p(21,"translate"),w("paste",function(o){x(e);let n=C(2);return T(n.counterCharacter(o))})("blur",function(o){x(e);let n=C(2);return n.messagebodyTrim(o),T(n.counterCharacter(o))})("focus",function(o){x(e);let n=C(2);return T(n.counterCharacter(o))})("keyup",function(o){x(e);let n=C(2);return T(n.counterCharacter(o))}),c(),m(22,"div",64)(23,"span",65),u(24),c(),m(25,"span",66),u(26,"/ 250"),c()()()()(),_(27,tt,6,3,"ion-row",60),m(28,"ion-row",67)(29,"ion-col",68)(30,"ion-text",29),u(31),p(32,"translate"),c()(),m(33,"ion-col",53)(34,"div",62),F(35,"textarea",69),p(36,"translate"),c()()(),m(37,"ion-row",70)(38,"ion-col",52)(39,"ion-text",29),u(40),p(41,"translate"),c()(),m(42,"ion-col",71)(43,"div",54)(44,"ion-item",72)(45,"mat-select",73),p(46,"translate"),p(47,"translate"),j(48,it,3,4,"mat-option",34,R),c()()()()(),_(50,nt,3,1,"ion-row",60),m(51,"ion-row",74)(52,"ion-text",29),u(53),p(54,"translate"),c()(),m(55,"ion-row",75)(56,"ion-col",76)(57,"div",77),F(58,"div",78),c()()(),_(59,lt,4,1,"ion-row",79),c()}if(s&2){let e=C(2);v("formGroup",e.messageForm),l(4),y("",d(5,23,"label-Name"),"*"),l(4),v("placeholder",M(d(9,25,"label-Name"))),k("aria-label",d(10,27,"label-Name")),l(3),S(e.submitted&&(e.f.Name.errors||e.spaceCheck)||e.f.Name.errors&&e.messageForm.get("Name").touched?11:-1),l(4),y("",d(16,29,"label-Subject"),"*"),l(4),v("placeholder",M(d(21,31,"label-Subject")))("maxlength",e.dynamicMaxlength),l(5),y("",e.characterCounterLength," "),l(3),S(e.submitted&&(e.f.Subject.errors||e.subjectCheck)||e.f.Subject.errors&&e.messageForm.get("Subject").touched?27:-1),l(4),y("",d(32,33,"label-Description")," "),l(4),v("placeholder",M(d(36,35,"label-Description"))),l(5),y("",d(41,37,"label-Type"),"*"),l(5),v("placeholder",M(d(46,39,"label-Type"))),k("aria-label",d(47,41,"label-Type")),l(3),z(e.types),l(2),S(e.submitted&&e.f.Type.errors||e.f.Type.errors&&e.messageForm.get("Type").touched?50:-1),l(3),y("",d(54,43,"label-Body"),"*"),l(5),v("ngxSummernote",e.config),l(),S(e.submitted&&e.f.Body.errors||e.f.Body.errors&&e.messageForm.get("Body").touched?59:-1)}}function ct(s,a){if(s&1&&(m(0,"div",21)(1,"div",48)(2,"ion-grid",49),_(3,Ke,13,11,"ion-row",50),_(4,rt,60,45,"form",51),c()()()),s&2){let e=C();l(3),S(e.showPage?3:-1),l(),S(e.showPage?4:-1)}}function mt(s,a){if(s&1&&(m(0,"mat-option",34),u(1),p(2,"translate"),c()),s&2){let e=a.$implicit;v("value",e.Code),l(),y(" ",d(2,2,e.Name)," ")}}function pt(s,a){if(s&1&&(m(0,"ion-row",35),F(1,"ion-col",28),m(2,"ion-col",30)(3,"div",84)(4,"ion-text",85),u(5),p(6,"translate"),c()()()()),s&2){let e=C();l(5),y("",d(6,1,e.descriptionText)," ")}}function dt(s,a){s&1&&(m(0,"ion-row",36)(1,"ion-col",86)(2,"div",81)(3,"ion-text"),u(4),p(5,"translate"),c()()()()),s&2&&(l(4),y("",d(5,1,"msg-FieldRequired")," "))}function gt(s,a){s&1&&(m(0,"ion-row",42)(1,"ion-col",87)(2,"div",81)(3,"ion-text"),u(4),p(5,"translate"),c()()()()),s&2&&(l(4),y("",d(5,1,"msg-FieldRequired")," "))}var He,O=class s{constructor(a,e,t,o,n,i,h,g,r,f,L){this.modalController=a;this.router=e;this.location=t;this._translationService=o;this.route=n;this.formBuilder=i;this._apiService=h;this._commonService=g;this.ngxSmartModalService=r;this.ngZone=f;this.navCtrl=L}table;selectSurvey;count;messageForm;submitted=!1;showPage=!1;parentId=null;itemsSelected=[];message={};types=[];locales=[];SurveyList;locale;tempLocale;spaceCheck;subjectCheck;valueCheck=0;touchType=!1;searchTextList="";modalSearch="";category;mailTags;config={fontNames:["Arial","Arial Black","Brush Script MT","Calibri","Comic Sans MS","Courier New","Garamond","Georgia","Helvetica","Radnika","sans-serif","Tahoma","Times New Roman","Trebuchet MS","Verdana"],addDefaultFonts:!1,fontNamesIgnoreCheck:["Arial","Arial Black","Brush Script MT","Calibri","Comic Sans MS","Courier New","Garamond","Georgia","Helvetica","Radnika","sans-serif","Tahoma","Times New Roman","Trebuchet MS","Verdana"],inheritPlaceholder:!1,callbacks:{onImageUploadError:()=>{this.ngZone.run(()=>{this._commonService.presentAlert("",this._commonService.getLocalTranslation("label-UnsupportedFileSize"))})},onKeydown:a=>{let e=document.querySelector(".note-editable");if(!e)return;let t=window.getSelection();if(t&&t.rangeCount>0){let o=t.getRangeAt(0);(()=>{let i=[e.querySelector("p:last-child")];if(!i.some(Boolean))return!1;let{endContainer:h}=o;return i.some(g=>{let r=h;for(;r;){if(r===g)return!0;r=r.parentNode}return!1})})()&&a.key==="Enter"&&setTimeout(()=>{let i=document.getElementsByClassName("message-templatediv")[0];i&&(i.scrollTop=i.scrollHeight)},0)}}},toolbar:[["headline",["style"]],["misc",["codeview","undo","redo","codeBlock"]],["font",["bold","italic","underline","strikethrough","superscript","subscript","clear"]],["fontsize",["fontname","fontsize","color"]],["para",["style0","ul","ol","paragraph","height"]],["insert",["image","link","hr","specialchars"]],["table",["table"]],["customButtons",["mailTagButton"]]],fontSizes:["8","9","10","11","12","14","16","18","24","36"],styleTags:["p",{title:"moveXM Style 1",tag:"a",className:"kcm-customized",value:"a"},{title:"moveXM Style 2",tag:"a",className:"kcm-customizedBorderRadius",value:"a"},{title:"moveXM Style 3",tag:"a",className:"kcm-customizedBorderSemiRadius",value:"a"},{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"],cleaner:{notTime:2400,action:"both",newline:"<br>",notStyle:"position:absolute;bottom:0;left:2px",icon:'<i class="note-icon"><svg xmlns="http://www.w3.org/2000/svg" id="libre-paintbrush" viewBox="0 0 14 14" width="14" height="14"><path d="m 11.821425,1 q 0.46875,0 0.82031,0.311384 0.35157,0.311384 0.35157,0.780134 0,0.421875 -0.30134,1.01116 -2.22322,4.212054 -3.11384,5.035715 -0.64956,0.609375 -1.45982,0.609375 -0.84375,0 -1.44978,-0.61942 -0.60603,-0.61942 -0.60603,-1.469866 0,-0.857143 0.61608,-1.419643 l 4.27232,-3.877232 Q 11.345985,1 11.821425,1 z m -6.08705,6.924107 q 0.26116,0.508928 0.71317,0.870536 0.45201,0.361607 1.00781,0.508928 l 0.007,0.475447 q 0.0268,1.426339 -0.86719,2.32366 Q 5.700895,13 4.261155,13 q -0.82366,0 -1.45982,-0.311384 -0.63616,-0.311384 -1.0212,-0.853795 -0.3850
15,-0.54241 -0.57924,-1.225446 -0.1942,-0.683036 -0.1942,-1.473214 0.0469,0.03348 0.27455,0.200893 0.22768,0.16741 0.41518,0.29799 0.1875,0.130581 0.39509,0.24442 0.20759,0.113839 0.30804,0.113839 0.27455,0 0.3683,-0.247767 0.16741,-0.441965 0.38505,-0.753349 0.21763,-0.311383 0.4654,-0.508928 0.24776,-0.197545 0.58928,-0.31808 0.34152,-0.120536 0.68974,-0.170759 0.34821,-0.05022 0.83705,-0.07031 z"/></svg></i>'},buttons:{mailTagButton:this.customButton},imageAttributes:{icon:'<i class="note-icon-pencil"></i>'},popover:{image:[["image",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]],["custom",["imageAttributes"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]],["view",["fullscreen","codeview"]]]},dialogsInBody:!0};okDisabled=!0;tempContext;okClicked=!1;mailTagSubmitted=!1;tagList=[];tagListTemp=[];tagType=[];tagOkDisabled=!0;mailTagDescription;rang;descriptionText;codeMatch;tagNameFromList;hideSurvey=!1;mailCheck=!1;templateTypeStatus={};dynamicMaxlength=250;characterCounterLength=0;subjectValue;subjectWithoutTrim;cursorPositionStart;cursorPositionEnd;clickout(a){typeof a.target.className=="string"&&a.target.className&&(a.target.className.includes("note-current-color-button")||a.target.className.includes("note-recent-color"))&&this.fontAnchorTagChanges()}onpopstate(a){this.goBack()}ngOnInit(){He=this,this.config.maximumImageFileSize=this._commonService.getMaxFileSize(),this.messageForm=this.formBuilder.group({Name:["",{validators:I.required,updateOn:"blur"}],Subject:["",{validators:I.required,updateOn:"blur"}],Description:[""],Type:["",{validators:I.required,updateOn:"blur"}],Body:["",{validators:I.required}]}),this.messageForm.get("Body").valueChanges.subscribe(a=>{var e=document.getElementsByClassName("note-editable")[0];if(e){var t=e.scrollHeight>e.clientHeight;if(t){let o=document.querySelector(".note-editable");o&&o.style.setProperty("height","unset","important")}this.buttonSettingsForMobileBrowser()}})}init(){return b(this,null,function*(){this.parentId=this.route.snapshot.paramMap.get("id"),this.locale=localStorage.locale&&localStorage.locale!=""?localStorage.locale:"nl",this.locale=="nl"?this.config.lang="nl-NL":this.locale=="fr"?this.config.lang="fr-FR":this.locale=="de"&&(this.config.lang="de-DE"),this.tempLocale=this.locale,this.itemsSelected=[],yield this.getTypesList(),yield this.getLocales(),this.parentId=="0"&&(this.parentId=null),this.parentId!=null?(yield this.getMessageDetails(this.parentId),setTimeout(()=>{let e=document.getElementsByClassName("note-color-palette")[0];e&&(e.onclick=function(){setTimeout(()=>{this.fontAnchorTagChanges()},10)}.bind(this))},500)):(setTimeout(()=>{let e=document.getElementsByClassName("note-color-palette")[0];e&&(e.onclick=function(){setTimeout(()=>{this.fontAnchorTagChanges()},10)}.bind(this))},100),this.message={MessageTemplateId:Oe(),MessageTemplateTypeId:"",Name:[{Text:"",LocaleCode:this.locale}],Description:[{Text:"",LocaleCode:this.locale}],TemplateBody:[{Text:"",LocaleCode:this.locale}],TemplateSubject:[{Text:"",LocaleCode:this.locale}]},yield this.taglistget(""),this._commonService.dismiss());let a=this.types.find(e=>e.Code=="general");a&&this.messageForm.patchValue({Type:a.MessageTemplateTypeId}),this.showPage=!0})}ionViewDidEnter(){return b(this,null,function*(){this.init()})}ionViewDidLeave(){this.messageForm.reset(),this.submitted=!1}fontAnchorTagChanges(){let a=document.getElementsByClassName("note-editable")[0],e=a.getElementsByTagName("font");if(e.length>0)for(let o=0;o<e.length;o++)(e[o].parentElement?e[o].parentElement.nodeName:e[o].parentElement)=="A"&&e[o].style.backgroundColor&&(e[o].parentElement.style.backgroundColor=e[o].style.backgroundColor);let t=a.getElementsByTagName("span");if(t.length>0)for(let o=0;o<t.length;o++)(t[o].parentElement?t[o].parentElement.nodeName:t[o].parentElement)=="A"&&t[o].style.backgroundColor&&(t[o].parentElement.style.backgroundColor=t[o].style.backgroundColor)}getTypesList(){return b(this,null,function*(){try{this._commonService.presentLoading();let a=yield this._apiService.getTypes();
1a&&(this.types=a.body,this.types=[...this.types.sort(function(e,t){let o=e.Name.toLowerCase(),n=t.Name.toLowerCase();return o>n?1:o<n?-1:0})]),this._commonService.dismiss()}catch(a){this._commonService.dismiss(),this._commonService.log(a,this._commonService.ERROR)}})}getLocales(){return b(this,null,function*(){this._commonService.domainLocales.length>0?this.locales=[...this._commonService.domainLocales]:(yield this._commonService.getLocales(),this.locales=[...this._commonService.domainLocales])})}getMessageDetails(a){return b(this,null,function*(){try{this._commonService.presentLoading();let e=yield this._apiService.getNotificationTemplateDetails(a,!1);this.message=e.body,this.templateTypeStatus={MessageTemplateTypeId:e.body.MessageTemplateTypeId},yield this.taglistget("");let t,o,n,i,h=this.message.Name.find(g=>g.LocaleCode.toLowerCase()==this.locale);this.message.Body!=""?(t=this.message.Body.find(g=>g.LocaleCode.toLowerCase()==this.locale),o=this.message.Body.find(g=>g.LocaleCode.toLowerCase()!=this.locale)):t=null,this.message.Description!=""?i=this.message.Description.find(g=>g.LocaleCode.toLowerCase()==this.locale):i=null,this.message.Subject!=""?n=this.message.Subject.find(g=>g.LocaleCode.toLowerCase()==this.locale):n=null,h?this.messageForm.patchValue({Name:h.Text}):this.message.Name.push({Text:"",LocaleCode:this.locale}),n?(this.messageForm.patchValue({Subject:n!=null?n.Text:null}),this.counterCharacter({target:{value:n.Text}})):this.message.Subject.push({Text:"",LocaleCode:this.locale}),t?(this.tagList.forEach(g=>{var r=this.escapeRegExp(`${g.Code}`),f=new RegExp("{"+r,"g");g.Type=="link"?(t.Text=t.Text.replace(f,`{${g.DisplayText}`),o.Text=o.Text.replace(f,`{${g.DisplayText}`)):(t.Text=t.Text.replace(f,`{${g.Name}`),o.Text=o.Text.replace(f,`{${g.Name}`))}),this.messageForm.patchValue({Body:t!=null?t.Text:null})):this.message.Body.push({Text:"",LocaleCode:this.locale}),i?this.messageForm.patchValue({Description:i!=null?i.Text:null}):this.message.Description.push({Text:"",LocaleCode:this.locale}),this.messageForm.patchValue({Type:this.message.MessageTemplateTypeId}),this._commonService.dismiss(),this.messageForm.updateValueAndValidity()}catch(e){this._commonService.dismiss(),this._commonService.log(e,this._commonService.ERROR)}})}get f(){return this.messageForm.controls}nameNotNull(){this.messageForm.value.Name.trim()?this.spaceCheck=!1:this.spaceCheck=!0}subjectNotNull(){this.messageForm.value.Subject.trim()?this.subjectCheck=!1:this.subjectCheck=!0}buttonSettingsForOutlook(){let a=document.querySelector(".note-editable");a.querySelectorAll(".kcm-customized").forEach(n=>{let i=n.getBoundingClientRect();n.setAttribute("widthoutlook",`${i.width}px;`),n.setAttribute("heightoutlook",`${i.height}px;`),n.setAttribute("fillcolor",window.getComputedStyle(n).backgroundColor);let h=[];h.push(parseInt(window.getComputedStyle(n).fontSize));for(let g=0;g<n.children.length;g++)h.push(parseInt(window.getComputedStyle(n.children[g]).fontSize));n.setAttribute("verticalalign",i.height/2-Math.max(...h)/2/2-2+"px;")}),a.querySelectorAll(".kcm-customizedBorderRadius").forEach(n=>{let i=n.getBoundingClientRect();n.setAttribute("widthoutlook",`${i.width}px;`),n.setAttribute("heightoutlook",`${i.height}px;`),n.setAttribute("fillcolor",window.getComputedStyle(n).backgroundColor);let h=[];h.push(parseInt(window.getComputedStyle(n).fontSize));for(let g=0;g<n.children.length;g++)h.push(parseInt(window.getComputedStyle(n.children[g]).fontSize));n.setAttribute("verticalalign",i.height/2-Math.max(...h)/2/2-2+"px;")}),a.querySelectorAll(".kcm-customizedBorderSemiRadius").forEach(n=>{let i=n.getBoundingClientRect();n.setAttribute("widthoutlook",`${i.width}px;`),n.setAttribute("heightoutlook",`${i.height}px;`),n.setAttribute("fillcolor",window.getComputedStyle(n).backgroundColor);let h=[];h.push(parseInt(window.getComputedStyle(n).fontSize));for(let g=0;g<n.children.length;g++)h.push(parseInt(window.getComputedStyle(n.children[g]).fontSize));n.setAttribute("verticalalign",i.height/2-Math.max(...h)/2/2-2+"px;")})}buttonSettingsForMobileBrowser(){let a=document.querySelector(".note-editable");a!==null&&(a.querySelectorAll(".kcm-customized").forEach(i=>
1{i.style.borderRadius="100px",i.style.boxShadow="none",i.style.fontSize="14px",i.style.margin="0",i.style.textTransform="none",i.style.padding="15px",i.style.width="fit-content",i.style.setProperty("color","white","important"),i.style.textAlign="center",i.style.display="inline-block",i.style.textDecoration="none",i.style.removeProperty("background-color")}),a.querySelectorAll(".kcm-customizedBorderRadius").forEach(i=>{i.style.borderRadius="0",i.style.boxShadow="none",i.style.fontSize="14px",i.style.margin="0",i.style.textTransform="none",i.style.padding="15px",i.style.width="fit-content",i.style.setProperty("color","white","important"),i.style.textAlign="center",i.style.display="inline-block",i.style.textDecoration="none",i.style.removeProperty("background-color")}),a.querySelectorAll(".kcm-customizedBorderSemiRadius").forEach(i=>{i.style.fontSize="14px",i.style.boxShadow="none",i.style.backgroundColor="#ff4803",i.style.padding="15px",i.style.display="inline-block",i.style.textAlign="justify",i.style.margin="0",i.style.width="fit-content",i.style.setProperty("color","#FFFFFA"),i.style.borderRadius="12px"}),a.querySelectorAll(".kcm-tableChangeValue").forEach(i=>{i.style.boxShadow="none",i.style.fontSize="14px",i.style.margin="0",i.style.textTransform,i.style.setProperty("padding","15px","important"),i.style.setProperty("color","white","important"),i.style.display="inline-block",i.style.textDecoration="none"}))}imageOutlook(){document.querySelector(".note-editable").querySelectorAll("img").forEach(t=>{t.setAttribute("outlookaspectratio",`${t.clientHeight/t.clientWidth}`)})}onSubmit(a){return b(this,null,function*(){if(this.submitted=!0,this.buttonSettingsForMobileBrowser(),this.buttonSettingsForOutlook(),this.imageOutlook(),this.messageForm.value.Body=$(".wysiwyg-editor").summernote("code"),this.messageForm.value.Name.trim())this.spaceCheck=!1;else{this.spaceCheck=!0;return}if(this.messageForm.value.Subject.trim())this.subjectCheck=!1;else{this.subjectCheck=!0;return}if(this.messageForm.invalid){this._commonService.scrollToError(),this.category="details";return}let e=0,t=this.locale;this.locales.forEach(o=>{let n=this.message.Name.find(r=>r.LocaleCode.toLowerCase()==o.LocaleCode.toLowerCase()),i=this.message.Body.find(r=>r.LocaleCode.toLowerCase()==o.LocaleCode),h=this.message.Subject.find(r=>r.LocaleCode.toLowerCase()==o.LocaleCode),g=this.message.Description.find(r=>r.LocaleCode.toLowerCase()==o.LocaleCode);if(n)n.Text==null?n.Text=this.messageForm.value.Name?this.messageForm.value.Name.trim():this.messageForm.value.Name:n.Text.trim()==""?n.Text=this.messageForm.value.Name?this.messageForm.value.Name.trim():this.messageForm.value.Name:n.Text.trim()!==""&&n.LocaleCode.toLowerCase()==this.locale&&(n.Text=this.messageForm.value.Name?this.messageForm.value.Name.trim():this.messageForm.value.Name);else{let r={Text:this.messageForm.value.Name?this.messageForm.value.Name.trim():this.messageForm.value.Name,LocaleCode:o.LocaleCode};this.message.Name.push(r)}if(g)g.Text==null?g.Text=this.messageForm.value.Description?this.messageForm.value.Description.trim():this.messageForm.value.Description:g.Text.trim()==""?g.Text=this.messageForm.value.Description?this.messageForm.value.Description.trim():this.messageForm.value.Description:g.Text.trim()!==""&&g.LocaleCode.toLowerCase()==this.locale&&(g.Text=this.messageForm.value.Description?this.messageForm.value.Description.trim():this.messageForm.value.Description);else{let r={Text:this.messageForm.value.Description?this.messageForm.value.Description.trim():this.messageForm.value.Description,LocaleCode:o.LocaleCode};this.message.Description.push(r)}if(i)i.Text==null?(i.Text=this.messageForm.value.Body?this.messageForm.value.Body.trim():this.messageForm.value.Body,i.Text&&(typeof i.Text=="string"||i.Text instanceof String)&&(i.Text=i.Text.replaceAll(""","'")),this.tagList.forEach(r=>{if(r.Type=="link")var f=this.escapeRegExp(`${r.DisplayText}`);else var f=this.escapeRegExp(`${r.Name}`);var L=new RegExp("{"+f,"g");i.Text=i.Text.replace(L,`{${r.Code}`)}),e++):i.Text.trim()==""?(i.Text=this.messageForm.value.Body?this.messageForm.value.Body.trim():this.messageForm.value.Body,i.Text&&(typeof i.Text=="string"||i.Text instanceof String)&&(i.Text=i.Text.replaceAll(""","'")),this.tagList.forEach(r=>{if(r.Type=="link")var f=this.escapeRegExp(`${r.DisplayText}`);else var f=this.escapeRegExp(`${r.Name}`);var L=new RegExp("{"+f,"g");i.Text=i.Text.replace(L,`{${r.Code}`)})):i.Text.trim()!==""&&i.LocaleCode.toLowerCase()==this.locale?(i.Text=this.messageForm.value.Body?this.messageForm.value.Body.trim():this.messageForm.value.Body,i.Text&&(typeof i.Text=="string"||i.Text instanceof String)&&(i.Text=i.Text.replaceAll(""","'")),this.tagList.forEach(r=>{if(r.Type=="link")var f=this.escapeRegExp(`${r.DisplayText}`);else var f=this.escapeRegExp(`${r.Name}`);var L=new RegExp("{"+f,"g");i.Text=i.Text.replace(L,`{${r.Code}`)})):this.tagList.forEach(r=>{if(r.Type=="link")var f=this.escapeRegExp(`${r.DisplayText}`);else var f=this.escapeRegExp(`${r.Name}`);var L=new RegExp("{"+f,"g");i.Text&&(typeof i.Text=="string"||i.Text instanceof String)&&(i.Text=i.Text.replaceAll(""","'")),i.Text=i.Text.replace(L,`{${r.Code}`)});else{let r={Text:this.messageForm.value.Body?this.messageForm.value.Body.trim():this.messageForm.value.Body,LocaleCode:o.LocaleCode};if(r.Text){let f=r.Text;(typeof f=="string"||f instanceof String)&&(r.Text=r.Text.replaceAll(""","'"))}this.tagList.forEach(f=>{if(f.Type=="link")var L=this.escapeRegExp(`${f.DisplayText}`);
1else var L=this.escapeRegExp(`${f.Name}`);var We=new RegExp("{"+L,"g");r.Text=r.Text.replace(We,`{${f.Code}`)}),this.message.Body.push(r)}if(h)h.Text==null?h.Text=this.messageForm.value.Subject?this.messageForm.value.Subject.trim():this.messageForm.value.Subject:h.Text.trim()==""?h.Text=this.messageForm.value.Subject?this.messageForm.value.Subject.trim():this.messageForm.value.Subject:h.Text.trim()!==""&&h.LocaleCode.toLowerCase()==this.locale&&(h.Text=this.messageForm.value.Subject?this.messageForm.value.Subject.trim():this.messageForm.value.Subject);else{let r={Text:this.messageForm.value.Subject?this.messageForm.value.Subject.trim():this.messageForm.value.Subject,LocaleCode:o.LocaleCode};this.message.Subject.push(r)}}),yield this.saveDetails(a)})}saveDetails(a){return b(this,null,function*(){try{if(this._commonService.presentLoading(),this.message.MessageTemplateTypeId=this.messageForm.value.Type,a=="save")this.message.guid=this.message.NotificationTemplateId,delete this.message.NotificationTemplateId,yield this._apiService.putNotificationTemplateDetails(this.message,this.parentId),this._commonService.log(this.message,this._commonService.LOG),this._commonService.dismiss(),this._commonService.showToast(this._commonService.getLocalTranslation("msg-RecordSaved")),this._translationService.getTranslation(this.locale),this.parentId==null&&(this.templateTypeStatus={MessageTemplateTypeId:this.message.MessageTemplateTypeId},this.location.replaceState("maintenance/notificationtemplates/"+this.message.MessageTemplateId),this.parentId=this.message.MessageTemplateId),this.submitted=!1;else if(a=="preview"){this.message.LocaleCode=this.locale;let e=yield this._apiService.notificationTemplatePreview(this.message);this._commonService.dismiss(),e&&this.openPreviewModal(e,"")}}catch(e){this._commonService.dismiss(),this._commonService.log(e,this._commonService.ERROR)}})}delete(){return b(this,null,function*(){this._commonService.presentAlertConfirm().then(a=>b(this,null,function*(){try{this._commonService.presentLoading(),yield this._apiService.deleteMessage(this.parentId),this._commonService.dismiss(),this._commonService.log(a,this._commonService.LOG),this.goBack()}catch(e){this._commonService.dismiss(),this._commonService.log(e,this._commonService.ERROR)}})).catch(a=>{this._commonService.log(a,this._commonService.LOG)})})}goBack(){this.router.navigate(["/maintenance/notificationtemplates"],{replaceUrl:!0})}changeLocale(){if(this.parentId&&this.message.Name){let a=this.message.Name.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a.Text=this.messageForm.value.Name.trim();let e=this.message.Name.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Name:e.Text}):(this.message.Name.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Name.reset())}else{let a=this.message.Name.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a&&(a.Text=this.messageForm.controls.Name.value?this.messageForm.controls.Name.value.trim():this.messageForm.controls.Name.value);let e=this.message.Name.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Name:e.Text}):(this.message.Name.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Name.reset())}if(this.parentId&&this.message.Body){let a=this.message.Body.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a.Text=this.messageForm.value.Body;let e=this.message.Body.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?(this.tagList.forEach(t=>{var o=this.escapeRegExp(`${t.Code}`),n=new RegExp("{"+o,"g");t.Type=="link"?e.Text=e.Text.replace(n,`{${t.DisplayText}`):e.Text=e.Text.replace(n,`{${t.Name}`)}),this.messageForm.patchValue({Body:e.Text})):(this.message.Body.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Body.reset())}else{let a=this.message.Body.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a&&(a.Text=this.messageForm.controls.Body.value);let e=this.message.Body.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Body:e.Text}):(this.message.Body.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Body.reset())}if(this.parentId&&this.message.Subject){let a=this.message.Subject.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a.Text=this.messageForm.value.Subject.trim();let e=this.message.Subject.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Subject:e.Text}):(this.message.Subject.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Subject.reset())}else{let a=this.message.Subject.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a&&(a.Text=this.messageForm.controls.Subject.value);let e=this.message.Subject.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Subject:e.Text}):(this.message.Subject.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Subject.reset())}if(this.parentId&&this.message.Description){let a=this.message.Description.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a.Text=this.messageForm.value.Description?.trim();let e=this.message.Description.find(t=>t.LocaleCode.toLowerCase()==this.locale);e?this.messageForm.patchValue({Description:e.Text}):(this.message.Description.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Description.reset())}else{let a=this.message.Description.find(t=>t.LocaleCode.toLowerCase()==this.tempLocale);a&&(a.Text=this.messageForm.controls.Description.value);let e=this.message.Description.find(t=>t.LocaleCode.toLowerCase()==this.locale);if(e)this.messageForm.patchValue({Description:e.Text});else{this.message.Description.push({Text:"",LocaleCode:this.locale}),this.messageForm.controls.Description.reset();let t=document.querySelector(".textarea");t&&t.classList.remove("itthis.tempLocale = this.localeem-has-value")}}this.tempLocale=this.locale,this.counterCharacter({target:{value:this.messageForm.get("Subject").value}})}cancelDropdown(a,e){e=="type"&&(this.messageForm.value.Type==""||this.messageForm.value.Type==null?this.touchType=!0:this.touchType=!1)}customButton(a){return $.summernote.ui.button({contents:'<i class="fas fa-tags"></i> Mail tags',tooltip:"Mail tags",container:".note-editor",className:"note-btn",click:function(){He.openMailTagModal(a),a.invoke("editor.insertText","")}}).render()}taglistget(a){return b(this,null,function*(){this._commonService.presentLoading(),yield this._apiService.getUserReplaceMentTags().then(e=>{this.tagList=e.body,this.tagType=this.getUniqueArray(this.tagList,["Type"]),this.tagType.length>0&&(this.tagType=[...this.tagType.sort(function(t,o){let n=t.TagName.toLowerCase(),i=o.TagName.toLowerCase();return n>i?1:n<i?-1:0})]),this._commonService.dismiss()}).catch(e=>{this._commonService.dismiss(),this._commonService.log(e,this._commonService.ERROR)})})}getUniqueArray(a,e){return Object.values(a.reduce((t,o)=>{let n=e.map(i=>o[i]).join("|");return n in t||(t[n]=o),t},{}))}groupTags(a,e){return a.reduce((t,o)=>o[e]===void 0?t:Object.assign(t,{[o[e]]:(t[o[e]]||[]).concat(o)}),{})}closeMailTagModal(){try{this.rang.select()}catch{}this.tempContext.invoke("editor.restoreRange"),this.tempContext.invoke("editor.focus"),setTimeout(()=>{this.ngxSmartModalService.getModal("mailTag").close()},0),this.mailTags="",this.tagListTemp=[],this.mailTagSubmitted=!1}openMailTagModal(a){return b(this,null,function*(){a.invoke("editor.saveRange"),this.rang=a.invoke("editor.getLastRange"),this.tempContext=a,this.descriptionText=null,this.ngxSmartModalService.getModal("mailTag").open()})}updateName(){this.mailCheck=!1}okMailModal(){if(this.mailTagSubmitted=!0,this.mailTagDescription==null||this.mailTagDescription.trim()==""){this._commonService.scrollToError();return}if(this.mailTagDescription.trim())this.mailCheck=!1;else{this.mailCheck=!0;return}if(!(this.mailTagDescription==""||this.mailTags=="")){if(this.okClicked=!0,this.codeMatch.ColumnName=="link"&&this.mailTagDescription){try{this.rang.select()}catch{}this.tempContext.invoke("editor.restoreRange"),this.tempContext.invoke("editor.focus"),this.tempContext.invoke("editor.pasteHTML",`<a href="{${this.codeMatch.Name}}">${this.mailTagDescription}</a>`)}if(this.mailTagDescription){try{this.rang.select()}catch{}this.tempContext.invoke("editor.restoreRange"),this.tempContext.invoke("editor.focus"),this.tempContext.invoke("editor.insertText",`{${this.codeMatch.Name}:${this.mailTagDescription}}`)}else{try{this.rang.select()}catch{}this.tempContext.invoke("editor.restoreRange"),this.tempContext.invoke("editor.focus"),this.tempContext.invoke("editor.insertText",`{${this.codeMatch.Name}}`)}this.ngxSmartModalService.getModal("mailTag").close(),this.mailTags="",this.mailTagDescription="",this.tagListTemp=[],this.okClicked=!1,this.mailTagSubmitted=!1}}
1mailTagSelection(a){this.mailTags=a.value,this.codeMatch=this.tagList.find(e=>e.Code==this.mailTags),this.descriptionText=this.codeMatch.Description}escapeRegExp(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}replaceMentApicall(a){return b(this,null,function*(){yield this.taglistget(a.value)})}openPreviewModal(a,e){return b(this,null,function*(){let t=yield this.modalController.create({component:Ge,cssClass:"modal-sm-preview",backdropDismiss:!1,showBackdrop:!0,componentProps:{templateModalJSON:a}});return t.onDidDismiss().then(o=>{}),yield t.present()})}ngOnDestroy(){this.showPage=!1}counterCharacter(a){this.characterCounterLength=0,this.dynamicMaxlength=250,this.subjectValue=a.target.value,this.cursorPositionStart=a.target.selectionStart,this.cursorPositionEnd=a.target.selectionEnd;let e=this.subjectValue;this.characterCounterLength=e.length}messagebodyTrim(a){this.subjectWithoutTrim=a.target.value}static \u0275fac=function(e){return new(e||s)(N(Ne),N(oe),N(te),N(Be),N(ae),N(ge),N(Ie),N(De),N(Me),N(W),N(he))};static \u0275cmp=Y({type:s,selectors:[["app-notificationtemplate"]],viewQuery:function(e,t){if(e&1&&J(Qe,5)(Ze,5),e&2){let o;H(o=X())&&(t.table=o.first),H(o=X())&&(t.selectSurvey=o.first)}},hostBindings:function(e,t){e&1&&w("click",function(n){return t.clickout(n)},Z)("popstate",function(n){return t.onpopstate(n)},Q)},standalone:!1,decls:80,vars:70,consts:[["mailTag",""],["mailtagName","ngModel"],["descriptionTag","ngModel"],["subject",""],[3,"scrollY"],[1,"page-inner-container"],[1,"menubar"],[1,"ion-align-items-center","ion-justify-content-between"],[1,"ion-align-items-center","page-title","page-title-outer-exception"],["helpCode","label-PageTitleForNotificationTemplates","color","primary","slot","primary"],[2,"cursor","pointer",3,"click"],[1,"ion-no-padding"],[1,"ion-align-items-center","ion-justify-content-end"],["size-md","auto",1,"ion-no-padding"],[1,"ion-justify-content-end"],["helpCode","label-PreviewInNotificationTemplate",1,"menu-button",3,"click","popper"],["slot","icon-only","name","eye","color","primary"],["helpCode","label-SaveEmailTemplatesDetails",1,"menu-button",3,"click","popper"],["slot","icon-only","name","save","color","primary"],["helpCode","label-BackFromEmailTemplatesDetails",1,"menu-button",3,"click"],["slot","icon-only","name","arrow-back","color","primary"],[1,"page-inner-main-content"],["identifier","mailTag","customClass","ngx-modal-messageFilter",3,"closable","dismissable","escapable"],["slot","fixed",1,"secondary-topbar",2,"background","none"],[1,"ion-margin-start",2,"cursor","default"],["color","primary","slot","primary"],[1,"tag-content",2,"margin-top","20px"],["helpCode","label-SelectTagInEmailTemplateDetails",1,"ion-justify-content-start","ion-align-items-center","margin-X",2,"padding-left","15px"],["size-md","4","size-sm","4","size-xs","4",1,"ion-no-padding"],[1,"textColorBlue","font-size-X"],["size-md","5.8","size-sm","5.8","size-xs","5.8",1,"ion-no-padding"],[1,"ion-justify-content-between","alignToUSection",2,"padding-right","22px"],["lines","none","slot","start",1,"ion-no-padding","lang-select",2,"border-radius","var(--kcm-border-radius)","height","40px","--ion-background-color","#eee"],["name","mailtagName",1,"custom",3,"ngModelChange","selectionChange","ngModel","placeholder"],[3,"value"],[1,"ion-justify-content-start","ion-align-items-center","margin-X",2,"padding-left","15px","margin-top","-7px"],[1,"ion-justify-content-start","ion-align-items-center","margin-X"],["helpCode","label-InputDescriptionInEmailTemplateDetails",1,"ion-justify-content-start","ion-align-items-center","margin-X",2,"padding-left","15px"],["size-md","4","size-sm","4","size-xs","4",1,"ion-no-padding",2,"margin-top","12px"],["size-md","5.8","size-sm","5.8","size-xs","5.8",2,"padding-left","1px","padding-right","2px","padding-top","0px","padding-bottom","0px"],[1,"input-group","alignToUSection"],["type","text","maxlength","50","name","description",1,"form-control",3,"keyup.enter","blur","ngModelChange","ngModel","ngModelOptions","placeholder"],[1,"ion-justify-content-start","ion-align-items-center","margin-X",2,"padding-left","15px"],[1,"ion-justify-content-end","ion-row-fixed"],[1,"alert-button-group","sc-ion-alert-md",2,"margin","0 -1rem -1rem 0","padding","8px !important"],["type","button",1,"alert-button","ion-focusable","ion-activatable","secondary","sc-ion-alert-md",3,"click"],[1,"alert-button-inner","sc-ion-alert-md"],["role","presentation",1,"sc-ion-alert-md","hydrated"],[1,"message-templatediv",2,"scroll-behavior","smooth","padding-left","20px","padding-right","20px","padding-top","10px","overflow","auto","position","absolute","top","0","left","0","right","0","bottom","0"],[1,"content-header","ion-no-padding"],["helpCode","label-LanguageSelectInNotificationTemplatesDetails",1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],[3,"formGroup"],["size-md","3.8","size-sm","10","size-xs","10"],["size-md","5.6","size-sm","10","size-xs","10",1,"ion-no-padding"],[1,"ion-justify-content-between","dropdown-alignment","alignToUSection"],["lines","none","slot","start",1,"ion-no-padding","lang-select","margin-0","item-style-grey"],["name","locale",1,"custom",3,"ngModelChange","ngModel","placeholder"],[3,"ngSubmit","formGroup"],["helpCode","label-NameInNotificationTemplatesDetails",1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],["type","text","maxlength","50","value","","formControlName","Name","name","Name",1,"form-control","bg-gray",3,"blur","placeholder"],[1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],["helpCode","label-SubjectInNotificationTemplatesDetails",1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],[1,"input-textarea","alignToUSection"],["formControlName","Subject","name","Subject",1,"form-control","bg-gray","resizable",3,"paste","blur","focus","keyup","maxlength","placeholder"],["id","the-count"],["id","current"],["id","maximum"],["helpCode","label-DescriptionInNotificationTemplatesDetails",1,"ion-justify-content-start","margin-X","side-Alignment"],["size-md","3.8","size-sm","10","size-xs","10",2,"padding-top","8px"],["maxlength","200","formControlName","Description","name","Description",1,"form-control","bg-gray","resizable",3,"placeholder"],["helpCode","label-SelectEmailTemplateTypeAndStatusInDetail
1s",1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],["helpCode","label-SelectEmailTemplateTypeInDetails","size-md","5.6","size-sm","10","size-xs","10",1,"ion-no-padding"],["lines","none","slot","start",1,"ion-no-padding","lang-select","margin-0","item-style-grey","readonly"],["formControlName","Type","name","Type",1,"custom",3,"placeholder"],["helpCode","label-BodyFieldName",1,"ion-align-items-center","ion-justify-content-start","margin-X","side-Alignment"],["helpCode","label-BodyInEmailTemplateType",1,"ion-align-items-center",2,"padding-left","15px","padding-right","39px","margin-bottom","35px"],["size-md","9.4","size-sm","9.4","size-xs","9.4",1,"ion-no-padding"],[1,"template-resizable-summernote",2,"width","100%"],["formControlName","Body","name","Body",1,"wysiwyg-editor",3,"ngxSummernote"],[1,"ion-align-items-center","ion-justify-content-start","margin-X"],["offset-md","3.8","size-md","5.6","size-sm","10","size-xs","10",1,"ion-no-padding",2,"padding-left","24px !important","padding-right","18px !important"],[1,"invalid-msg"],["offset-md","3.8","size-md","5.6","size-sm","10","size-xs","10",1,"ion-no-padding",2,"padding-left","24px !important","padding-right","0px !important"],["size-md","9.4","size-sm","9.4","size-xs","9.4",1,"ion-no-padding",2,"padding-left","19px !important","padding-right","28px !important"],[1,"ion-justify-content-between","alignToUSection",2,"margin-left","7%","width","90%"],[2,"font-size","14px"],["offset","4","size-md","5.8","size-sm","5.8","size-xs","5.8",1,"tbl-no-padding"],["offset","4","size-md","5.8","size-sm","5.8","size-xs","5.8",1,"tb-no-padding"]],template:function(e,t){if(e&1){let o=P();F(0,"app-header"),m(1,"ion-content",4)(2,"div",5)(3,"div",6)(4,"ion-row",7)(5,"div",8)(6,"ion-text",9)(7,"span",10),w("click",function(){return x(o),T(t._commonService.goMaintenance())}),u(8),p(9,"translate"),c(),u(10," > "),m(11,"span"),u(12),p(13,"translate"),c()()(),m(14,"ion-col",11)(15,"ion-row",12)(16,"ion-col",13)(17,"ion-buttons",14)(18,"ion-button",15),p(19,"translate"),p(20,"translate"),w("click",function(){return x(o),T(t.onSubmit("preview"))}),F(21,"ion-icon",16),c(),m(22,"ion-button",17),p(23,"translate"),p(24,"translate"),w("click",function(){return x(o),T(t.onSubmit("save"))}),F(25,"ion-icon",18),c(),m(26,"ion-button",19),p(27,"translate"),w("click",function(){return x(o),T(t.goBack())}),F(28,"ion-icon",20),c()()()()()()(),_(29,ct,5,2,"div",21),c()(),m(30,"ngx-smart-modal",22,0)(32,"div",23)(33,"div",24)(34,"ion-text",25),u(35),p(36,"translate"),c()()(),m(37,"div",26)(38,"ion-row",27)(39,"ion-col",28)(40,"ion-text",29),u(41),p(42,"translate"),c()(),m(43,"ion-col",30)(44,"div",31)(45,"ion-item",32)(46,"mat-select",33,1),p(48,"translate"),p(49,"translate"),q("ngModelChange",function(i){return x(o),A(t.mailTags,i)||(t.mailTags=i),T(i)}),w("selectionChange",function(i){return x(o),T(t.mailTagSelection(i))}),j(50,mt,3,4,"mat-option",34,R),c()()()()(),_(52,pt,7,3,"ion-row",35),_(53,dt,6,3,"ion-row",36),m(54,"ion-row",37)(55,"ion-col",38)(56,"ion-text",29),u(57),p(58,"translate"),c()(),m(59,"ion-col",39)(60,"div",40)(61,"input",41,2),p(63,"translate"),p(64,"translate"),w("keyup.enter",function(){return x(o),T(t.okMailModal())})("blur",function(){return x(o),T(t.updateName())}),q("ngModelChange",function(i){return x(o),A(t.mailTagDescription,i)||(t.mailTagDescription=i),T(i)}),c()()()(),_(65,gt,6,3,"ion-row",42),c(),m(66,"ion-row",43)(67,"div",44)(68,"button",45),p(69,"translate"),w("click",function(){return x(o),T(t.closeMailTagModal())}),m(70,"span",46),u(71),p(72,"translate"),c(),F(73,"ion-ripple-effect",47),c(),m(74,"button",45),p(75,"translate"),w("click",function(){return x(o),T(t.okMailModal())}),m(76,"span",46),u(77),p(78,"translate"),c(),F(79,"ion-ripple-effect",47),c()()()()}if(e&2){let o=K(62);l(),v("scrollY",!1),l(7),E(d(9,33,"label-Maintenance")),l(4),y(" ",d(13,35,"menuItem-NotificationTemplates")),l(6),v("popper",M(d(19,37,"label-Preview"))),k("aria-label",d(20,39,"label-Preview")),l(4),v("popper",M(d(23,41,"label-Save"))),k("aria-label",d(24,43,"label-Save")),l(4),k("aria-label",d(27,45,"label-Back")),l(3),S(t.showPage?29:-1),l(),v("closable",!1)("dismissable",!1)("escapable",!1),l(5),y(" ",d(36,47,"label-MailTag")),l(6),y("",d(42,49,"label-SelectTag"),"* "),l(5),v("placeholder",M(d(48,51,"label-MailTag"))),V("ngModel",t.mailTags),k("aria-label",d(49,53,"label-MailTag")),l(4),z(t.tagList),l(2),S(t.descriptionText!=""&&t.descriptionText!=null?52:-1),l(),S(t.mailTagSubmitted&&(t.mailTags==""||t.mailTags==null)?53:-1),l(4),y("",d(58,55,"label-DisplayText"),"*"),l(4),v("placeholder",M(d(63,57,"label-DisplayText"))),V("ngModel",t.mailTagDescription),v("ngModelOptions",ee(69,Ye)),k("aria-label",d(64,59,"label-DisplayText")),l(4),S(t.mailTagSubmitted&&(t.mailCheck||o.value==""||o.value==null)?65:-1),l(3),k("aria-label",d(69,61,"label-Cancel")),l(3),E(d(72,63,"label-Cancel")),l(3),k("aria-label",d(75,65,"label-Save")),l(3),E(d(78,67,"label-Save"))}},dependencies:[ce,ne,se,le,de,re,fe,ye,xe,Te,ve,Ce,be,_e,Se,we,Fe,je,Re,Ve,pe,me,$e,ze,ke],styles:[".alignToSection[_ngcontent-%COMP%]{padding-left:11px;padding-right:6px}.alignToUSection[_ngcontent-%COMP%]{padding-left:22px;padding-right:18px}.segmentBorder[_ngcontent-%COMP%]{border:1px solid #a9a9a9;padding-bottom:16px!important}
1.popUpModal[_ngcontent-%COMP%]{height:30px;padding-top:4px}.item-style-dark[_ngcontent-%COMP%]{--ion-background-color: #b0acac !important;border-radius:var(--kcm-border-radius);height:38px;width:100%;margin-top:0;align-items:baseline}.tb-no-padding[_ngcontent-%COMP%]{padding:0 20px 0 24px}.tbl-no-padding[_ngcontent-%COMP%]{padding:0 17px 0 34px}.dark-background[_ngcontent-%COMP%]{background-color:#b0acac!important}#the-count[_ngcontent-%COMP%]{font-weight:700;float:right;padding:.3rem 0 0;font-size:.875rem}"]})};var ut=[{path:"",component:O}],G=class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=B({type:s});static \u0275inj=D({imports:[U.forChild(ut),U]})};var Ue=class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=B({type:s});static \u0275inj=D({imports:[ie,ue,Le,Ee,qe,Pe,Ae,G]})};export{Ue as NotificationtemplatePageModule};
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.