1import{a as Pn,b as co,c as po,d as Mn,e as cn,f as ko,l as Cr,m as _r}from"./chunk-MCS6EATG.js";import{a as Lr,b as Qn}from"./chunk-Q263PWL6.js";import{a as vr,b as ra,c as sa,d as Sr,e as Pr,f as Mr,g as Er,h as Tr,i as Dr}from"./chunk-LGGLPEAS.js";import"./chunk-WRGLTPCW.js";import{a as Vr,b as Ir}from"./chunk-SIG47T65.js";import{n as yr}from"./chunk-MPE67EKA.js";import{a as Zi,b as ln,c as Go,d as br}from"./chunk-RPFKSBY7.js";import{a as Lo}from"./chunk-4UJXZTI5.js";import"./chunk-PHC4GM32.js";import"./chunk-2PSRB2HX.js";import{a as In}from"./chunk-4GX4UGUA.js";import{a as Fo}from"./chunk-CDR3YUV3.js";import{a as Ro}from"./chunk-WMJJYTTK.js";import{a as mr}from"./chunk-DF2DJN74.js";import"./chunk-HMRHXNPP.js";import{a as Ar}from"./chunk-QIIGYS3V.js";import"./chunk-YALQOCVW.js";import"./chunk-XACWZYWT.js";import"./chunk-LMJU7VKT.js";import"./chunk-HFVLKPYR.js";import"./chunk-7HVMSKY3.js";import"./chunk-MYX55TBZ.js";import{b as ui}from"./chunk-C2LV6WIJ.js";import{a as Tt,b as Dt}from"./chunk-AQYS46LV.js";import"./chunk-UBIWIWH6.js";import"./chunk-UT7NJC7M.js";import"./chunk-AU4WDQCR.js";import"./chunk-PCIRWM2Y.js";import"./chunk-HUJU7NQR.js";import"./chunk-ULKMNVPR.js";import"./chunk-NRBIVAHV.js";import{a as Wo}from"./chunk-SV6FHZNO.js";import"./chunk-ALGF7UUQ.js";import"./chunk-HNA2X73R.js";import"./chunk-QY5BYG54.js";import"./chunk-JV54QITB.js";import{a as An,b as Oo,c as xr,d as aa}from"./chunk-L4JBZ7FH.js";import{a as gr}from"./chunk-C5K6DKGM.js";import{a as Zn}from"./chunk-6EUX66BP.js";import{a as di}from"./chunk-MGCFPGVR.js";import"./chunk-HHFNFYTH.js";import{a as Ti,b as Qa,c as So}from"./chunk-5ULBTWAP.js";import{a as wr}from"./chunk-EXNWZE5Y.js";import{d as uo,f as Bo,g as mo,h as mn}from"./chunk-XG6EBHV7.js";import{a as fr}from"./chunk-O7M7W7F6.js";import{a as Ki}from"./chunk-UA67LKZU.js";import{a as Kt}from"./chunk-PBLP3DKF.js";import{a as hr}from"./chunk-RXDHMKPK.js";import{a as Di}from"./chunk-5VAI5S7T.js";import{r as li}from"./chunk-EKPTZO4D.js";import"./chunk-CHAIIRIE.js";import"./chunk-X6YHEMIY.js";import{a as ci}from"./chunk-4LRXLFOI.js";import{$ as Mo,$a as Re,$b as ht,A as $,Ab as $e,B as Wi,Ba as Ce,Bb as et,Ca as _e,Cb as ni,D as qn,Da as ye,Db as tt,E as ee,Eb as Do,F as zi,Fa as xe,Fb as it,G as Un,Ga as jn,Gb as nt,Ha as ve,Ia as yn,Ib as ot,Ja as be,Jb as lr,Ka as we,Kb as at,Lb as Ft,M as Ni,Ma as Se,Mb as rt,N as te,Na as Pe,Nb as st,Oa as It,Ob as lt,Pa as Me,Q as ie,Qa as Ve,Qb as dt,R as ne,Ra as Ee,Rb as dr,Sa as Te,Sb as ct,Tb as cr,U as er,Ua as De,Ub as pt,Va as Ie,Vb as Sn,W as Po,Wa as Ae,Wb as ut,X as tr,Xa as sr,Xb as Ut,Y as ir,Ya as Le,Yb as mt,Z as nr,Zb as gt,_a as ke,_b as Ht,ab as Oe,ba as or,bb as Ge,c as Rt,cb as Be,d as Bt,db as Eo,e as Y,eb as Fe,f as Mt,fa as Vo,g as K,ga as ar,gb as We,h as Xa,hb as Ne,ia as oe,ib as To,j as Tn,ja as ae,jb as qe,k as Ot,ka as re,kb as zt,l as J,la as se,lb as Ue,m as Fi,ma as Et,mb as He,n as Ci,na as le,nb as Dn,oa as de,ob as je,pa as ce,pb as ze,qa as pe,qb as Ze,r as $a,ra as _n,rb as Qe,sa as ue,sb as ri,ta as rr,tb as Ye,ua as me,ub as qt,va as ge,vb as Ke,wa as N,wb as Lt,x as ji,xa as he,xb as Je,y as X,ya as Hn,yb as Xe,z as Nt,za as fe}from"./chunk-V56NKJ6G.js";import{P as F,R as zn,V as lo,W as pr,X as ur,Y as Pi,b as ei,c as ti,f as L,g as z,ma as Io,na as Ao,q as Xi,s as yi,v as si}from"./chunk-XFXITKE5.js";import{B as kt,Fa as Ka,Xa as Ja,q as ki,s as wn}from"./chunk-PDHBTXLI.js";import{a as wt}from"./chunk-URBTB3XE.js";import{b as Li,c as Za,d as St,e as Ai,k as bt}from"./chunk-WLIT5UGW.js";import{$d as un,Bc as P,Bd as o,Be as h,Bf as vt,Cd as k,Ce as R,De as O,Ee as Cn,Fe as wo,Hf as oa,Ic as ta,Ie as x,If as Si,Jc as ia,Jd as Ei,Je as C,Kc as w,Kd as oo,Ke as _,Kf as sn,Lc as Ea,Le as Wt,Mc as Ta,Md as xt,Me as Q,Ne as I,Oe as ai,Of as ja,Pb as tn,Pc as pn,Pf as za,Rd as S,Se as na,Te as Ga,Uc as nn,Ue as Ba,Uh as Ya,Vb as Ct,Vc as Hi,Vd as ka,Vh as En,Wd as l,Wh as M,Xh as yt,Yb as Pa,Yc as Da,Yd as Qi,Zc as Z,_d as ft,bc as ea,cc as Ma,ce as ao,cf as rn,de as ro,ee as a,fc as wi,fe as s,gd as on,ge as b,gf as Mi,hd as p,he as xi,ic as Qt,id as u,ie as vi,if as Fa,jd as A,je as Ra,kd as G,ke as y,le as f,lf as Wa,me as m,nf as Na,oc as Yt,od as Ia,pd as Aa,pe as q,pf as qa,qc as Va,qd as La,qe as an,qf as Nn,re as bn,rf as Jt,sd as Bi,sf as Gt,tc as bo,tf as Pt,uf as Ua,ve as U,wd as no,we as H,wf as Ha,xe as j,ye as so,ze as Oa}from"./chunk-SAC3HMHB.js";import{a as dn,b as Bn,k as B}from"./chunk-XU43R4EC.js";var No=(()=>
1{class r extends En{constructor(t,n){super(t,n)}GetAllMenuItems(t){return this.get("clientrole/GetAllMenuItems/"+t.toString())}GetRoleById(t){return this.get("clientrole/GetRoleInfoById/"+t)}GetAllRoleForPermission(){return this.get("clientrole/GetAllRoleForPermission")}GetAllRolePermission(){return this.get("clientrole/GetRoleFeatureModulePermissions")}GetSPRoleFeatureModulePermissions(){return this.get("clientrole/GetSPRoleFeatureModulePermissionsV1")}GetSPRoleFeatureModulePermissionsByRoleId(t){let n="clientrole/GetSPRoleFeatureModulePermissionsByRoleIdV1/"+t;return this.get(n)}AddUpdateRoleAndPermissions(t){return this.post("ClientRole/AddUpdateRoleAndPermissions",t)}ActiveInaciveRoles(t,n){return this.get("clientrole/ActiveInactiveRole/"+t+"/"+n)}IsRoleNameExists(t,n=0){return this.get("clientrole/IsRoleNameExists/"+t+"/"+n)}static{this.\u0275fac=function(n){return new(n||r)(nn(sn),nn(yt))}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var al=["targetValidator"],rl=["validationGroup"],sl=()=>({"aria-label":"Role",placeholder:"Name of Role"});function ll(r,g){if(r&1&&b(0,"dxi-column",30),r&2){let t=g.$implicit;l("caption",t.systemRoleId)("dataField",t.roleName)("allowSorting",!1)("fixed",!0)("width",550)}}function dl(r,g){if(r&1&&(a(0,"h3",33),h(1),s()),r&2){let t=m().$implicit;o(),R(t.value)}}function cl(r,g){if(r&1&&(a(0,"li",36),h(1),s()),r&2){let t=m(2).$implicit;o(),O(" ",t.value," ")}}function pl(r,g){if(r&1){let t=y();a(0,"li",36)(1,"div",37)(2,"dx-switch",38),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.AddRemoveFromPermissions(e,i.data))}),s()()()}if(r&2){let t=m(2).$implicit;o(2),l("value",t.value=="1")}}function ul(r,g){if(r&1&&(a(0,"ul",34),S(1,cl,2,1,"li",35)(2,pl,3,1,"li",35),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.value!==""&&t.value!="0"&&t.value!="1"),o(),l("ngIf",t.value=="1"||t.value=="0")}}function ml(r,g){if(r&1&&(a(0,"div"),S(1,dl,2,1,"h3",31)(2,ul,3,2,"ul",32),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.IsGroup=="1"),o(),l("ngIf",t.data.IsGroup!="1")}}function gl(r,g){if(r&1){let t=y();a(0,"dx-form",16)(1,"dxi-item")(2,"dx-data-grid",17),f("onContentReady",function(e){p(t);let i=m();return u(i.refreshGrid(e))}),a(3,"dxo-toolbar")(4,"dxi-item",18)(5,"div",19)(6,"dx-text-box",20),_("valueChange",function(e){p(t);let i=m();return C(i.roleForm.roleName,e)||(i.roleForm.roleName=e),u(e)}),a(7,"dx-validator"),b(8,"dxi-validation-rule",21)(9,"dxi-validation-rule",22),s()()()()(),b(10,"dxo-scrolling",23),S(11,ll,1,5,"dxi-column",24)(12,ml,3,2,"div",25),b(13,"dxo-paging",26),s()(),a(14,"dxi-item")(15,"div",27),b(16,"dx-button",28),a(17,"dx-button",29),f("onClick",function(e){p(t);let i=m();return u(i.onFormSubmit(e))}),s()()()()}if(r&2){let t=m();l("formData",t.roleForm),o(2),l("dataSource",t.dataSource)("columnAutoWidth",!0)("showBorders",!0),o(4),l("labelMode",t.labelMode)("inputAttr",I(14,sl)),x("value",t.roleForm.roleName),l("disabled",t.isDisabled),o(3),l("validationCallback",t.asyncRoleNameValidation),o(),l("preloadEnabled",!0),o(),l("ngForOf",t.headers),o(),l("dxTemplateOf","permissionsFeatures"),o(),l("enabled",!1),o(4),q("text",t.isEditMode?"Save":"Create")}}var qo=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.httpClient=n,this.clientroleService=e,this.activatedRoute=i,this.webStorageService=d,this.permissionService=c,this.authenticationService=v,this.unsubscriber=new Ct,this.progress=new Ct,this.roleId=0,this.isCopied=!1,this.formData={},this.pageHeaderTitle="Add",this.isEditMode=!1,this.copyRoleId=0,this.isDisabled=!1,this.RoleFullNameValidator=[{type:"required",message:"Role name is required"}],this.isPermissionRoleAdd=!1,this.isPermissionRoleUpdate=!1,this.stylingMode="outlined",this.labelMode="floating",this.asyncRoleNameValidation=V=>this.CheckForExistingGroupName(V.value),this.roleForm=Oo,this.roleForm=new An,this.roleForm.roleName="",this.roleForm.systemRoleId=0,this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"]),this.getUserPermission(),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(V=>{this.roleId=V.id,V.iscopied!=null&&V.iscopied.toString().toLowerCase()=="true"&&(this.isCopied=!0),this.roleForm=new An,this.roleForm.roleName="",this.roleForm.systemRoleId=0,Number(this.roleId)>0&&!this.isCopied?(this.isEditMode=!0,this.pageHeaderTitle="Edit",this.getRoleById()):(this.isCopied&&(this.copyRoleId=this.roleId),this.roleId=0,this.isEditMode=!1,this.pageHeaderTitle="Add",this.roleForm=Oo),this.BindPermission()})}ngOnInit(){this.roleForm=Oo,this.roleForm=new An,this.roleForm.roleName="",this.roleForm.systemRoleId=0}
1getUserPermission(){this.isPermissionRoleAdd=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.Add.toString()),this.isPermissionRoleUpdate=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.Update.toString())}getRoleById(){this.roleId&&(this.isEditMode=!0,this.loading=!0,this.clientroleService.GetRoleById(Number(this.roleId)).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{if(t&&t.isSuccess&&t.responseModel!=null&&t.responseModel!=null){let n=t.responseModel;this.roleForm=new An,this.isDisabled=!n.isCanEdit,this.roleForm.isActive=n.isActive,this.roleForm.roleName=n.roleName}})},t=>{this.showErrorMessage(t.message)}))}isValid(){return this.validationGroup.instance.validate().isValid}onFormSubmit({validationGroup:t}){if(t.validate().isValid){let e=0;if(this.dataSource.forEach(d=>{d.Permissions=="1"&&e++}),e==0){this.showErrorMessage("Please choose permission(s)");return}let i=this.roleForm;i.systemRoleId=this.roleId,i.isActive=!0,i.modifiedByUserId=1,i.rolePermissionModelRequsetModel=[],this.dataSource.forEach(d=>{if(d.SystemModuleFeatureID!=0){let c=new xr;c.clientId=1,c.roleId=this.roleId,c.systemModuleFeatureId=d.SystemModuleFeatureID,c.systemModuleFeature=d.Features,c.isActive=d.Permissions=="1",c.modifiedByUserId=1,i.rolePermissionModelRequsetModel.push(c)}}),this.loading=!0,this.clientroleService.AddUpdateRoleAndPermissions(i).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(d=>{d&&d.isSuccess?(this.showSuccessMessage(this.isEditMode?"Role and permissions have been updated successfully":"Role and permissions have been created successfully"),this.router.navigate(["admin/client/setting/user/permissions"])):this.showErrorMessage(d.message)},d=>{this.showErrorMessage(d.message)})}}BindPermission(){let t=[],n=new aa;n.roleName="Features",t.push(n);let e=new aa;e.roleName="Permissions",t.push(e),this.headers=t,this.dataSource=[],this.loading=!0,this.clientroleService.GetSPRoleFeatureModulePermissionsByRoleId(this.isCopied?this.copyRoleId:this.roleId).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(i=>{if(i.isSuccess&&i.responseModel!=null&&i.responseModel!=null){let d=i.responseModel;this.dataSource=d.results==null?[]:d.results}})}AddRemoveFromPermission(t,n){let e=t.previousValue,i=t.value;if(this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedRowIndex",-1)}let d=n.SystemModuleFeatureID,c=n.SystemModuleFeatureGroupID,v=n.Features;this.dataSource.filter(E=>E.SystemModuleFeatureGroupID==c).forEach(E=>{E.SystemModuleFeatureID==d&&(E.Permissions=t.value==!0?"1":"0"),E.SystemModuleFeatureGroupID==c&&t.value&&this.dataSource.filter(T=>T.SystemModuleFeatureGroupID==c&&T.SystemModuleFeatureID!=0).forEach(T=>{T.Features.toLowerCase()=="view"&&(T.Permissions="1")}),!t.value&&E.SystemModuleFeatureGroupID==c&&E.Features.toLowerCase()=="view"&&this.dataSource.filter(T=>T.SystemModuleFeatureGroupID==c&&T.Features.toLowerCase()!="view"&&T.SystemModuleFeatureID!=0).forEach(T=>{T.Permissions="0"})}),document.getElementById("gridContainer").click()}AddRemoveFromPermissions(t,n){let e=t.previousValue,i=t.value,d=n.SystemModuleFeatureID,c=n.SystemModuleFeatureGroupID,v=n.Features,V=this.dataSource.filter(E=>E.SystemModuleFeatureGroupID==c);if(V.length>0)if(!t.value&&v.toLowerCase()=="view"){let E=V.find(T=>T.Features.toLowerCase()=="view");V.map(function(T){T.SystemModuleFeatureID!=E.SystemModuleFeatureID&&T.IsGroup!=1&&(T.Permissions="0"),T.SystemModuleFeatureID==d&&T.SystemModuleFeatureGroupID==c&&T.Features==v&&(T.Permissions="0")})}else t.value&&v.toLowerCase()!="view"?V.map(function(E){E.Features.toLowerCase()=="view"&&(E.Permissions="1"),E.SystemModuleFeatureID==d&&E.SystemModuleFeatureGroupID==c&&E.Features==v&&(E.Permissions="1")}):V.map(function(E){E.SystemModuleFeatureID==d&&E.SystemModuleFeatureGroupID==c&&E.Features==v&&(E.Permissions=t.value==!0?"1":"0")})}refreshGrid(t){this.gridInstance=t.component}CheckForExistingGroupName(t){return B(this,null,function*(){let n=yield wi(this.clientroleService.IsRoleNameExists(t,this.roleId));return!(n.isSuccess&&n.responseModel==!0)})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(sn),k(No),k(Li),k(yt),k(ci),k(li))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-manage-client-permission"]],viewQuery:function(n,e){if(n&1&&(U(N,7),U(al,5),U(It,5),U(rl,7)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.validator=i.first),H(i=j())&&(e.form=i.first),H(i=j())&&(e.validationGroup=i.first)}},standalone:!0,features:[xt,Q],decls:28,vars:3,consts:[[1,"view-wrapper","manage-permissions-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],["routerLink","/admin/client/setting/user/permissions","href","javascript:void(0)",1,"breadcrumbs__link"],[1,"flex"],["href","javascript:void(0)","routerLink","/admin/client/setting/user/permissions",1,"back-icon"],["width","20","height","13","viewBox","0 0 20 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19 12.4421C16.7981 10.334 14.8429 9.13788 13.1338 8.85341C11.4252 8.56929 9.7984 8.52624 8.2531 8.72459V12.5L1 6.33941L8.2531 0.5V4.08835C11.1101 4.106 13.5388 4.91 15.5395 6.5C17.5398 8.09 18.6935 10.0707 19 12.4421Z","stroke","#5C5C5C","stroke-linejoin","round"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"],[1,"table-block"],[3,"formData",4,"ngIf"],[3,"formData"],["id","gridContainer","keyExpr","Id","noDataText"," ",1,"table-outer","mange-permissions-table",3,"onContentReady","dataSource","columnAutoWidth","showBorders"],["location","before","locateInMenu","auto",1,"without-search"],[1,"dx-field"],["label","Name of Role",1,"text-box",3,"valueChange","labelMode","inputAttr","value","disabled"],["type","required","message","Name of role is required"],["type","async","message","Name of role is already exists",3,"validationCallback"],["mode","virtual","showScrollbar","onHover",3,"preloadEnabled"],["cellTemplate","permissionsFeatures",3,"caption","dataField","allowSorting","fixed","width",4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[3,"enabled"],[1,"permission-button"],["text","Cancel","stylingMode","contained","routerLink","/admin/client/setting/user/permissions","type","normal",1,"btn","btn--cancel"],["stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick","text"],["cellTemplate","permissionsFeatures",3,"caption","dataField","allowSorting","fixed","width"],["class","features-title",4,"ngIf"],["class","features-list",4,"ngIf"],[1,"features-title"],[1,"features-list"],["class","features-item",4,"ngIf"],[1,"features-item"],[1,"toggle-btn"],[3,"onValueChanged","value"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Users"),s()(),a(9,"li",3)(10,"a",5),h(11,"Permissions"),s()(),a(12,"li",3),h(13),s()(),a(14,"div",6)(15,"a",7),A(),a(16,"svg",8),b(17,"path",9),s(),h(18," Back "),s()()(),G(),a(19,"div",10)(20,"div",11)(21,"h1",12),h(22),s()()(),a(23,"div",13)(24,"div",14)(25,"dx-vali
1dation-group")(26,"form"),S(27,gl,18,15,"dx-form",15),s()()()()()),n&2&&(o(13),O("",e.pageHeaderTitle," Role & Permission"),o(9),O("",e.pageHeaderTitle," Role & Permission"),o(5),l("ngIf",e.roleForm))},dependencies:[bt,Ai,vt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Nt,qn,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".manage-permissions-outer[_ngcontent-%COMP%] .manage-role-permissions-field[_ngcontent-%COMP%]{padding:0 3rem}.manage-permissions-outer[_ngcontent-%COMP%] .manage-role-permissions-field[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:320px}.manage-permissions-outer[_ngcontent-%COMP%] .permission-button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;padding:0;justify-content:flex-end}.manage-permissions-outer[_ngcontent-%COMP%] .permission-button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}"]})}}return r})();var hl=["targetValidator"],fl=["validationGroup"],Rr=()=>({id:"elementId",class:"popup-outer delete-popup"}),Cl=()=>({"aria-label":"Role"});function _l(r,g){if(r&1){let t=y();a(0,"div",23)(1,"dx-button",24),f("onClick",function(e){p(t);let i=m();return u(i.onCopyRole(e))}),s(),b(2,"dx-button",25),s()}}function yl(r,g){if(r&1&&b(0,"dxi-column",26),r&2){let t=g.$implicit;l("caption",t)("allowSorting",!1)("dataField",t.roleName)("fixed",t.systemRoleId==0)}}function xl(r,g){if(r&1&&(xi(0),h(1),vi()),r&2){let t=m().$implicit;o(),O(" ",t.column.caption.roleName," ")}}function vl(r,g){if(r&1&&(a(0,"a",32),b(1,"i",33),s()),r&2){let t=m(2).$implicit;an("routerLink","/admin/client/setting/user/permissions/manage/",t.column.caption.systemRoleId,"")}}function bl(r,g){if(r&1){let t=y();a(0,"a",34),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.onRoleDelete(e.column.caption))}),A(),a(1,"svg",35),b(2,"path",36),s()()}}function wl(r,g){if(r&1&&(xi(0),a(1,"span",28)(2,"a",29),h(3),s(),S(4,vl,2,2,"a",30)(5,bl,3,0,"a",31),s(),vi()),r&2){let t=m().$implicit,n=m();o(3),R(t.column.caption.roleName),o(),l("ngIf",t.column.caption.isCanEdit&&n.isPermissionRoleUpdate),o(),l("ngIf",t.column.caption.isCanRemove&&n.isPermissionRoleArchive)}}function Sl(r,g){if(r&1&&(a(0,"div"),S(1,xl,2,1,"ng-container",27)(2,wl,6,3,"ng-container",27),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.column.caption.roleName==="Features"),o(),l("ngIf",t.column.caption.roleName!=="Features")}}function Pl(r,g){if(r&1&&(a(0,"h3",39),h(1),s()),r&2){let t=m().$implicit;o(),R(t.value)}}function Ml(r,g){if(r&1&&(a(0,"li",42),h(1),s()),r&2){let t=m(2).$implicit;o(),O(" ",t.value," ")}}function Vl(r,g){r&1&&(a(0,"li",42),A(),a(1,"svg",43),b(2,"path",44),s()())}function El(r,g){r&1&&(a(0,"li",42),A(),a(1,"svg",45),b(2,"path",46),s()())}function Tl(r,g){if(r&1&&(a(0,"ul",40),S(1,Ml,2,1,"li",41)(2,Vl,3,0,"li",41)(3,El,3,0,"li",41),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.value!==""&&t.value!="0"&&t.value!="1"),o(),l("ngIf",t.value=="1"),o(),l("ngIf",t.value=="0")}}function Dl(r,g){if(r&1&&(a(0,"div"),S(1,Pl,2,1,"h3",37)(2,Tl,4,3,"ul",38),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.IsGroup=="1"),o(),l("ngIf",t.data.IsGroup!="1")}}function Il(r,g){if(r&1){let t=y();a(0,"dx-form",47)(1,"dxi-item")(2,"div",48)(3,"div",49)(4,"dx-select-box",50),_("valueChange",function(e){p(t);let i=m();return C(i.roleForm.systemRoleId,e)||(i.roleForm.systemRoleId=e),u(e)}),b(5,"dx-validator",51),s()()()(),a(6,"dxi-item")(7,"div",19)(8,"dx-button",52),f("onClick",function(){p(t);let e=m();return u(e.closeRolePopup())}),s(),a(9,"dx-button",53),f("onClick",function(e){p(t);let i=m();return u(i.RedirectCopyRole(e))}),s()()()()}if(r&2){let t=m();l("formData",t.roleForm),o(4),l("showClearButton",!0)("labelMode",t.labelMode)("dataSource",t.roles),x("value",t.roleForm.systemRoleId),l("inputAttr",I(7,Cl)),o(),l("validationRules",t.RoleValidator)}}var Or=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.httpClient=n,this.clientroleService=e,this.cd=i,this.webStorageService=d,this.permissionService=c,this.authenticationService=v,this.unsubscriber=new Ct,this.progress=new Ct,this.dataSource=[],this.deletePopup=!1,this.roleCopyPopup=!1,this.roleId=0,this.roleName="",this.formData={},this.RoleValidator=[{type:"required",message:"Role name is required"}],this.isPermissionRoleView=!1,this.isPermissionRoleAdd=!1,this.isPermissionRoleUpdate=!1,this.isPermissionRoleArchive=!1,this.stylingMode="outlined",this.labelMode="floating",this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"]),this.userRole=this.webStorageService.getCurrentUserToken().roleName,this.getUserPermission(),this.roleForm=new An,this.BindPermission()}getUserPermission(){this.isPermissionRoleView=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.View.toString()),this.isPermissionRoleAdd=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.Add.toString()),this.isPermissionRoleUpdate=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.Update.toString()),this.isPermissionRoleArchive=this.permissionService.getPermission(ei.RolePermissions.toString(),ti.Archive.toString())}onCopyRole(t){this.roleForm=new An,this.roleCopyPopup=!0}onRoleDelete(t){this.roleId=t.systemRoleId,this.roleName=t.roleName,this.deletePopup=!0}DeleteRolePopup(t){this.loading=!0,this.clientroleService.ActiveInaciveRoles(this.roleId,!1).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{this.closePopup(),n.isSuccess?(this.showSuccessMessage("Role has been deleted succussfully"),this.BindPermission()):this.showErrorMessage(n.message)},n=>{this.closePopup(),this.showErrorMessage(n.message)})}
1closePopup(){this.roleId=0,this.roleName="",this.deletePopup=!1}closeRolePopup(){this.roleCopyPopup=!1}RedirectCopyRole({validationGroup:t}){t.validate().isValid&&this.router.navigate(["admin/client/setting/user/permissions/manage/"+this.roleForm.systemRoleId.toString()+"/true"])}BindPermission(){this.headers=[],this.roles=[],this.dataSource=[],this.loading=!0,this.clientroleService.GetAllRoleForPermission().pipe(w(this.unsubscriber),P(()=>{})).subscribe(t=>{t.isSuccess&&(this.headers=t.responseModel,this.roles=t.responseModel.filter(n=>n.systemRoleId!=0),this.loading=!0,this.clientroleService.GetSPRoleFeatureModulePermissions().pipe(w(this.unsubscriber),P(()=>{setTimeout(()=>{this.loading=!1},3e3)})).subscribe(n=>{if(n.isSuccess)if(n.responseModel!=null&&n.responseModel!=null){let e=n.responseModel;this.dataSource=e.results==null?[]:e.results,setTimeout(()=>{this.loading=!1},2e3)}else setTimeout(()=>{this.loading=!1},2e3);else setTimeout(()=>{this.loading=!1},5e3)}))})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(sn),k(No),k(rn),k(yt),k(ci),k(li))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-client-permission"]],viewQuery:function(n,e){if(n&1&&(U(hl,5),U(It,5),U(fl,7)),n&2){let i;H(i=j())&&(e.validator=i.first),H(i=j())&&(e.form=i.first),H(i=j())&&(e.validationGroup=i.first)}},standalone:!0,features:[xt,Q],decls:44,vars:26,consts:[[1,"view-wrapper","role-permissions-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],["class","flex",4,"ngIf"],[1,"manage-content-outer"],[1,"table-block"],["id","gridContainer","keyExpr","Id","noDataText"," ",1,"table-outer","permissions-table",3,"dataSource","allowColumnReordering","allowColumnResizing","columnAutoWidth","showBorders"],[3,"groupPaging"],["alignment","center","headerCellTemplate","titleHeaderTemplate","cellTemplate","permissionsIcons",3,"caption","allowSorting","dataField","fixed",4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],[3,"enabled"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[3,"formData",4,"ngIf"],[1,"flex"],["text","Copy","icon","copy","type","normal","stylingMode","contained",1,"btn","btn--secondary",3,"onClick"],["text","Create","routerLink","/admin/client/setting/user/permissions/manage","icon","plus","type","normal","stylingMode","contained",1,"btn","btn--primary"],["alignment","center","headerCellTemplate","titleHeaderTemplate","cellTemplate","permissionsIcons",3,"caption","allowSorting","dataField","fixed"],[4,"ngIf"],[1,"role-name"],["href","javascript:void(0)"],["href","javascript:void(0)","class","edit-btn","style","cursor:pointer !important;",3,"routerLink",4,"ngIf"],["appendTo","body","href","javascript:void(0);","class","delete-btn",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"edit-btn",2,"cursor","pointer !important",3,"routerLink"],[1,"dx-icon","dx-icon-edit","dx-list-item-icon"],["appendTo","body","href","javascript:void(0);",1,"delete-btn",3,"click"],["width","16","height","19","viewBox","0 0 16 19","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.27375 0.454102C9.01328 0.454035 9.72467 0.73759 10.2614 1.24636C10.7981 1.75512 11.1192 2.45035 11.1587 3.18882L11.1625 3.34289H15.3994C15.5458 3.34294 15.6867 3.39854 15.7937 3.49848C15.9006 3.59841 15.9657 3.73523 15.9757 3.88127C15.9856 4.02731 15.9398 4.1717 15.8474 4.28525C15.7551 4.39881 15.623 4.47306 15.478 4.49301L15.3994 4.49841H14.5836L13.6438 16.0944C13.5852 16.8178 13.2564 17.4926 12.7228 17.9846C12.1893 18.4767 11.4901 18.7498 10.7643 18.7498H5.78323C5.05745 18.7498 4.35824 18.4767 3.82468 17.9846C3.29113 17.4926 2.96233 16.8178 2.90368 16.0944L1.96309 4.49841H1.14807C1.00846 4.4984 0.873565 4.44784 0.768344 4.35607C0.
1663124 4.26431 0.594693 4.13754 0.575705 3.99922L0.570312 3.92065C0.570318 3.78103 0.62088 3.64614 0.712647 3.54092C0.804413 3.4357 0.931177 3.36727 1.0695 3.34828L1.14807 3.34289H5.38496C5.38496 2.57674 5.68931 1.84196 6.23107 1.30021C6.77282 0.758455 7.50759 0.454102 8.27375 0.454102ZM13.425 4.49841H3.12246L4.05535 16.0012C4.09057 16.4352 4.28789 16.8401 4.60805 17.1353C4.92821 17.4305 5.34776 17.5943 5.78323 17.5943H10.7643C11.1997 17.5943 11.6193 17.4305 11.9394 17.1353C12.2596 16.8401 12.4569 16.4352 12.4922 16.0012L13.4243 4.49841H13.425ZM6.54048 7.3872C6.68009 7.3872 6.81498 7.43776 6.9202 7.52953C7.02542 7.6213 7.09385 7.74806 7.11284 7.88638L7.11823 7.96495V14.1277C7.11819 14.2741 7.06258 14.415 6.96265 14.522C6.86271 14.6289 6.7259 14.694 6.57986 14.7039C6.43381 14.7139 6.28943 14.6681 6.17587 14.5757C6.06232 14.4833 5.98806 14.3513 5.96811 14.2063L5.96272 14.1277V7.96495C5.96272 7.81172 6.02359 7.66477 6.13194 7.55642C6.24029 7.44807 6.38725 7.3872 6.54048 7.3872ZM10.007 7.3872C10.1466 7.3872 10.2815 7.43776 10.3867 7.52953C10.492 7.6213 10.5604 7.74806 10.5794 7.88638L10.5848 7.96495V14.1277C10.5847 14.2741 10.5291 14.415 10.4292 14.522C10.3293 14.6289 10.1924 14.694 10.0464 14.7039C9.90036 14.7139 9.75597 14.6681 9.64242 14.5757C9.52887 14.4833 9.45461 14.3513 9.43466 14.2063L9.42927 14.1277V7.96495C9.42927 7.81172 9.49014 7.66477 9.59849 7.55642C9.70684 7.44807 9.85379 7.3872 10.007 7.3872ZM8.27375 1.60962C7.83456 1.60956 7.41172 1.77624 7.09069 2.07596C6.76966 2.37568 6.57439 2.78609 6.54433 3.22426L6.54048 3.34289H10.007L10.0032 3.22426C9.97311 2.78609 9.77783 2.37568 9.45681 2.07596C9.13578 1.77624 8.71294 1.60956 8.27375 1.60962Z","fill","#888888"],["class","features-title",4,"ngIf"],["class","features-list",4,"ngIf"],[1,"features-title"],[1,"features-list"],["class","features-item",4,"ngIf"],[1,"features-item"],["width","20","height","10","viewBox","0 0 27 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.7157 4.95897L8.13346 13.2747L25.7503 1.055","stroke","#3874ff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["width","13","height","13","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 15L1 1M15 1L1 15","stroke","#F0244F","stroke-width","2","stroke-linecap","round"],[3,"formData"],[1,"dx-popup-content-block",2,"min-height","inherit"],[1,"dx-field","full-width",2,"margin-bottom","0"],["label","Role","displayExpr","roleName","valueExpr","systemRoleId","placeholder","Select",3,"valueChange","showClearButton","labelMode","dataSource","value","inputAttr"],[3,"validationRules"],["text","Close","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Copy Role","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Users"),s()(),a(9,"li",3),h(10,"Roles & Permissions"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Roles & Permissions"),s(),S(15,_l,3,0,"div",8),s()(),a(16,"div",9)(17,"div",10)(18,"dx-data-grid",11),b(19,"dxo-remote-operations",12),S(20,yl,1,4,"dxi-column",13)(21,Sl,3,2,"div",14)(22,Dl,3,2,"div",14),b(23,"dxo-paging",15),s()()()(),a(24,"dx-popup",16),_("visibleChange",function(d){return C(e.deletePopup,d)||(e.deletePopup=d),d}),a(25,"div",17)(26,"h2"),h(27),s()(),a(28,"div",18)(29,"p"),h(30,"Are you sure you want to delete "),a(31,"strong"),h(32),s(),h(33," ?"),s()(),a(34,"div",19)(35,"dx-button",20),f("onClick",function(){return e.closePopup()}),s(),a(36,"dx-button",21),f("onClick",function(d){return e.DeleteRolePopup(d)}),s()()(),a(37,"dx-popup",16),_("visibleChange",function(d){return C(e.roleCopyPopup,d)||(e.roleCopyPopup=d),d}),a(38,"div",17)(39,"h2"),h(40,"Existing Role"),s()(),a(41,"dx-validation-group")(42,"form"),S(43,Il,10,8,"dx-form",22),s()()()),n&2&&(o(15),l("ngIf",e.isPermissionRoleAdd),o(3),l("dataSource",e.dataSource)("allowColumnReordering",!0)("allowColumnResizing",!1)("columnAutoWidth",!0)("showBorders",!0),o(),l("groupPaging",!0),o(),l("ngForOf",e.headers),o(),l("dxTemplateOf","titleHeaderTemplate"),o(),l("dxTemplateOf","permissionsIcons"),o(),l("enabled",!1),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(24,Rr)),o(3),R(e.roleName),o(5),R(e.roleName),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.roleCopyPopup),l("wrapperAttr",I(25,Rr)),o(6),l("ngIf",e.roleForm))},dependencies:[bt,Ai,vt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Nt,Wi,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".role-permissions-outer[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.role-permissions-outer[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.2rem}.dx-template-wrapper.dx-item-content.dx-toolbar-item-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.delete-btn[_ngcontent-%COMP%]{margin:-2px 0 0 32px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .delete-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}.edit-btn[_ngcontent-%COMP%]{margin:-2px 0 0 8px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .edit-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}
1.role-name[_ngcontent-%COMP%]{cursor:pointer}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--thead-color)!important}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--link-color)!important}"]})}}return r})();wn();var xn=class{};var Kn=class{constructor(){this.weekDays=[]}},Jn=class{};var Al=["validationGroup"],Ll=["startDateBox"],kl=()=>({"aria-label":"Date Picker"}),Rl=()=>({"aria-label":"Clear Buttom"}),la=()=>({"aria-label":"Payment Terms"}),Ol=()=>({"aria-label":"In Days"});function Gl(r,g){if(r&1){let t=y();xi(0),a(1,"li")(2,"a",21),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.selectWeekDay(e))}),b(3,"i",22),h(4),s()(),vi()}if(r&2){let t=g.$implicit;o(2),l("ngClass",t.selected?"active":""),o(2),O(" ",t.strDisplay," ")}}function Bl(r,g){if(r&1&&(a(0,"div",19)(1,"ul"),S(2,Gl,5,2,"ng-container",20),s()()),r&2){let t=m();o(2),l("ngForOf",t.Days)}}function Fl(r,g){if(r&1){let t=y();a(0,"div",23)(1,"div",12)(2,"label",24)(3,"input",25),f("change",function(){p(t);let e=m();return u(e.selectedMonthOption="Onday")}),s(),b(4,"span",26),h(5," On day "),s(),a(6,"div",27)(7,"div",6)(8,"dx-text-box",28),_("valueChange",function(e){p(t);let i=m();return C(i.listRecurrenceDetailsModel.dayOfMonth,e)||(i.listRecurrenceDetailsModel.dayOfMonth=e),u(e)}),s()()()(),a(9,"div",12)(10,"label",29)(11,"input",30),f("change",function(){p(t);let e=m();return u(e.selectedMonthOption="Onthe")}),s(),b(12,"span",26),h(13," On the "),s(),a(14,"div",27)(15,"div",6)(16,"dx-select-box",31),_("valueChange",function(e){p(t);let i=m();return C(i.listRecurrenceDetailsModel.numberOfWeek,e)||(i.listRecurrenceDetailsModel.numberOfWeek=e),u(e)}),s()(),a(17,"div",6)(18,"dx-select-box",32),_("valueChange",function(e){p(t);let i=m();return C(i.listRecurrenceDetailsModel.dayOfWeek,e)||(i.listRecurrenceDetailsModel.dayOfWeek=e),u(e)}),s()()()()()}if(r&2){let t=m();o(8),l("labelMode",t.labelMode)("disabled",!0),x("value",t.listRecurrenceDetailsModel.dayOfMonth),l("inputAttr",I(12,Ol)),o(8),l("labelMode",t.labelMode)("items",t.Onthe),x("value",t.listRecurrenceDetailsModel.numberOfWeek),l("inputAttr",I(13,la)),o(2),l("labelMode",t.labelMode)("items",t.Days),x("value",t.listRecurrenceDetailsModel.dayOfWeek),l("inputAttr",I(14,la))}}var Gr=(()=>{class r extends wt{constructor(t,n,e){super(),this.listService=n,this.datePipe=e,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.visibleFalse=new Bi,this.now=new Date,this.Days=[],this.Months=[],this.Repeat=[],this.listRecurrenceDetailsModel=new Kn,this.dayss=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],this.months=["January","February","March","April","May","June","July","August","September","October","November","December"],this.userToken=new Ki,this.userToken=t.getCurrentUserToken(),this.listRecurrenceDetailsModel=new Kn;let i=new Array;i.push({strDisplay:"S",strValue:Xi[Xi.Sunday].toString(),selected:!1}),i.push({strDisplay:"M",strValue:Xi[Xi.Monday].toString(),selected:!1}),i.push({strDisplay:"T",strValue:Xi[Xi.Tuesday].toString(),selected:!1}),i.push({strDisplay:"W",strValue:Xi[Xi.Wednesday].toString(),selected:!1}),i.push({strDisplay:"T",strValue:Xi[Xi.Thursday].toString(),selected:!1}),i.push({strDisplay:"F",strValue:Xi[Xi.Friday].toString(),selected:!1}),i.push({strDisplay:"S",strValue:Xi[Xi.Saturday].toString(),selected:!1}),this.Days=JSON.parse(JSON.stringify(i));let d=new Array;d.push({strDisplay:si[si.January].toString(),strValue:si[si.January].toString()}),d.push({strDisplay:si[si.February].toString(),strValue:si[si.February].toString()}),d.push({strDisplay:si[si.March].toString(),strValue:si[si.March].toString()}),d.push({strDisplay:si[si.April].toString(),strValue:si[si.April].toString()}),d.push({strDisplay:si[si.May].toString(),strValue:si[si.May].toString()}),d.push({strDisplay:si[si.June].toString(),strValue:si[si.June].toString()}),d.push({strDisplay:si[si.July].toString(),strValue:si[si.July].toString()}),d.push({strDisplay:si[si.August].toString(),strValue:si[si.August].toString()}),d.push({strDisplay:si[si.September].toString(),strValue:si[si.September].toString()}),d.push({strDisplay:si[si.October].toString(),strValue:si[si.October].toString()}),d.push({strDisplay:si[si.November].toString(),strValue:si[si.November].toString()}),d.push({strDisplay:si[si.December].toString(),strValue:si[si.December].toString()}),this.Months=JSON.parse(JSON.stringify(d));let c=new Array;c.push({strDisplay:yi[yi.Hourly].toString(),strValue:yi[yi.Hourly].toString()}),c.push({strDisplay:yi[yi.Daily].toString(),strValue:yi[yi.Daily].toString()}),c.push({strDisplay:yi[yi.Weekly].toString(),strValue:yi[yi.Weekly].toString()}),c.push({strDisplay:yi[yi.Monthly].toString(),strValue:yi[yi.Monthly].toString()}),this.Repeat=JSON.parse(JSON.stringify(c)),this.Onthe=["First","Second","Third","Fourth","Last"],this.Weeks=["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"];let v=this.dayss[this.now.getDay()],V=this.months[this.now.getMonth()];this.listRecurrenceDetailsModel.startDate=this.now,this.listRecurrenceDetailsModel.repeatType=yi[yi.Hourly].toString(),this.listRecurrenceDetailsModel.dayOfWeek=v,this.listRecurrenceDetailsModel.monthOfYear=V,this.setRepeatEveryOptions();let E=this.Days.find(T=>T.strValue==v);E&&(E.selected=!0),this.listRecurrenceDetailsModel.repeatEveryNumber=this.RepeatEvery[0],Ja.defaultOptions({options:{onContentReady:T=>{T.component.option("type")=="time"?T.component.option({pickerType:"calendar"}):T.component.option({pickerType:"calendar"})}}})}formatDate(t){let n=new Date(t),e=""+(n.getMonth()+1),i=""+n.getDate(),d=n.getFullYear();return e.length<2&&(e="0"+e),i.length<2&&(i="0"+i),[e,i,d].join("/")}showStartDate(){let t="00/00/0000",n=this.listRecurrenceDetailsModel.startDate;n!=null&&n!=""&&n!=null&&(t=this.formatDate(n));let e=this.listRecurrenceDetailsModel.dayOfMonth;e!=null&&e!=null&&(e=this.listRecurrenceDetailsModel.dayOfMonth);let i=this.listRecurrenceDetailsModel.monthOfYear;if(i!=null&&i!=null)i=this.listRecurrenceDetailsModel.monthOfYear;else{let T=this.months[this.now.getMonth()];i=T,this.listRecurrenceDetailsModel.monthOfYear=T}let d=this.listRecurrenceDetailsModel.repeatDay;d!=null&&d!=null&&(this.day=Number(this.listRecurrenceDetailsModel.repeatDay)),d==null&&(this.day=1);let c="",v="";this.treeBoxValue=[],this.Days.filter(T=>T.selected).forEach(T=>{this.treeBoxValue.push(T.strValue),c==""?(c=T.strValue,v=T.strValue):(c=c+","+T.strValue,v=v+","+T.strValue)}),c=c==""?"":"on "+c;let V=this.listRecurrenceDetailsModel.repeatType,E="";if(V==yi[yi.Hourly].toString())this.repeatEveryLabel="In Hour",E=`Occurs every ${this.listRecurrenceDetailsModel.repeatEveryNumber} in Hour starting ${t}`,this.listRecurrenceDetailsModel.dayOfMonth="",this.listRecurrenceDetailsModel.monthOfYear="",this.listRecurrenceDetailsModel.weekDays=[],this.listRecurrenceDetailsModel.repeatDay="",this.treeBoxValue=[];else if(V==yi[yi.Daily].toString())this.repeatEveryLabel="In Days",E=`Occurs every ${this.listRecurrenceDetailsModel.repeatEveryNumber} in days starting ${t}`,this.listRecurrenceDetailsModel.dayOfMonth="",this.listRecurrenceDetailsModel.monthOfYear="";else if(V==yi[yi.Weekly].toString())this.repeatEveryLabel="In Week",E=`Occurs every ${this.listRecurrenceDetailsModel.repeatEveryNumber} weeks ${c} starting ${t}`,this.listRecurrenceDetailsModel.monthOfYear="",this.listRecurrenceDetailsModel.weekDays=this.treeBoxValue,this.listRecurrenceDetailsModel.repeatDay=v;else if(V==yi[yi.Monthly].toString()){this.repeatEveryLabel="In Month";let T=new Date(n);this.listRecurrenceDetailsModel.dayOfMonth=T.getDate().toString(),this.selectedMonthOption=="Onday"?E=`Occurs on day ${T.getDate()}`:E=`Occurs on the ${this.listRecurrenceDetailsModel.numberOfWeek} ${this.listRecurrenceDetailsModel.dayOfWeek}`,this.listRecurrenceDetailsModel.weekDays=[],this.listRecurrenceDetailsModel.repeatDay="",this.treeBoxValue=[]}return E}selectWeekDay(t){let n=this.Days.find(e=>e.strValue==t.strValue);n&&(n.selected=!t.selected)}GetListRecurrenceDetailsModelByListId(){this.listInputModel.ListId&&(this.loading=!0,this.listService.GetListRecurrenceDetailsModelByListId(Number(this.listInputModel.ListId)).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{if(t&&t.isSuccess){if(this.loading=!1,t.responseModel!=null&&t.responseModel!=null){let n=JSON.parse(JSON.stringify(t.responseModel));this.listRecurrenceDetailsModel=JSON.parse(JSON.stringify(n)),this.listRecurrenceDetailsModel.startTime=this.listRecurrenceDetailsModel.startDateTime,this.selectedMonthOption=this.listRecurrenceDetailsModel.selectedMonthOption,n.repeatDay&&(this.treeBoxValue=n.repeatDay.split(",").map(String),this.listRecurrenceDetailsModel.weekDays=Object.assign([],this.treeBoxValue),this.listRecurrenceDetailsModel.weekDays.length>0&&this.listRecurrenceDetailsModel.weekDays.forEach(e=>{let i=this.Days.find(d=>d.strValue==e);i&&(i.selected=!0)})),this.setRepeatEveryOptions()}}else this.loading=!1,this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}ngOnChanges(t){if(!t.listInputModel.firstChange)if(this.listInputModel=t.listInputModel.currentValue,this.listInputModel.actionMode=="Update")this.GetListRecurrenceDetailsModelByListId();else{this.listRecurrenceDetailsModel=new Kn;let n=this.dayss[this.now.getDay()],e=this.months[this.now.getMonth()];this.listRecurrenceDetailsModel.startDate=this.now,this.listRecurrenceDetailsModel.repeatType=yi[yi.Hourly].toString(),this.listRecurrenceDetailsModel.dayOfWeek=n,this.listRecurrenceDetailsModel.monthOfYear=e;let i=this.Days.find(d=>d.strValue==n);i&&(i.selected=!0),this.setRepeatEveryOptions(),this.listRecurrenceDetailsModel.repeatEveryNumber=this.RepeatEvery[0]}}onFormSubmit(t){if(!this.validationGroup.instance.validate().isValid)return;let e=new Date(this.listRecurrenceDetailsModel.startTime).getHours(),i=new Date(this.listRecurrenceDetailsModel.startTime).getMinutes();!isNaN(e)&&!isNaN(i)&&(this.listRecurrenceDetailsModel.startTime=this.formatTimeSpan(e,i,0)),this.listRecurrenceDetailsModel.strStartDate=this.datePipe.transform(this.listRecurrenceDetailsModel.startDate,"MM/dd
1/yyyy"),this.listRecurrenceDetailsModel.modifiedByUserId=this.userToken.userId,this.listRecurrenceDetailsModel.listId=this.listInputModel.ListId,this.listRecurrenceDetailsModel.selectedMonthOption=this.selectedMonthOption,this.loading=!0,(this.listInputModel.actionMode=="Update"?this.listService.UpdateListRecurranceDetails(this.listRecurrenceDetailsModel):this.listService.AddListRecurranceDetails(this.listRecurrenceDetailsModel)).pipe(w(this.unsubscriber)).subscribe(c=>{this.processResult(c,()=>{if(this.loading=!1,c&&c.isSuccess){if(c.responseModel!=null&&c.responseModel!=null){if(this.loading=!1,this.listInputModel.actionMode=="Update"?this.showSuccessMessage("Recurrence has been updated successfully"):this.showSuccessMessage("Recurrence has been added successfully"),this.listInputModel.actionMode!="Update"){let v=new xn;v.listId=this.listInputModel.ListId,v.isHubSpotSync=!0,v.modifiedByUserId=this.userToken.userId,this.listService.ActiveInactiveHubSpotSynce(v).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(V=>{V.isSuccess},V=>{this.showErrorMessage(V.message)})}this.visibleFalse.emit(!1)}}else this.loading=!1,this.showErrorMessage(c.message)})},c=>{this.loading=!1,this.showErrorMessage(c.message)})}formatTimeSpan(t,n,e){return`${this.pad(t,2)}:${this.pad(n,2)}:${this.pad(e,2)}`}pad(t,n){return t.toString().padStart(n,"0")}Close(){this.visibleFalse.emit(!1)}setRepeatEveryOptions(){this.RepeatEvery=[];let t=52;this.listRecurrenceDetailsModel.repeatType==yi[yi.Hourly].toString()?t=24:this.listRecurrenceDetailsModel.repeatType==yi[yi.Daily].toString()?t=31:this.listRecurrenceDetailsModel.repeatType==yi[yi.Monthly].toString()?t=12:this.listRecurrenceDetailsModel.repeatType==yi[yi.Weekly].toString()&&(t=52);for(let n=1;n<=t;n++)this.RepeatEvery.push(n.toString())}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(ln),k(Ha))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-set-recurrence-popup"]],viewQuery:function(n,e){if(n&1&&(U(N,7),U(Al,5),U(Ll,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.validationGroup=i.first),H(i=j())&&(e.startDateBox=i.first)}},inputs:{listInputModel:"listInputModel"},outputs:{visibleFalse:"visibleFalse"},standalone:!0,features:[xt,on,Q],decls:28,vars:25,consts:[["validationGroup",""],[1,"card-outer"],["id","form",3,"formData"],[1,"set-recurrence-block"],[1,"dx-field-value"],["displayExpr","strDisplay","valueExpr","strValue",3,"valueChange","onValueChanged","items","value"],[1,"dx-field"],["label","Start Date","pickerType","rollers","type","date",1,"date-box",3,"valueChange","labelMode","acceptCustomValue","showClearButton","min","value","inputAttr"],["type","required","message","Start Date is required"],["pickerType","rollers","type","time","label","Set Time",1,"time-box",3,"valueChange","labelMode","showClearButton","value","inputAttr","acceptCustomValue"],["type","required","message","Time is required"],["class","weekly-only",4,"ngIf"],[1,"repeat-every-fields"],[3,"valueChange","labelMode","label","items","value","inputAttr"],["class","monthly",4,"ngIf"],[1,"set-recurrence__text-content"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"weekly-only"],[4,"ngFor","ngForOf"],["href","javascript:void(0)",3,"click","routerLink","ngClass"],[1,"la","la-trash"],[1,"monthly"],["for","Onday",1,"radiobox"],["type","radio","id","Onday","value","Onday","checked","checked","name","monthly",3,"change"],[1,"checkmark"],[1,"monthly-days"],["label","In Days",3,"valueChange","labelMode","disabled","value","inputAttr"],["for","Onthe",1,"radiobox"],["type","radio","id","Onthe","value","Onthe","checked","checked","name","monthly",3,"change"],["label","Select",3,"valueChange","labelMode","items","value","inputAttr"],["label","Week","displayExpr","strValue","valueExpr","strValue",3,"valueChange","labelMode","items","value","inputAttr"]],template:function(n,e){if(n&1){let i=y();a(0,"form",1)(1,"dx-validation-group",null,0)(3,"dx-form",2)(4,"dxi-item")(5,"div",3)(6,"div",4)(7,"dx-radio-group",5),_("valueChange",function(c){return p(i),C(e.listRecurrenceDetailsModel.repeatType,c)||(e.listRecurrenceDetailsModel.repeatType=c),u(c)}),f("onValueChanged",function(){return p(i),u(e.setRepeatEveryOptions())}),s()(),a(8,"div",6)(9,"dx-date-box",7),_("valueChange",function(c){return p(i),C(e.listRecurrenceDetailsModel.startDate,c)||(e.listRecurrenceDetailsModel.startDate=c),u(c)}
1),a(10,"dx-validator"),b(11,"dxi-validation-rule",8),s()()(),a(12,"div",6)(13,"dx-date-box",9),_("valueChange",function(c){return p(i),C(e.listRecurrenceDetailsModel.startTime,c)||(e.listRecurrenceDetailsModel.startTime=c),u(c)}),a(14,"dx-validator"),b(15,"dxi-validation-rule",10),s()()(),S(16,Bl,3,1,"div",11),a(17,"div",12)(18,"span"),h(19,"Repeat Every"),s(),a(20,"div",6)(21,"dx-select-box",13),_("valueChange",function(c){return p(i),C(e.listRecurrenceDetailsModel.repeatEveryNumber,c)||(e.listRecurrenceDetailsModel.repeatEveryNumber=c),u(c)}),s()()(),S(22,Fl,19,15,"div",14),a(23,"div",15),h(24),s()()()(),a(25,"div",16)(26,"dx-button",17),f("onClick",function(){return p(i),u(e.Close())}),s(),a(27,"dx-button",18),f("onClick",function(c){return p(i),u(e.onFormSubmit(c))}),s()()()()}n&2&&(o(3),l("formData",e.formData),o(4),l("items",e.Repeat),x("value",e.listRecurrenceDetailsModel.repeatType),o(2),l("labelMode",e.labelMode)("acceptCustomValue",!0)("showClearButton",!0)("min",e.listRecurrenceDetailsModel.startDate),x("value",e.listRecurrenceDetailsModel.startDate),l("inputAttr",I(22,kl)),o(4),l("labelMode",e.labelMode)("showClearButton",!0),x("value",e.listRecurrenceDetailsModel.startTime),l("inputAttr",I(23,Rl))("acceptCustomValue",!0),o(3),l("ngIf",e.listRecurrenceDetailsModel.repeatType==="Weekly"),o(5),l("labelMode",e.labelMode)("label",e.repeatEveryLabel)("items",e.RepeatEvery),x("value",e.listRecurrenceDetailsModel.repeatEveryNumber),l("inputAttr",I(24,la)),o(),l("ngIf",e.listRecurrenceDetailsModel.repeatType==="Monthly"),o(2),O(" ",e.showStartDate()," "))},dependencies:[bt,Ai,vt,Jt,Gt,Pt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Hn,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,Dn,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".set-recurrence-block[_ngcontent-%COMP%]{width:100%;margin:0;padding:.5rem 0 0}.set-recurrence-block[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.set-recurrence-block[_ngcontent-%COMP%] .repeat-every-fields[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin-bottom:2rem}.set-recurrence-block[_ngcontent-%COMP%] .repeat-every-fields[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:150px;margin-left:1rem}.set-recurrence-block[_ngcontent-%COMP%] .repeat-every-fields[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin:0}.set-recurrence-block[_ngcontent-%COMP%] .repeat-every-fields[_ngcontent-%COMP%] .radiobox[_ngcontent-%COMP%]{font:var(--font-weight-400) var(--font-14) var(--font-family);padding-left:2.8rem;position:relative;min-width:88px}.set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%]{width:100%;margin:0 0 2rem;padding:0}.set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;margin:0;padding:0;list-style:none}.set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 1rem 0rem 0;padding:0;list-style:none}.set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:35px;height:35px;background-color:var(--input-disabled);color:var(--body-color)!important;font:var(--font-weight-400) var(--font-14) var(--font-family);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center;border-radius:100px}.set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .set-recurrence-block[_ngcontent-%COMP%] .weekly-only[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:var(--secondary-color);color:var(--white-color)!important}.set-recurrence-block[_ngcontent-%COMP%] .monthly[_ngcontent-%COMP%]{width:100%}.set-recurrence-block[_ngcontent-%COMP%] .monthly[_ngcontent-%COMP%] .monthly-days[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center}.set-recurrence-block[_ngcontent-%COMP%] .monthly[_ngcontent-%COMP%] .monthly-days[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:150px;margin-right:1rem;margin-bottom:0!important}.set-recurrence-block[_ngcontent-%COMP%] .monthly[_ngcontent-%COMP%] .monthly-days[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin:0}"]})}}return r})();var Wl=()=>[15,30,50,100],Nl=()=>({id:"elementId",class:"overlay column-overly"}),Uo=()=>({"aria-label":"checked"}),ql=()=>({id:"elementId",class:"overlay filter-position popup-filter-sales-overly"}),go=()=>({"aria-label":"Select status"}),Ul=()=>({"aria-label":"Created By"}),Br=()=>({id:"elementId",class:"popup-outer delete-popup"}),Fr=()=>({id:"elementId",class:"popup-outer w-700"});function Hl(r,g){if(r&1){let t=y();a(0,"div",76)(1,"a",77),f("click",function(){let e=p(t).$implicit,i=m();return u(i.navigateToRoute(e.data))}),h(2),s()()}if(r&2){let t=g.$implicit;o(),q("title",t.data.listName),o(),R(t.data.listName)}}function jl(r,g){if(r&1){let t=y();a(0,"dx-switch",82),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.data.isHubSpotSync,e)||(i.data.isHubSpotSync=e),u(e)}
1),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m();return u(d.SyncWithHubSportChanged(i.data.listId,e))}),s()}if(r&2){let t=m().$implicit;x("value",t.data.isHubSpotSync)}}function zl(r,g){if(r&1){let t=y();a(0,"span",83)(1,"a",84),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.UpdateSyncWithHubSportChanged(e.data.listId))}),A(),a(2,"svg",85),b(3,"path",86),s()()()}}function Zl(r,g){r&1&&(a(0,"span",87),h(1,"NA"),s())}function Ql(r,g){if(r&1&&(a(0,"div",78),S(1,jl,1,1,"dx-switch",79)(2,zl,4,0,"span",80)(3,Zl,2,0,"span",81),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.hasLists),o(),l("ngIf",t.data.hasLists&&t.data.isHubSpotSync),o(),l("ngIf",!t.data.hasLists)}}function Yl(r,g){if(r&1){let t=y();a(0,"dx-switch",82),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.data.isHubSpotSyncForAccessGroups,e)||(i.data.isHubSpotSyncForAccessGroups=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m(2);return u(d.SyncWithHubSportChanged(i.data.listId,e))}),s()}if(r&2){let t=m().$implicit;x("value",t.data.isHubSpotSyncForAccessGroups)}}function Kl(r,g){if(r&1){let t=y();a(0,"span",83)(1,"a",89),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.UpdateSyncWithHubSportChanged(e.data.listId))}),A(),a(2,"svg",85),b(3,"path",86),s()()()}}function Jl(r,g){r&1&&(a(0,"span",87),h(1,"NA"),s())}function Xl(r,g){if(r&1&&(a(0,"div",78),S(1,Yl,1,1,"dx-switch",79)(2,Kl,4,0,"span",80)(3,Jl,2,0,"span",81),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.hasAccessGroups),o(),l("ngIf",t.data.hasAccessGroups&&t.data.isHubSpotSyncForAccessGroups),o(),l("ngIf",!t.data.hasAccessGroups)}}function $l(r,g){r&1&&(a(0,"dxi-column",88),S(1,Xl,4,3,"div",53),s()),r&2&&(l("width",250),o(),l("dxTemplateOf","SyncwithAccessGroupTemplate"))}function ed(r,g){r&1&&(a(0,"span",92),h(1,"Not Synced"),s())}function td(r,g){r&1&&(a(0,"span",93),h(1,"Synced"),s())}function id(r,g){if(r&1&&(a(0,"div"),S(1,ed,2,0,"span",90)(2,td,2,0,"span",91),s()),r&2){let t=g.$implicit;o(),l("ngIf",!t.data.syncStatus),o(),l("ngIf",t.data.syncStatus)}}function nd(r,g){if(r&1&&(a(0,"div",94),h(1),s()),r&2){let t=g.$implicit;q("title",t.data.createdByUserName),o(),O(" ",t.data.createdByUserName," ")}}function od(r,g){if(r&1&&(a(0,"div",94),h(1),s()),r&2){let t=g.$implicit;q("title",t.data.modifiedByUserName),o(),O(" ",t.data.modifiedByUserName," ")}}function ad(r,g){if(r&1&&(a(0,"div"),h(1),na(2,"dateViewPipe"),s()),r&2){let t=g.$implicit;o(),O(" ",Ga(2,1,t.data.dateTimeLastModified)," ")}}function rd(r,g){if(r&1&&(a(0,"div"),h(1),na(2,"dateViewPipe"),s()),r&2){let t=g.$implicit;o(),O(" ",Ba(2,1,t.data.dateTimeLastHubspotSync,"MM/dd/yyyy hh:mm a")," ")}}function sd(r,g){if(r&1){let t=y();a(0,"div",95)(1,"a",96),f("click",function(){let e=p(t).$implicit,i=m();return u(i.CompaniesPopupClick(e.data))}),A(),a(2,"svg",97),b(3,"path",98),s()(),G(),b(4,"dx-drop-down-button",99),s()}if(r&2){let t=m();o(4),l("showArrowIcon",!1)("useItemTextAsTitle",!1)("useSelectMode",!1)("items",t.actionMenu)}}function ld(r,g){if(r&1&&(a(0,"tr")(1,"td"),h(2),s(),a(3,"td"),h(4),s(),a(5,"td"),h(6),s(),a(7,"td"),h(8),s()()),r&2){let t=m();o(2),R(t.allCompaniesDisplayRecord.listReturnType),o(2),R(t.allCompaniesDisplayRecord.listTypeName),o(2),R(t.allCompaniesDisplayRecord.listCategories),o(2),R(t.allCompaniesDisplayRecord.listStructureName)}}var Wr=(()=>{class r extends wt{constructor(t,n,e,i,d){super(),this.router=n,this.listService=e,this.webStorageService=i,this.propertyService=d,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.actionMenu=[],this.isPopoverVisible=!1,this.lisCategoryRecords=new Array,this.listTypeRecords=new Array,this.selectedListRecord=new xn,this.searchText="",this.selectedListType=0,this.selectedCategoryType="All",this.listReturnTypeValue="All",this.listStructure="All",this.selectedCreatedBy=null,this.createdByList=[],this.selectedSyncStatus="All",this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","sort","filter","totalSummary","listTypeId","listCategory","listReturnType","listStructure","createdBy","A
1ctiveStatus","syncStatus"],this.isActive=!0,this.showPageSizeSelector=!1,this.showPageNavigation=!1,this.isPagerVisible=!1,this.selectedCategory=0,this.selectedType=0,this.selectedStatus="",this.activeInactivePopup=!1,this.properties=[],this.isRecurrence=!1,this.listInputModel=new Jn,this.eventListTypes=[],this.ListStructureFiter=["All","Compound","Simple"],this.loadData=()=>{this.loading=!0,Yt([this.listService.GetListCategory(),this.listService.GetListTypes()]).pipe(Qt(([v,V])=>({lisCategoryRecords:v,listTypeRecords:V}))).subscribe(v=>{Object.keys(v).forEach(E=>this[E]=v[E].responseModel),this.loading=!1,this.listTypeRecords[0].listTypeDisplayName;let V={listTypeId:0,listTypeName:"All",listTypeDisplayName:"All",isActive:!0,modifiedByUserId:0,dateTimeCreated:void 0,dateTimeLastModified:void 0,listStructureName:""};this.listTypeRecords=[V,...this.listTypeRecords],this.listTypeRecords=this.listTypeRecords.sort((E,T)=>E.listTypeDisplayName.localeCompare(T.listTypeDisplayName,void 0,{numeric:!0}))})},this.formatDate=v=>{if(!v)return null;let V=new Date(v),E=String(V.getMonth()+1).padStart(2,"0"),T=String(V.getDate()).padStart(2,"0"),D=V.getFullYear();return`${E}/${T}/${D}`};let c=this.webStorageService.getCurrentUserToken();this.loggedInUserId=c.userId,this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.ListReturnType=["All","Contact","Company","Group"],this.ListCategoryFiter=["All","Access Groups","Lists"],this.CreatedbyFiter=["All","Admin","Staff Member","System"],this.SyncStatusFiter=["All","Synced","Not Synced"],this.Status=["Active","Inactive"],this.getCreatedBy(),this.loadData(),this.getListFilter(),this.getDataSource(),this.BindMembershipProperties()}onItemClick(t){if(t.data){this.selectedListRecord=t.data,this.listId=t.data.listId;let n=t.data.isActive;this.selectedListIsActive=t.data.isActive,this.selectedListIsSyncRunning=t.data.isSyncRunning,this.actionMenu=[{value:"SyncwithAccessGroup",text:"Sync with Access Group",icon:"sync-new",visible:!1,disabled:!1,onClick:i=>{}},{value:"SyncwithLis",text:"Sync Now",icon:"sync-new",visible:t.data.listReturnType!="Group",disabled:this.selectedListIsSyncRunning,onClick:i=>{this.updateHubspotListSync()}},{value:"EditList",text:"Edit List",icon:"edit",visible:!t.data.isDefault,disabled:!1,onClick:i=>{this.router.navigate(["admin/client/setting/list-management/manage/"+this.listId+"/edit/list"])}},{value:"Clone",text:"Clone",icon:"clone-event",visible:!t.data.isDefault,disabled:!1,onClick:i=>{this.router.navigate(["admin/client/setting/list-management/manage/"+this.listId+"/clone/list"])}},{value:"activeInactive",text:n?"Mark as Inactive":"Mark as Active",icon:"inactive",visible:!t.data.isDefault,disabled:!1,onClick:i=>{if(this.dataGrid!=null){let d=this.dataGrid.instance;d.clearSelection(),d.option("focusedRowIndex",-1)}this.activeInactivePopup=!0}},{value:"DeleteList",text:"Remove",icon:"delete",visible:!t.data.isDefault,disabled:!1,onClick:i=>{this.deletePopup=!0}}];let e=this.actionMenu.find(i=>i.value=="activeInactive");e&&(e.text=n?"Mark as Inactive":"Mark as Active",this.activeValue=e.text,this.activeAction=n?"mark as inactive":"mark as active",this.activeMessage=n?"List has been inactivated successfully":"List has been activated successfully")}}getCreatedBy(){this.loading=!0,this.listService.GetCreatedByUsers().subscribe({next:t=>{this.createdByList=t.responseModel;let n={userInfoId:null,listCreator:"All"},e={userInfoId:0,listCreator:"System"};this.createdByList=[n,...this.createdByList,e],this.createdByList=this.createdByList.sort((i,d)=>i.listCreator.localeCompare(d.listCreator,void 0,{numeric:!0})),this.loading=!1},error:t=>{this.loading=!1}})}getDataSource(){let t=this,n=i=>i!=null&&i!=="";this.listDataSource=new ki({key:"listId",load(i){return B(this,null,function*(){let d=new Si,c=!0;t.dataGridParamNames.forEach(v=>{n(i[v])?v==="filter"?(d=d.set(v,JSON.stringify(i[v])),d=d.set("searchText",t.searchText)):v==="ActiveStatus"?t.selectedStatus===""?d=d.set(v,""):t.selectedStatus==="Active"?d=d.set(v,!0):d=d.set(v,!1):v==="listCategory"&&t.selectedCategoryType&&t.selectedCategoryType!="All"?d=d.set(v,t.selectedCategoryType.toString()):v==="listTypeId"&&t.selectedListType?d=d.set(v,t.selectedListType.toString()):v==="listReturnType"&&t.listReturnTypeValue&&t.listReturnTypeValue!="All"?d=d.set(v,t.listReturnTypeValue.toString()):v==="listStructure"&&t.listStructure&&t.listStructure!="All"?d=d.set(v,t.listStructure.toString()):v==="createdBy"&&t.selectedCreatedBy!=null&&t.selectedCreatedBy!=null?d=d.set(v,t.selectedCreatedBy):v==="syncStatus"&&t.selectedSyncStatus&&t.selectedSyncStatus!=="All"?d=d.set(v,t.selectedSyncStatus):d=d.set(v,JSON.stringify(i[v])):v==="ActiveStatus"?t.selectedStatus===""?d=d.set(v,""):t.selectedStatus==="Active"?d=d.set(v,!0):d=d.set(v,!1):v==="skip"?d=d.set(v,0):v==="filter"?d=d.set("searchText",t.searchText):v==="take"?d=d.set(v,15):v==="sort"?d=d.set(v,'[{"selector":"listName","desc":false}]'):v==="listCategory"&&t.selectedCategoryType&&t.selectedCategoryType!="All"?d=d.set(v,t.selectedCategoryType.toString()):v==="listTypeId"&&t.selectedListType?d=d.set(v,t.selectedListType.toString()):v==="listReturnType"&&t.listReturnTypeValue&&t.listReturnTypeValue!="All"?d=d.set(v,t.listReturnTypeValue.toString()):v==="listStructure"&&t.listStructure&&t.listStructure!="All"?d=d.set(v,t.listStructure.toString()):v==="createdBy"&&t.selectedCreatedBy!=null&&t.selectedCreatedBy!=null?d=d.set(v,t.selectedCreatedBy):v==="syncStatus"&&t.selectedSyncStatus&&t.selectedSyncStatus!=="All"?d=d.set(v,t.selectedSyncStatus):d=d.set(v,"")});
1try{let v=yield wi(t.listService.GetListPagedDetails(d));return t.totalRecordCount=v.responseModel!=null?v.responseModel.totalRecords:0,t.list=v.responseModel.results,{data:t.list,totalCount:t.totalRecordCount}}catch{throw new Error("Data Loading Error")}})}})}exportListRecords(){return B(this,null,function*(){let t=new Si;this.listId!=0?t=t.set("ListId",this.listId):t=t.set("ListId",0),this.dataGridParamNames.forEach(n=>{n==="skip"?t=t.set(n,0):n==="filter"?t=t.set("searchText",this.searchText):n==="take"?t=t.set(n,this.totalRecordCount):n==="sort"?t=t.set(n,'[{"selector":"contactId","desc":false}]'):n==="listCategory"&&this.selectedCategoryType&&this.selectedCategoryType!="All"?t=t.set(n,this.selectedCategoryType.toString()):n==="listTypeId"&&this.selectedListType?t=t.set(n,this.selectedListType.toString()):n==="listReturnType"&&this.listReturnTypeValue&&this.listReturnTypeValue!="All"?t=t.set(n,this.listReturnTypeValue.toString()):n==="listStructure"&&this.listStructure&&this.listStructure!="All"?t=t.set(n,this.listStructure.toString()):n==="syncStatus"&&this.selectedSyncStatus&&this.selectedSyncStatus!=="All"?t=t.set(n,this.selectedSyncStatus):t=t.set(n,"")});try{this.loading=!0;let n=yield wi(this.listService.ExportListRecords(t));this.loading=!1;let e=new Blob([n],{type:n.type}),i=document.createElement("a");i.setAttribute("style","display:none;"),i.download="ListRecords.csv",document.body.appendChild(i),i.target="_blank",i.href=URL.createObjectURL(e),document.body.removeChild(i),i.click()}catch{throw this.loading=!1,new Error("Data Loading Error")}})}ResetFilter(){this.isPopoverVisible=!1,this.selectedCategory=0,this.selectedType=0,this.selectedStatus="",this.selectedListType=null,this.selectedCategoryType="All",this.listReturnTypeValue="All",this.listStructure="All",this.selectedCreatedBy=null,this.selectedSyncStatus="All",this.saveListFilter(),this.getDataSource()}saveListFilter(){let t={category:this.selectedCategory,type:this.selectedType,status:this.selectedStatus,listType:this.selectedListType,categoryType:this.selectedCategoryType,listReturnType:this.listReturnTypeValue,listStructure:this.listStructure,createdBy:this.selectedCreatedBy,syncStatus:this.selectedSyncStatus};this.webStorageService.storeListFilter(t)}getListFilter(){let t=this.webStorageService.getListFilter();t&&(this.selectedCategory=t.category,this.selectedType=t.type,this.selectedStatus=t.status,this.selectedListType=t.listType,this.selectedCategoryType=t.categoryType,this.listReturnTypeValue=t.listReturnType,this.listStructure=t.listStructure,this.selectedCreatedBy=t.createdBy,this.selectedSyncStatus=t.syncStatus)}SearchFilter(){this.isPopoverVisible=!1,this.saveListFilter(),this.getDataSource()}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}DeleteList(){this.selectedListRecord!=null&&this.selectedListRecord.listId>0&&(this.loading=!0,this.listService.DeleteList(this.selectedListRecord.listId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?(this.showSuccessMessage("List has been deleted successfully"),this.getDataSource(),this.closeDeletePopup(),this.selectedListRecord=new xn):(this.loading=!1,this.closeDeletePopup(),this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.closeDeletePopup(),this.showErrorMessage(t.message)}))}closeDeletePopup(){this.deletePopup=!1}onClickActiveInactiveList(){if(this.dataGrid!=null){let t=this.dataGrid.instance;t.clearSelection(),t.option("focusedRowIndex",-1)}this.selectedListRecord!=null&&this.selectedListRecord.listId>0&&(this.selectedListRecord.modifiedByUserId=this.loggedInUserId,this.selectedListRecord.isActive=!this.selectedListIsActive,this.selectedListRecord.listTypeName.toLocaleLowerCase()==="static list"?this.selectedListRecord.listTypeName="Static":this.selectedListRecord.listTypeName.toLocaleLowerCase()==="dynamic list"?this.selectedListRecord.listTypeName="Dynamic":this.selectedListRecord.listTypeName.toLocaleLowerCase()==="compound list"&&(this.selectedListRecord.listTypeName="Compound")),this.listService.ActiveInactiveList(this.selectedListRecord).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(t=>{t.isSuccess?(this.getDataSource(),this.showSuccessMessage(this.activeMessage),this.dataGrid!=null&&this.dataGrid.instance.refresh()):this.showErrorMessage(t.message),this.selectedListRecord=new xn},t=>{this.showErrorMessage(t.message)})}navigateToRoute(t){let n="";t.listTypeId==1?n="admin/client/setting/list-management/view-static/"+t.listId+"/view":t.listTypeId==2?n="admin/client/setting/list-management/view-dynamic/"+t.listId:t.listTypeId==3&&(n="admin/client/setting/list-management/view-compound/"+t.listId+"/view"),this.router.navigate([n])}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0?this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0:!1}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}UpdateSyncWithHubSportChanged(t){this.listInputModel=new Jn,this.listInputModel.actionMode="Update",this.listInputModel.ListId=t,this.SetRecurrencePopup=!0}DisableSynce(t){let n=new xn;
1n.listId=this.listId,n.isHubSpotSync=!1,n.modifiedByUserId=this.loggedInUserId,this.listService.ActiveInactiveHubSpotSynce(n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1,this.deletehubspotPopup=!1})).subscribe(e=>{e.isSuccess?(this.getDataSource(),this.showSuccessMessage("Hubspot sync has been inactivated"),this.dataGrid!=null&&this.dataGrid.instance.refresh()):this.showErrorMessage(e.message),this.selectedListRecord=new xn},e=>{this.showErrorMessage(e.message)})}SyncWithHubSportChanged(t,n){this.listId=t,this.isRecurrence=n.value,n.value&&n.value===!0?(this.listInputModel=new Jn,this.listInputModel.actionMode="Add",this.listInputModel.ListId=t,this.SetRecurrencePopup=!0):(this.deletehubspotPopup=!0,this.actionMode="")}SyncWithHubSport(){this.SetRecurrencePopup=!0}closePopup(){this.getDataSource(),this.deletehubspotPopup=!1,this.SetRecurrencePopup=!1}CompaniesPopupClick(t){if(this.AllCompaniesPopup=!0,t){let n=[];t.hasAccessGroups&&n.push("Access Groups"),t.hasLists&&n.push("Lists"),t.listCategories=n.join(", "),this.allCompaniesDisplayRecord=t}}closePopup1(){this.AllCompaniesPopup=!1}updateHubspotListSync(){let t=new Zi;t.listId=this.listId,this.listService.HubspotListSync(t).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{n&&n.responseModel==!0?(this.loading=!1,this.dataGrid.instance.refresh(),this.showSuccessMessage("The sync request has been sent to HubSpot."),this.getDataSource(),this.router.navigate(["admin/client/setting/list-management/list"])):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(ln),k(yt),k(Kt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-lists-management"]],viewQuery:function(n,e){if(n&1&&U(N,5),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([Di]),xt,Q],decls:142,vars:112,consts:[["popover",""],[1,"view-wrapper","benefits-outer"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],["text","Create","routerLink","/admin/client/setting/list-management/manage","icon","plus","type","normal","stylingMode","contained",1,"btn","btn--primary"],[1,"manage-content-outer"],[1,"table-block","without-breadcrumbs-table"],["id","gridContainer","noDataText","No records found.",1,"table-outer",3,"focusedRowKeyChange","onCellClick","onContentReady","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowKey","allowColumnResizing","columnHidingEnabled"],[3,"groupPaging"],[3,"enabled"],["placeholder","Search by Name or Type",3,"textChange","text","visible"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["name","searchPanel","location","before","locateInMenu","auto"],["location","after","locateInMenu","auto",1,"dx-toolbar-after-item"],[1,"filters-block"],[1,"customize-columns","lft-bor-none"],["href","javascript:void(0);","id","CustomizeColumns1",1,"customize-columns__link"],["width","16","height","15","viewBox","0 0 16 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.33374 9.04288C5.92496 9.04272 6.49945 9.24352 6.9669 9.61368C7.43434 9.98385 7.76821 10.5024 7.91601 11.0878H15.3322C15.4988 11.0875 15.6594 11.1509 15.7825 11.2657C15.9056 11.3805 15.9822 11.5382 15.9973 11.7078C16.0123 11.8775 15.9647 12.0467 15.8638 12.1823C15.7629 12.3178 15.6161 12.4098 15.4522 12.4401L15.3322 12.451L7.91601 12.4524C7.76871 13.0383 7.43505 13.5574 6.96756 13.9281C6.50007 14.2988 5.92531 14.5 5.33374 14.5C4.74218 14.5 4.16741 14.2988 3.69993 13.9281C3.23244 13.5574 2.89878 13.0383 2.75147 12.4524L0.667793 12.451C0.501224 12.4514 0.340576 12.3879 0.217485 12.2731C0.094393 12.1584 0.0177782 12.0006 0.00272788 11.831C-0.0123224 11.6614 0.0352823 11.4921 0.136167 11.3566C0.237053 11.221 0.383907 11.129 0.547811 11.0987L0.667793 11.0878H2.75147C2.89928 10.5024 3.23315 9.98385 3.70059 9.61368C4.16803 9.24352 4.74253 9.04272 5.33374 9.04288ZM5.33374 10.4061C4.98018 10.4061 4.64109 10.5498 4.39108 10.8054C4.1410
17 11.0611 4.00061 11.4079 4.00061 11.7694C4.00061 12.131 4.14107 12.4777 4.39108 12.7334C4.64109 12.989 4.98018 13.1327 5.33374 13.1327C5.68731 13.1327 6.0264 12.989 6.27641 12.7334C6.52642 12.4777 6.66687 12.131 6.66687 11.7694C6.66687 11.4079 6.52642 11.0611 6.27641 10.8054C6.0264 10.5498 5.68731 10.4061 5.33374 10.4061ZM10.6663 0.5C11.2575 0.499846 11.832 0.70064 12.2994 1.07081C12.7668 1.44098 13.1007 1.95952 13.2485 2.5449H15.3322C15.4988 2.54459 15.6594 2.60806 15.7825 2.72282C15.9056 2.83758 15.9822 2.99531 15.9973 3.16495C16.0123 3.33458 15.9647 3.50384 15.8638 3.63938C15.7629 3.77492 15.6161 3.86692 15.4522 3.89726L15.3322 3.90817L13.2485 3.90953C13.1012 4.49541 12.7676 5.01456 12.3001 5.38525C11.8326 5.75594 11.2578 5.95712 10.6663 5.95712C10.0747 5.95712 9.49993 5.75594 9.03244 5.38525C8.56495 5.01456 8.23129 4.49541 8.08399 3.90953L0.667793 3.90817C0.501224 3.90848 0.340576 3.84501 0.217485 3.73025C0.094393 3.61549 0.0177782 3.45776 0.00272788 3.28813C-0.0123224 3.11849 0.0352823 2.94923 0.136167 2.8137C0.237053 2.67816 0.383907 2.58615 0.547811 2.55581L0.667793 2.5449H8.08399C8.23179 1.95952 8.56566 1.44098 9.03311 1.07081C9.50055 0.70064 10.075 0.499846 10.6663 0.5ZM10.6663 1.86327C10.3127 1.86327 9.9736 2.0069 9.72359 2.26256C9.47358 2.51822 9.33313 2.86497 9.33313 3.22654C9.33313 3.5881 9.47358 3.93485 9.72359 4.19051C9.9736 4.44617 10.3127 4.5898 10.6663 4.5898C11.0198 4.5898 11.3589 4.44617 11.6089 4.19051C11.8589 3.93485 11.9994 3.5881 11.9994 3.22654C11.9994 2.86497 11.8589 2.51822 11.6089 2.26256C11.3589 2.0069 11.0198 1.86327 10.6663 1.86327Z","fill","#5C5C5C"],["target","#CustomizeColumns1","showEvent","click","placement","right","position","bottom",3,"width","wrapperAttr"],[1,"scroll-outer"],[1,"column-overly-list"],[1,"column-overly-list__item"],[1,"checkbox"],["text","Sync with Lists",3,"elementAttr"],["text","Sync with Access Group",3,"elementAttr"],["text","Sync Status",3,"elementAttr"],["text","Created by",3,"elementAttr"],["text","Export","id","Export","type","normal","icon","download","stylingMode","contained",1,"btn","btn--secondary","search-criteria",3,"onClick"],["text","Filters","id","ListFilters","icon","filters","type","normal","stylingMode","contained",1,"btn","btn--primary","filters-btn"],["target","#ListFilters","showEvent","click","placement","right","position","bottom",3,"visibleChange","width","visible","wrapperAttr"],[1,"filters-outer"],[1,"filters-outer__form"],[1,"filters-outer__title"],[1,"filters-outer__content"],[1,"dx-field"],["label","List Return Type",3,"valueChange","labelMode","items","value","inputAttr"],["label","List Type","displayExpr","listTypeDisplayName","valueExpr","listTypeId",3,"valueChange","labelMode","items","value","inputAttr"],["label","List Category",3,"valueChange","labelMode","items","value","inputAttr"],["label","List Structure ",3,"valueChange","labelMode","items","value","inputAttr"],["displayExpr","listCreator","valueExpr","userInfoId","label","Created By",3,"valueChange","labelMode","items","value","inputAttr"],["label","Sync Status",3,"valueChange","labelMode","items","value","inputAttr"],[1,"dx-field","full-width","buttons"],["href","javascript:void(0)",1,"reset-filter",3,"click"],[1,"reset-filter__icon"],["width","11","height","11","viewBox","0 0 11 11","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.73056 0.633529C2.77509 0.675749 2.81043 0.725904 2.83453 0.781123C2.85864 0.836341 2.87105 0.895537 2.87105 0.955321C2.87105 1.0151 2.85864 1.0743 2.83453 1.12952C2.81043 1.18474 2.77509 1.23489 2.73056 1.27711L1.63351 2.31885H6.69599C7.83748 2.31885 8.93222 2.74982 9.73938 3.51695C10.5465 4.28408 11 5.32453 11 6.40942C11 7.49431 10.5465 8.53477 9.73938 9.3019C8.93222 10.069 7.83748 10.5 6.69599 10.5H2.8702C2.74336 10.5 2.62173 10.4521 2.53204 10.3669C2.44236 10.2816 2.39197 10.166 2.39197 10.0455C2.39197 9.92495 2.44236 9.80934 2.53204 9.7241C2.62173 9.63887 2.74336 9.59098 2.8702 9.59098H6.69599C7.58382 9.59098 8.43528 9.25578 9.06307 8.65913C9.69086 8.06247 10.0436 7.25323 10.0436 6.40942C10.0436 5.56562 9.69086 4.75638 9.06307 4.15972C8.43528 3.56306 7.58382 3.22786 6.69599 3.22786H1.63351L2.73056 4.2696C2.77502 4.31186 2.81029 4.36202 2.83435 4.41724C2.85842 4.47245 2.8708 4.53163 2.8708 4.59139C2.8708 4.65115 2.85842 4.71033 2.83435 4.76554C2.81029 4.82076 2.77502 4.87092 2.73056 4.91318C2.68609 4.95544 2.63331 4.98896 2.57521 5.01183C2.51712 5.0347 2.45485 5.04647 2.39197 5.04647C2.32909 5.04647 2.26683 5.0347 2.20873 5.01183C2.15064 4.98896 2.09785 4.95544 2.05339 4.91318L0.140496 3.09515C0.0959608 3.05293 0.0606271 3.00277 0.0365184 2.94755C0.0124098 2.89234 0 2.83314 0 2.77336C0 2.71357 0.0124098 2.65438 0.0365184 2.59916C0.0606271 2.54394 0.0959608 2.49378 0.140496 2.45156L2.05339 0.633529C2.09781 0.591202 2.15059 0.557621 2.20869 0.534707C2.26679 0.511794 2.32907 0.5 2.39197 0.5C2.45488 0.5 2.51716 0.511794 2.57526 0.534707C2.63336 0.557621 2.68613 0.591202 2.73056 0.633529Z","fill","white"],["text","Search","stylingMode","contained","type","default",1,"btn","btn--primary",3,"click"],["dataField","listName","caption","
1List Name","cellTemplate","ListTemplate",3,"minWidth"],["class","event-name-code",4,"dxTemplate","dxTemplateOf"],["dataField","isHubSpotSync","caption","Lists Sync","alignment","left","cellTemplate","SyncwithHubSpotTemplate",3,"width"],["class","toggle-btn",4,"dxTemplate","dxTemplateOf"],["dataField","isHubSpotSyncForAccessGroups","caption","Access Group Sync","alignment","left","cellTemplate","SyncwithAccessGroupTemplate",3,"width",4,"ngIf"],["dataField","syncStatus","caption","Sync Status","alignment","left","cellTemplate","SyncStatusTemplate"],[4,"dxTemplate","dxTemplateOf"],["dataField","createdByUserName","caption","Created By","alignment","left","cellTemplate","CreatedByTemplate",3,"width"],[3,"title",4,"dxTemplate","dxTemplateOf"],["dataField","modifiedByUserName","caption","Last Updated By","alignment","left","cellTemplate","ModifiedByTemplate",3,"width"],["dataField","dateTimeLastModified","caption","Last Updated","alignment","left","cellTemplate","LastModifiedTemplate",3,"width"],["dataField","dateTimeLastHubspotSync","caption","Last Synced","alignment","left","cellTemplate","DateTimeLastHubspotTemplate",3,"width"],["dataField","action","caption","Action","type","buttons","cellTemplate","ActionTemplate","alignment","left",3,"fixed","width"],["class","action-menu-btn",4,"dxTemplate","dxTemplateOf"],[3,"visibleChange","save","visible","action","titleText"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[3,"visibleFalse","listInputModel"],[1,"custome-table-outer"],[1,"cart-table"],[4,"ngIf"],["text","Close","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],[1,"event-name-code"],["href","javascript:void(0)",1,"client-name",3,"click","title"],[1,"toggle-btn"],["style","margin: 0;",3,"value","valueChange","onValueChanged",4,"ngIf"],["class","recurrence-text",4,"ngIf"],["class","not-active",4,"ngIf"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"recurrence-text"],["href","javascript:void(0)","id","RecurrenceIcon","title","Recurrence",3,"click","routerLink"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.62504 7.87813C2.64066 7.19531 2.78129 6.53281 3.04535 5.90938C3.31566 5.26875 3.70316 4.69531 4.19691 4.2C4.69066 3.70469 5.26566 3.31719 5.90629 3.04688C6.56879 2.76719 7.27191 2.625 7.99848 2.625C8.72504 2.625 9.42816 2.76719 10.0891 3.04688C10.7279 3.31663 11.308 3.70831 11.7969 4.2C11.9516 4.35469 12.0969 4.51875 12.2313 4.69063L11.2907 5.425C11.2721 5.4394 11.2579 5.45875 11.2498 5.48085C11.2417 5.50294 11.24 5.52687 11.2449 5.54988C11.2498 5.5729 11.2611 5.59406 11.2775 5.61094C11.2939 5.62783 11.3147 5.63974 11.3375 5.64531L14.0829 6.31719C14.161 6.33594 14.2375 6.27656 14.2375 6.19688L14.25 3.37031C14.25 3.26562 14.1297 3.20625 14.0485 3.27187L13.1672 3.96094C11.9657 2.42344 10.0969 1.4375 7.99691 1.4375C4.41723 1.4375 1.50473 4.30625 1.43754 7.87187C1.43712 7.88855 1.44005 7.90514 1.44614 7.92067C1.45224 7.9362 1.46138 7.95035 1.47303 7.96229C1.48468 7.97423 1.4986 7.98372 1.51397 7.9902C1.52934 7.99667 1.54586 8.00001 1.56254 8H2.50004C2.56879 8 2.62348 7.94531 2.62504 7.87813ZM14.4375 8H13.5C13.4313 8 13.3766 8.05469 13.375 8.12187C13.3594 8.80469 13.2188 9.46719 12.9547 10.0906C12.6844 10.7312 12.2969 11.3063 11.8032 11.8C11.3048 12.3004 10.7123 12.6972 10.0598 12.9675C9.40737 13.2379 8.70785 13.3763 8.0016 13.375C7.29559 13.3763 6.59631 13.2378 5.9441 12.9675C5.29189 12.6972 4.69967 12.3004 4.2016 11.8C4.04691 11.6453 3.9016 11.4812 3.76723 11.3094L4.70785 10.575C4.72646 10.5606 4.74063 10.5412 4.74873 10.5192C4.75683 10.4971 4.75853 10.4731 4.75363 10.4501C4.74873 10.4271 4.73744 10.4059 4.72105 10.3891C4.70466 10.3722 4.68384 10.3603 4.66098 10.3547L1.91566 9.68281C1.83754 9.66406 1.76098 9.72344 1.76098 9.80313L1.75004 12.6313C1.75004 12.7359 1.87035 12.7953 1.9516 12.7297L2.83285 12.0406C4.03441 13.5766 5.90316 14.5625 8.00316 14.5625C11.5844 14.5625 14.4954 11.6922 14.5625 8.12813C14.563 8.11145 14.56 8.0948
16 14.5539 8.07933C14.5478 8.0638 14.5387 8.04965 14.5271 8.03771C14.5154 8.02577 14.5015 8.01628 14.4861 8.0098C14.4707 8.00333 14.4542 7.99999 14.4375 8Z","fill","#5C5C5C"],[1,"not-active"],["dataField","isHubSpotSyncForAccessGroups","caption","Access Group Sync","alignment","left","cellTemplate","SyncwithAccessGroupTemplate",3,"width"],["href","javascript:void(0)","id","RecurrenceIcon1","title","Recurrence",3,"click","routerLink"],["class","status Inactive",4,"ngIf"],["class","status Active",4,"ngIf"],[1,"status","Inactive"],[1,"status","Active"],[3,"title"],[1,"action-menu-btn"],["href","javascript:void(0)",1,"company-popup-icon",3,"click"],["width","16","height","12","viewBox","0 0 16 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.15257 10.7568H14.1926C15.4014 10.7568 16 10.1583 16 8.97256V1.94542C16 0.759704 15.4014 0.161133 14.1929 0.161133H4.23C3.03286 0.161133 2.42886 0.75399 2.42886 1.94542V5.2317C2.73674 5.19706 3.04754 5.19706 3.35543 5.2317V4.27056H8.80571V6.64742H5.85886C6.05287 6.89381 6.20995 7.16716 6.32514 7.45885H8.80571V9.83027H6.50943C6.44029 10.1583 6.314 10.4691 6.15257 10.7568ZM3.35514 3.45885V1.9917C3.35514 1.39313 3.67171 1.08799 4.24714 1.08799H8.80571V3.45942L3.35514 3.45885ZM9.61686 3.45885V1.0877H14.1809C14.7449 1.0877 15.0731 1.39285 15.0731 1.99142V3.45885H9.61686ZM9.61686 6.64742V4.27028H15.0731V6.64742H9.61686ZM2.92343 11.8388C4.52914 11.8388 5.84714 10.5266 5.84714 8.91513C5.84714 7.31513 4.52914 5.99142 2.92343 5.99142C1.32371 5.99142 0 7.31513 0 8.91513C0 10.5266 1.32343 11.8388 2.92343 11.8388ZM9.61714 9.83027V7.45885H15.0734V8.92656C15.0734 9.52513 14.7451 9.83027 14.1811 9.83027H9.61714ZM1.32371 9.35827C1.082 9.35827 0.886571 9.15113 0.886571 8.91513C0.886571 8.67913 1.082 8.47199 1.32371 8.47199C1.56543 8.47199 1.76686 8.67913 1.76686 8.91485C1.76686 9.15113 1.56514 9.35827 1.32371 9.35827ZM2.92971 9.35827C2.688 9.35827 2.48686 9.15113 2.48686 8.91513C2.48686 8.67913 2.688 8.47199 2.92971 8.47199C3.16571 8.47199 3.37286 8.67913 3.37286 8.91485C3.37286 9.15113 3.16571 9.35827 2.93 9.35827M4.52429 9.35827C4.28257 9.35827 4.08714 9.15113 4.08714 8.91513C4.08714 8.67913 4.28257 8.47199 4.52429 8.47199C4.766 8.47199 4.96743 8.67913 4.96743 8.91485C4.96171 9.15113 4.766 9.35827 4.52457 9.35827","fill","#5C5C5C"],["icon","dot-icon","cssClass","TestingClass","displayExpr","text","text","","stylingMode","text",1,"overflow-menu",3,"showArrowIcon","useItemTextAsTitle","useSelectMode","items"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),h(4,"Manage Lists"),s(),b(5,"dx-button",5),s()(),a(6,"div",6)(7,"div",7)(8,"dx-data-grid",8),_("focusedRowKeyChange",function(c){return p(i),C(e.listId,c)||(e.listId=c),u(c)}),f("onCellClick",function(c){return p(i),u(e.onItemClick(c))})("onContentReady",function(c){return p(i),u(e.getTotalCount(c))}),b(9,"dxo-remote-operations",9)(10,"dxo-column-fixing",10),a(11,"dxo-search-panel",11),_("textChange",function(c){return p(i),C(e.searchText,c)||(e.searchText=c),u(c)}),s(),b(12,"dxo-paging",12)(13,"dxo-pager",13),a(14,"dxo-toolbar"),b(15,"dxi-item",14),a(16,"dxi-item",15)(17,"div",16)(18,"div",17)(19,"a",18),A(),a(20,"svg",19),b(21,"path",20),s(),h(22," Customize Columns "),s(),G(),a(23,"dx-popover",21)(24,"dxi-item")(25,"dx-scroll-view",22)(26,"ul",23)(27,"li",24)(28,"div",25),b(29,"dx-check-box",26),s()(),a(30,"li",24)(31,"div",25),b(32,"dx-check-box",27),s()(),a(33,"li",24)(34,"div",25),b(35,"dx-check-box",28),s()(),a(36,"li",24)(37,"div",25),b(38,"dx-check-box",29),s()()()()()()(),a(39,"dx-button",30),f("onClick",function(){return p(i),u(e.exportListRecords())}),s(),b(40,"dx-button",31),a(41,"dx-popover",32,0),_("visibleChange",function(c){return p(i),C(e.isPopoverVisible,c)||(e.isPopoverVisible=c),u(c)}),a(43,"form",33)(44,"dx-form",34)(45,"dxi-item")(46,"h3",35),h(47,"Filters"),s(),a(48,"div",36)(49,"div",37)(50,"dx-select-box",38),_("valueChange",function(c){return p(i),C(e.listReturnTypeValue,c)||(e.listReturnTypeValue=c),u(c)}),s()(),a(51,"div",37)(52,"dx-select-box",39),_("valueChange",function(c){return p(i),C(e.selectedListType,c)||(e.selectedListType=c),u(c)}),s()(),a(53,"div",37)(54,"dx-select-box",40),_("valueChange",function(c){return p(i),C(e.selectedCategoryType,c)||(e.selectedCategoryType=c),u(c)}),s()(),a(55,"div",37)(56,"dx-select-box",41),_("valueChange",function(c){return p(i),C(e.listStructure,c)||(e.listStructure=c),u(c)}),s()(),a(57,"div",37)(58,"dx-select-box",42),_("valueChange",function(c){return p(i),C(e.selectedCreatedBy,c)||(e.selectedCreatedBy=c),u(c)}),s()(),a(59,"div",37)(60,"dx-select-box",43),_("valueChange",function(c){return p(i),C(e.selectedSyncStatus,c)||(e.selectedSyncStatus=c),u(c)}),s()(),a(61,"div",44)(62,"a",45),f("click",function(){return p(i),u(e.ResetFilter())}),a(63,"span",46),A(),a(64,"svg",47),b(65,"path",48),s()(),h(66," Reset "),s(),G(),a(67,"dx-button",49),f("click",function(){return p(i),u(e.SearchFilter())}),s()()()()()()()()()(),a(68,"dxi-column",50),S(69,Hl,3,2,"div",51),s(),a(70,"dxi-column",52),S(71,Ql,4,3,"div",53),s(),S(72,$l,2,2,"dxi-column",54),a(73,"dxi-column",55),S(74,id,3,2,"div",56),s(),a(75,"dxi-column",57),S(76,nd,2,2,"div",58),s(),a(77,"dxi-column",59),S(78,od,2,2,"div",58),s(),a(79,"dxi-column",60),S(80,ad,3,3,"div",56),s(),a(81,"dxi-column",61),S(82,rd,3,4,"div",56),s(),a(83,"dxi-column",62),S(84,sd,5,4,"div",63),s()()()()(),a(85,"confirm-popup",64),_("visibleChange",function(c){return p(i),C(e.activeInactivePopup,c)||(e.activeInactivePopup=c),u(c)}),f("save",function(){return p(i),u(e.onClickActiveInactiveList())}),s(),a(86,"dx-popup",65),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(87,"div",66)(88,"h2"),h(89,"Confirmation"),s()(),a(90,"div",67)(91,"p"),h(92,"Are you sure you want to delete "),a(93,"strong"),h(94),s(),h(95,'"?'),s()(),a(96,"div",68)(97,"dx-button",69),f("onClick",function(){return p(i),u(e.closeDeletePopup())}),s(),a(98,"dx-button",70),f("onClick",function(){return p(i),u(e.DeleteList())}),s()()(),a(99,"dx-popup",65),_("visibleChange",function(c){return p(i),C(e.SetRecurrencePopup,c)||(e.SetRecurrencePopup=c),u(c)}),a(100,"div",66)(101,"h2"),h(102,"Set Recurrence"),s()(),a(103,"a
1pp-set-recurrence-popup",71),f("visibleFalse",function(){return p(i),u(e.closePopup())}),s()(),a(104,"dx-popup",65),_("visibleChange",function(c){return p(i),C(e.deletehubspotPopup,c)||(e.deletehubspotPopup=c),u(c)}),a(105,"div",66)(106,"h2"),h(107,"Confirmation"),s()(),a(108,"div",67)(109,"p"),h(110,"Are you sure you want to disable the HubSpot sync for this "),a(111,"strong"),h(112),s(),h(113,'"? '),s(),a(114,"p"),h(115,"This action may stop future data syncs between HubSpot. "),s(),a(116,"p"),h(117,"Please confirm if you would like to proceed. "),s()(),a(118,"div",68)(119,"dx-button",69),f("onClick",function(){return p(i),u(e.closePopup())}),s(),a(120,"dx-button",70),f("onClick",function(c){return p(i),u(e.DisableSynce(c))}),s()()(),a(121,"dx-popup",65),_("visibleChange",function(c){return p(i),C(e.AllCompaniesPopup,c)||(e.AllCompaniesPopup=c),u(c)}),a(122,"div",66)(123,"h2"),h(124,"More Information"),s()(),a(125,"div",67)(126,"div",72)(127,"table",73)(128,"thead")(129,"tr")(130,"th"),h(131,"List Return Type"),s(),a(132,"th"),h(133,"List Type"),s(),a(134,"th"),h(135,"List Category"),s(),a(136,"th"),h(137,"List Structure"),s()()(),a(138,"tbody"),S(139,ld,9,4,"tr",74),s()()()(),a(140,"div",68)(141,"dx-button",75),f("onClick",function(){return p(i),u(e.closePopup1())}),s()()()}n&2&&(o(8),l("dataSource",e.listDataSource)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0),x("focusedRowKey",e.listId),l("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("groupPaging",!0),o(),l("enabled",!0),o(),x("text",e.searchText),l("visible",!0),o(),l("pageSize",15),o(),l("visible",e.isPagerVisible)("showPageSizeSelector",e.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(95,Wl))("showNavigationButtons",e.showPageNavigation),o(10),l("width",300)("wrapperAttr",I(96,Nl)),o(6),l("elementAttr",I(97,Uo)),o(3),l("elementAttr",I(98,Uo)),o(3),l("elementAttr",I(99,Uo)),o(3),l("elementAttr",I(100,Uo)),o(3),l("width",640),x("visible",e.isPopoverVisible),l("wrapperAttr",I(101,ql)),o(9),l("labelMode",e.labelMode)("items",e.ListReturnType),x("value",e.listReturnTypeValue),l("inputAttr",I(102,go)),o(2),l("labelMode",e.labelMode)("items",e.listTypeRecords),x("value",e.selectedListType),l("inputAttr",I(103,go)),o(2),l("labelMode",e.labelMode)("items",e.ListCategoryFiter),x("value",e.selectedCategoryType),l("inputAttr",I(104,go)),o(2),l("labelMode",e.labelMode)("items",e.ListStructureFiter),x("value",e.listStructure),l("inputAttr",I(105,go)),o(2),l("labelMode",e.labelMode)("items",e.createdByList),x("value",e.selectedCreatedBy),l("inputAttr",I(106,Ul)),o(2),l("labelMode",e.labelMode)("items",e.SyncStatusFiter),x("value",e.selectedSyncStatus),l("inputAttr",I(107,go)),o(8),l("minWidth",300),o(),l("dxTemplateOf","ListTemplate"),o(),l("width",220),o(),l("dxTemplateOf","SyncwithHubSpotTemplate"),o(),l("ngIf",!1),o(2),l("dxTemplateOf","SyncStatusTemplate"),o(),l("width",160),o(),l("dxTemplateOf","CreatedByTemplate"),o(),l("width",160),o(),l("dxTemplateOf","ModifiedByTemplate"),o(),l("width",160),o(),l("dxTemplateOf","LastModifiedTemplate"),o(),l("width",160),o(),l("dxTemplateOf","DateTimeLastHubspotTemplate"),o(),l("fixed",!0)("width",100),o(),l("dxTemplateOf","ActionTemplate"),o(),q("action",e.activeAction),q("titleText",e.selectedListRecord==null?null:e.selectedListRecord.listName),x("visible",e.activeInactivePopup),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(108,Br)),o(8),R(e.selectedListRecord.listName),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.SetRecurrencePopup),l("wrapperAttr",I(109,Fr)),o(4),l("listInputModel",e.listInputModel),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletehubspotPopup),l("wrapperAttr",I(110,Br)),o(8),R(e.selectedListRecord.listName),o(9),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.AllCompaniesPopup),l("wrapperAttr",I(111,Fr)),o(18),l("ngIf",e.allCompaniesDisplayRecord))},dependencies:[bt,Ai,Gr,vr,vt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,_n,me,ge,he,N,Fi,Ot,ji,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,yn,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,To,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Zn],styles:[".title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:110px;padding-left:1rem;padding-right:1.5rem}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%]{margin-left:-5px!important}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%] .dx-button-text[_ngcontent-%COMP%]{text-overflow:inherit}.toggle-btn[_ngcontent-%COMP%]{justify-content:flex-start}.toggle-btn[_ngcontent-%COMP%] .recurrence-text[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--primary-color);border-radius:50px;margin-top:2px;margin-left:1rem}.toggle-btn[_ngcontent-%COMP%] .recurrence-text[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--primary-color)}.customize-columns__link[_ngcontent-%COMP%]{margin-top:.8rem}.not-active[_ngcontent-%COMP%]{border:1px solid var(--border-lighter);border-radius:100px;padding:.3rem 1.7rem;font:var(--font-weight-500) var(--font-12) var(--font-family);color:var(--cancelled-color)}.custome-table-outer[_ngcontent-%COMP%]{margin-bottom:1rem}.action-menu-btn[_ngcontent-%COMP%]{display:flex;align-items:center}.action-menu-btn[_ngcontent-%COMP%] .company-popup-icon[_ngcontent-%COMP%]{margin-right:1rem;margin-bottom:0;display:inline-block;height:18px;display:flex;width:16px;align-items:center}"]})}}return r})();wn();var Fn=class{};wn();var dd=()=>[15,30,50,100];function cd(r,g){if(r&1&&(a(0,"dxi-column",29),h(1,` 2 `),s()),r&2){let t=m();l("minWidth",300)("caption",t.GetPropertyLabelbyPageCategory("ListInformation","ListName"))}}function pd(r,g){if(r&1&&(a(0,"dxi-column",30),h(1,` 3 `),s()),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","ListTypeId"))}}function ud(r,g){if(r&1){let t=y();a(0,"div",31),h(1,` 4 `),a(2,"h3"),h(3,"Set Condition"),s(),h(4,` 5 `),a(5,"div",32),h(6,` 6 `),a(7,"div",4),h(8,` 7 `),a(9,"dx-radio-group",33),_("valueChange",function(e){p(t);let i=m();return C(i.selectedCondition1,e)||(i.selectedCondition1=e),u(e)}
7),h(10,` 8 `),s(),h(11,` 9 `),s(),h(12,` 10 `),s(),h(13,` 11 `),s()}if(r&2){let t=m();o(9),l("items",t.priorities),x("value",t.selectedCondition1)}}var Nr=(()=>{class r extends wt{constructor(t,n,e,i){super(),this.router=t,this.webStorageService=n,this.listService=e,this.propertyService=i,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.listReturnType="Contact",this.listTypeModele=[],this.productCategoryId=0,this.listTypeModelDataSource=[],this.visibleChange1=new Bi,this.compoundIdChange=new Bi,this.onSaveSuccess=new Bi,this.onAddToCloneLists=new Bi,this.unsubscriber=new Ct,this.progress=new Ct,this.staticListPopup=!1,this.priorities=[{value:"AND",text:"All of the selected with (AND)"},{value:"OR",text:"All of the selected with (OR)"}],this.compoundListExists=!1,this.count=0,this.conditionType="",this.listSearchValue="",this.isArchiveCompound=!1,this.isPagerVisibleForCompoundList=!1,this.priorities1=["Active List","Static List"],this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","requireGroupCount","sort","filter","totalSummary","group","groupSummary","archiveStatus","ActiveStatus","LockedStatus","userRole","categoryName","listReturnType","listType"],this.loadingCompoundList=!1,this.showPageSizeSelector=!1,this.showPageNavigation=!1,this.selectedCompoundRowsData=[],this.compoundListId=0,this.listOfCompoundModel=new Zi,this.compoundListRequestModel=[],this.conditionId="",this.properties=[],this.isCondtionShow=!1,this.selectedIds=[],this.resizingModes=["nextColumn","widget"],this.columnResizingMode=this.resizingModes[0],this.userToken=this.webStorageService.getCurrentUserToken(),this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.GetCompoundDataSource(""),this.BindMembershipProperties()}ngOnInit(){this.GetCompoundDataSource("")}RefreshTextBox(){this.GetCompoundDataSource(""),this.listSearchValue=""}onRadioButtonCompoundListOptionChanged(t){this.conditionId=t.value}close(){this.listSearchValue="",this.dataGrid!=null&&(this.dataGrid.instance.clearSelection(),this.dataGrid.instance.pageIndex(0)),this.visibleChange1.emit(!1)}ngOnChanges(t){return B(this,null,function*(){this.listModel=new Zi,this.existingListModels&&(this.listModel.listCategoryId=this.existingListModels.listCategoryId,this.listModel.listTypeId=this.existingListModels.listTypeId,this.listModel.listName=this.existingListModels.listName,this.listModel.listId=this.existingListModels.listId,this.listModel.compoundListRequestModel=[],this.listModel.compoundListRequestModel=this.existingListModels.compoundListRequestModel,this.listModel.productCategoryId=this.existingListModels.productCategoryId),this.listTypeModelDataSource=this.listTypeModele.filter(n=>n.listStructureName=="Simple"),this.listTypeId=2,this.GetCompoundDataSource("")})}ListvalueChanged(t){t.value?this.listSearchValue=t.value:this.listSearchValue="",this.GetCompoundDataSource(this.listSearchValue)}GetCompoundDataSource(t){let n=this,e=d=>d!=null&&d!=="";this.dataSourceCompoundList=new ki({key:"listId",load(d){return B(this,null,function*(){let c=new Si;n.listSearchValue!=""?c=c.set("searchText",n.listSearchValue):c=c.set("searchText",""),n.dataGridParamNames.forEach(v=>{e(d[v])?v==="filter"?c=c.set(v,JSON.stringify(d[v])):v==="archiveStatus"?c=c.set(v,n.isArchiveCompound):c=c.set(v,JSON.stringify(d[v])):v==="take"?c=c.set(v,20):v==="skip"?c=c.set(v,0):v==="sort"?c=c.set(v,null):v==="categoryName"?c=c.set(v,n.categoryNameForList?n.categoryNameForList:null):v==="listReturnType"?c=c.set(v,n.listReturnType):v==="listType"?c=c.set(v,n.listTypeId):v==="archiveStatus"?c=c.set(v,n.isArchiveCompound):c=c.set(v,"")}),n.loadingCompoundList=!0;try{let v=yield wi(n.listService.GetAllCompoundList(c));n.loadingCompoundList=!1;let V=v.responseModel.results;return V.forEach(E=>{let T=[];E.hasLists&&T.push("Access Groups"),E.hasAccessGroups&&T.push("Lists"),E.listCategoryName=T.join(", ")}),{data:V,totalCount:v.responseModel.totalRecords,summary:v.summary,groupCount:v.groupCount}}catch{throw new Error("Data loading error")}})}})}onSelectionCompoundListChanged(t){this.selectedCompoundRowsData=[],this.selectedCompoundRowsData=t.selectedRowsData,this.selectedCompoundRowsData.length>1?this.isCondtionShow=!0:this.isCondtionShow=!1}onItemClickCompoundList(t){this.selectedCompoundRowsData=[],this.selectedCompoundRowsData=this.dataGrid.instance.getSelectedRowsData(),this.selectedCompoundRowsData.length>1?this.isCondtionShow=!0:this.isCondtionShow=!1}getTotalCompoundListCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisibleForCompoundList=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}SaveCompoundList(){if(this.count=0,this.selectedCompoundRowsData.length!=0){if((this.selectedCondition1==null||this.selectedCondition1=="null"||this.selectedCondition1=="-")&&this.selectedCompoundRowsData.length>1){this.count=0,this.showErrorMessage("Please select condition");return}if(this.selectedCompoundRowsData.length>0){this.selectedCompoundRowsData=this.selectedCompoundRowsData.filter((n,e,i)=>e===i.findIndex(d=>d.listId===n.listId));let t=[];this.selectedCompoundRowsData.forEach(n=>{if(this.listModel.compoundListRequestModel!=null&&this.listModel.compoundListRequestModel!=null&&(this.compoundListExists=this.listModel.compoundListRequestModel.some(e=>e.CompoundListId===n.listId||e.compoundListId===n.listId)),!this.compoundListExists)this.compountListsModel=new Fn,this.compountListsModel.ListId=0,this.compountListsModel.CompoundListId=n.listId,this.listOfCompoundModel.compoundListRequestModel.push(this.compountListsModel),n.CompoundListId=n.listId,n.compoundListId=n.listId,n.listId=0,this.mode=="clone"&&t.push(n);else{this.count+=1;let e=`"${n.listName}" available in list`;this.showErrorMessage(e);return}}),this.count==0&&(this.mode!="clone"?(this.listOfCompoundModel.isActive=!0,this.listOfCompoundModel.listName=this.listModel.listName,this.listOfCompoundModel.listCategoryId=this.listModel.listCategoryId,this.listOfCompoundModel.isHubSpotSync=!1,this.listOfCompoundModel.modifiedByUserId=this.userToken.userId,this.listOfCompoundModel.listTypeId=this.listModel.listTypeId,this.pageHeaderTitle=="Edit"&&this.selectedCompoundRowsData.length>1?this.listOfCompoundModel.logicalCondition=this.selectedCondition1?this.selectedCondition1:"OR":this.pageHeaderTitle=="Create"&&this.selectedCompoundRowsData.length>1?this.listOfCompoundModel.logicalCondition=this.selectedCondition1?this.selectedCondition1:"OR":this.listOfCompoundModel.logicalCondition=this.logicalCondition,this.listOfCompoundModel.listId=this.listModel.listId,this.listOfCompoundModel.listReturnType=this.listReturnType,this.listOfCompoundModel.listStructureName="Compound",this.listOfCompoundModel.hasAccessGroups=this.listReturnType!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(n=>n=="Access Groups")!=-1)==!0,this.listOfCompoundModel.hasLists=this.listReturnType!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(n=>n=="Lists")!=-1)==!0,this.listOfCompoundModel.productCategoryId=this.productCategoryId,this.listService.AddCompoundList(this.listOfCompoundModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{n&&n.responseModel.listId>0?(this.loading=!1,n.responseModel!=null&&n.responseModel!=null&&(this.listSearchValue="",this.dataGrid.instance.refresh(),this.compoundIdChange.emit(n.responseModel.listId),this.showSuccessMessage("List has been added successfully."),this.onSaveSuccess.emit(),this.close())):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})):(this.onAddToCloneLists.emit(t),this.showSuccessMessage("List has been added successfully."),this.close()))}}else this.showErrorMessage("Please select atleast one list.")}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0&&this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}onRadioButtonListOptionChanged(t){this.selectedListTypeId=t.value,this.GetCompoundDataSource("")}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(yt),k(ln),k(Kt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-compound-list-popup"]],viewQuery:function(n,e){if(n&1&&U(N,7),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},inputs:{existingListModels:"existingListModels",ListId:"ListId",pageHeaderTitle:"pageHeaderTitle",logicalCondition:"logicalCondition",categoryNameForList:"categoryNameForList",listReturnType:"listReturnType",listCategoryIds:"listCategoryIds",mode:"mode",listTypeModele:"listTypeModele",productCategoryId:"productCategoryId"},outputs:{visibleChange1:"visibleChange1",compoundIdChange:"compoundIdChange",onSaveSuccess:"onSaveSuccess",onAddToCloneLists:"onAddToCloneLists"},standalone:!0,features:[Wt([Di]),xt,on,Q],decls:90,vars:29,consts:[[1,"card-outer","list-from-entity","add-lists","add-lists-toggle"],["id","form",3,"formData"],[1,"static-list-block"],[1,"static-list-block__top"],[1,"dx-field-value"],["layout","horizontal","displayExpr","listTypeDisplayName","valueExpr","listTypeId",3,"valueChange","onValueChanged","items","value"],[1,"select-from-list"],[1,"table-block"],["id","gridContainer","noDataText","No Records foun
11d.","keyExpr","contactId",1,"table-outer","session-management-table","renewal-invoices-table",3,"onContentReady","selectedRowKeysChange","onCellClick","focusedRowKeyChange","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled","selectedRowKeys","focusedRowKey"],[3,"enabled"],[3,"groupPaging"],["selectAllMode","page","showCheckBoxesMode","always","mode","multiple"],["placeholder","Search by List",3,"textChange","visible","text"],["name","searchPanel","location","before","locateInMenu","auto"],["location","after","locateInMenu","auto",1,"dx-toolbar-after-item"],[1,"search-outer-block__right"],["href","javascript:void(0)",1,"sync-btn",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.6478 2.35C12.9076 1.60494 12.0273 1.01371 11.0577 0.610385C10.088 0.207061 9.04804 -0.000384799 7.99781 5.35839e-07C3.57781 5.35839e-07 0.0078125 3.58 0.0078125 8C0.0078125 12.42 3.57781 16 7.99781 16C11.7278 16 14.8378 13.45 15.7278 10H13.6478C13.2359 11.1695 12.4712 12.1824 11.4592 12.8988C10.4472 13.6153 9.23776 14 7.99781 14C4.68781 14 1.99781 11.31 1.99781 8C1.99781 4.69 4.68781 2 7.99781 2C9.65781 2 11.1378 2.69 12.2178 3.78L8.99781 7H15.9978V5.35839e-07L13.6478 2.35Z","fill","#024079"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","listName",3,"minWidth","caption",4,"ngIf"],["dataField","listReturnType","caption","List Return Type"],["dataField","listCategoryName","caption","List Category"],["dataField","listTypeName",3,"caption",4,"ngIf"],["class","set-condition manage-list-toggle",4,"ngIf"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["dataField","listName",3,"minWidth","caption"],["dataField","listTypeName",3,"caption"],[1,"set-condition","manage-list-toggle"],[1,"select-radio"],["layout","horizontal","displayExpr","text","valueExpr","value",3,"valueChange","items","value"]],template:function(n,e){n&1&&(a(0,"form",0),h(1,` 12 13 `),a(2,"dx-form",1),h(3,` 14 `),a(4,"dxi-item"),h(5,` 15 `),xi(6),h(7,` 16 `),a(8,"div",2),h(9,` 17 `),a(10,"label",3),h(11,"List Types"),s(),h(12,` 18 `),a(13,"div",4),h(14,` 19 `),a(15,"dx-radio-group",5),_("valueChange",function(d){return C(e.listTypeId,d)||(e.listTypeId=d),d}),f("onValueChanged",function(d){return e.onRadioButtonListOptionChanged(d)}),h(16,` 20 `),s(),h(17,` 21 `),s(),h(18,` 22 `),s(),h(19,` 23 24 `),a(20,"div",6),h(21,` 25 `),h(22,` 26 `),a(23,"div",7),h(24,` 27 28 `),a(25,"dx-data-grid",8),f("onContentReady",function(d){return e.getTotalCompoundListCount(d)}),_("selectedRowKeysChange",function(d){return C(e.selectedIds,d)||(e.selectedIds=d),d}),f("onCellClick",function(d){return e.onItemClickCompoundList(d)}),_("focusedRowKeyChange",function(d){return C(e.ListId,d)||(e.ListId=d),d}),h(26,` 29 30 31 `),b(27,"dxo-column-chooser",9),h(28,` 32 `),b(29,"dxo-column-fixing",9),h(30,` 33 34 `),b(31,"dxo-remote-operations",10),h(32,` 35 36 `),b(33,"dxo-selection",11),h(34,` 37 38 `),a(35,"dxo-search-panel",12),_("textChange",function(d){return C(e.listSearchValue,d)||(e.listSearchValue=d),d}),s(),h(36,` 39 40 `),a(37,"dxo-toolbar"),h(38,` 41 `),b(39,"dxi-item",13),h(40,` 42 `),a(41,"dxi-item",14),h(42,` 43 44 45 `),a(43,"div",15),h(44,` 46 `),a(45,"a",16),f("click",function(){return e.RefreshTextBox()}),h(46,` 47 `),A(),a(47,"svg",17),h(48,` 48 `),b(49,"path",18),h(50,` 49 `),s(),h(51,` 50 Refresh 51 `),s(),h(52,` 52 53 `),G(),a(53,"span"),h(54),s(),h(55,` 54 `),s(),h(56,` 55 56 `),s(),h(57,` 57 `),s(),h(58,` 58 59 `),b(59,"dxo-paging",19),h(60,` 60 `),b(61,"dxo-pager",20),h(62,` 61 62 `),h(63,` 63 `),S(64,cd,2,2,"dxi-column",21),h(65,` 64 65 `),h(66,` 66 `),b(67,"dxi-column",22),h(68,` 67 `),b(69,"dxi-column",23),h(70,` 68 `),S(71,pd,2,1,"dxi-column",24),h(72,` 69 `),s(),h(73,` 70 71 `),s(),h(74,` 72 73 `),S(75,ud,14,2,"div",25),h(76,` 74 75 `),s(),h(77,` 76 `),vi(),h(78,` 77 78 `),h(79,` 79 `),a(80,"div",26),h(81,` 80 `),a(82,"dx-button",27),f("onClick",function(){return e.close()}),s(),h(83,` 81 `),h(84,` 82 `),a(85,"dx-button",28),f("onClick",function(){return e.SaveCompoundList()}),s(),h(86,` 83 `),s(),h(87,` 84 85 `),s(),h(88,` 86 `),s(),h(89,` 87`),s()),n&2&&(o(2),l("formData",e.formData),o(13),l("items",e.listTypeModelDataSource),x("value",e.listTypeId),o(10),l("dataSource",e.dataSourceCompoundList)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!1)("focusedRowIndex",0)("allowColumnResizing",!1)("columnHidingEnabled",!1),x("selectedRowKeys",e.selectedIds)("focusedRowKey",e.ListId),o(2),l("enabled",!1),o(2),l("enabled",!0),o(2),l("groupPaging",!0),o(4),l("visible",!0),x("text",e.listSearchValue),o(19),O("(",e.totalRecordCount," records foun
87d)"),o(5),l("pageSize",15),o(2),l("visible",e.isPagerVisibleForCompoundList)("showPageSizeSelector",e.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(28,dd))("showNavigationButtons",e.showPageNavigation),o(3),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","ListName")),o(7),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","ListTypeId")),o(4),l("ngIf",e.isCondtionShow==!0))},dependencies:[bt,vt,Pt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Tn,Un,Fi,Ot,ji,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,Dn,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".select-from-list[_ngcontent-%COMP%]{width:100%;margin:0;padding:0 25px;height:calc(100vh - 193px)}.select-from-list[_ngcontent-%COMP%] .search-outer-block[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;border-top:none;margin:0 0 1.5rem;padding:0 0 0rem}.select-from-list[_ngcontent-%COMP%] .search-outer-block__left[_ngcontent-%COMP%]{margin:0;width:400px}.select-from-list[_ngcontent-%COMP%] .search-outer-block__left[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin-top:0}.select-from-list[_ngcontent-%COMP%] .search-outer-block__right[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;font:var(--font-weight-500) var(--font-14) var(--font-family)}.select-from-list[_ngcontent-%COMP%] .search-outer-block__right[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;border-right:1px solid var(--border-lighter);margin-right:1.8rem;padding-right:1.8rem;font:var(--font-weight-600) var(--font-14) var(--font-family)}.select-from-list[_ngcontent-%COMP%] .search-outer-block__right[_ngcontent-%COMP%] a[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.select-from-list[_ngcontent-%COMP%] .search-outer-block__right[_ngcontent-%COMP%] a[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--primary-color)}.set-condition[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;border-top:1px solid var(--border-lighter);padding-top:1.5rem}.set-condition[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.set-condition[_ngcontent-%COMP%] .select-radio[_ngcontent-%COMP%]{margin-bottom:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-condition[_ngcontent-%COMP%] .select-radio[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%}.dx-popup-footer[_ngcontent-%COMP%]{padding:0 25px}.static-list-block[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap;padding:0 25px}.static-list-block__top[_ngcontent-%COMP%]{display:block;padding:0;margin:0 0 .8rem;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.static-list-block[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%;margin-bottom:1.8rem}"]})}}return r})();var md=["targetGroup"],gd=["treeView"],qr=()=>({"aria-label":"Select status"}),Ur=()=>({id:"elementId",class:"popup-outer delete-popup"}),hd=()=>({id:"elementId",class:"popup-outer delete-popup "}),fd=()=>({"aria-label":"PricingListName"}),Cd=()=>({"aria-label":"List Category",class:"drop-down-box-box"}),_d=()=>({"aria-label":"Search by contact or email"}),Hr=()=>[15,30,50,100],jr=()=>({"aria-label":"Entity"}),yd=()=>({id:"elementId",class:"class-name"}),$n=()=>({"aria-label":"Simple Product"}),xd=()=>({"aria-label":"checked"}),vd=()=>({"aria-label":"Search by List"}),bd=()=>({id:"elementId",class:"popup-outer w-900 list-management-dx-popup static-list tooltip-wrapper"}),wd=()=>({id:"elementId",class:"popup-outer w-900 list-management-dx-popup compound-list-popup tooltip-wrapper"});function Sd(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=m();o(),O(" - ",t.listName,"")}}function Pd(r,g){if(r&1){let t=y();a(0,"div")(1,"app-category-selector",52),f("productCategoryIdChange",function(e){p(t);let i=m();return u(i.setProductCategoryId(e))}),s()()}if(r&2){let t=m();o(),l("productType",t.EnumProductType.List)("flagTypes",t.EnumFlagTypes.Feature)("productCategoryId",t.listModel.productCategoryId)}}function Md(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(2);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","ListName")," is required")}}function Vd(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(3);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","ListName")," ")}}function Ed(r,g){r&1&&(a(0,"div",57),b(1,"i",58),a(2,"dx-tooltip",59),S(3,Vd,2,1,"div",60),s()()),r&2&&(o(2),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content"))}function Td(r,g){if(r&1){let t=y();a(0,"div",21)(1,"dx-text-box",53),_("valueChange",function(e){p(t);let i=m();return C(i.listName,e)||(i.listName=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onNameChange(e))}),a(2,"dx-validator"),S(3,Md,1,2,"dxi-validation-rule",54),s()(),S(4,Ed,4,2,"div",55),s()}if(r&2){let t=m();o(),l("labelMode",t.labelMode)("disabled",t.isEdit)("label",t.GetPropertyLabelbyPageCategory("ListInformation","ListName")),x("value",t.listName),l("disabled",t.IsPropertyReadonlybyPageCategory("ListInformation","ListName")||(t.listModel==null?null:t.listModel.isDefault))("inputAttr",I(8,fd)),o(2),l("ngIf",t.CheckPropertyRequiredByPageCategory("ListInformation","ListName")),o(),l("ngIf",t.CheckTooltipVisibleByPageCategory("ListInformation","ListName"))}}function Dd(r,g){if(r&1){let t=y();a(0,"div",64)(1,"dx-tree-view",65,2),f("onContentReady",function(e){p(t);let i=m(2);return u(i.onDropDownBoxTreeViewReady(e))})("onItemRendered",function(e){p(t);let i=m(2);return u(i.onDropDownBoxTreeViewRendered(e))})("onItemSelectionChanged",function(e){p(t);let i=m(2);return u(i.onDropDownBoxTreeViewSelectionChanged(e))}),s()()}if(r&2){let t=m(2);o(),l("dataSource",t.listCategoryModels)("selectByClick",!0)}}function Id(r,g){if(r&1){let t=y();a(0,"div",61)(1,"dx-drop-down-box",62,1),_("valueChange",function(e){p(t);let i=m();return C(i.listCategoryIds,e)||(i.listCategoryIds=e),u(e)}),f("onValueChanged",function(){p(t);let e=m();return u(e.onDropDownBoxValueChanged())}),S(3,Dd,3,2,"div",63),s()()}if(r&2){let t=m();o(),l("disabled",t.listModel==null?null:t.listModel.isDefault)("labelMode",t.labelMode)("inputAttr",I(7,Cd))("showClearButton",!0)("dataSource",t.listCategoryModels),x("value",t.listCategoryIds),o(2),l("dxTemplateOf","content")}}function Ad(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(2);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","ListTypeId")," ")}}function Ld(r,g){r&1&&(a(0,"div",66),b(1,"i",67),a(2,"dx-tooltip",68),S(3,Ad,2,1,"div",60),s()()),r&2&&(o(2),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content"))}function kd(r,g){if(r&1){let t=y();a(0,"div",73)(1,"div",74)(2,"a",75),f("click",function(){p(t);let e=m(2);return u(e.StaticListCLickEvent())}),a(3,"span"),A(),a(4,"svg",76),b(5,"path",77),s()(),h(6),s()()()}if(r&2){let t=m(2);o(6),O(" Add ",t.listReturnTypeValue," ")}}function Rd(r,g){if(r&1){let t=y();a(0,"a",84),f("click",function(){p(t);let e=m(3);return u(e.DeletePopupEvent())}),a(1,"span"),A(),a(2,"svg",85),b(3,"circle",86)(4,"path",87),s()(),h(5," Delete "),s()}}function Od(r,g){if(r&1){let t=y();a(0,"a",75),f("click",function(){p(t);let e=m(3);return u(e.StaticListCLickEvent())}),a(1,"span"),A(),a(2,"svg",76),b(3,"path",77),s()(),h(4),s()}if(r&2){let t=m(3);o(4),O(" Add ",t.listReturnTypeValue," ")}}function Gd(r,g){if(r&1){let t=y();a(0,"div",78)(1,"div",79)(2,"dx-text-box",80),_("valueChange",function(e){p(t);let i=m(2);return C(i.searchValue,e)||(i.searchValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.valueChanged(e))}),s()(),a(3,"div",81),S(4,Rd,6,0,"a",82)(5,Od,5,1,"a",83),s()()}if(r&2){let t=m(2);o(2),q("label",t.getEditSearchLabel()),l("labelMode",t.labelMode)("showClearButton",!0),x("value",t.searchValue),l("inputAttr",I(7,_d)),o(2),l("ngIf",t.isShowDeleteButton==!0),o(),l("ngIf",t.totalcount>0||t.mode==="edit")}}function Bd(r,g){if(r&1&&(a(0,"div",99)(1,"span",100),h(2),s()()),r&2){let t=g.$implicit;o(2),O(" ",t.data.fullName," ")}}function Fd(r,g){if(r&1&&b(0,"dxi-column",101),r&2){let t=m(3);l("caption",t.GetGridPropertyLabelbyPageCategory("ListInformation","Email"))("minWidth",180)}}function Wd(r,g){if(r&1&&b(0,"dxi-column",102),r&2){let t=m(3);l("caption",t.GetGridPropertyLabelbyPageCategory("ListInformation","Phone"))("minWidth",120)}}function Nd(r,g){if(r&1){let t=y();a(0,"dx-data-grid",88),f("onCellClick",function(e){p(t);let i=m(2);return u(i.onItemClick(e))}),b(1,"dxo-column-chooser",89)(2,"dxo-column-fixing",89)(3,"dxo-remote-operations",90)(4,"dxo-selection",91)(5,"dxo-search-panel",92)(6,"dxo-paging",93)(7,"dxo-pager",94),a(8,"dxi-column",95),S(9,Bd,3,1,"div",96),s(),S(10,Fd,1,2,"dxi-column",97)(11,Wd,1,2,"dxi-column",98),s()}if(r&2){let t=m(2);l("dataSource",t.staticListDataSource)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!1)("focusedRowIndex",0)("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("enabled",!1),o(),l("enabled",!0),o(),l("groupPaging",!0),o(2),l("visible",!1),o(),l("pageSize",15),o(),l("visible",t.isPagerVisible)("showPageSizeSelector",t.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(23,Hr))("showNavigationButtons",t.showPageNavigation),o(),l("caption",t.getStaticListCaption())("minWidth",250),o(),l("dxTemplateOf","ListTemplate"),o(),l("ngIf",t.CheckPropertyVisiblebyPageCategory("ListInformation","Email")&&t.listReturnTypeValue==="Contact"),o(),l("ngIf",t.CheckPropertyVisiblebyPageCategory("ListInformation","Phone")&&t.listReturnTypeValue==="Contact")}}
87function qd(r,g){if(r&1&&(xi(0),S(1,kd,7,1,"div",69)(2,Gd,6,8,"div",70),a(3,"div",71),S(4,Nd,12,24,"dx-data-grid",72),s(),vi()),r&2){let t=m();o(),l("ngIf",t.totalcount==0&&t.mode!=="edit"),o(),l("ngIf",t.totalcount>0||t.mode==="edit"),o(2),l("ngIf",t.staticListDataSource)}}function Ud(r,g){if(r&1){let t=y();a(0,"div",115)(1,"div",116)(2,"div",117)(3,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m(3);return u(i.SetRuleGroupLogicalCondition(e.rowno,"And"))}),h(4,"And"),s(),a(5,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m(3);return u(i.SetRuleGroupLogicalCondition(e.rowno,"Or"))}),h(6,"Or"),s()()()()}if(r&2){let t=m().$implicit;o(3),l("ngClass",t.logicalCondition==="And"?"active":""),o(2),l("ngClass",t.logicalCondition==="Or"?"active":"")}}function Hd(r,g){if(r&1){let t=y();a(0,"a",84),f("click",function(){p(t);let e=m().$implicit,i=m(3);return u(i.RemoveGroup(e.rowno))}),A(),a(1,"svg",119),b(2,"path",120),s()()}}function jd(r,g){if(r&1){let t=y();a(0,"div",126)(1,"div",116)(2,"div",117)(3,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m().$implicit,d=m(3);return u(d.SetRuleItemLogicalCondition(i.rowno,e.rowno,"And"))}),h(4,"And"),s(),a(5,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m().$implicit,d=m(3);return u(d.SetRuleItemLogicalCondition(i.rowno,e.rowno,"Or"))}),h(6,"Or"),s()()()()}if(r&2){let t=m().$implicit;o(3),l("ngClass",t.logicalCondition==="And"?"active":""),o(2),l("ngClass",t.logicalCondition==="Or"?"active":"")}}function zd(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(6);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","EntityID")," is required")}}function Zd(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(7);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","EntityID")," ")}}function Qd(r,g){if(r&1&&(a(0,"div",57),b(1,"i",129),a(2,"dx-tooltip",130),S(3,Zd,2,1,"div",60),s()()),r&2){let t=m(2),n=t.$implicit,e=t.index;o(),bn("id","EntityID",n.eligibilityRuleGroupItemId,"",e,""),o(),bn("target","#EntityID",n.eligibilityRuleGroupItemId,"",e,""),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content")}}function Yd(r,g){if(r&1){let t=y();a(0,"div",127)(1,"dx-select-box",128),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.entityID,e)||(i.entityID=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m().$implicit,c=m(3);return u(c.onSelectEntity(e,d.rowno,i.rowno))}),a(2,"dx-validator"),S(3,zd,1,2,"dxi-validation-rule",54),s()(),S(4,Qd,4,8,"div",55),s()}if(r&2){let t=m().$implicit,n=m(4);o(),l("showClearButton",!0)("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","EntityID")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","EntityID"))("dataSource",t.groupedDataSource),x("value",t.entityID),l("inputAttr",I(11,jr))("grouped",!0)("elementAttr",I(12,yd)),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","EntityID")),o(),l("ngIf",n.CheckTooltipVisibleByPageCategory("ListInformation","EntityID"))}}function Kd(r,g){if(r&1&&(a(0,"div")(1,"div",132),h(2),s()()),r&2){let t=g.$implicit;o(2),wo(" ",t.pageName," : ",t.controlLabel," (",t.controlType,") ")}}function Jd(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(6);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","PropertyReferenceId")," is required")}}function Xd(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(7);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","PropertyReferenceId")," ")}}function $d(r,g){if(r&1&&(a(0,"div",57),b(1,"i",129),a(2,"dx-tooltip",130),S(3,Xd,2,1,"div",60),s()()),r&2){let t=m(2),n=t.$implicit,e=t.index;o(),bn("id","propertyReferenceId",n.eligibilityRuleGroupItemId,"",e,""),o(),bn("target","#propertyReferenceId",n.eligibilityRuleGroupItemId,"",e,""),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content")}}function ec(r,g){if(r&1){let t=y();a(0,"div",21)(1,"dx-select-box",131),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.controlUniqId,e)||(i.controlUniqId=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m().$implicit,c=m(3);return u(c.onSelectProperty(e,d.rowno,i.rowno))}),S(2,Kd,3,3,"div",60),a(3,"dx-validator"),S(4,Jd,1,2,"dxi-validation-rule",54),s()(),S(5,$d,4,8,"div",55),s()}if(r&2){let t=m().$implicit,n=m(4);o(),l("showClearButton",!0)("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","PropertyReferenceId")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","PropertyReferenceId"))("searchEnabled",!0)("dataSource",t.properties),x("value",t.controlUniqId),l("inputAttr",I(11,jr)),o(),l("dxTemplateOf","itemtemplate"),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","PropertyReferenceId")),o(),l("ngIf",n.CheckTooltipVisibleByPageCategory("ListInformation","PropertyReferenceId"))}}function tc(r,g){if(r&1){let t=y();a(0,"a",84),f("click",function(){p(t);let e=m().$implicit,i=m().$implicit,d=m(3);return u(d.RemoveGroupItem(i.rowno,e.rowno))}),A(),a(1,"svg",119),b(2,"path",120),s()()}}function ic(r,g){if(r&1){let t=y();a(0,"div",137),b(1,"span",138),a(2,"div",139)(3,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m().$implicit,d=m().$implicit,c=m(3);return u(c.SetRuleCriteriaLogicalCondition(d.rowno,i.rowno,e.rowno,"And"))}),h(4,"And"),s(),a(5,"a",118),f("click",function(){p(t);let e=m().$implicit,i=m().$implicit,d=m().$implicit,c=m(3);return u(c.SetRuleCriteriaLogicalCondition(d.rowno,i.rowno,e.rowno,"Or"))}),h(6,"Or"),s()(),b(7,"span",140),s()}if(r&2){let t=m().$implicit;o(3),l("ngClass",t.logicalCondition==="And"?"active":""),o(2),l("ngClass",t.logicalCondition==="Or"?"active":"")}}function nc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(7);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Condition")," is required")}}function oc(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(8);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","Condition")," ")}}function ac(r,g){if(r&1&&(a(0,"div",57),b(1,"i",129),a(2,"dx-tooltip",130),S(3,oc,2,1,"div",60),s()()),r&2){let t=m(2).$implicit,n=m().index;o(),bn("id","condition",t.eligibilityRuleGroupPropertyItemCriteriaId,"",n,""),o(),bn("target","#condition",t.eligibilityRuleGroupPropertyItemCriteriaId,"",n,""),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content")}}function rc(r,g){if(r&1){let t=y();a(0,"div",141)(1,"dx-select-box",142),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.condition,e)||(i.condition=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.onSelectCondition(e,c.rowno,d.rowno,i.rowno))}),a(2,"dx-validator"),S(3,nc,1,2,"dxi-validation-rule",54),s()(),S(4,ac,4,8,"div",55),s()}if(r&2){let t=m().$implicit,n=m(5);o(),l("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Condition")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Condition"))("items",n.Condition)("inputAttr",I(8,$n)),x("value",t.condition),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Condition")),o(),l("ngIf",n.CheckTooltipVisibleByPageCategory("ListInformation","Condition"))}}function sc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(8);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Value")," is required")}}function lc(r,g){if(r&1){let t=y();a(0,"dx-select-box",147),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.checkForSelectBoxExistingValue(e,c.rowno,d.rowno,i.rowno))}),a(1,"dx-validator"),S(2,sc,1,2,"dxi-validation-rule",54),s()()}if(r&2){let t=m(2).$implicit,n=m(5);l("labelMode",n.labelMode)("items",t.options)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Value")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Value")),x("value",t.assignedValue),l("inputAttr",I(9,$n))("showClearButton",!0)("searchEnabled",!0),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Value"))}}function dc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(9);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Value")," is required")}}function cc(r,g){if(r&1){let t=y();a(0,"dx-date-box",150),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.setDateValue(e,c.rowno,d.rowno,i.rowno))}
87),a(1,"dx-validator"),S(2,dc,1,2,"dxi-validation-rule",54),s()()}if(r&2){let t=m(3).$implicit,n=m(5);l("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Value")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Value"))("value",t.assignedDateValue)("inputAttr",I(6,$n)),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Value"))}}function pc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(9);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Value")," is required")}}function uc(r,g){if(r&1){let t=y();a(0,"dx-select-box",147),_("valueChange",function(e){p(t);let i=m(3).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.checkForSelectBoxExistingValue(e,c.rowno,d.rowno,i.rowno))}),a(1,"dx-validator"),S(2,pc,1,2,"dxi-validation-rule",54),s()()}if(r&2){let t=m(3).$implicit,n=m(5);l("labelMode",n.labelMode)("items",n.relativeDateOptions)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Value")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Value")),x("value",t.assignedValue),l("inputAttr",I(9,$n))("showClearButton",!1)("searchEnabled",!0),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Value"))}}function mc(r,g){if(r&1&&(a(0,"div",148),S(1,cc,3,7,"dx-date-box",149)(2,uc,3,10,"dx-select-box",143),s()),r&2){let t=m(2).$implicit;o(),l("ngIf",!t.isRelativeDate),o(),l("ngIf",t.isRelativeDate)}}function gc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(8);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Value")," is required")}}function hc(r,g){if(r&1){let t=y();a(0,"dx-number-box",151),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedNumerValue,e)||(i.assignedNumerValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.setNumberValue(e,c.rowno,d.rowno,i.rowno))}),a(1,"dx-validator"),S(2,gc,1,2,"dxi-validation-rule",54),s()()}if(r&2){let t=m(2).$implicit,n=m(5);l("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Value")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Value"))("inputAttr",I(8,$n)),x("value",t.assignedNumerValue),l("min",0)("showSpinButtons",!0),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Value"))}}function fc(r,g){if(r&1&&b(0,"dxi-validation-rule",56),r&2){let t=m(8);an("message","",t.GetPropertyLabelForValidationbyPageCategory("ListInformation","Value")," is required")}}function Cc(r,g){if(r&1){let t=y();a(0,"dx-text-box",152),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m().$implicit,c=m().$implicit,v=m(3);return u(v.checkForTextBoxExistingValue(e,c.rowno,d.rowno,i.rowno))}),a(1,"dx-validator"),S(2,fc,1,2,"dxi-validation-rule",54),s()()}if(r&2){let t=m(2).$implicit,n=m(5);l("labelMode",n.labelMode)("disabled",n.IsPropertyReadonlybyPageCategory("ListInformation","Value")||(n.listModel==null?null:n.listModel.isDefault))("label",n.GetPropertyLabelbyPageCategory("ListInformation","Value"))("inputAttr",I(6,$n)),x("value",t.assignedValue),o(2),l("ngIf",n.CheckPropertyRequiredByPageCategory("ListInformation","Value"))}}function _c(r,g){if(r&1&&(a(0,"div"),h(1),s()),r&2){let t=m(8);o(),O(" ",t.GetPropertyTooltipByPageCategory("ListInformation","Value")," ")}}function yc(r,g){if(r&1&&(a(0,"div",57),b(1,"i",129),a(2,"dx-tooltip",130),S(3,_c,2,1,"div",60),s()()),r&2){let t=m(2).$implicit,n=m().index;o(),bn("id","Value",t.eligibilityRuleGroupPropertyItemCriteriaId,"",n,""),o(),bn("target","#Value",t.eligibilityRuleGroupPropertyItemCriteriaId,"",n,""),l("hideOnOutsideClick",!1),o(),l("dxTemplateOf","content")}}function xc(r,g){if(r&1&&(a(0,"div",127),S(1,lc,3,10,"dx-select-box",143)(2,mc,3,2,"div",144)(3,hc,3,9,"dx-number-box",145)(4,Cc,3,7,"dx-text-box",146)(5,yc,4,8,"div",55),s()),r&2){let t=m().$implicit,n=m(5);o(),l("ngIf",t.controlType==="Selectbox"||t.controlType==="SelectBox"),o(),l("ngIf",t.controlType==="Datepicker"),o(),l("ngIf",t.controlType==="Numberbox"),o(),l("ngIf",t.controlType==="TextBox"||t.controlType==="Textbox"),o(),l("ngIf",n.CheckTooltipVisibleByPageCategory("ListInformation","Value"))}}function vc(r,g){if(r&1){let t=y();a(0,"a",155),f("click",function(){p(t);let e=m(2).$implicit,i=m().$implicit,d=m().$implicit,c=m(3);return u(c.RemoveCriteriaItem(d.rowno,i.rowno,e.rowno))}
87),A(),a(1,"svg",156),b(2,"circle",157)(3,"path",158)(4,"path",159),s()()}}function bc(r,g){if(r&1){let t=y();a(0,"a",155),f("click",function(){p(t);let e=m(3).$implicit,i=m().$implicit,d=m(3);return u(d.AddCriteriaItem(i.rowno,e.rowno))}),A(),a(1,"svg",156),b(2,"circle",160)(3,"path",161)(4,"path",162),s()()}}function wc(r,g){if(r&1&&(a(0,"div",153),S(1,vc,5,0,"a",154)(2,bc,5,0,"a",154),s()),r&2){let t=m().$implicit,n=m().$implicit,e=m(4);o(),l("ngIf",e.GetActiveCriteria(n.itemCriterias).length>1&&!(e.listModel!=null&&e.listModel.isDefault)),o(),l("ngIf",t.rowno==e.GetActiveCriteria(n.itemCriterias).length&&!(e.listModel!=null&&e.listModel.isDefault))}}function Sc(r,g){if(r&1){let t=y();a(0,"dx-check-box",163),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.isRelativeDate,e)||(i.isRelativeDate=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m(5);return u(d.onRelativeDateChanged(e,i))}),s()}if(r&2){let t=m().$implicit;x("value",t.isRelativeDate),l("elementAttr",I(2,xd))}}function Pc(r,g){if(r&1&&(xi(0),S(1,ic,8,2,"div",133),a(2,"div",122),S(3,rc,5,9,"div",134)(4,xc,6,5,"div",124)(5,wc,3,2,"div",135)(6,Sc,1,3,"dx-check-box",136),s(),vi()),r&2){let t=g.$implicit,n=g.index,e=m(5);o(),l("ngIf",n!=0),o(2),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Condition")),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Value")),o(),l("ngIf",!e.viewMode),o(),l("ngIf",t.controlType==="Datepicker")}}function Mc(r,g){if(r&1&&(xi(0),S(1,jd,7,2,"div",121),a(2,"div",122)(3,"span",123),h(4,"If"),s(),S(5,Yd,5,13,"div",124)(6,ec,6,12,"div",19),a(7,"div",125),S(8,tc,3,0,"a",112),s()(),S(9,Pc,7,5,"ng-container",108),vi()),r&2){let t=g.$implicit,n=g.index,e=m().$implicit,i=m(3);o(),l("ngIf",n!=0),o(4),l("ngIf",i.CheckPropertyVisiblebyPageCategory("ListInformation","EntityID")),o(),l("ngIf",i.CheckPropertyVisiblebyPageCategory("ListInformation","PropertyReferenceId")),o(2),l("ngIf",!i.viewMode&&i.GetActiveGroupItem(e.eligibilityRuleGroupItems).length>1),o(),l("ngForOf",i.GetActiveCriteria(t.itemCriterias))}}function Vc(r,g){if(r&1){let t=y();a(0,"div",164)(1,"a",165),f("click",function(){p(t);let e=m().$implicit,i=m(3);return u(i.AddGroupItem(e.rowno))}),A(),a(2,"svg",166),b(3,"path",167),s(),h(4," New Criteria "),s()()}}function Ec(r,g){if(r&1&&(xi(0),S(1,Ud,7,2,"div",110),a(2,"div",111),S(3,Hd,3,0,"a",112),a(4,"div",113),S(5,Mc,10,5,"ng-container",108)(6,Vc,5,0,"div",114),s()(),vi()),r&2){let t=g.$implicit,n=g.index,e=m(3);o(),l("ngIf",n!=0),o(2),l("ngIf",!e.viewMode&&e.GetActiveGroup().length>1),o(2),l("ngForOf",e.GetActiveGroupItem(t.eligibilityRuleGroupItems)),o(),l("ngIf",!e.viewMode&&!(e.listModel!=null&&e.listModel.isDefault))}}function Tc(r,g){if(r&1){let t=y();a(0,"a",174),f("click",function(){p(t);let e=m(4);return u(e.AddNewGroup())}),A(),a(1,"svg",166),b(2,"path",167),s(),h(3," New Group "),s()}}function Dc(r,g){if(r&1){let t=y();a(0,"div",168),S(1,Tc,4,0,"a",169),a(2,"a",170),f("click",function(){p(t);let e=m(3);return u(e.PreviewRuleClick())}),A(),a(3,"svg",171),b(4,"path",172)(5,"path",173),s(),h(6," Preview "),s()()}if(r&2){let t=m(3);o(),l("ngIf",!(t.listModel!=null&&t.listModel.isDefault))}}function Ic(r,g){if(r&1&&(a(0,"div",107),S(1,Ec,7,4,"ng-container",108)(2,Dc,7,1,"div",109),s()),r&2){let t=m(2);o(),l("ngForOf",t.GetActiveGroup()),o(),l("ngIf",!t.viewMode)}}function Ac(r,g){if(r&1&&(xi(0),a(1,"div",103)(2,"div",78)(3,"div",104)(4,"h2",105),h(5,"Set Criteria"),s()()(),S(6,Ic,3,2,"div",106),s(),vi()),r&2){let t=m();o(6),l("ngIf",!t.isView)}}function Lc(r,g){if(r&1&&(a(0,"h3",178),h(1),s()),r&2){let t=m(2);o(),O(" Below Lists are selected with (",t.logicalCondition,") condition ")}}function kc(r,g){if(r&1){let t=y();a(0,"div",73)(1,"div",74)(2,"a",75),f("click",function(){p(t);let e=m(2);return u(e.CompoundListCLickEvent())}),a(3,"span"),A(),a(4,"svg",76),b(5,"path",77),s()(),h(6," Add List "),s()()()}}function Rc(r,g){if(r&1){let t=y();a(0,"dx-text-box",179),_("valueChange",function(e){p(t);let i=m(2);return C(i.compoundSearchText,e)||(i.compoundSearchText=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.valueChangedCompoundList(e))}),s()}if(r&2){let t=m(2);l("labelMode",t.labelMode)("showClearButton",!0),x("value",t.compoundSearchText),l("inputAttr",I(4,vd))}}function Oc(r,g){if(r&1){let t=y();a(0,"a",84),f("click",function(){p(t);let e=m(2);return u(e.DeletePopupEvent())}),a(1,"span"),A(),a(2,"svg",85),b(3,"circle",86)(4,"path",87),s()(),h(5," Delete "),s()}}function Gc(r,g){if(r&1){let t=y();a(0,"a",75),f("click",function(){p(t);let e=m(2);return u(e.CompoundListCLickEvent())}),a(1,"span"),A(),a(2,"svg",76),b(3,"path",77),s()(),h(4," Add List "),s()}}function Bc(r,g){if(r&1&&(a(0,"div",99)(1,"span",185),h(2),s()()),r&2){let t=g.$implicit;o(),q("title",t.data.listName),o(),O(" ",t.data.listName," ")}}function Fc(r,g){if(r&1&&b(0,"dxi-column",186),r&2){let t=m(3);l("caption",t.GetGridPropertyLabelbyPageCategory("ListInformation","ListTypeId"))("minWidth",180)}}function Wc(r,g){if(r&1){let t=y();a(0,"dx-data-grid",180),f("onCellClick",function(e){p(t);let i=m(2);return u(i.onItemClickForCompoundList(e))}),b(1,"dxo-column-chooser",89)(2,"dxo-column-fixing",89)(3,"dxo-remote-operations",90)(4,"dxo-selection",91)(5,"dxo-paging",93)(6,"dxo-pager",94),a(7,"dxi-column",181),S(8,Bc,3,2,"div",96),s(),b(9,"dxi-column",182)(10,"dxi-column",183),S(11,Fc,1,2,"dxi-column",184),s()}if(r&2){let t=m(2);l("dataSource",t.compoundListDataSource)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!1)("focusedRowIndex",0)("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("enabled",!1),o(),l("enabled",!0),o(),l("groupPaging",!0),o(2),l("pageSize",15),o(),l("visible",t.isPagerVisible)("showPageSizeSelector",t.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(20,Hr))("showNavigationButtons",t.showPageNavigation),o(),l("minWidth",250),o(),l("dxTemplateOf","ListTemplate"),o(3),l("ngIf",t.CheckPropertyVisiblebyPageCategory("ListInformation","ListTypeId"))}}function Nc(r,g){if(r&1&&(xi(0),S(1,Lc,2,1,"h3",175)(2,kc,7,0,"div",69),a(3,"div",78)(4,"div",79),S(5,Rc,1,5,"dx-text-box",176),s(),a(6,"div",81),S(7,Oc,6,0,"a",82)(8,Gc,5,0,"a",83),s()(),a(9,"div",71),S(10,Wc,12,21,"dx-data-grid",177),s(),vi()),r&2){let t=m();o(),l("ngIf",t.CompoundListTotalCount>1&&t.logicalCondition),o(),l("ngIf",t.CompoundListTotalCount==0&&t.mode!=="edit"),o(3),l("ngIf",t.CompoundListTotalCount>0||t.mode==="edit"),o(2),l("ngIf",t.isShowCompoundDeleteButton==!0),o(),l("ngIf",t.CompoundListTotalCount>0||t.mode==="edit"),o(2),l("ngIf",t.compoundListDataSource)}}function qc(r,g){if(r&1){let t=y();a(0,"dx-popup",187),_("visibleChange",function(e){p(t);let i=m();return C(i.staticListPopup,e)||(i.staticListPopup=e),u(e)}),a(1,"div",36)(2,"h2"),h(3),s()(),a(4,"app-static-list-popup",188),f("visibleChange",function(){p(t);let e=m();return u(e.closePopup())})("idChange",function(e){p(t);let i=m();return u(i.getIdFromChild(e))})("contactAddedToList",function(e){p(t);let i=m();return u(i.getContactListFromChildComponent(e))})("onSaveSuccess",function(){p(t);let e=m();return u(e.onStaticListSaveSuccess())})("onAddStaticContactToCloneLists",function(e){p(t);let i=m();return u(i.onAddStaticContactToCloneLists(e))}),s()()}if(r&2){let t=m();l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",t.staticListPopup),l("wrapperAttr",I(11,bd)),o(3),O("Add ",t.listReturnTypeValue,""),o(),l("listModels",t.listModel)("productCategoryId",t.productCategoryId)("listReturnType",t.listReturnTypeValue)("listCategoryIds",t.listCategoryIds)("mode",t.mode)}}function Uc(r,g){if(r&1){let t=y();a(0,"dx-popup",187),_("visibleChange",function(e){p(t);let i=m();return C(i.CompoundListPopup,e)||(i.CompoundListPopup=e),u(e)}),a(1,"div",36)(2,"h2"),h(3,"Add List"),s()(),a(4,"app-compound-list-popup",189),f("visibleChange1",function(){p(t);let e=m();return u(e.closePopup())})("compoundIdChange",function(e){p(t);let i=m();return u(i.getIdFromChild(e))})("onSaveSuccess",function(){p(t);let e=m();return u(e.onDynamicListSaveSuccess())})("onAddToCloneLists",function(e){p(t);let i=m();return u(i.onAddToCompoundLists(e))}),s()()}if(r&2){let t=m();l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",t.CompoundListPopup),l("wrapperAttr",I(15,wd)),o(4),l("existingListModels",t.listModel)("listReturnType",t.listReturnTypeValue)("logicalCondition",t.logicalCondition)("listCategoryIds",t.listCategoryIds)("categoryNameForList",t.categoryNameForList)("pageHeaderTitle",t.pageHeaderTitle)("listTypeModele",t.listTypeModele)("productCategoryId",t.productCategoryId)("mode",t.mode)("ListId",t.compoundListId)}}/localhost/.test(document.location.host)||void 0;var ca=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.activatedRoute=e,this.listService=i,this.webStorageService=d,this.eligibilityService=c,this.propertyService=v,this.cdr=V,this.EnumProductType=zn,this.EnumFlagTypes=Io,this.productCategoryId=0,this.unsubscriber=new Ct,this.progress=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.mode="",this.listId=0,this.categoryNameForList="",this.staticListPopup=!1,this.deletePopup=!1,this.listTypeModele=[],this.listTypeModelDataSource=[],this.listCategoryModels=[],this.tenantEntityModel=[],this.companyResponseModel=[],this.tenantGroupRequestModel=[],this.listOfContactsMo
87del=[],this.listModel=new Zi,this.selectedRows=[],this.listStructureDataSource=["Simple","Compound"],this.listStructureValue="Simple",this.listReturnTypeDataSource=["Contact","Company","Group"],this.listReturnTypeValue="Contact",this.CompoundListPopup=!1,this.isShowDeleteButton=!1,this.showPageSizeSelector=!1,this.isPagerVisible=!1,this.isArchive=!1,this.showPageNavigation=!1,this.compoundListId=0,this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","requireGroupCount","sort","filter","totalSummary","group","groupSummary","archiveStatus","ActiveStatus","LockedStatus","userRole"],this.searchText="",this.totalCount=0,this.CompoundListTotalCount=0,this.listName="",this.isEdit=!1,this.isView=!1,this.viewMode=!1,this.pageHeaderTitle="Create",this.isPageLoad=!1,this.propertyValidator=[{type:"required",message:"Property is required"}],this.conditionValidator=[{type:"required",message:"Condition is required"}],this.assignValueValidator=[{type:"required",message:"Property is required"}],this.eligibilityRuleModel=new Pn,this.entitiesModel=[],this.groupedEntites=[],this.allProperties=[],this.previewEligibilityRuleGroups=[],this.deleteGroupNo=0,this.deleteGroupPopup=!1,this.deleteGroupItemNo=0,this.deleteGroupItemPopup=!1,this.eligibilityRuleId=0,this.saveButtonText="Create",this.saveAndViewButtonText="Create & View",this.properties=[],this.relativeDateOptions=["Today"],this.loadData=()=>{Yt([this.listService.GetListCategory(),this.listService.GetListTypes()]).pipe(Qt(([E,T])=>({listCategoryModels:E,listTypeModele:T}))).subscribe(E=>
87{Object.keys(E).forEach(T=>this[T]=E[T].responseModel),this.mode=="view"?(this.isView=!0,this.viewMode=!0,this.pageHeaderTitle="View",this.getListById()):this.mode=="edit"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="Edit",this.listTypeModelDataSource=this.listTypeModele.filter(T=>T.listStructureName=="Simple"),this.getListById()):this.mode=="clone"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="New",this.listTypeModelDataSource=this.listTypeModele.filter(T=>T.listStructureName=="Simple"),this.getListById()):(this.isEdit=!1,this.isView=!1,this.viewMode=!1,this.pageHeaderTitle="Create",this.listTypeModelDataSource=this.listTypeModele.filter(T=>T.listStructureName=="Simple"),this.listTypeId=this.listTypeModelDataSource[0].listTypeId,this.SelectedListType=this.listTypeModelDataSource[0].listTypeId)})},this.staticListName="",this.isEnableAddButton=!1,this.childListID=0,this.staticContactLists=new Zi,this.existstListModel=new Zi,this.existingStaticListId=0,this.totalcount=0,this.logicalCondition="",this.compoundSearchText="",this.isShowCompoundDeleteButton=!1,this.selectedCompoundListRows=[],this.compoundListModelForDelete=[],this.type="",this.listOfCompoundModel=new Zi,this.focusChangeInProgress=!1,this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.loadData(),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(E=>{this.mode=E.mode,this.type=E.type,this.listId=E.id,this.mode=="view"?(this.isView=!0,this.viewMode=!0,this.pageHeaderTitle="View"):this.mode=="edit"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="Edit",this.saveButtonText="Save",this.saveAndViewButtonText="Save & View"):this.mode=="clone"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="Clone",this.saveButtonText="Save",this.saveAndViewButtonText="Save & View"):(this.isEdit=!1,this.isView=!1,this.viewMode=!1,this.pageHeaderTitle="Create",this.saveButtonText="Create",this.saveAndViewButtonText="Create & View")}),this.isPageLoad=!0,this.Condition=Object.values(pr),this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.customCallbackValidateCopyProperty=this.customCallbackValidateCopyProperty.bind(this),this.BindMembershipProperties(),this.ListCategoryFiter=["All","Access Groups","Lists"],this.ListStructure=["Simple","Compound"]}loadDataForStaticList(){Yt([this.listService.GetAllCompaniesForList(),this.listService.GetAllGroupsForList()]).pipe(Qt(([t,n])=>({ListOfCompany:t,ListOfGroup:n}))).subscribe(t=>{Object.keys(t).forEach(n=>this[n]=t[n].responseModel)})}ngOnChanges(){this.listTypeId==1&&this.GetStaticDataSource(this.existstListModel.listId,"")}loadDataForDynamicList(){return B(this,null,function*(){this.loading=!0,Yt([this.listService.GetTenantEntitiesForEligibilityList(),this.eligibilityService.GetAllPropertyForEligibilityRules(!0)]).pipe(Qt(([t,n])=>({entitiesModel:t,allProperties:n}))).subscribe(t=>{this.loading=!1,Object.keys(t).forEach(e=>this[e]=t[e].responseModel),this.groupedEntites=[];let n=this.allProperties.filter((e,i,d)=>["AddressLine1","AddressLine2","City","State","Country","Zipcode","EmailAddress","PhoneNumber","AddressTypeId","IsBilling","IsPrimary","IsPublic"].includes(e.sourceColumnName)?i===d.findIndex(c=>c.entityName===e.entityName&&c.sourceColumnName===e.sourceColumnName&&c.pageName===e.pageName):!0);this.allProperties=n,this.entitiesModel&&[...new Set(this.entitiesModel.map(i=>i.entityType))].forEach(i=>{let d=new ui;d.category=i=="Entity"?"":i,d.entities=this.entitiesModel.filter(c=>c.entityType==i),this.groupedEntites.push(d)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(e){return e.key=e.category,e.items=e.entities,e}}),this.mode=="view"||this.mode=="edit"||this.mode=="clone"?this.GetEligibilityInfoById(this.eligibilityRuleId):this.clearEligibilityModel(),this.loading=!1})})}ngOnInit(){this.listId>0&&this.GetStaticListById(this.listId)}onCategoryChange(t){if(t.value!=null&&this.listName.trim().length>0&&(this.isEnableAddButton=!1),t.value!=null){let n=this.listCategoryModels.find(e=>e.listCategoryId===t.value);n&&(this.categoryNameForList=n.categoryName)}else this.categoryNameForList=null}onNameChange(t){this.staticListName=t.value,this.listName.trim().length>0&&this.listCategoryId>0&&(this.isEnableAddButton=!1)}getListById(){this.listId<0||this.listService.GetListById(this.listId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{let n=t.responseModel;if(this.listModel=t.responseModel,this.listModel.productCategoryId=this.listModel.productCategoryId??null,this.listCategoryId=n.listCategoryId,this.listTypeId=n.listTypeId,this.SelectedListType=this.listTypeId,this.listTypeModelDataSource=this.listTypeModele.filter(e=>e.listTypeId==this.listTypeId),this.listName=n.listName,this.eligibilityRuleId=n?.listDynamicContacts?.eligibilityRuleId,this.listReturnTypeValue=n.listReturnType,this.listStructureValue=n.listStructureName,this.listCategoryIds=[],n.hasAccessGroups){let e=this.listCategoryModels.find(i=>i.categoryName=="Access Groups");e&&this.listCategoryIds.push(e.categoryName)}if(n.hasLists){let e=this.listCategoryModels.find(i=>i.categoryName=="Lists");e&&this.listCategoryIds.push(e.categoryName)}this.listTypeId==2&&this.loadDataForDynamicList(),this.mode=="clone"&&(this.listModel.listId=0,this.listModel.listName="",this.listName="")})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onRadioButtonListOptionChanged(t){this.SelectedListType=t.value,this.SelectedListType==2&&this.loadDataForDynamicList()}StaticListCLickEvent(){this.targetGroup.instance.validate().isValid?this.validateListName(this.existstListModel.listId,this.listName,()=>{this.staticListPopup=!0,this.listModel=new Zi,this.listModel.productCategoryId=this.listModel.productCategoryId??0,this.listModel.listCategoryId=this.listCategoryId,this.listModel.listTypeId=this.listTypeId,this.listModel.listName=this.listName,this.listModel.listId=this.existstListModel.listId,this.listModel.listOfStaticRecords=this.existstListModel.listOfStaticRecords}):this.staticListPopup=!1}CompoundListCLickEvent(){this.targetGroup.instance.validate().isValid?(this.CompoundListPopup=!0,this.compoundListId=0,this.listModel=new Zi,this.listModel.productCategoryId=this.listModel.productCategoryId??0,this.listModel.listCategoryId=this.listCategoryId,this.listModel.listTypeId=this.listTypeId,this.listModel.listName=this.listName,this.listModel.listId=this.existstListModel.listId,this.listModel.compoundListRequestModel=this.existstListModel.compoundListRequestModel):this.CompoundListPopup=!1}
87closePopup(){this.staticListPopup=!1,this.CompoundListPopup=!1,this.childListID>0&&this.router.navigate(["admin/client/setting/list-management/manage/"+this.childListID+"/edit/view"])}getIdFromChild(t){this.childListID=t}getContactListFromChildComponent(t){if(t.length>0){let i,n=this,e=d=>d!=null&&d!=="";n.staticTempDataSource=new ki({key:"contactId",load(d){return B(this,null,function*(){try{return n.loading=!1,n.totalcount=t.length,{data:t,totalCount:t.length}}catch{throw new Error("Data Loading Error")}})}})}}DeletePopupEvent(){this.deletePopup=!0}closeDeletePopup(){this.isShowDeleteButton=!1,this.deletePopup=!1}onSelectionChanged(t){if(this.selectedRows=t.selectedRowsData,t.component&&t.component.isSelectAll()){this.selectedRows=t.selectedRowsData;return}this.selectedRows.length>0?this.isShowDeleteButton=!0:this.isShowDeleteButton=!1}GetStaticListById(t){this.listService.GetListById(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{if(this.listModel=n.responseModel,this.listModel.productCategoryId=this.listModel.productCategoryId??0,this.existstListModel=n.responseModel,this.listCategoryId=this.existstListModel.listCategoryId,this.listTypeId=this.existstListModel.listTypeId,this.mode=="clone"?this.listName="":this.listName=this.existstListModel.listName,this.existingStaticListId=this.existstListModel.listId,this.listReturnTypeValue=this.existstListModel.listReturnType,this.listStructureValue=this.existstListModel.listStructureName,this.listCategoryIds=[],this.existstListModel.hasAccessGroups){let e=this.listCategoryModels.find(i=>i.categoryName=="Access Groups");e&&this.listCategoryIds.push(e.categoryName)}if(this.existstListModel.hasLists){let e=this.listCategoryModels.find(i=>i.categoryName=="Lists");e&&this.listCategoryIds.push(e.categoryName)}this.listTypeId==1?this.GetStaticDataSource(this.existstListModel.listId,""):this.listTypeId==3&&(this.logicalCondition=this.listModel.logicalCondition,this.GetCompoundListDataSource(this.existstListModel.listId,""))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}deleteRecords(){this.listTypeId==1?(this.staticContactLists=new Zi,this.selectedRows.forEach(t=>{this.ContactStaticLists=new Go,this.ContactStaticLists.recordId=t.contactID,this.ContactStaticLists.dateTimeCreated=t.dateTimeCreated,this.ContactStaticLists.dateTimeLastModified=t.dateTimeLastModified,this.ContactStaticLists.isActive=t.isActive,this.ContactStaticLists.listRecordId=t.listContactId,this.ContactStaticLists.listId=t.listId,this.ContactStaticLists.modifiedByUserId=t.modifiedByUserId,this.staticContactLists.listOfStaticRecords.push(this.ContactStaticLists)}),this.mode!="clone"?this.listService.DeleteStaticContacts(this.staticContactLists).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{t&&t.responseModel?t.responseModel!=null&&t.responseModel!=null&&(this.loading=!1,this.deletePopup=!1,this.isShowDeleteButton=!1,this.showSuccessMessage(this.listReturnTypeValue+" has been deleted successfully."),this.GetStaticDataSource(this.existstListModel.listId,"")):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}):this.deleteFromCloneList(this.staticContactLists)):this.listTypeId==3&&this.deleteCompoundListRecords()}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}valueChanged(t){t.value?this.searchText=t.value:this.searchText="",this.mode!="clone"?this.GetStaticDataSource(this.listModel.listId,this.searchText):this.searchInCloneList()}GetStaticDataSource(t,n){let e=this,i=c=>c!=null&&c!=="";e.staticListDataSource=new ki({key:"contactID",load(c){return B(this,null,function*(){let v=new Si;t!=0?v=v.set("ListId",t):v=v.set("ListId",0);let V=0;e.listReturnTypeValue=="Company"&&(V=2),e.listReturnTypeValue=="Group"&&(V=3),V>0?v=v.set("ListType",V):e.listTypeId!=0?v=v.set("ListType",e.listTypeId):v=v.set("ListType",0),n!=""?v=v.set("searchText",n):v=v.set("searchText",""),e.dataGridParamNames.forEac
87h(E=>{i(c[E])?E==="filter"?v=v.set(E,JSON.stringify(c[E])):E==="archiveStatus"?v=v.set(E,e.isArchive):v=v.set(E,JSON.stringify(c[E])):E==="take"?v=v.set(E,20):E==="skip"?v=v.set(E,0):E==="sort"?v=v.set(E,null):E==="archiveStatus"?v=v.set(E,e.isArchive):v=v.set(E,"")});try{let E=yield wi(e.listService.GetListContactByID(v));return e.loading=!1,e.totalcount=E.responseModel.totalRecords,E.responseModel.results.length>0&&(e.childListID=E.responseModel.results.listId,e.existingStaticListId=e.childListID,e.existstListModel.listOfStaticRecords=[],E.responseModel.results.forEach(T=>{e.existstListModel.listOfStaticRecords.push({recordId:T.contactID,listRecordId:T.listContactId,listId:T.listId,modifiedByUserId:T.modifiedByUserId,dateTimeCreated:T.dateTimeCreated,dateTimeLastModified:T.dateTimeLastModified,isActive:T.isActive})})),e.staticCloneListDataSource=E.responseModel.results,{data:E.responseModel.results,totalCount:E.responseModel.totalRecords,summary:E.summary,groupCount:E.groupCount}}catch{throw e.loading=!1,new Error("Data Loading Error")}})}}),this.cdr.detectChanges()}GetCompoundListDataSource(t,n){let e=this,i=c=>c!=null&&c!=="";e.compoundListDataSource=new ki({key:"listCompoundId",load(c){return B(this,null,function*(){let v=new Si;t!=0?v=v.set("ListId",t):v=v.set("ListId",0),e.listTypeId!=0?v=v.set("ListType",e.listTypeId):v=v.set("ListType",0),n!=""?v=v.set("searchText",n):v=v.set("searchText",""),e.dataGridParamNames.forEach(V=>{i(c[V])?V==="filter"?v=v.set(V,JSON.stringify(c[V])):V==="archiveStatus"?v=v.set(V,e.isArchive):v=v.set(V,JSON.stringify(c[V])):V==="take"?v=v.set(V,20):V==="skip"?v=v.set(V,0):V==="sort"?v=v.set(V,null):V==="archiveStatus"?v=v.set(V,e.isArchive):v=v.set(V,"")});try{let V=yield wi(e.listService.GetCompoundListById(v));e.loading=!1,e.CompoundListTotalCount=V.responseModel.totalRecords,V.responseModel.results.length>0&&(e.existingStaticListId=e.childListID,e.existstListModel.compoundListRequestModel=[],V.responseModel.results.forEach(T=>{e.existstListModel.compoundListRequestModel.push({ListCompoundId:T.listCompoundId,CompoundListId:T.compoundListId,ListId:T.listId,dateTimeCreated:T.dateTimeCreated,dateTimeLastModified:T.dateTimeLastModified})}));let E=V.responseModel.results;return E.forEach(T=>{let D=[];T.hasLists&&D.push("Lists"),T.hasAccessGroups&&D.push("Access Groups"),T.listCategoryName=D.join(", ")}),e.compoundCloneListDataSource=E,{data:E,totalCount:V.responseModel.totalRecords,summary:V.summary,groupCount:V.groupCount}}catch{throw new Error("Data Loading Error")}})}}),this.cdr.detectChanges()}onItemClick(t){this.selectedRows=[],this.selectedRows=this.dataGrid.instance.getSelectedRowsData(),this.selectedRows.length>0?this.isShowDeleteButton=!0:this.isShowDeleteButton=!1}onItemClickForCompoundList(t){this.selectedCompoundListRows=[],this.selectedCompoundListRows=this.dataGrid.instance.getSelectedRowsData(),this.selectedCompoundListRows.length>0?this.isShowCompoundDeleteButton=!0:this.isShowCompoundDeleteButton=!1}onCompoundListSelectionChanged(t){this.selectedCompoundListRows=t.selectedRowsData,this.selectedRows.length>0?this.isShowCompoundDeleteButton=!0:this.isShowCompoundDeleteButton=!1}getCompoundListTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}valueChangedCompoundList(t){t.value?this.compoundSearchText=t.value:this.compoundSearchText="",this.mode!="clone"?this.GetCompoundListDataSource(this.listModel.listId,this.compoundSearchText):this.searchInCompoundCloneList()}deleteCompoundListRecords(){this.compoundListModelForDelete=[],this.selectedCompoundListRows.forEach(t=>{this.compoundListRequestModel=new Fn,this.compoundListRequestModel.ListCompoundId=t.listCompoundId,this.compoundListRequestModel.dateTimeCreated=t.dateTimeCreated,this.compoundListRequestModel.dateTimeLastModified=t.dateTimeLastModified,this.compoundListRequestModel.CompoundListId=t.compoundListId,this.compoundListRequestModel.ListId=t.listId,this.compoundListModelForDelete.push(this.compoundListRequestModel)}),this.mode!="clone"?this.listService.DeleteCompoundLiust(this.compoundListModelForDelete).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{t&&t.responseModel?(this.loading=!1,t.responseModel!=null&&t.responseModel!=null&&(this.loading=!1,this.deletePopup=!1,this.isShowCompoundDeleteButton=!1,this.showSuccessMessage("Compound list has been deleted successfully."),this.GetCompoundListDataSource(this.existstListModel.listId,""))):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}):this.deleteClonedCompoundListRecords(this.compoundListModelForDelete)}customCallbackValidateCopyProperty(t){return this.isView||this.isEdit?!0:this.eligibilityRuleModel.isCopy
87FromExisting?!(t.value==""||t.value==null):!0}clearEligibilityModel(){this.eligibilityRuleModel=co,this.eligibilityRuleModel=new Pn,this.eligibilityRuleModel.isCopyFromExisting=!1,this.eligibilityRuleModel.isActive=!1,this.eligibilityRuleModel.modifiedByUserId=this.userToken.userId,this.eligibilityRuleModel.eligibilityRuleGroups=[],this.AddNewGroup()}GetEligibilityInfoById(t){return B(this,null,function*(){if(!t)return;let n=this;this.loading=!0,this.eligibilityService.GetEligibilityInfoById(t).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{if(this.loading=!1,e&&e.isSuccess){if(e.responseModel!=null&&e.responseModel!=null){this.eligibilityRuleModel=co,this.eligibilityRuleModel=new Pn,this.eligibilityRuleModel.isCopyFromExisting=!1,this.eligibilityRuleModel.isActive=!0,this.eligibilityRuleModel.modifiedByUserId=this.userToken.userId,this.eligibilityRuleModel.eligibilityRuleGroups=[];let i=e.responseModel;if(this.isView?i.isCopyFromExisting?(this.eligibilityRuleModel.isCopyFromExisting=!0,this.eligibilityRuleModel.productEligibilityRuleReferenceId=i?.productEligibilityRuleReferenceId):this.eligibilityRuleModel.isCopyFromExisting=!1:this.isEdit&&(this.eligibilityRuleModel.isCopyFromExisting=i.isCopyFromExisting,this.eligibilityRuleModel.productEligibilityRuleReferenceId=i?.productEligibilityRuleReferenceId),this.eligibilityRuleModel.ruleDescription=i.ruleDescription,this.eligibilityRuleModel.productCategoryId=i?.productCategoryId,this.eligibilityRuleModel.eligibilityRuleGroups=[],i.eligibilityRuleGroups!=null&&i.eligibilityRuleGroups.length>0){let d=1;i.eligibilityRuleGroups.forEach(c=>{let v=new po;v.rowno=d,this.isEdit?(v.eligibilityRuleGroupId=c.eligibilityRuleGroupId,v.eligibilityRuleId=c.eligibilityRuleId):(v.eligibilityRuleGroupId=0,v.eligibilityRuleId=0),v.logicalCondition=c.logicalCondition,v.isActive=!0,v.modifiedByUserId=this.userToken.userId;let V=new Array,E=1;c.eligibilityRuleGroupItems.forEach(T=>{let D=new Mn;D.rowno=E,this.isEdit?(D.eligibilityRuleGroupItemId=T.eligibilityRuleGroupItemId,D.eligibilityRuleGroupId=T.eligibilityRuleGroupId):(D.eligibilityRuleGroupItemId=0,D.eligibilityRuleGroupId=0),D.entities=n.entitiesModel,D.groupedDataSource=n.fromPregroupedData,D.groupedDataSource.load(),D.entityID=T.entityID;let W=n.entitiesModel.find(mi=>mi.entityID==T.entityID).name;D.properties=Object.assign([],this.allProperties.filter(mi=>mi.entityName==W)),D.entityName=W,D.propertyReferenceId=T.propertyReferenceId,D.propertyName=T.propertyName,D.isDemographicsType=T.isDemographicsType,D.controlUniqId=D.properties.find(mi=>mi.controlId==T.propertyReferenceId&&mi.isDemographicsType==T.isDemographicsType)?.controlUniqId,D.logicalCondition=T.logicalCondition,D.isActive=!0,D.modifiedByUserId=this.userToken.userId;let Vt=new Array,ii=1;if(T.itemCriterias.length==0){let mi=D.properties.find(fi=>fi.controlId==D.propertyReferenceId&&fi.isDemographicsType==D.isDemographicsType),jt=new cn;jt.rowno=ii,jt.isActive=!0,jt.modifiedByUserId=this.userToken.userId,mi!=null&&mi!=null?(jt.controlType=mi.controlType,jt.options=mi.options):(jt.controlType="TextBox",jt.options=[]),jt.logicalCondition="",Vt.push(jt),ii=ii+1}else T.itemCriterias.forEach(mi=>{let jt=new cn;jt.rowno=ii;let fi=D.properties.find(Ji=>Ji.controlId==D.propertyReferenceId&&Ji.isDemographicsType==D.isDemographicsType);this.isEdit?(jt.eligibilityRuleGroupPropertyItemCriteriaId=mi.eligibilityRuleGroupPropertyItemCriteriaId,jt.eligibilityRuleGroupItemId=mi.eligibilityRuleGroupItemId):(jt.eligibilityRuleGroupPropertyItemCriteriaId=0,jt.eligibilityRuleGroupItemId=0),this.isEdit&&fi&&(jt.controlType=fi.controlType,jt.options=fi.options),jt.condition=mi.condition,jt.controlType=="Numberbox"?(jt.assignedNumerValue=Number(mi.assignedValue),jt.assignedValue=mi.assignedValue):(jt.controlType=="Datepicker"&&(jt.isRelativeDate=mi.assignedValue=="Today",jt.assignedDateValue=!jt.isRelativeDate&&mi.assignedValue?mi.assignedValue:null),jt.assignedValue=mi.assignedValue),jt.logicalCondition=mi.logicalCondition,jt.isActive=!0,Vt.push(jt),ii=ii+1});D.itemCriterias=Vt,V.push(D),E=E+1}),v.eligibilityRuleGroupItems=V,this.eligibilityRuleModel.eligibilityRuleGroups.push(v),d=d+1})}if(this.isView){let d=this.eligibilityRuleModel.eligibilityRuleGroups;this.previewEligibilityRuleGroups=Object.assign([],d),this.previewEligibilityRuleGroups.forEach(c=>
87{c.eligibilityRuleGroupItems.forEach(v=>{v.entityName=this.entitiesModel.find(V=>V.entityID==v.entityID).name,v.propertyName=this.allProperties.find(V=>V.controlId==v.propertyReferenceId&&V.isDemographicsType==v.isDemographicsType).controlLabel})})}}this.loading=!1}else this.loading=!1,this.showErrorMessage(e.message)})},e=>{this.loading=!1,this.showErrorMessage(e.message)})})}GetActiveGroup(){return this.eligibilityRuleModel.eligibilityRuleGroups.filter(t=>t.isActive)}GetActiveGroupItem(t){return t.filter(n=>n.isActive)}SetRuleGroupLogicalCondition(t,n){this.eligibilityRuleModel.eligibilityRuleGroups.filter(e=>e.rowno==t).forEach(e=>{e.logicalCondition=n})}RemoveGroup(t){this.deleteGroupNo=t,this.deleteGroupPopup=!0}onClickDeleteGroupRule(){this.eligibilityRuleModel.eligibilityRuleGroups.find(t=>t.rowno==this.deleteGroupNo).isActive=!1,this.deleteGroupNo=0,this.deleteGroupPopup=!1,this.eligibilityRuleModel.eligibilityRuleGroups.filter(t=>t.isActive).length==0?this.AddNewGroup():this.ResetGroupRowNo()}RemoveGroupItem(t,n){this.deleteGroupNo=t,this.deleteGroupItemNo=n,this.deleteGroupItemPopup=!0}SetRuleItemLogicalCondition(t,n,e){this.eligibilityRuleModel.eligibilityRuleGroups.filter(i=>i.rowno==t).forEach(i=>{i.eligibilityRuleGroupItems.filter(d=>d.rowno==n).forEach(d=>{d.logicalCondition=e})})}onSelectEntity(t,n,e){let i=new Array;if(t.value){let d=this.entitiesModel.find(c=>c.entityID==t.value);d&&(i=Object.assign([],this.allProperties.filter(c=>c.entityName.toLowerCase()==d.name.toLowerCase())))}this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==n).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==e).forEach(c=>{c.properties=i})})}onSelectProperty(t,n,e){if(t.event!=null){let d=new Lo;t.value&&(d=Object.assign({},this.allProperties.find(c=>c.controlUniqId==t.value)),this.eligibilityRuleModel.eligibilityRuleGroups.forEach(c=>{if(c.rowno==n)var v=c.eligibilityRuleGroupItems.find(V=>V.propertyReferenceId==d.controlId&&V.isDemographicsType==d.isDemographicsType&&V.rowno!=e&&V.isActive);else var v=c.eligibilityRuleGroupItems.find(E=>E.propertyReferenceId==d.controlId&&E.isDemographicsType==d.isDemographicsType&&E.isActive);v&&this.eligibilityRuleModel.eligibilityRuleGroups.filter(V=>V.rowno==n).forEach(V=>{V.eligibilityRuleGroupItems.filter(E=>E.rowno==e).forEach(E=>{E.propertyReferenceId=0,E.isDemographicsType=!1,E.controlUniqId=0,E.itemCriterias=[];let T=new cn;T.isActive=!0,T.modifiedByUserId=this.userToken.userId,E.itemCriterias.push(T)})})})),this.eligibilityRuleModel.eligibilityRuleGroups.filter(c=>c.rowno==n).forEach(c=>{c.eligibilityRuleGroupItems.filter(v=>v.rowno==e).forEach(v=>{v.propertyReferenceId=t.value==null||t.value==null?null:d.controlId,v.isDemographicsType=t.value==null||t.value==null?!1:d.isDemographicsType,v.controlUniqId=t.value==null||t.value==null?null:d.controlUniqId,v.itemCriterias.forEach(V=>{V.controlType=t.value==null||t.value==null?"TextBox":d.controlType,V.options=t.value==null||t.value==null?[]:d.options,V.assignedValue="",V.assignedNumerValue=null,V.assignedDateValue=null})})})}}ResetGroupRowNo(){let t=1;this.eligibilityRuleModel.eligibilityRuleGroups.forEach(n=>{if(n.isActive){n.rowno=t,n.rowno==1&&(n.logicalCondition="");let e=1;n.eligibilityRuleGroupItems.forEach(i=>{if(i.isActive){i.rowno=e,i.rowno==1&&(i.logicalCondition="");let d=1;i.itemCriterias.forEach(c=>{c.isActive?(c.rowno=d,c.rowno==1&&(c.logicalCondition=""),d=d+1):c.rowno=0}),e=e+1}else i.rowno=0}),t=t+1}else n.rowno=0})}GetActiveCriteria(t){return t.filter(n=>n.isActive)}SetRuleCriteriaLogicalCondition(t,n,e,i){this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==t).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==n).forEach(c=>{c.itemCriterias.filter(v=>v.rowno==e).forEach(v=>{v.logicalCondition=i})})})}onSelectCondition(t,n,e,i){t.value&&this.checkForExistingValue(n,e,i)}checkForExistingValue(t,n,e){this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==t).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==n).forEach(c=>{if(c.itemCriterias.length>1){let v="",V="",E=c.itemCriterias.find(T=>T.rowno==e);E&&(v=E.condition,V=E.assignedValue),c.propertyName=this.allProperties.find(T=>T.controlId==c.propertyReferenceId&&T.isDemographicsType==c.isDemographicsType).
87controlLabel,c.entityName=this.entitiesModel.find(T=>T.entityID==c.entityID).name,c.itemCriterias.filter(T=>T.rowno!=e&&T.isActive).forEach(T=>{T.condition==v&&T.assignedValue.trim().toLowerCase()==V.trim().toLowerCase()})}})})}checkForSelectBoxExistingValue(t,n,e,i){t.value&&this.checkForExistingValue(n,e,i)}convertDemoDate(t){let n=new Date(t),e=("0"+(n.getMonth()+1)).slice(-2),i=("0"+n.getDate()).slice(-2);return[e,i,n.getFullYear()].join("/")}setDateValue(t,n,e,i){t.value!=""&&t.value!=null?(this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==n).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==e).forEach(c=>{c.itemCriterias.find(v=>v.rowno==i).assignedDateValue=t.value,c.itemCriterias.find(v=>v.rowno==i).assignedValue=this.convertDemoDate(t.value.toString())})}),this.checkForExistingValue(n,e,i)):this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==n).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==e).forEach(c=>{c.itemCriterias.find(v=>v.rowno==i).assignedDateValue=null,c.itemCriterias.find(v=>v.rowno==i).assignedValue=""})})}setNumberValue(t,n,e,i){t.value!=""&&t.value!=null?(this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==n).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==e).forEach(c=>{c.itemCriterias.find(v=>v.rowno==i).assignedNumerValue=t.value,c.itemCriterias.find(v=>v.rowno==i).assignedValue=t.value.toString()})}),this.checkForExistingValue(n,e,i)):this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==n).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==e).forEach(c=>{c.itemCriterias.find(v=>v.rowno==i).assignedNumerValue=null,c.itemCriterias.find(v=>v.rowno==i).assignedValue=""})})}checkForTextBoxExistingValue(t,n,e,i){t.value&&this.checkForExistingValue(n,e,i)}RemoveCriteriaItem(t,n,e){this.eligibilityRuleModel.eligibilityRuleGroups.filter(i=>i.rowno==t).forEach(i=>{i.eligibilityRuleGroupItems.filter(d=>d.rowno==n).forEach(d=>{d.itemCriterias.find(c=>c.rowno==e).isActive=!1})}),this.ResetGroupRowNo()}AddCriteriaItem(t,n){this.eligibilityRuleModel.eligibilityRuleGroups.filter(e=>e.rowno==t).forEach(e=>{e.eligibilityRuleGroupItems.filter(i=>i.rowno==n).forEach(i=>{if((i.propertyReferenceId==null?0:i.propertyReferenceId)>0){let c=Object.assign({},this.allProperties.find(V=>V.controlId==i.propertyReferenceId&&V.isDemographicsType==i.isDemographicsType)),v=new cn;v.isActive=!0,v.modifiedByUserId=this.userToken.userId,c!=null&&c!=null?(v.controlType=c.controlType,v.options=c.options):(v.controlType="TextBox",v.options=[]),i.itemCriterias.filter(V=>V.isActive).length>0&&(v.logicalCondition="And"),i.itemCriterias.push(v)}else this.showErrorMessage("Please select property first.")})}),this.ResetGroupRowNo()}AddGroupItem(t){this.eligibilityRuleModel.eligibilityRuleGroups.filter(n=>n.rowno==t).forEach(n=>{let e=new Mn;e.entities=this.entitiesModel,e.groupedDataSource=this.fromPregroupedData,e.groupedDataSource?.load(),e.itemCriterias=[],e.isActive=!0,e.modifiedByUserId=this.userToken.userId;let i=new cn;i.isActive=!0,i.modifiedByUserId=this.userToken.userId,e.itemCriterias.push(i),n.eligibilityRuleGroupItems.filter(d=>d.isActive).length>0&&(e.logicalCondition="And"),n.eligibilityRuleGroupItems.push(e)}),this.ResetGroupRowNo()}AddNewGroup(){let t=new po;t.isActive=!0,t.modifiedByUserId=this.userToken.userId;let n=new Mn;n.entities=this.entitiesModel,n.groupedDataSource=this.fromPregroupedData,n.groupedDataSource.load(),n.itemCriterias=[],n.isActive=!0,n.modifiedByUserId=this.userToken.userId;let e=new cn;e.isActive=!0,e.modifiedByUserId=this.userToken.userId,n.itemCriterias.push(e),t.eligibilityRuleGroupItems.push(n),this.eligibilityRuleModel.eligibilityRuleGroups.filter(i=>i.isActive).length>0&&(t.logicalCondition="And"),this.eligibilityRuleModel.eligibilityRuleGroups.push(t),this.ResetGroupRowNo()}PreviewRuleClick(){let t=this.eligibilityRuleModel.eligibilityRuleGroups;this.previewEligibilityRuleGroups=Object.assign([],t),this.previewEligibilityRuleGroups.forEach(n=>{n.eligibilityRuleGroupItems.forEach(e=>{this.entitiesModel.find(i=>
87i.entityID==e.entityID)?e.entityName=this.entitiesModel.find(i=>i.entityID==e.entityID).name:e.entityName="",this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType)?e.propertyName=this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType).controlLabel:e.propertyName=""})}),this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}PreviewRuleClickClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}onClickDeleteGroupItemRule(){this.eligibilityRuleModel.eligibilityRuleGroups.filter(n=>n.rowno==this.deleteGroupNo).forEach(n=>{n.eligibilityRuleGroupItems.find(e=>e.rowno==this.deleteGroupItemNo).isActive=!1}),this.eligibilityRuleModel.eligibilityRuleGroups.filter(n=>n.rowno==this.deleteGroupNo).forEach(n=>{if(n.eligibilityRuleGroupItems.filter(e=>e.isActive).length==0){let e=new Mn;e.entities=this.entitiesModel,e.groupedDataSource=this.fromPregroupedData,e.groupedDataSource.load(),e.itemCriterias=[],e.isActive=!0,e.modifiedByUserId=this.userToken.userId;let i=new cn;i.isActive=!0,i.modifiedByUserId=this.userToken.userId,e.itemCriterias.push(i),n.eligibilityRuleGroupItems.push(e)}}),this.ResetGroupRowNo(),this.closeDeleteItemPopup()}closeDeleteItemPopup(){this.deleteGroupItemNo=0,this.deleteGroupItemPopup=!1,this.ResetGroupRowNo()}OnDynamicFormSubmit(t){let n=this.targetGroup.instance.validate();this.SelectedListType==2?n.isValid&&(this.eligibilityRuleModel.ruleName=this.listName,this.eligibilityRuleModel.ruleDescription=this.listName,this.eligibilityRuleModel.modifiedByUserId=this.userToken.userId,this.eligibilityRuleModel.isActive=!0,this.isEdit&&(this.eligibilityRuleModel.eligibilityRuleId=this.eligibilityRuleId),this.ResetRuleOrder(),this.eligibilityRuleModel.eligibilityRuleGroups.forEach(e=>{e.eligibilityRuleGroupItems.forEach(i=>{i.groupedDataSource=null})}),this.loading=!0,this.isEdit&&this.mode!="clone"?this.eligibilityService.UpdateEligibilityRule(this.eligibilityRuleModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(e=>{this.loading=!1,e&&e.isSuccess?e.responseModel==!0&&this.UpdateDynamicList(t):e&&!e.isSuccess&&this.showErrorMessage(e.message)},e=>{this.loading=!1,this.showErrorMessage(e.message)}):(this.mode=="clone"&&(this.eligibilityRuleModel.eligibilityRuleId=0,this.eligibilityRuleModel.eligibilityRuleGroups.forEach(e=>{e.eligibilityRuleId=0,e.eligibilityRuleGroupId=0,e.eligibilityRuleGroupItems.forEach(i=>{i.eligibilityRuleGroupId=0,i.eligibilityRuleGroupItemId=0,i.itemCriterias.forEach(d=>{d.eligibilityRuleGroupItemId=0,d.eligibilityRuleGroupPropertyItemCriteriaId=0})})})),this.eligibilityService.AddEligibilityRule(this.eligibilityRuleModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(e=>{this.loading=!1,e&&e.isSuccess?this.AddDynamicList(e.responseModel,t):e&&!e.isSuccess&&this.showErrorMessage(e.message)},e=>{this.loading=!1,this.showErrorMessage(e.message)}))):(this.SelectedListType==1||this.SelectedListType==3)&&n.isValid&&this.UpdateStaticList(t)}UpdateStaticList(t){this.listModel.isActive=!0,this.listModel.listName=this.listName,this.listModel.listCategoryId=this.listCategoryId,this.listModel.isHubSpotSync=!1,this.listModel.logicalCondition=this.logicalCondition,this.listModel.modifiedByUserId=this.userToken.userId,this.listModel.listTypeId=this.listTypeId,this.listModel.listId=this.existstListModel.listId,this.listModel.listReturnType=this.listReturnTypeValue,this.listModel.hasAccessGroups=this.listReturnTypeValue!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(n=>n=="Access Groups")!=-1)==!0,this.listModel.hasLists=this.listReturnTypeValue!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(n=>n=="Lists")!=-1)==!0,this.mode=="clone"?(this.listModel.listId=0,this.listTypeId==1?(this.listModel.listStructureName="Simple",this.listModel.listOfStaticRecords=[],this.staticCloneListDataSource?.forEach(n=>{let e=new Go;e.recordId=n.contactID,e.isActive=!0,e.listRecordId=0,e.listId=0,e.modifiedByUserId=this.userToken.userId,this.listModel.listOfStaticRecords.push(e)}),this.listService.AddStaticContactLists(this.listModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{n&&n.responseModel.listId>0?(this.loading=!1,n.responseModel!=null&&n.responseModel!=null&&(this.loading=!1,this.dataGrid.instance.refresh(),this.showSuccessMessage("The list has been cloned successfully."),this.redirectToPage(n.responseModel.listId,t))):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})):this.listTypeId==3&&(this.listModel.listStructureName="Compound",this.listModel.compoundListRequestModel=[],this.compoundCloneListDataSource.forEach(n=>{let e=new Fn;e.ListId=0,e.CompoundListId=n.compoundListId??n.CompoundListId,e.ListCompoundId=0,this.listModel.compoundListRequestModel.push(e)}),this.listService.AddCompoundList(this.listModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{n&&n.responseModel.listId>0?(this.loading=!1,n.responseModel!=null&&n.responseModel!=null&&(this.dataGrid.instance.refresh(),this.showSuccessMessage("The list has been cloned successfully."),this.redirectToPage(n.responseModel.listId,t))):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}
87))):this.listService.UpdateStaticContactLists(this.listModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{n&&n.responseModel.listId>0?n.responseModel!=null&&(this.loading=!1,this.dataGrid.instance.refresh(),this.showSuccessMessage("The list has been updated successfully."),this.redirectToPage(n.responseModel.listId,t)):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}redirectToPage(t,n){n?this.SelectedListType==1?this.router.navigate(["admin/client/setting/list-management/view-static/"+t+"/view"]):this.SelectedListType==2?this.router.navigate(["admin/client/setting/list-management/view-dynamic/"+t]):this.SelectedListType==3&&this.router.navigate(["admin/client/setting/list-management/view-compound/"+t+"/view"]):this.router.navigate(["admin/client/setting/list-management/list"])}UpdateListModelForAPI(){if(!this.isEdit&&!this.isView){let t=this.listModel.productCategoryId;this.listModel=new Zi,this.listModel.productCategoryId=t??0}this.listModel.listName=this.listName,this.listModel.listCategoryId=this.listCategoryId,this.listModel.isActive=!0,this.listModel.modifiedByUserId=this.userToken.userId,this.listModel.listTypeId=this.SelectedListType,this.isEdit&&(this.listModel.listId=this.listId,this.listModel.eligibilityRuleId=this.eligibilityRuleId),this.listModel.listReturnType=this.listReturnTypeValue,this.listModel.listStructureName="Simple",this.listModel.hasAccessGroups=this.listReturnTypeValue!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(t=>t=="Access Groups")!=-1)==!0,this.listModel.hasLists=this.listReturnTypeValue!="Group"&&(this.listCategoryIds&&this.listCategoryIds.findIndex(t=>t=="Lists")!=-1)==!0}AddDynamicList(t,n){this.UpdateListModelForAPI(),this.listModel.eligibilityRuleId=t.eligibilityRuleId,this.loading=!0,this.mode=="clone"&&(this.listModel.listId=0),this.listService.AddDynamicList(this.listModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(e=>{e&&e.isSuccess?(this.showSuccessMessage(e.message),this.redirectToPage(e.responseModel,n)):this.showErrorMessage(e.message)},e=>{this.loading=!1,this.showErrorMessage(e.message)})}UpdateDynamicList(t){this.UpdateListModelForAPI(),this.loading=!0,this.listService.UpdateDynamicList(this.listModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{n&&n.isSuccess?(this.showSuccessMessage(n.message),this.redirectToPage(this.listId,t)):this.showErrorMessage(n.message)},n=>{this.loading=!1,this.showErrorMessage(n.message)})}ResetRuleOrder(){let t=1;this.eligibilityRuleModel.eligibilityRuleGroups.forEach(n=>{n.ruleOrder=t;let e=1;n.eligibilityRuleGroupItems.forEach(i=>{i.ruleOrder=e;let d=1;i.itemCriterias.forEach(c=>{c.ruleOrder=d,d=d+1}),e=e+1}),t=t+1})}GetCompoundListByID(t){this.listService.GetListById(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.listOfCompoundModel=n.responseModel})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?this.CheckPropertyRequiredByPageCategory(t,n)?e[0].fieldCaption+" *":e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0&&this.isEdit==!0?this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0:!1}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}GetGridPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}onDropDownBoxValueChanged(){this.updateSelection(this.treeView?.instance,!0)}onDropDownBoxTreeViewReady(t){this.updateSelection(t.component,!1)}updateSelection(t,n){t&&(n&&t.getSelectedNodes()?.length==0&&(this.listCategoryIds=[]),(!this.listCategoryIds||this.listCategoryIds?.length==0)&&t.unselectAll(),this.listCategoryIds?.forEach(e
87=>{t.selectItem(e)}))}onDropDownBoxTreeViewSelectionChanged(t){this.listCategoryIds=t.component.getSelectedNodeKeys()}onListStructureUpdate(){this.listTypeModelDataSource=this.listTypeModele?.filter(t=>t.listStructureName==this.listStructureValue),this.listTypeModelDataSource?.length&&(this.listTypeId=this.listTypeModelDataSource[0].listTypeId,this.SelectedListType=this.listTypeModelDataSource[0].listTypeId)}getEditSearchLabel(){return this.listReturnTypeValue=="Contact"?"Search by contact or email":this.listReturnTypeValue=="Company"?"Search by company name":this.listReturnTypeValue=="Group"?"Search by group name":"Search"}getStaticListCaption(){return this.listReturnTypeValue=="Contact"?"Contact":this.listReturnTypeValue=="Company"?"Company name":this.listReturnTypeValue=="Group"?"Group name":"Name"}onStaticListSaveSuccess(){this.isEdit&&this.GetStaticDataSource(this.existstListModel.listId,"")}onDynamicListSaveSuccess(){this.isEdit&&this.loadDataForDynamicList()}onAddStaticContactToCloneLists(t){let n=[];t?.forEach(e=>{let i="";this.listReturnTypeValue=="Contact"?i=e.fullName:this.listReturnTypeValue=="Company"?i=e.companyName:this.listReturnTypeValue=="Group"&&(i=e.groupName),n.push({listContactId:0,listId:0,contactID:e.recordId,isActive:!0,modifiedByUserId:e.modifiedByUserId,dateTimeCreated:"2025-02-26T11:44:31.043",dateTimeLastModified:"2025-02-26T11:44:31.043",fullName:i,phone:e.phone,email:e.email,totalCount:e.totalCount})}),this.staticCloneListDataSource=this.staticCloneListDataSource.concat(n),n=this.staticCloneListDataSource,this.bindCloneList(n)}searchInCloneList(){let t=[];this.searchText!=""?t=this.staticCloneListDataSource.filter(n=>n.fullName?.toLowerCase().includes(this.searchText?.toLowerCase())||n.phone?.toLowerCase().includes(this.searchText?.toLowerCase())||n.email?.toLowerCase().includes(this.searchText?.toLowerCase())):t=this.staticCloneListDataSource,this.bindCloneList(t)}deleteFromCloneList(t){let n=t.listOfStaticRecords.map(e=>e.recordId);this.staticCloneListDataSource=this.staticCloneListDataSource.filter(function(e){return!n.includes(e.contactID)}),this.bindCloneList(this.staticCloneListDataSource),this.deletePopup=!1,this.isShowDeleteButton=!1,this.showSuccessMessage(this.listReturnTypeValue+" has been deleted successfully.")}bindCloneList(t){let n=[];t.forEach(d=>{let c=new Go;c.recordId=d.contactID,c.isActive=!0,c.listRecordId=0,c.listId=0,c.modifiedByUserId=this.userToken.userId,n.push(c)}),this.listModel.listOfStaticRecords=n,this.existstListModel.listOfStaticRecords=n,this.listModel=JSON.parse(JSON.stringify(this.listModel)),this.listModel.productCategoryId=this.listModel.productCategoryId??0;let e=this;this.staticListDataSource=new ki({key:"contactID",load(d){return B(this,null,function*(){return{data:t,totalCount:t.length,summary:"",groupCount:t.length}})}}),this.cdr.detectChanges()}onAddToCompoundLists(t){this.compoundCloneListDataSource=this.compoundCloneListDataSource.concat(t),t=this.compoundCloneListDataSource,this.bindCompoundCloneList(t)}bindCompoundCloneList(t){this.listModel.compoundListRequestModel=t,this.existstListModel.compoundListRequestModel=t,this.listModel=JSON.parse(JSON.stringify(this.listModel)),this.listModel.productCategoryId=this.listModel.productCategoryId??0;let n=this;this.compoundListDataSource=new ki({key:"listCompoundId",load(i){return B(this,null,function*(){return{data:t,totalCount:t.length,summary:"",groupCount:t.length}})}})}deleteClonedCompoundListRecords(t){let n=t.map(e=>e.CompoundListId??e.compoundListId);this.compoundCloneListDataSource=this.compoundCloneListDataSource.filter(function(e){return!n.includes(e.compoundListId)}),this.bindCompoundCloneList(this.compoundCloneListDataSource),this.deletePopup=!1,this.isShowCompoundDeleteButton=!1,this.showSuccessMessage("Compound list has been deleted successfully.")}searchInCompoundCloneList(){let t=[];this.compoundSearchText!=""?t=this.compoundCloneListDataSource.filter(n=>n.listName?.toLowerCase().includes(this.compoundSearchText?.toLowerCase())||n.listReturnType?.toLowerCase().includes(this.compoundSearchText?.toLowerCase())||n.listCategoryName?.toLowerCase().includes(this.compoundSearchText?.toLowerCase())||n.listTypeName?.toLowerCase().includes(this.compoundSearchText?.toLowerCase())):t=this.staticCloneListDataSource,this.bindCompoundCloneList(t)}
87onDropDownBoxTreeViewRendered(t){if(t.node.children.length>0){let n=t.itemElement.querySelector(".dx-checkbox");Ka.getInstance(n).option("visible",!1)}}validateListName(t,n,e){this.listService.ValidateListName({listId:t,listName:n}).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(i=>{this.processResult(i,()=>{i&&i.responseModel?e&&e():(this.loading=!1,this.showErrorMessage(i.message))})},i=>{this.loading=!1,this.showErrorMessage(i.message)})}setProductCategoryId(t){this.listModel.productCategoryId=t,this.productCategoryId=t}onRelativeDateChanged(t,n){t.value?n.assignedValue=this.relativeDateOptions.find(e=>e):n.assignedValue=""}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(Li),k(ln),k(yt),k(In),k(Kt),k(rn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-manage-lists"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(md,5),U(gd,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.targetGroup=i.first),H(i=j())&&(e.treeView=i.first)}},inputs:{ListId:"ListId"},standalone:!0,features:[Wt([Di]),xt,on,Q],decls:88,vars:54,consts:[["targetGroup",""],["dropdownBox{{idx}}",""],["treeView",""],[1,"view-wrapper","manage-list-outer","create-list-outer","tooltip-wrapper"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[4,"ngIf"],[1,"manage-content-outer"],[1,"card-outer"],["id","form",3,"formData"],[1,"scroll-outer"],[1,"list-content"],[1,"card-outer__content","max-width"],[1,"title-block-box"],["class","dx-field",4,"ngIf"],[1,"select-category-block"],[1,"dx-field"],["label","List Return Type",3,"valueChange","labelMode","items","disabled","inputAttr","value"],["class","dx-field multi-select",4,"ngIf"],["label","List Structure","placeholder","Select",3,"onValueChanged","valueChange","labelMode","items","disabled","value","inputAttr"],[1,"static-list-block"],[1,"static-list-block__top"],[1,"dx-field-value"],[1,"radio-button-box"],["layout","horizontal","displayExpr","listTypeDisplayName","valueExpr","listTypeId",3,"valueChange","onValueChanged","items","disabled","value"],["class","tooltip-info","style","margin-top: 0px;",4,"ngIf"],[1,"card-outer__button","max-width"],["text","Cancel","stylingMode","contained","routerLink","/admin/client/setting/list-management/list","type","normal",1,"btn","btn--cancel"],["stylingMode","contained","type","normal",1,"btn","btn--primary",3,"onClick","disabled","text"],["position","right","openedStateMode","overlap","revealMode","slide","container",".dx-viewport",3,"showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr","visibleChange",4,"ngIf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["height","auto",3,"visibleChange","onHidden","showTitle","visible","width","wrapperAttr"],["text","No","stylingMode","outlined","type","normal",1,"btn","btn--cancel",3,"onClick"],[1,"sidebar-outer","preview-rule",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sub-title"],["href","javascript:void(0);",1,"close-sidebar",3,"click"],["width","17","height","17","viewBox","0 0 17 17","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 2L2 15M2 2L15 15","stroke","#5C5C5C","stroke-width","2.5","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__content"],[3,"eligibilityRuleGroups"],[3,"productCategoryIdChange","productType","flagTypes","productCategoryId"],[3,"valueChange","onValueChanged","labelMode","disabled","label","value","inputAttr"],["type","required",3,"message",4,"ngIf"],["class","tooltip-info",4,"ngIf"],["type","required",3,"message"],[1,"tooltip-info"],["id","listName",1,"icon","dx-icon-info"],["target","#listName","showEvent","mouseenter","hideEvent","mouseleave",3,"hideOnOutsideClick"],[4,"dxTemplate","dxTemplateOf"],[1,"dx-field","multi-select"],["label","List Category","placeholder","Select","valueExpr","categoryName","displayExpr","categoryName",3,"valueChange","onValueChanged","disabled","labelMode","inputAttr","showClearButton","dataSource","value"],["class","select-box",4,"dxTemplate","dxTemplateOf"],[1,"select-box"],["dataStructure","plain","keyExpr","categoryName","selectionMode","multiple","showCheckBoxesM
87ode","normal","displayExpr","categoryName",3,"onContentReady","onItemRendered","onItemSelectionChanged","dataSource","selectByClick"],[1,"tooltip-info",2,"margin-top","0px"],["id","listTypeId",1,"icon","dx-icon-info"],["target","#listTypeId","showEvent","mouseenter","hideEvent","mouseleave",3,"hideOnOutsideClick"],["class","empty-card",4,"ngIf"],["class","full-width flex space-between",4,"ngIf"],[1,"table-block"],["class","table-outer session-management-table renewal-invoices-table","id","gridContainer","noDataText","No Records found.","keyExpr","listId",3,"dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled","onCellClick",4,"ngIf"],[1,"empty-card"],[1,"add-new"],["href","javascript:void(0)",1,"edits","add-plus",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.02518 1.00021V11.0506M1 6.02539H11.0504","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"full-width","flex","space-between"],[1,"dx-field","company-search","search-email"],["valueChangeEvent","keyup",1,"autocomplete",3,"valueChange","onValueChanged","labelMode","label","showClearButton","value","inputAttr"],[1,"below-contacts__right"],["href","javascript:void(0)","class","delete-btn",3,"click",4,"ngIf"],["class","edits add-plus","href","javascript:void(0)",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"delete-btn",3,"click"],["width","26","height","26","viewBox","0 0 26 26","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","11.5","fill","#BC3F21","stroke","#BC3F21"],["d","M10.7083 7.74495H13.2929C13.2929 7.41057 13.1568 7.08988 12.9144 6.85344C12.672 6.617 12.3433 6.48417 12.0006 6.48417C11.6579 6.48417 11.3292 6.617 11.0868 6.85344C10.8444 7.08988 10.7083 7.41057 10.7083 7.74495ZM9.73906 7.74495C9.73906 7.45521 9.79756 7.1683 9.91121 6.90061C10.0249 6.63292 10.1914 6.38969 10.4015 6.18481C10.6115 5.97993 10.8608 5.81741 11.1351 5.70652C11.4095 5.59564 11.7036 5.53857 12.0006 5.53857C12.2976 5.53857 12.5917 5.59564 12.8661 5.70652C13.1404 5.81741 13.3897 5.97993 13.5997 6.18481C13.8098 6.38969 13.9763 6.63292 14.09 6.90061C14.2036 7.1683 14.2621 7.45521 14.2621 7.74495H17.9775C18.1061 7.74495 18.2293 7.79477 18.3202 7.88343C18.4111 7.9721 18.4621 8.09236 18.4621 8.21775C18.4621 8.34314 18.4111 8.4634 18.3202 8.55207C18.2293 8.64073 18.1061 8.69054 17.9775 8.69054H17.1246L16.3686 16.3252C16.3106 16.9102 16.0313 17.4532 15.5853 17.8482C15.1392 18.2432 14.5583 18.4619 13.9559 18.4617H10.0453C9.44304 18.4617 8.8623 18.2429 8.41635 17.848C7.97041 17.453 7.69123 16.9101 7.63325 16.3252L6.8766 8.69054H6.02368C5.89515 8.69054 5.77189 8.64073 5.681 8.55207C5.59012 8.4634 5.53906 8.34314 5.53906 8.21775C5.53906 8.09236 5.59012 7.9721 5.681 7.88343C5.77189 7.79477 5.89515 7.74495 6.02368 7.74495H9.73906ZM11.0314 10.7393C11.0314 10.6139 10.9803 10.4937 10.8894 10.405C10.7985 10.3163 10.6753 10.2665 10.5468 10.2665C10.4182 10.2665 10.295 10.3163 10.2041 10.405C10.1132 10.4937 10.0621 10.6139 10.0621 10.7393V15.4673C10.0621 15.5927 10.1132 15.7129 10.2041 15.8016C10.295 15.8903 10.4182 15.9401 10.5468 15.9401C10.6753 15.9401 10.7985 15.8903 10.8894 15.8016C10.9803 15.7129 11.0314 15.5927 11.0314 15.4673V10.7393ZM13.4544 10.2665C13.583 10.2665 13.7062 10.3163 13.7971 10.405C13.888 10.4937 13.9391 10.6139 13.9391 10.7393V15.4673C13.9391 15.5927 13.888 15.7129 13.7971 15.8016C13.7062 15.8903 13.583 15.9401 13.4544 15.9401C13.3259 15.9401 13.2027 15.8903 13.1118 15.8016C13.0209 15.7129 12.9698 15.5927 12.9698 15.4673V10.7393C12.9698 10.6139 13.0209 10.4937 13.1118 10.405C13.2027 10.3163 13.3259 10.2665 13.4544 10.2665ZM8.59795 16.2345C8.63281 16.5854 8.80036 16.911 9.06795 17.148C9.33553 17.3849 9.68398 17.5161 10.0453 17.5161H13.9559C14.3172 17.5161 14.6657 17.3849 14.9333 17.148C15.2008 16.911 15.3684 16.5854 15.4032 16.2345L16.1515 8.69054H7.84971L8.59795 16.2345Z","fill","white"],["id","gridContainer","noDataText","No Records foun
87d.","keyExpr","listId",1,"table-outer","session-management-table","renewal-invoices-table",3,"onCellClick","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled"],[3,"enabled"],[3,"groupPaging"],["selectAllMode","page","showCheckBoxesMode","always","mode","multiple"],["placeholder","Search by List",3,"visible"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","fullName","cellTemplate","ListTemplate",3,"caption","minWidth"],["class","event-name-code",4,"dxTemplate","dxTemplateOf"],["dataField","email",3,"caption","minWidth",4,"ngIf"],["dataField","phone","caption","Phone",3,"caption","minWidth",4,"ngIf"],[1,"event-name-code"],["href","javascript:void(0)","title","Name",1,"first-child"],["dataField","email",3,"caption","minWidth"],["dataField","phone","caption","Phone",3,"caption","minWidth"],[1,"set-criteria-outer"],[1,"card-header"],[1,"card-header__title"],["class","rule-config",4,"ngIf"],[1,"rule-config"],[4,"ngFor","ngForOf"],["class","rule-config__addgroup-btn",4,"ngIf"],["class","add-new-propertys","style","margin: 2rem 0; padding: 0;",4,"ngIf"],[1,"rule-config__block","dash-border"],["class","delete-btn","href","javascript:void(0)",3,"click",4,"ngIf"],[1,"condition"],["class","addnew-rules",4,"ngIf"],[1,"add-new-propertys",2,"margin","2rem 0","padding","0"],[1,"and-or-new"],[1,"and-or-new__tabs"],["href","javascript:void(0)",3,"click","ngClass"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.6 2.39024H8.4C8.4 2.028 8.2525 1.68059 7.98995 1.42444C7.7274 1.16829 7.3713 1.02439 7 1.02439C6.6287 1.02439 6.2726 1.16829 6.01005 1.42444C5.7475 1.68059 5.6 2.028 5.6 2.39024ZM4.55 2.39024C4.55 2.07635 4.61337 1.76554 4.7365 1.47554C4.85962 1.18554 5.04008 0.922041 5.26759 0.700086C5.49509 0.478132 5.76518 0.302068 6.06243 0.181947C6.35967 0.0618255 6.67826 0 7 0C7.32174 0 7.64033 0.0618255 7.93757 0.181947C8.23482 0.302068 8.50491 0.478132 8.73241 0.700086C8.95991 0.922041 9.14038 1.18554 9.2635 1.47554C9.38663 1.76554 9.45 2.07635 9.45 2.39024H13.475C13.6142 2.39024 13.7478 2.44421 13.8462 2.54026C13.9447 2.63632 14 2.7666 14 2.90244C14 3.03828 13.9447 3.16856 13.8462 3.26462C13.7478 3.36067 13.6142 3.41463 13.475 3.41463H12.551L11.732 11.6856C11.6692 12.3193 11.3666 12.9075 10.8834 13.3354C10.4001 13.7633 9.77082 14.0002 9.1182 14H4.8818C4.2293 14.0001 3.60017 13.7631 3.11706 13.3352C2.63396 12.9073 2.33151 12.3192 2.2687 11.6856L1.449 3.41463H0.525C0.385761 3.41463 0.252225 3.36067 0.153769 3.26462C0.0553123 3.16856 0 3.03828 0 2.90244C0 2.7666 0.0553123 2.63632 0.153769 2.54026C0.252225 2.44421 0.385761 2.39024 0.525 2.39024H4.55ZM5.95 5.63415C5.95 5.4983 5.89469 5.36803 5.79623 5.27197C5.69777 5.17591 5.56424 5.12195 5.425 5.12195C5.28576 5.12195 5.15223 5.17591 5.05377 5.27197C4.95531 5.36803 4.9 5.4983 4.9 5.63415V10.7561C4.9 10.8919 4.95531 11.0222 5.05377 11.1183C5.15223 11.2143 5.28576 11.2683 5.425 11.2683C5.56424 11.2683 5.69777 11.2143 5.79623 11.1183C5.89469 11.0222 5.95 10.8919 5.95 10.7561V5.63415ZM8.575 5.12195C8.71424 5.12195 8.84777 5.17591 8.94623 5.27197C9.04469 5.36803 9.1 5.4983 9.1 5.63415V10.7561C9.1 10.8919 9.04469 11.0222 8.94623 11.1183C8.84777 11.2143 8.71424 11.2683 8.575 11.2683C8.43576 11.2683 8.30223 11.2143 8.20377 11.1183C8.10531 11.0222 8.05 10.8919 8.05 10.7561V5.63415C8.05 5.4983 8.10531 5.36803 8.20377 5.27197C8.30223 5.17591 8.43576 5.12195 8.575 5.12195ZM3.3138 11.5872C3.35156 11.9674 3.53307 12.3202 3.82296 12.5769C4.11284 12.8335 4.49032 12.9757 4.8818 12.9756H9.1182C9.50968 12.9757 9.88716 12.8335 10.177 12.5769C10.4669 12.3202 10.6484 11.9674 10.6862 11.5872L11.4968 3.41463H2.5032L3.3138 11.5872Z","fill","white"],["class","add-new-propertys",4,"ngIf"],[1,"full-width","flex"],[1,"full-width__if"],["class","dx-field width-320",4,"ngIf"],[1,"delete-singel-rule"],[1,"add-new-propertys"],[1,"dx-field","width-320"],["displayExpr","name","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","disabled","label","dataSource","value","inputAttr","grouped","elementAttr"],[1,"icon","dx-icon-info",3,"id"],["showEvent","mouseenter","hideEvent","mouseleave",3,"target","hideOnOutsideClick"],["displayExpr","controlLabel","valueExpr","controlUniqId","placeholder","Select","itemTemplate","itemtemplate",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","disabled","label","searchEnabled","dataSource","value","inputAttr"],[2,"display","inline-block"],["class","and-or",4,"ngIf"],["class","dx-field condition-dx-field",4,"ngIf"],["class","add-remove",4,"ngIf"],["class","relative-date-checkbox","text","Relative Date",3,"value","elementAttr","valueChange","onValueChanged",4,"ngIf"],[1,"and-or"],[1,"and-or__first"],[1,"and-or__tabs"],[1,"and-or__last"],[1,"dx-field","condition-dx-field"],[3,"valueChange","onValueChanged","labelMode","disabled","label","items","inputAttr","value"],["class","select-box recordtype","placeholder","Select",3,"labelMode","items","disabled","label","value","inputAttr","showClearButton","searchEnabled","valueChange","onValueChanged",4,"ngIf"],["class","date-picker-criteria",4,"ngIf"],["class","select-box numbertype","format","####","valueChangeEvent","keyup",3,"labelMode","disabled","label","inputAttr","value","min","showSpinButtons","valueChange","onValueChanged",4,"ngIf"],[3,"labelMode","disabled","label","inputAttr","value","valueChange","onValueChanged",4,"ngIf"],["placeholder","Select",1,"select-box","re
87cordtype",3,"valueChange","onValueChanged","labelMode","items","disabled","label","value","inputAttr","showClearButton","searchEnabled"],[1,"date-picker-criteria"],["class","date-box","type","date",3,"labelMode","disabled","label","value","inputAttr","onValueChanged",4,"ngIf"],["type","date",1,"date-box",3,"onValueChanged","labelMode","disabled","label","value","inputAttr"],["format","####","valueChangeEvent","keyup",1,"select-box","numbertype",3,"valueChange","onValueChanged","labelMode","disabled","label","inputAttr","value","min","showSpinButtons"],[3,"valueChange","onValueChanged","labelMode","disabled","label","inputAttr","value"],[1,"add-remove"],["href","javascript:void(0);",3,"click",4,"ngIf"],["href","javascript:void(0);",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.8","cx","12","cy","12","r","12","fill","#3E3E3E"],["d","M7 12.6565H16.3435H7Z","fill","#50BC21"],["d","M7 12.6565H16.3435","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","12","r","12","fill","#0F0F0F"],["d","M12.1641 7.16412V17.4924V7.16412ZM7 12.3282H17.3282H7Z","fill","#50BC21"],["d","M12.1641 7.16412V17.4924M7 12.3282H17.3282","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["text","Relative Date",1,"relative-date-checkbox",3,"valueChange","onValueChanged","value","elementAttr"],[1,"addnew-rules"],[1,"btn","btn--primary",3,"click"],["width","15","height","15","viewBox","0 0 15 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.25 1.5V14M1 7.75H13.5","stroke","#0F0F0F","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"rule-config__addgroup-btn"],["class","btn btn--sync",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"btn","btn--cancel",3,"click"],["width","20","height","15","viewBox","0 0 20 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5C4.6 -0.5 15.4 -0.5 19 7.5","stroke","#024079","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M10 11.5C9.60603 11.5 9.21593 11.4224 8.85195 11.2716C8.48797 11.1209 8.15726 10.8999 7.87868 10.6213C7.6001 10.3427 7.37913 10.012 7.22836 9.64805C7.0776 9.28407 7 8.89397 7 8.5C7 8.10603 7.0776 7.71593 7.22836 7.35195C7.37913 6.98797 7.6001 6.65726 7.87868 6.37868C8.15726 6.1001 8.48797 5.87913 8.85195 5.72836C9.21593 5.5776 9.60603 5.5 10 5.5C10.7956 5.5 11.5587 5.81607 12.1213 6.37868C12.6839 6.94129 13 7.70435 13 8.5C13 9.29565 12.6839 10.0587 12.1213 10.6213C11.5587 11.1839 10.7956 11.5 10 11.5Z","stroke","#024079","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"btn","btn--sync",3,"click"],["class","below-contacts",4,"ngIf"],["label","Search by list","class","autocomplete","valueChangeEvent","keyup",3,"labelMode","showClearButton","value","inputAttr","valueChange","onValueChanged",4,"ngIf"],["class","table-outer session-management-table renewal-invoices-table","id","gridContainer","noDataText","No Records foun
87d.",3,"dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled","onCellClick",4,"ngIf"],[1,"below-contacts"],["label","Search by list","valueChangeEvent","keyup",1,"autocomplete",3,"valueChange","onValueChanged","labelMode","showClearButton","value","inputAttr"],["id","gridContainer","noDataText","No Records found.",1,"table-outer","session-management-table","renewal-invoices-table",3,"onCellClick","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled"],["dataField","listName","caption","List Name","cellTemplate","ListTemplate",3,"minWidth"],["dataField","listReturnType","caption","List Return Type"],["dataField","listCategoryName","caption","List Category"],["dataField","listTypeName",3,"caption","minWidth",4,"ngIf"],["href","javascript:void(0)",1,"first-child",3,"title"],["dataField","listTypeName",3,"caption","minWidth"],["position","right","openedStateMode","overlap","revealMode","slide","container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[3,"visibleChange","idChange","contactAddedToList","onSaveSuccess","onAddStaticContactToCloneLists","listModels","productCategoryId","listReturnType","listCategoryIds","mode"],[3,"visibleChange1","compoundIdChange","onSaveSuccess","onAddToCloneLists","existingListModels","listReturnType","logicalCondition","listCategoryIds","categoryNameForList","pageHeaderTitle","listTypeModele","productCategoryId","mode","ListId"]],template:function(n,e){if(n&1){let i=y();a(0,"div",3)(1,"div",4)(2,"ul",5)(3,"li",6)(4,"a",7),h(5,"Manage Lists"),s()(),a(6,"li",6),h(7),s()()(),a(8,"div",8)(9,"div",9)(10,"h1",10),h(11),S(12,Sd,2,1,"span",11),s()()(),a(13,"div",12)(14,"form",13)(15,"dx-validation-group",null,0)(17,"dx-form",14)(18,"dxi-item")(19,"dx-scroll-view",15)(20,"div",16)(21,"div",17),S(22,Pd,2,3,"div",11),a(23,"div",18),S(24,Td,5,9,"div",19),s(),a(25,"div",20)(26,"div",21)(27,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.listReturnTypeValue,c)||(e.listReturnTypeValue=c),u(c)}),s()(),S(28,Id,4,8,"div",23),a(29,"div",21)(30,"dx-select-box",24),f("onValueChanged",function(){return p(i),u(e.onListStructureUpdate())}),_("valueChange",function(c){return p(i),C(e.listStructureValue,c)||(e.listStructureValue=c),u(c)}),s()()(),a(31,"div",25)(32,"label",26),h(33,"List Types"),s(),a(34,"div",27)(35,"div",28)(36,"dx-radio-group",29),_("valueChange",function(c){return p(i),C(e.listTypeId,c)||(e.listTypeId=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onRadioButtonListOptionChanged(c))}),s(),S(37,Ld,4,2,"div",30),s()()(),S(38,qd,5,3,"ng-container",11)(39,Ac,7,1,"ng-container",11)(40,Nc,11,6,"ng-container",11),s()()(),a(41,"div",31),b(42,"dx-button",32),a(43,"dx-button",33),f("onClick",function(){return p(i),u(e.OnDynamicFormSubmit(!1))}),s(),a(44,"dx-button",33),f("onClick",function(){return p(i),u(e.OnDynamicFormSubmit(!0))}),s()()()()()()()(),S(45,qc,5,12,"dx-popup",34)(46,Uc,5,16,"dx-popup",34),a(47,"dx-popup",35),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(48,"div",36)(49,"h2"),h(50,"Confirmation"),s()(),a(51,"div",37)(52,"p"),h(53,"Are you sure you want to delete?"),s()(),a(54,"div",38)(55,"dx-button",39),f("onClick",function(){return p(i),u(e.closeDeletePopup())}),s(),a(56,"dx-button",40),f("onClick",function(){return p(i),u(e.deleteRecords())}),s()()(),a(57,"dx-popup",41),_("visibleChange",function(c){return p(i),C(e.deleteGroupPopup,c)||(e.deleteGroupPopup=c),u(c)}),f("onHidden",function(){return p(i),u(e.closeDeletePopup())}),a(58,"div",36)(59,"h2"),h(60,"Confirmation"),s()(),a(61,"div",37)(62,"p"),h(63,"Are you sure you want to delete group?"),s()(),a(64,"div",38)(65,"dx-button",42),f("onClick",function(){return p(i),u(e.closeDeletePopup())}),s(),a(66,"dx-button",40),f("onClick",function(){return p(i),u(e.onClickDeleteGroupRule())}),s()()(),a(67,"dx-popup",41),_("visibleChange",function(c){return p(i),C(e.deleteGroupItemPopup,
87c)||(e.deleteGroupItemPopup=c),u(c)}),f("onHidden",function(){return p(i),u(e.closeDeleteItemPopup())}),a(68,"div",36)(69,"h2"),h(70,"Confirmation"),s()(),a(71,"div",37)(72,"p"),h(73,"Are you sure you want to delete group criteria?"),s()(),a(74,"div",38)(75,"dx-button",42),f("onClick",function(){return p(i),u(e.closeDeleteItemPopup())}),s(),a(76,"dx-button",40),f("onClick",function(){return p(i),u(e.onClickDeleteGroupItemRule())}),s()()(),a(77,"div",43)(78,"div",44)(79,"div",45)(80,"h2",46),h(81,"Preview Rule Configuration"),s(),a(82,"a",47),f("click",function(){return p(i),u(e.PreviewRuleClickClose())}),A(),a(83,"svg",48),b(84,"path",49),s()()(),G(),a(85,"div",50)(86,"dx-scroll-view",15),b(87,"app-preview-rule-configuration",51),s()()()()}n&2&&(o(7),O("",e.pageHeaderTitle," List"),o(4),R(e.pageHeaderTitle),o(),l("ngIf",e.listName),o(5),l("formData",e.formData),o(5),l("ngIf",e.listModel),o(2),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","ListName")),o(3),l("labelMode",e.labelMode)("items",e.listReturnTypeDataSource)("disabled",e.isEdit)("inputAttr",I(49,qr)),x("value",e.listReturnTypeValue),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","ListCategoryId")&&e.listReturnTypeValue!=="Group"),o(2),l("labelMode",e.labelMode)("items",e.ListStructure)("disabled",e.isEdit),x("value",e.listStructureValue),l("inputAttr",I(50,qr)),o(6),l("items",e.listTypeModelDataSource)("disabled",e.isEdit),x("value",e.listTypeId),o(),l("ngIf",e.CheckTooltipVisibleByPageCategory("ListInformation","ListTypeId")),o(),l("ngIf",e.SelectedListType==1),o(),l("ngIf",e.SelectedListType==2),o(),l("ngIf",e.SelectedListType==3),o(3),q("text",e.saveButtonText),l("disabled",e.listModel==null?null:e.listModel.isDefault),o(),q("text",e.saveAndViewButtonText),l("disabled",e.listModel==null?null:e.listModel.isDefault),o(),l("ngIf",e.staticListPopup),o(),l("ngIf",e.CompoundListPopup),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(51,Ur)),o(10),l("showTitle",!1),x("visible",e.deleteGroupPopup),l("width",480)("wrapperAttr",I(52,Ur)),o(7),Qi("flex-buttons",!1),o(3),l("showTitle",!1),x("visible",e.deleteGroupItemPopup),l("width",480)("wrapperAttr",I(53,hd)),o(7),Qi("flex-buttons",!1),o(3),l("ngClass",e.FilterActive?"show":"hide"),o(10),l("eligibilityRuleGroups",e.previewEligibilityRuleGroups))},dependencies:[bt,Ai,br,Nr,wr,ko,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,_n,me,ge,he,N,Tn,Un,Fi,Ot,Bt,ji,Nt,Wi,zi,fe,Hn,Ce,_e,ye,xe,ve,jn,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,Eo,We,Ne,qe,Ue,zt,He,je,Dn,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,dr,pt,mt,Ut,gt,ht,Ht,ut,Sn,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color);font:var(--h1-font)!important}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem}.space-between[_ngcontent-%COMP%]{justify-content:space-between;align-items:center!important}.manage-content-outer[_ngcontent-%COMP%] .scroll-outer[_ngcontent-%COMP%]{width:calc(100% + 3rem)}.manage-content-outer[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{padding-right:3rem}.manage-content-outer[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:2.5rem 3rem;margin-bottom:0;min-height:calc(100vh - 282px)}.manage-content-outer[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:1.5rem}.manage-content-outer[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{padding-top:2rem}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:320px;margin-bottom:2rem;margin-right:2rem}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]:last-child{margin-right:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin-top:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field.entity-box[_ngcontent-%COMP%]{max-width:215px}.manage-content-outer[_ngcontent-%COMP%] .dx-field.company-search[_ngcontent-%COMP%]{max-width:425px;margin-bottom:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field.company-search[_ngcontent-%COMP%] .dx-texteditor-buttons-container[_ngcontent-%COMP%]{display:none!important}.empty-card[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:2rem}.below-contacts[_ngcontent-%COMP%]{width:100%;color:var(--primary-color);border-top:1px solid var(--border-lighter);padding:1.5rem 0 0;margin:0 0 1.5rem}.below-contacts__right[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{margin-right:4rem;position:relative;color:var(--delete-bg-color)!important;font:var(--font-weight-600) var(--font-14) var(--font-family);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.8rem;height:26px}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:28px;height:28px}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;right:-2rem;background-color:var(--border-lighter);height:26px;width:1px}.select-category-block[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--border-lighter);padding-bottom:.5rem;margin-bottom:2rem}.flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap}.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{margin-bottom:1rem!important}.static-list-block[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap}.static-list-block__top[_ngcontent-%COMP%]{display:block;padding:0;margin:0 0 .8rem;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.static-list-block[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%;margin-bottom:1.8rem}.table-outer[_ngcontent-%COMP%] .dx-datagrid[_ngcontent-%COMP%]{padding:0!important}.upload-file-outer[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:2.4rem}.upload-file-outer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:0 2rem}.upload-file-outer[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-500) var(--font-14) var(--font-family)}.upload-file-outer[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.upload-file-outer[_ngcontent-%COMP%] .notes[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-14) var(--font-family);padding-top:2rem}.upload-file-outer[_ngcontent-%COMP%] .notes[_ngcontent-%COMP%]:last-child{padding-top:1rem}.dynamic-list-outer[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%]{width:100%;max-width:70%;margin:0;padding:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .dynamic-list-eligibility[_ngcontent-%COMP%]{max-width:400px;margin:0}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .dynamic-list-eligibility[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin-top:0}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%]{margin-left:2rem;font:var(--font-weight-600) var(--font-14) var(--font-family);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.set-criteria-outer[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:1.5rem}.set-criteria-outer[_ngcontent-%COMP%] .card-header__title[_ngcontent-%COMP%]{margin-bottom:.5rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%]{width:100%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%]{width:100%;padding:2rem;border-radius:5px;position:relative;background-repeat:no-repeat;background-position:0 0,0 0,100% 0,0 100%;background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(90deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(180deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(270deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px);border-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{max-width:1000px;position:relative;padding-left:38px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width__if[_ngcontent-%COMP%]{position:absolute;left:0;top:12px;padding:.4rem 1rem;border-radius:5px;color:var(--white-color);font:var(--font-weight-400) var(--font-12) var(--font-family);background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:46%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .dx-field.width-320[_ngcontent-%COMP%]{width:320px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;padding-top:1.2rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.8}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{justify-content:flex-start}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{margin-right:2rem;margin-bottom:2rem!important}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field.condition-dx-field[_ngcontent-%COMP%]{max-width:215px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]:last-child{margin-right:0rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or[_ngcontent-%COMP%]{padding-left:38px;position:relative;margin-top:-18px;padding-top:1.3rem;padding-bottom:1.5rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--white-color)!important;background-color:var(--dark-gray-color);font:var(--font-weight-400) var(--font-12) var(--font-family);padding:.5rem 1rem;text-transform:uppercase}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]:before{content:"";position:absolute;
87left:12px;top:-25px;height:calc(100% + 50px);width:1px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:25px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__first[_ngcontent-%COMP%]{position:absolute;top:-25px;left:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__first[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:20px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__last[_ngcontent-%COMP%]{position:absolute;bottom:-25px;left:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__last[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:20px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;margin-top:1rem;max-width:100%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem;fill:var(--white-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--white-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{width:26px;height:26px;position:absolute;top:12px;right:12px;background-color:var(--delete-hover-color);border-radius:100px;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:hover{opacity:.9}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%]{width:100%;padding-left:1rem;padding-right:1rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new[_ngcontent-%COMP%]{background-color:var(--light-gray-color);position:relative;padding:1rem 1rem 1rem 30px;margin-bottom:2.8rem;margin-top:.8rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--white-color)!important;background-color:var(--dark-gray-color);font:var(--font-weight-400) var(--font-12) var(--font-family);padding:.5rem 1rem;text-transform:uppercase}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]:before{content:"";position:absolute;
87left:0;top:0;height:calc(100% + 0px);width:1px;background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;top:50%;height:1px;width:20px;background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .disabled-div[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .disabled-link[_ngcontent-%COMP%]{color:gray;pointer-events:none;text-decoration:none;cursor:not-allowed}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;padding-top:2rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem;transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem;transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]{color:var(--primary-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--secondary-color)}.delete-singel-rule[_ngcontent-%COMP%]{position:absolute;right:-25px;top:0}.delete-singel-rule[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{width:24px;height:24px}.table-block[_ngcontent-%COMP%]{padding-top:1rem}.title-block-box[_ngcontent-%COMP%]{width:100%;display:inline-block;margin-bottom:2rem;border-bottom:1px solid var(--border-lighter);padding-bottom:2rem}.title-block-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:600px;margin-bottom:0}.tooltip-wrapper[_ngcontent-%COMP%] .tooltip-info[_ngcontent-%COMP%]{margin-top:-9px}.date-picker-criteria[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.relative-date-checkbox[_ngcontent-%COMP%]{min-width:130px;margin-left:15px!important;margin-top:15px!important}']})}}return r})();wn();var Hc=()=>[15,30,50,100];function jc(r,g){if(r&1){let t=y();a(0,"a",30),f("click",function(){let e=p(t).$implicit,i=m();return u(i.RedirectToContactForStaticListView(e.data.contactID))}),h(1),s()}if(r&2){let t=g.$implicit;q("title",t.data.fullName),o(),O(" ",t.data.fullName," ")}}function zc(r,g){if(r&1&&b(0,"dxi-column",31),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Email"))("minWidth",200)}}function Zc(r,g){if(r&1&&b(0,"dxi-column",32),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Phone"))("minWidth",200)}}/localhost/.test(document.location.host)||void 0;var zr=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=n,this.activatedRoute=e,this.listService=i,this.permissionService=d,this.authenticationService=c,this.propertyService=v,this.formData={},this.unsubscriber=new Ct,this.progress=new Ct,this.stylingMode="outlined",this.labelMode="floating",this.isPopoverVisible=!1,this.isEdit=!1,this.isView=!1,this.mode="",this.viewMode=!1,this.pageHeaderTitle="Create",this.isPageLoad=!1,this.listId=0,this.listModel=new Zi,this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","requireGroupCount","sort","filter","totalSummary","group","groupSummary","archiveStatus","ActiveStatus","LockedStatus","userRole"],this.searchText="",this.showPageSizeSelector=!1,this.isPagerVisible=!1,this.showPageNavigation=!1,this.listName="",this.ListCategory="",this.ListType="",this.properties=[],this.isPermissionStaticListView=!1,this.GetPermissions(),this.eligibilityRules=new kt({key:"ID",data:t.getEligibility()}),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(V=>{this.mode=V.mode,this.listId=V.id,this.mode=="view"?(this.isView=!0,this.viewMode=!0,this.pageHeaderTitle="View",this.getListById()):this.mode=="edit"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="Edit",this.getListById()):(this.isEdit=!1,this.isView=!1,this.viewMode=!1,this.pageHeaderTitle="Create")}
87),this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.actionMenu=[{value:"EditList",text:"Edit List",icon:"edit",visible:!0,onClick:V=>{this.router.navigate(["admin/client/setting/list-management/create-list/1"])}},{value:"MarkasInactive",text:"Mark as Inactive",icon:"inactive",visible:!0,onClick:V=>{}},{value:"DeleteList",text:"Delete List",icon:"delete",visible:!0,onClick:V=>{this.deletePopup=!0}},{value:"ManageList",text:"View List",icon:"view",visible:!0,onClick:V=>{this.router.navigate(["admin/client/setting/list-management/view-static/"+this.listId+"/view"])}}],this.BindMembershipProperties()}GetPermissions(){this.isPermissionStaticListView=this.permissionService.getPermission(ei.ManageList.toString(),ti.View.toString()),this.isPermissionStaticListView||this.authenticationService.notAuthorized()}ngOnInit(){this.getMainListById(),this.getListById()}getMainListById(){this.listId<0||this.listService.GetMainCompoundListById(this.listId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.listName=t.responseModel[0].listName,this.ListCategory=t.responseModel[0].categoryName,this.ListType=t.responseModel[0].listTypeName,this.listReturnTypeValue=t.responseModel[0].listReturnType,t.responseModel.listId>0})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}getListById(){this.listId<0||this.GetStaticDataSource(this.listId)}GetStaticDataSource(t){let n=this,e=d=>d!=null&&d!=="";n.staticListDataSource=new ki({key:"contactID",load(d){return B(this,null,function*(){let c=new Si;t!=0?c=c.set("ListId",t):c=c.set("ListId",0),n.searchText!=""?c=c.set("searchText",n.searchText):c=c.set("searchText",""),n.dataGridParamNames.forEach(v=>{e(d[v])?v==="filter"?c=c.set(v,JSON.stringify(d[v])):v==="archiveStatus"?c=c.set(v,n.isArchive):c=c.set(v,JSON.stringify(d[v])):v==="sort"?c=c.set(v,'[{"selector":"listName","desc":false}]'):v==="take"?c=c.set(v,20):v==="skip"?c=c.set(v,0):v==="archiveStatus"?c=c.set(v,n.isArchive):c=c.set(v,"")}),n.loading=!0;try{let v=yield wi(n.listService.GetStaticListByListId(c));return n.loading=!1,{data:v.responseModel.results,totalCount:v.responseModel.totalRecords,summary:v.summary,groupCount:v.groupCount}}catch{throw new Error("Data Loading Error")}})}})}onItemClick(t){}closeDeletePopup(){this.deletePopup=!1}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}MovetoEditPage(){let t="admin/client/setting/list-management/manage/"+this.listId+"/edit/view";this.router.navigate([t])}onSelectionListChanged(t){}ExportAllRenwalInvoices(){let t=this;t.loading=!0;let n=i=>i!=null&&i!=="",e=new Si;this.listId!=0?e=e.set("ListId",this.listId):e=e.set("ListId",0),t.searchText!=""?e=e.set("searchText",t.searchText):e=e.set("searchText",""),t.dataGridParamNames.forEach(i=>{i==="skip"?e=e.set(i,0):i==="take"?e=e.set(i,100):i==="sort"?e=e.set(i,'[{"selector":"contactMembershipId","desc":false}]'):e=e.set(i,"")});try{t.listService.ExportStaticList(e).pipe(w(t.unsubscriber),P(()=>t.loading=!1)).subscribe(i=>{let d=new Blob([i],{type:i.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),c.download="StaticListContacts.csv",document.body.appendChild(c),c.target="_blank",c.href=URL.createObjectURL(d),document.body.removeChild(c),c.click(),t.loading=!1},i=>{t.showErrorMessage(t.getErrorMessage(i))})}catch(i){throw t.loading=!1,console.error("Data loading error:",i),new Error("Data loading error")}}RedirectToContactForStaticListView(t){let n="";this.listReturnTypeValue=="Contact"?n="contacts":this.listReturnTypeValue=="Company"?n="companies":this.listReturnTypeValue=="Group"&&(n="groups");let e=this.router.serializeUrl(this.router.createUrlTree([`admin/client/${n}/${t}/view`]));window.open(e,"_blank")}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0?this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0:!1}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}onOptionChanged(t){let n=!1;if(n=t&&(t.name=="focusedRowIndex"||t.name=="focusedRowKey"),!n&&this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}getTitleCaption(){return this.listReturnTypeValue=="Contact"?"Contact":this.listReturnTypeValue=="Company"?"Company Name":this.listReturnTypeValue=="Group"?"Group Name":"Name"}getSearchPlaceholder(){return this.listReturnTypeValue=="Contact"?"Search by Contact or Email":this.listReturnTypeValue=="Company"?"Search by Company Name":this.listReturnTypeValue=="Group"?"Search by Group Name":"Search"}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(Li),k(ln),k(ci),k(li),k(Kt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-view-static-list"]],viewQuery:function(n,e){if(n&1&&U(N,7),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([Di]),xt,Q],decls:41,vars:28,consts:[[1,"view-wrapper","benefits-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"breadcrumbs__link"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"back-icon"],["width","20","height","13","viewBox","0 0 20 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19 12.4421C16.7981 10.334 14.8429 9.13788 13.1338 8.85341C11.4252 8.56929 9.7984 8.52624 8.2531 8.72459V12.5L1 6.33941L8.2531 0.5V4.08835C11.1101 4.106 13.5388 4.91 15.5395 6.5C17.5398 8.09 18.6935 10.0707 19 12.4421Z","stroke","#5C5C5C","stroke-linejoin","round"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"flex"],["href","javascript:void(0)",1,"btn","btn--secondary",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 10.1765V11.5882C1 11.9627 1.15804 12.3217 1.43934 12.5865C1.72064 12.8513 2.10218 13 2.5 13H11.5C11.8978 13 12.2794 12.8513 12.5607 12.5865C12.842 12.3217 13 11.9627 13 11.5882V10.1765M3.25 5.94118L7 9.47059M7 9.47059L10.75 5.94118M7 9.47059V1","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0)",1,"btn","btn--preview",3,"click"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0F0F0F"],[1,"manage-content-outer"],[1,"table-block","list-view-outer"],["id","gridContainer","noDataText","No Records foun
87d.",1,"table-outer","toolbar-border",3,"onOptionChanged","onContentReady","onSelectionChanged","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowIndex","allowColumnResizing","columnHidingEnabled"],[3,"groupPaging"],[3,"enabled"],[3,"textChange","visible","placeholder","text"],["name","searchPanel","location","before","locateInMenu","auto"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","fullName","cellTemplate","FullNameTemplate",3,"caption","minWidth"],["class","client-name","href","javascript:void(0);",3,"title","click",4,"dxTemplate","dxTemplateOf"],["dataField","email",3,"caption","minWidth",4,"ngIf"],["dataField","phone",3,"caption","minWidth",4,"ngIf"],["href","javascript:void(0);",1,"client-name",3,"click","title"],["dataField","email",3,"caption","minWidth"],["dataField","phone",3,"caption","minWidth"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Manage Lists"),s()(),a(6,"li",3),h(7,"View Static List"),s()(),a(8,"a",5),A(),a(9,"svg",6),b(10,"path",7),s(),h(11," Back "),s()(),G(),a(12,"div",8)(13,"div",9)(14,"h1",10),h(15),a(16,"span"),h(17),s()(),a(18,"div",11)(19,"a",12),f("click",function(){return e.ExportAllRenwalInvoices()}),A(),a(20,"svg",13),b(21,"path",14),s(),h(22," Export "),s(),G(),a(23,"a",15),f("click",function(){return e.MovetoEditPage()}
87),A(),a(24,"svg",13),b(25,"path",16),s(),h(26," Edit "),s()()()(),G(),a(27,"div",17)(28,"div",18)(29,"dx-data-grid",19),f("onOptionChanged",function(d){return e.onOptionChanged(d)})("onContentReady",function(d){return e.getTotalCount(d)})("onSelectionChanged",function(d){return e.onSelectionListChanged(d)}),b(30,"dxo-remote-operations",20)(31,"dxo-column-fixing",21),a(32,"dxo-search-panel",22),_("textChange",function(d){return C(e.searchText,d)||(e.searchText=d),d}),s(),a(33,"dxo-toolbar"),b(34,"dxi-item",23),s(),b(35,"dxo-paging",24)(36,"dxo-pager",25),a(37,"dxi-column",26),S(38,jc,2,2,"a",27),s(),S(39,zc,1,2,"dxi-column",28)(40,Zc,1,2,"dxi-column",29),s()()()()),n&2&&(o(15),Cn("",e.listName," - ",e.ListCategory," "),o(2),O("(",e.ListType,")"),o(12),l("dataSource",e.staticListDataSource)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0)("focusedRowIndex",0)("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("groupPaging",!0),o(),l("enabled",!0),o(),l("visible",!0)("placeholder",e.getSearchPlaceholder()),x("text",e.searchText),o(3),l("pageSize",15),o(),l("visible",e.isPagerVisible)("showPageSizeSelector",e.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(27,Hc))("showNavigationButtons",e.showPageNavigation),o(),l("caption",e.getTitleCaption())("minWidth",300),o(),l("dxTemplateOf","FullNameTemplate"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Email")&&e.listReturnTypeValue==="Contact"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Phone")&&e.listReturnTypeValue==="Contact"))},dependencies:[bt,Ai,vt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,N,Fi,Ot,ji,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.8rem}.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--h1-font)!important;color:var(--secondary-color)}"]})}}return r})();wn();var Qc=()=>[15,30,50,100];function Yc(r,g){if(r&1&&(a(0,"a",45),A(),a(1,"svg",13),b(2,"path",46),s(),h(3," Edit "),s()),r&2){let t=m();an("routerLink","/admin/client/setting/list-management/manage/",t.listId,"/edit/view")}}function Kc(r,g){if(r&1){let t=y();a(0,"a",47),f("click",function(){let e=p(t).$implicit,i=m();return u(i.RedirectToEntityView(e.data.contactId))}),h(1),s()}if(r&2){let t=g.$implicit;q("title",t.data.fullName),o(),O(" ",t.data.fullName," ")}}function Jc(r,g){if(r&1&&b(0,"dxi-column",48),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Email"))("minWidth",200)}}function Xc(r,g){if(r&1&&b(0,"dxi-column",49),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Phone"))("minWidth",200)}}/localhost/.test(document.location.host)||void 0;var Zr=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V,E){super(),this.router=n,this.listService=e,this.activatedRoute=i,this.eligibilityService=d,this.propertyService=c,this.webStorageService=v,this.permissionService=V,this.authenticationService=E,this.unsubscriber=new Ct,this.progress=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.isPopoverVisible=!1,this.eligibilityRuleModel=new Pn,this.previewEligibilityRuleGroups=[],this.entitiesModel=[],this.allProperties=[],this.groupedEntites=[],this.isPagerVisible=!1,this.showPageSizeSelector=!1,this.showPageNavigation=!1,this.searchText="",this.properties=[],this.ListCategory="",this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","sort","filter","totalSummary","listId","searchText"],this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"]),this.GetPermissions(),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(T=>{this.listId=T.id}),this.listId>
870&&this.getListById(),this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.eligibilityRules=new kt({key:"ID",data:t.getEligibility()}),this.Category=["All","Category 1","Category 2","Category 3"],this.ListType=["All","List Type 1","List Type 2","List Type 3"],this.Status=["All","Active","Inactive"],this.actionMenu=[{value:"EditList",text:"Edit List",icon:"edit",visible:!0,onClick:T=>{this.router.navigate(["admin/client/setting/list-management/create-list/1"])}},{value:"MarkasInactive",text:"Mark as Inactive",icon:"inactive",visible:!0,onClick:T=>{}},{value:"DeleteList",text:"Delete List",icon:"delete",visible:!0,onClick:T=>{this.deletePopup=!0}}],this.BindMembershipProperties()}onItemClick(t){}getListById(){this.listId<0||this.listService.GetListById(this.listId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{let n=t.responseModel;this.listModel=t.responseModel,this.listCategoryId=n.listCategoryId,this.listTypeId=n.listTypeId,this.listName=n.listName,this.listReturnTypeValue=n.listReturnType,this.eligibilityRuleId=n?.listDynamicContacts?.eligibilityRuleId,this.getDataSource(),this.listTypeId==2&&this.loadDataForDynamicList()})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}getDataSource(){let t=this,n=i=>i!=null&&i!=="";this.contactDataSource=new ki({key:"contactId",load(i){return B(this,null,function*(){let d=new Si,c=!0;t.dataGridParamNames.forEach(v=>{n(i[v])?v==="filter"?(d=d.set(v,JSON.stringify(i[v])),i[v]?.length==3&&(d=d.set("searchText",i[v][2]))):d=d.set(v,JSON.stringify(i[v])):t.listId>0?v==="listId"&&(d=d.set(v,t.listId)):v==="sort"?d=d.set(v,'[{"selector":"fullName","desc":false}]'):d=d.set(v,"")});try{let v=yield wi(t.listService.GetDynamicListPagedContactsById(d));return t.totalRecordCount=v.responseModel!=null?v.responseModel.totalRecords:0,{data:v.responseModel.results,totalCount:v.responseModel.totalRecords}}catch{throw new Error("Data Loading Error")}})}})}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}loadDataForDynamicList(){return B(this,null,function*(){Yt([this.propertyService.GetAllTenantEntities(),this.eligibilityService.GetAllPropertyForEligibilityRules()]).pipe(Qt(([t,n])=>({entitiesModel:t,allProperties:n}))).subscribe(t=>{Object.keys(t).forEach(n=>this[n]=t[n].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(e=>e.entityType))].forEach(e=>{let i=new ui;i.category=e=="Entity"?"":e,i.entities=this.entitiesModel.filter(d=>d.entityType==e),this.groupedEntites.push(i)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(n){return n.key=n.category,n.items=n.entities,n}}),this.GetEligibilityInfoById(this.eligibilityRuleId)})})}closeDeletePopup(){this.deletePopup=!1}GetEligibilityInfoById(t){return B(this,null,function*(){if(!t)return;let n=this;this.loading=!0,this.eligibilityService.GetEligibilityInfoById(t).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{if(this.loading=!1,e&&e.isSuccess){if(e.responseModel!=null&&e.responseModel!=null){this.eligibilityRuleModel=co,this.eligibilityRuleModel=new Pn,this.eligibilityRuleModel.isCopyFromExisting=!1,this.eligibilityRuleModel.isActive=!0,this.eligibilityRuleModel.eligibilityRuleGroups=[];let i=e.responseModel;if(this.eligibilityRuleModel.isCopyFromExisting=!1,this.eligibilityRuleModel.productEligibilityRuleReferenceId=i?.productEligibilityRuleReferenceId,this.eligibilityRuleModel.ruleDescription=i.ruleDescription,this.eligibilityRuleModel.productCategoryId=i?.productCategoryId,this.eligibilityRuleModel.eligibilityRuleGroups=[],i.eligibilityRuleGroups!=null&&i.eligibilityRuleGroups.length>0){let c=1;i.eligibilityRuleGroups.forEach(v=>{let V=new po;V.rowno=c,V.eligibilityRuleGroupId=0,V.eligibilityRuleId=0,V.logicalCondition=v.logicalCondition,V.isActive=!0;let E=new Array,T=1;
87v.eligibilityRuleGroupItems.forEach(D=>{let W=new Mn;W.rowno=T,W.eligibilityRuleGroupItemId=0,W.eligibilityRuleGroupId=0,W.entities=n.entitiesModel,W.groupedDataSource=n.fromPregroupedData,W.groupedDataSource.load(),W.entityID=D.entityID;let Vt=n.entitiesModel.find(jt=>jt.entityID==D.entityID).name;W.properties=Object.assign([],this.allProperties.filter(jt=>jt.entityName==Vt)),W.entityName=Vt,W.propertyReferenceId=D.propertyReferenceId,W.propertyName=D.propertyName,W.isDemographicsType=D.isDemographicsType,W.controlUniqId=W.properties.find(jt=>jt.controlId==D.propertyReferenceId&&jt.isDemographicsType==D.isDemographicsType).controlUniqId,W.logicalCondition=D.logicalCondition,W.isActive=!0;let ii=new Array,mi=1;if(D.itemCriterias.length==0){let jt=W.properties.find(Ji=>Ji.controlId==W.propertyReferenceId&&Ji.isDemographicsType==W.isDemographicsType),fi=new cn;fi.rowno=mi,fi.isActive=!0,jt!=null&&jt!=null?(fi.controlType=jt.controlType,fi.options=jt.options):(fi.controlType="TextBox",fi.options=[]),fi.logicalCondition="",ii.push(fi),mi=mi+1}else D.itemCriterias.forEach(jt=>{let fi=new cn;fi.rowno=mi;let Ji=W.properties.find(io=>io.controlId==W.propertyReferenceId&&io.isDemographicsType==W.isDemographicsType);fi.eligibilityRuleGroupPropertyItemCriteriaId=0,fi.eligibilityRuleGroupItemId=0,Ji&&(fi.controlType=Ji.controlType,fi.options=Ji.options),fi.condition=jt.condition,fi.controlType=="Numberbox"?(fi.assignedNumerValue=Number(jt.assignedValue),fi.assignedValue=jt.assignedValue):(fi.controlType=="Datepicker"&&(fi.assignedDateValue=jt.assignedValue?jt.assignedValue:"2024-04-24"),fi.assignedValue=jt.assignedValue),fi.logicalCondition=jt.logicalCondition,fi.isActive=!0,ii.push(fi),mi=mi+1});W.itemCriterias=ii,E.push(W),T=T+1}),V.eligibilityRuleGroupItems=E,this.eligibilityRuleModel.eligibilityRuleGroups.push(V),c=c+1})}let d=this.eligibilityRuleModel.eligibilityRuleGroups;this.previewEligibilityRuleGroups=Object.assign([],d),this.previewEligibilityRuleGroups.forEach(c=>{c.eligibilityRuleGroupItems.forEach(v=>{v.entityName=this.entitiesModel.find(V=>V.entityID==v.entityID).name,v.propertyName=this.allProperties.find(V=>V.controlId==v.propertyReferenceId&&V.isDemographicsType==v.isDemographicsType).controlLabel})})}}else this.loading=!1,this.showErrorMessage(e.message)})},e=>{this.loading=!1,this.showErrorMessage(e.message)})})}PreviewCriteriaClick(){let t=this.eligibilityRuleModel.eligibilityRuleGroups;this.previewEligibilityRuleGroups=Object.assign([],t),this.previewEligibilityRuleGroups.forEach(n=>{n.eligibilityRuleGroupItems.forEach(e=>{this.entitiesModel.find(i=>i.entityID==e.entityID)?e.entityName=this.entitiesModel.find(i=>i.entityID==e.entityID).name:e.entityName="",this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType)?e.propertyName=this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType).controlLabel:e.propertyName=""})}),this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}PreviewCriteriaClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetPermissions(){this.isPermissionListView=this.permissionService.getPermission(ei.ManageList.toString(),ti.View.toString()),this.isPermissionListView||this.authenticationService.notAuthorized()}RedirectToEntityView(t){let n="";this.listReturnTypeValue=="Contact"?n="contacts":this.listReturnTypeValue=="Company"?n="companies":this.listReturnTypeValue=="Group"&&(n="groups");let e=this.router.serializeUrl(this.router.createUrlTree([`admin/client/${n}/${t}/view`]));window.open(e,"_blank")}ExportPagedDynamicListContacts(){let t=this;t.loading=!0;let n=i=>i!=null&&i!=="",e=new Si;this.listId!=0?e=e.set("ListId",this.listId):e=e.set("ListId",0),t.dataGridParamNames.forEach(i=>{i==="skip"?e=e.set(i,0):i==="filter"?e=e.set("searchText",t.searchText):i==="take"?e=e.set(i,100):i==="sort"?e=e.set(i,'[{"selector":"contactId","desc":false}]'):e=e.set(i,"")});try{t.listService.ExportDynamicContacts(e).pipe(w(t.unsubscriber),P(()=>t.loading=!1)).subscribe(i=>{let d=new Blob([i],{type:i.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),c.download="DynamicListContacts.csv",document.body.appendChild(c),c.target="_blank",c.href=URL.createObjectURL(d),document.body.removeChild(c),c.click(),t.loading=!1},i=>{t.showErrorMessage(t.getErrorMessage(i))})}catch(i){throw t.loading=!1,console.error("Data loading error:",i),new Error("Data loading error")}}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0?this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0:!1}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}onOptionChanged(t){let n=!1;if(n=t&&(t.name=="focusedRowIndex"||t.name=="focusedRowKey"),!n&&this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}getTitleCaption(){return this.listReturnTypeValue=="Contact"?"Contact":this.listReturnTypeValue=="Company"?"Company Name":this.listReturnTypeValue=="Group"?"Group Name":"Name"}getSearchPlaceholder(){return this.listReturnTypeValue=="Contact"?"Search by Contact or Email":this.listReturnTypeValue=="Company"?"Search by Company Name":this.listReturnTypeValue=="Group"?"Search by Group Name":"Search"}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(ln),k(Li),k(In),k(Kt),k(yt),k(ci),k(li))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-view-dynamic-list"]],viewQuery:function(n,e){if(n&1&&U(N,5),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([Di]),xt,Q],decls:56,vars:29,consts:[[1,"view-wrapper","benefits-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"breadcrumbs__link"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"back-icon"],["width","20","height","13","viewBox","0 0 20 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19 12.4421C16.7981 10.334 14.8429 9.13788 13.1338 8.85341C11.4252 8.56929 9.7984 8.52624 8.2531 8.72459V12.5L1 6.33941L8.2531 0.5V4.08835C11.1101 4.106 13.5388 4.91 15.5395 6.5C17.5398 8.09 18.6935 10.0707 19 12.4421Z","stroke","#5C5C5C","stroke-linejoin","round"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"flex"],["href","javascript:void(0)",1,"btn","btn--secondary",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 10.1765V11.5882C1 11.9627 1.15804 12.3217 1.43934 12.5865C1.72064 12.8513 2.10218 13 2.5 13H11.5C11.8978 13 12.2794 12.8513 12.5607 12.5865C12.842 12.3217 13 11.9627 13 11.5882V10.1765M3.25 5.94118L7 9.47059M7 9.47059L10.75 5.94118M7 9.47059V1","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0)","class","btn btn--preview",3,"routerLink",4,"ngIf"],[1,"manage-content-outer"],[1,"table-block","list-view-outer"],["id","gridContainer","noDataText","No Records foun
87d.",1,"table-outer","toolbar-border",3,"focusedRowKeyChange","onContentReady","onOptionChanged","dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","focusedRowKey","allowColumnResizing","columnHidingEnabled"],[3,"groupPaging"],[3,"enabled"],[3,"textChange","visible","placeholder","text"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["name","searchPanel","location","before","locateInMenu","auto"],["location","after","locateInMenu","auto",1,"dx-toolbar-after-item"],[1,"filters-block"],["href","javascript:void(0)",1,"btn","btn--cancel",3,"click"],["width","20","height","15","viewBox","0 0 20 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5C4.6 -0.5 15.4 -0.5 19 7.5","stroke","#024079","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M10 11.5C9.60603 11.5 9.21593 11.4224 8.85195 11.2716C8.48797 11.1209 8.15726 10.8999 7.87868 10.6213C7.6001 10.3427 7.37913 10.012 7.22836 9.64805C7.0776 9.28407 7 8.89397 7 8.5C7 8.10603 7.0776 7.71593 7.22836 7.35195C7.37913 6.98797 7.6001 6.65726 7.87868 6.37868C8.15726 6.1001 8.48797 5.87913 8.85195 5.72836C9.21593 5.5776 9.60603 5.5 10 5.5C10.7956 5.5 11.5587 5.81607 12.1213 6.37868C12.6839 6.94129 13 7.70435 13 8.5C13 9.29565 12.6839 10.0587 12.1213 10.6213C11.5587 11.1839 10.7956 11.5 10 11.5Z","stroke","#024079","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["dataField","fullName","cellTemplate","FullNameTemplate",3,"caption","minWidth"],["class","client-name","href","javascript:void(0);",3,"title","click",4,"dxTemplate","dxTemplateOf"],["dataField","email",3,"caption","minWidth",4,"ngIf"],["dataField","phone",3,"caption","minWidth",4,"ngIf"],[1,"sidebar-outer","preview-rule",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sub-title"],["href","javascript:void(0);",1,"close-sidebar",3,"click"],["width","17","height","17","viewBox","0 0 17 17","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 2L2 15M2 2L15 15","stroke","#5C5C5C","stroke-width","2.5","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__content"],[1,"scroll-outer"],[3,"eligibilityRuleGroups"],["href","javascript:void(0)",1,"btn","btn--preview",3,"routerLink"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0F0F0F"],["href","javascript:void(0);",1,"client-name",3,"click","title"],["dataField","email",3,"caption","minWidth"],["dataField","phone",3,"caption","minWidth"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Manage Lists"),s()(),a(6,"li",3),h(7,"View Active List"),s()(),a(8,"a",5),A(),a(9,"svg",6),b(10,"path",7),s(),h(11," Back "),s()(),G(),a(12,"div",8)(13,"div",9)(14,"h1",10),h(15),a(16,"span"),h(17,"(Active)"),s()(),a(18,"div",11)(19,"a",12),f("click",function(){return e.ExportPagedDynamicListContacts()}),A(),a(20,"svg",13),b(21,"path",14),s(),h(22," Export "),s(),S(23,Yc,4,2,"a",15),s()()(),G(),a(24,"div",16)(25,"div",17)(26,"dx-data-grid",18),_("focusedRowKeyChange",function(d){return C(e.contactId,d)||(e.contactId=d),d}),f("onContentReady",function(d){return e.getTotalCount(d)})("onOptionChanged",function(d){return e.onOptionChanged(d)}),b(27,"dxo-remote-operations",19)(28,"dxo-column-fixing",20),a(29,"dxo-search-panel",21),_("textChange",function(d){return C(e.searchText,d)||(e.searchText=d),d}),s(),b(30,"dxo-paging",22)(31,"dxo-pager",23),a(32,"dxo-toolbar"),b(33,"dxi-item",24),a(34,"dxi-item",25)(35,"div",26)(36,"a",27),f("click",function(){return e.PreviewCriteriaClick()}),A(),a(37,"svg",28),b(38,"path",29)(39,"path",30),s(),h(40," Preview Criteria "),s()()()(),G(),a(41,"dxi-column",31),S(42,Kc,2,2,"a",32),s(),S(43,Jc,1,2,"dxi-column",33)(44,Xc,1,2,"dxi-column",34),s()()()(),a(45,"div",35)(46,"div",36)(47,"div",37)(48,"h2",38),h(49,"Preview Configuration"),s(),a(50,"a",39),f("click",function(){return e.PreviewCriteriaClose()}),A(),a(51,"svg",40),b(52,"path",41),s()()(),G(),a(53,"div",42)(54,"dx-scroll-view",43),b(55,"app-preview-rule-configuration",44),s()()()()),n&2&&(o(15),O("",e.listName," "),o(8),l("ngIf",!(e.listModel!=null&&e.listModel.isDefault)),o(3),l("dataSource",e.contactDataSource)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0),x("focusedRowKey",e.contactId),l("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("groupPaging",!0),o(),l("enabled",!0),o(),l("visible",!0)("placeholder",e.getSearchPlaceholder()),x("text",e.searchText),o(),l("pageSize",15),o(),l("visible",e.isPagerVisible)("showPageSizeSelector",e.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(28,Qc))("showNavigationButtons",e.showPageNavigation),o(10),l("caption",e.getTitleCaption())("minWidth",300),o(),l("dxTemplateOf","FullNameTemplate"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Email")&&e.listReturnTypeValue==="Contact"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Phone")&&e.listReturnTypeValue==="Contact"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(10),l("eligibilityRuleGroups",e.previewEligibilityRuleGroups))},dependencies:[bt,Ai,ko,vt,Jt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,N,Fi,Ot,ji,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem;margin-left:0}.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--h1-font)!important;color:var(--secondary-color)}.filters-block[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:.35s ease}.filters-block[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--white-color)}.preview-rule[_ngcontent-%COMP%] .sidebar-outer__header[_ngcontent-%COMP%]{padding-bottom:2rem}"]})}}return r})();wn();var $c=()=>[15,30,50,100];function ep(r,g){if(r&1){let t=y();a(0,"a",45),f("click",function(){let e=p(t).$implicit,i=m();
87return u(i.RedirectToContactForListView(e.data.contactID))}),h(1),s()}if(r&2){let t=g.$implicit;q("title",t.data.fullName),o(),O(" ",t.data.fullName," ")}}function tp(r,g){if(r&1&&b(0,"dxi-column",46),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Email"))("minWidth",200)}}function ip(r,g){if(r&1&&b(0,"dxi-column",47),r&2){let t=m();l("caption",t.GetPropertyLabelbyPageCategory("ListInformation","Phone"))("minWidth",200)}}function np(r,g){r&1&&(a(0,"div",48),h(1," List 1 "),s())}function op(r,g){r&1&&(a(0,"div",48),h(1," Event "),s())}function ap(r,g){r&1&&(a(0,"div",48),h(1," Dynamic "),s())}/localhost/.test(document.location.host)||void 0;var Qr=(()=>{class r extends wt{constructor(t,n,e,i,d){super(),this.router=n,this.activatedRoute=e,this.listService=i,this.propertyService=d,this.unsubscriber=new Ct,this.progress=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.isPopoverVisible=!1,this.isView=!1,this.mode="",this.viewMode=!1,this.pageHeaderTitle="Create",this.isPageLoad=!1,this.listId=0,this.listModel=new Zi,this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","skip","take","requireTotalCount","requireGroupCount","sort","filter","totalSummary","group","groupSummary","archiveStatus","ActiveStatus","LockedStatus","userRole"],this.searchText="",this.showPageSizeSelector=!1,this.isPagerVisible=!1,this.showPageNavigation=!1,this.listName="",this.ListCategory="",this.ListType="",this.isEdit=!1,this.properties=[],this.allMode="allPages",this.checkBoxesMode=tn.current().startsWith("material")?"always":"onClick",this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(c=>{this.mode=c.mode,this.listId=c.id,this.mode=="view"?(this.isView=!0,this.viewMode=!0,this.pageHeaderTitle="View"):this.mode=="edit"?(this.isEdit=!0,this.viewMode=!1,this.pageHeaderTitle="Edit"):(this.isEdit=!1,this.isView=!1,this.viewMode=!1,this.pageHeaderTitle="Create")}),this.actionMenu=[{value:"EditList",text:"Edit List",icon:"edit",visible:!0,onClick:c=>{this.router.navigate(["admin/client/setting/list-management/create-list/1"])}},{value:"MarkasInactive",text:"Mark as Inactive",icon:"inactive",visible:!0,onClick:c=>{}},{value:"DeleteList",text:"Delete List",icon:"delete",visible:!0,onClick:c=>{this.deletePopup=!0}}],this.BindMembershipProperties()}ngOnInit(){this.getMainListById(),this.getListById()}getListById(){this.listId<0||this.GetStaticDataSource(this.listId)}getMainListById(){this.listId<0||this.listService.GetMainCompoundListById(this.listId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.listName=t.responseModel[0].listName,this.ListCategory=t.responseModel[0].categoryName,this.ListType=t.responseModel[0].listTypeName,this.listReturnTypeValue=t.responseModel[0].listReturnType,t.responseModel.listId>0})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetStaticDataSource(t){let n=this,e=d=>d!=null&&d!=="";n.compoundListDataSource=new ki({key:"contactID",load(d){return B(this,null,function*(){let c=new Si;t!=0?c=c.set("ListId",t):c=c.set("ListId",0),n.searchText!=""?c=c.set("searchText",n.searchText):c=c.set("searchText",""),n.dataGridParamNames.forEach(v=>{e(d[v])?v==="filter"?c=c.set(v,JSON.stringify(d[v])):v==="archiveStatus"?c=c.set(v,n.isArchive):c=c.set(v,JSON.stringify(d[v])):v==="sort"?c=c.set(v,'[{"selector":"listName","desc":false}]'):v==="take"?c=c.set(v,20):v==="skip"?c=c.set(v,0):v==="archiveStatus"?c=c.set(v,n.isArchive):c=c.set(v,"")}),n.loading=!0;try{let v=yield wi(n.listService.GetCompoundListByListId(c));n.loading=!1;let V=v.responseModel.results;return n.listReturnTypeValue!="Contact"&&(V=[...new Map(V.map(T=>[T.fullName,T])).values()]),{data:V,totalCount:v.responseModel.totalRecords,summary:v.summary,groupCount:v.groupCount}}catch{throw new Error("Data Loading Error")}})}})}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}MovetoEditPage(){let t="admin/client/setting/list-management/manage/"+this.listId+"/edit/view";this.router.navigate([t])}onSelectionListChanged(t){}onItemClick(t){}closeDeletePopup(){this.deletePopup=!1}PreviewCriteriaClick(){this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}PreviewCriteriaClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}ExportAllRenwalInvoices(){let t=this;t.loading=!0;let n=i=>i!=null&&i!=="",e=new Si;this.listId!=0?e=e.set("ListId",this.listId):e=e.set("ListId",0),t.searchText!=""?e=e.set("searchText",t.searchText):e=e.set("searchText",""),t.dataGridParamNames.forEac
87h(i=>{i==="skip"?e=e.set(i,0):i==="take"?e=e.set(i,100):i==="sort"?e=e.set(i,'[{"selector":"contactMembershipId","desc":false}]'):e=e.set(i,"")});try{t.listService.ExportCompoundList(e).pipe(w(t.unsubscriber),P(()=>t.loading=!1)).subscribe(i=>{let d=new Blob([i],{type:i.type}),c=document.createElement("a");c.setAttribute("style","display:none;"),c.download="CompoundListContacts.csv",document.body.appendChild(c),c.target="_blank",c.href=URL.createObjectURL(d),document.body.removeChild(c),c.click(),t.loading=!1},i=>{t.showErrorMessage(t.getErrorMessage(i))})}catch(i){throw t.loading=!1,console.error("Data loading error:",i),new Error("Data loading error")}}RedirectToContactForListView(t){let n="";this.listReturnTypeValue=="Contact"?n="contacts":this.listReturnTypeValue=="Company"?n="companies":this.listReturnTypeValue=="Group"&&(n="groups");let e=this.router.serializeUrl(this.router.createUrlTree([`admin/client/${n}/${t}/view`]));window.open(e,"_blank")}BindMembershipProperties(){this.properties=[],this.loading=!0,this.propertyService.GeAlltListPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.properties=t.responseModel.filter(n=>n.pageCategory.toLocaleLowerCase()==L.ListInformation.toLocaleLowerCase())):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetPropertyLabelbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}GetPropertyLabelForValidationbyPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].fieldCaption:""}CheckTooltipVisibleByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.formControlTooltip!=""&&i.isVisible==!0&&i.pageCategory==t).length>0}CheckPropertyRequiredByPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isRequired==!0&&i.pageCategory==t).length>0}GetPropertyTooltipByPageCategory(t,n){let e=this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t);return e.length>0?e[0].formControlTooltip:""}IsPropertyReadonlybyPageCategory(t,n){return this.properties.length>0?this.properties.filter(i=>i.sourceColumnName!=null&&i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.pageCategory==t&&i.isReadOnly==!1).length>0:!1}CheckPropertyVisiblebyPageCategory(t,n){return this.properties.filter(i=>i.sourceColumnName.toLocaleLowerCase()==n.toLocaleLowerCase()&&i.isVisible==!0&&i.pageCategory==t).length>0}onOptionChanged(t){let n=!1;if(n=t&&(t.name=="focusedRowIndex"||t.name=="focusedRowKey"),!n&&this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}getTitleCaption(){return this.listReturnTypeValue=="Contact"?"Contact":this.listReturnTypeValue=="Company"?"Company Name":this.listReturnTypeValue=="Group"?"Group Name":"Name"}getSearchPlaceholder(){return this.listReturnTypeValue=="Contact"?"Search by Contact or Email":this.listReturnTypeValue=="Company"?"Search by Company Name":this.listReturnTypeValue=="Group"?"Search by Group Name":"Search"}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(Li),k(ln),k(Kt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-view-compound-list"]],viewQuery:function(n,e){if(n&1&&U(N,5),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([Di]),xt,Q],decls:60,vars:41,consts:[[1,"view-wrapper","benefits-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"breadcrumbs__link"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/list",1,"back-icon"],["width","20","height","13","viewBox","0 0 20 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19 12.4421C16.7981 10.334 14.8429 9.13788 13.1338 8.85341C11.4252 8.56929 9.7984 8.52624 8.2531 8.72459V12.5L1 6.33941L8.2531 0.5V4.08835C11.1101 4.106 13.5388 4.91 15.5395 6.5C17.5398 8.09 18.6935 10.0707 19 12.4421Z","stroke","#5C5C5C","stroke-linejoin","round"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"flex"],["href","javascript:void(0)",1,"btn","btn--secondary",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 10.1765V11.5882C1 11.9627 1.15804 12.3217 1.43934 12.5865C1.72064 12.8513 2.10218 13 2.5 13H11.5C11.8978 13 12.2794 12.8513 12.5607 12.5865C12.842 12.3217 13 11.9627 13 11.5882V10.1765M3.25 5.94118L7 9.47059M7 9.47059L10.75 5.94118M7 9.47059V1","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0)",1,"btn","btn--preview",3,"click"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0F0F0F"],[1,"manage-content-outer"],[1,"table-block","list-view-outer"],["id","gridContainer",1,"table-outer","toolbar-border",3,"onOptionChanged","onContentReady","onSelectionChanged","dataSource","focusedRowIndex","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","allowColumnResizing","columnHidingEnabled"],[3,"groupPaging"],[3,"enabled"],[3,"textChange","visible","placeholder","text"],["name","searchPanel","location","before","locateInMenu","auto"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","fullName","cellTemplate","FullNameTemplate",3,"caption","minWidth"],["class","client-name","href","javascript:void(0);",3,"title","click",4,"dxTemplate","dxTemplateOf"],["dataField","email",3,"caption","minWidth",4,"ngIf"],["dataField","phone",3,"caption","minWidth",4,"ngIf"],[1,"sidebar-outer","preview-rule",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sub-title"],["href","javascript:void(0);",1,"close-sidebar",3,"click"],["width","17","height","17","viewBox","0 0 17 17","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 2L2 15M2 2L15 15","stroke","#5C5C5C","stroke-width","2.5","
87stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__content"],[1,"scroll-outer"],[1,"table-block","create-contact-table"],["id","gridContainer",1,"table-outer","contacts-table",3,"dataSource","showBorders","allowColumnReordering","focusedRowEnabled","columnAutoWidth","allowColumnResizing","columnHidingEnabled"],["dataField","eventType","caption","List","cellTemplate","ListTemplate",3,"width"],["class","event-name-code",4,"dxTemplate","dxTemplateOf"],["dataField","eventType","caption","Category","cellTemplate","CategoryTemplate"],["dataField","eventType","caption","List Type","cellTemplate","ListTypeTemplate"],["href","javascript:void(0);",1,"client-name",3,"click","title"],["dataField","email",3,"caption","minWidth"],["dataField","phone",3,"caption","minWidth"],[1,"event-name-code"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Manage Lists"),s()(),a(6,"li",3),h(7,"View Compound List"),s()(),a(8,"a",5),A(),a(9,"svg",6),b(10,"path",7),s(),h(11," Back "),s()(),G(),a(12,"div",8)(13,"div",9)(14,"h1",10),h(15),a(16,"span"),h(17),s()(),a(18,"div",11)(19,"a",12),f("click",function(){return e.ExportAllRenwalInvoices()}),A(),a(20,"svg",13),b(21,"path",14),s(),h(22," Export "),s(),G(),a(23,"a",15),f("click",function(){return e.MovetoEditPage()}
87),A(),a(24,"svg",13),b(25,"path",16),s(),h(26," Edit "),s()()()(),G(),a(27,"div",17)(28,"div",18)(29,"dx-data-grid",19),f("onOptionChanged",function(d){return e.onOptionChanged(d)})("onContentReady",function(d){return e.getTotalCount(d)})("onSelectionChanged",function(d){return e.onSelectionListChanged(d)}),b(30,"dxo-remote-operations",20)(31,"dxo-column-fixing",21),a(32,"dxo-search-panel",22),_("textChange",function(d){return C(e.searchText,d)||(e.searchText=d),d}),s(),a(33,"dxo-toolbar"),b(34,"dxi-item",23),s(),b(35,"dxo-paging",24)(36,"dxo-pager",25),a(37,"dxi-column",26),S(38,ep,2,2,"a",27),s(),S(39,tp,1,2,"dxi-column",28)(40,ip,1,2,"dxi-column",29),s()()()(),a(41,"div",30)(42,"div",31)(43,"div",32)(44,"h2",33),h(45,"Preview List"),s(),a(46,"a",34),f("click",function(){return e.PreviewCriteriaClose()}),A(),a(47,"svg",35),b(48,"path",36),s()()(),G(),a(49,"div",37)(50,"dx-scroll-view",38)(51,"div",39)(52,"dx-data-grid",40),b(53,"dxo-column-fixing",21),a(54,"dxi-column",41),S(55,np,2,0,"div",42),s(),a(56,"dxi-column",43),S(57,op,2,0,"div",42),s(),a(58,"dxi-column",44),S(59,ap,2,0,"div",42),s()()()()()()()),n&2&&(o(15),Cn("",e.listName," - ",e.ListCategory," "),o(2),O("(",e.ListType,")"),o(12),l("dataSource",e.compoundListDataSource)("focusedRowIndex",0)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0)("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("groupPaging",!0),o(),l("enabled",!0),o(),l("visible",!0)("placeholder",e.getSearchPlaceholder()),x("text",e.searchText),o(3),l("pageSize",15),o(),l("visible",e.isPagerVisible)("showPageSizeSelector",e.showPageSizeSelector)("showInfo",!0)("allowedPageSizes",I(40,$c))("showNavigationButtons",e.showPageNavigation),o(),l("caption",e.getTitleCaption())("minWidth",300),o(),l("dxTemplateOf","FullNameTemplate"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Email")&&e.listReturnTypeValue==="Contact"),o(),l("ngIf",e.CheckPropertyVisiblebyPageCategory("ListInformation","Phone")&&e.listReturnTypeValue==="Contact"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(11),l("dataSource",e.eligibilityRules)("showBorders",!0)("allowColumnReordering",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0)("allowColumnResizing",!1)("columnHidingEnabled",!1),o(),l("enabled",!0),o(),l("width",200),o(),l("dxTemplateOf","ListTemplate"),o(2),l("dxTemplateOf","CategoryTemplate"),o(2),l("dxTemplateOf","ListTypeTemplate"))},dependencies:[bt,Ai,vt,Jt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,N,Fi,Ot,ji,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem;margin-left:0}.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--h1-font)!important;color:var(--secondary-color)}.filters-block[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:.35s ease}.filters-block[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--white-color)}.preview-rule[_ngcontent-%COMP%] .sidebar-outer__header[_ngcontent-%COMP%]{padding-bottom:2rem}"]})}}return r})();var Yr=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-permissions"]],standalone:!0,features:[Q],decls:17,vars:0,consts:[[1,"view-wrapper","listing-page","permissions-page"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Applications"),s()(),a(6,"li",3)(7,"a",4),h(8,"Member Portal"),s()(),a(9,"li",3),h(10,"Permissions"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Permissions"),s()()(),a(15,"div",8),b(16,"app-permission-tab"),s()())},dependencies:[bt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Mr],styles:[".permissions-page[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.permissions-page[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.2rem}.dx-template-wrapper.dx-item-content.dx-toolbar-item-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.delete-btn[_ngcontent-%COMP%]{margin:-2px 0 0 32px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .delete-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}.edit-btn[_ngcontent-%COMP%]{margin:-2px 0 0 8px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .edit-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}
87.role-name[_ngcontent-%COMP%]{cursor:pointer}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--thead-color)!important}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--link-color)!important}.permissions-table[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] .features-item[_ngcontent-%COMP%]{padding:1rem 0}.create-form[_ngcontent-%COMP%]{margin-bottom:1.5rem}.permissions-tab[_ngcontent-%COMP%]{padding:2.5rem 3rem;background:var(--white-color);border-radius:5px}"]})}}return r})();var rp=["targetValidator"],sp=["validationGroup"],lp=()=>[100],dp=()=>({id:"elementId",class:"popup-outer delete-popup"}),cp=()=>({id:"elementId",class:"popup-outer w-1000 managecompany-permissions-popup"}),pp=()=>({"aria-label":"Role",placeholder:"Name of Role"});function up(r,g){if(r&1&&b(0,"dxi-column",19),r&2){let t=g.$implicit;l("caption",t)("allowSorting",!1)("dataField",t.roleName)("fixed",t.permissionRoleId==0||t.roleName==="Primary"||t.roleName==="Billing")("minWidth",t.permissionRoleId==0?330:180)}}function mp(r,g){if(r&1&&(xi(0),h(1),vi()),r&2){let t=m().$implicit;o(),O(" ",t.column.caption.roleDescriptions," ")}}function gp(r,g){if(r&1){let t=y();a(0,"div",24)(1,"dx-drop-down-button",25),f("onItemClick",function(e){p(t);let i=m(2).$implicit,d=m();return u(d.onItemClick(e,i.column.caption.permissionRoleId))}),s()()}if(r&2){let t=m(3);o(),l("useItemTextAsTitle",!1)("showArrowIcon",!1)("useSelectMode",!1)("items",t.actionMenuRole)}}function hp(r,g){if(r&1&&(xi(0),a(1,"span",21)(2,"a",22),h(3),s(),S(4,gp,2,4,"div",23),s(),vi()),r&2){let t=m().$implicit;o(3),R(t.column.caption.roleDescriptions),o(),l("ngIf",t.column.caption==null?null:t.column.caption.showEditMenu)}}function fp(r,g){if(r&1&&(a(0,"div"),S(1,mp,2,1,"ng-container",20)(2,hp,5,2,"ng-container",20),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.column.caption.roleName==="Features"),o(),l("ngIf",t.column.caption.roleName!=="Features")}}function Cp(r,g){if(r&1&&(a(0,"h3",28),h(1),s()),r&2){let t=m().$implicit;o(),R(t.value)}}function _p(r,g){if(r&1&&(a(0,"li",31),h(1),s()),r&2){let t=m(2).$implicit;o(),O(" ",t.value," ")}}function yp(r,g){r&1&&(a(0,"li",31),A(),a(1,"svg",32),b(2,"path",33),s()())}function xp(r,g){r&1&&(a(0,"li",31),A(),a(1,"svg",34),b(2,"path",35),s()())}function vp(r,g){if(r&1&&(a(0,"ul",29),S(1,_p,2,1,"li",30)(2,yp,3,0,"li",30)(3,xp,3,0,"li",30),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.value!==""&&t.value!="0"&&t.value!="1"),o(),l("ngIf",t.value=="1"),o(),l("ngIf",t.value=="0")}}function bp(r,g){if(r&1&&(a(0,"div",24),S(1,Cp,2,1,"h3",26)(2,vp,4,3,"ul",27),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.IsGroup=="1"),o(),l("ngIf",t.data.IsGroup!="1")}}function wp(r,g){if(r&1){let t=y();a(0,"dx-popup",36),_("visibleChange",function(e){p(t);let i=m();return C(i.deletePopup,e)||(i.deletePopup=e),u(e)}),a(1,"div",37)(2,"h2"),h(3,"Role & Permissions"),s()(),a(4,"div",38)(5,"p"),h(6,"Are you sure you want to delete "),a(7,"strong"),h(8),s(),h(9," ?"),s()(),a(10,"div",39)(11,"dx-button",40),f("onClick",function(){p(t);let e=m();return u(e.closePopup())}),s(),a(12,"dx-button",41),f("onClick",function(){p(t);let e=m();return u(e.DeleteRolePopup())}),s()()()}if(r&2){let t=m();l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",t.deletePopup),l("wrapperAttr",I(6,dp)),o(8),R(t.roleFormAddEdit==null?null:t.roleFormAddEdit.roleDescriptions)}}function Sp(r,g){if(r&1&&b(0,"dxi-column",55),r&2){let t=g.$implicit;l("caption",t.permissionRoleId)("dataField",t.roleName)("allowSorting",!1)("fixed",!0)("width",350)}}function Pp(r,g){if(r&1&&(a(0,"h3",28),h(1),s()),r&2){let t=m().$implicit;o(),R(t.value)}}function Mp(r,g){if(r&1&&(a(0,"li",31),h(1),s()),r&2){let t=m(2).$implicit;o(),O(" ",t.value," ")}}function Vp(r,g){if(r&1){let t=y();a(0,"li",31)(1,"div",56)(2,"dx-switch",57),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(3);return u(d.AddRemoveFromPermissions(e,i.data))}),s()()()}if(r&2){let t=m(2).$implicit;o(2),l("value",t.value=="1")}}function Ep(r,g){if(r&1&&(a(0,"ul",29),S(1,Mp,2,1,"li",30)(2,Vp,3,1,"li",30),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.value!==""&&t.value!="0"&&t.value!="1"),o(),l("ngIf",t.value=="1"||t.value=="0")}}function Tp(r,g){if(r&1&&(a(0,"div"),S(1,Pp,2,1,"h3",26)(2,Ep,3,2,"ul",27),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.IsGroup=="1"),o(),l("ngIf",t.data.IsGroup!="1")}}function Dp(r,g){if(r&1){let t=y();a(0,"dx-form",44)(1,"dxi-item")(2,"dx-data-grid",45),f("onContentReady",function(e){p(t);let i=m(2);return u(i.refreshGrid(e))}),a(3,"dxo-toolbar")(4,"dxi-item",46)(5,"div",47)(6,"dx-text-box",48),_("valueChange",function(e){p(t);let i=m(2);return C(i.roleFormAddEdit.roleDescriptions,e)||(i.roleFormAddEdit.roleDescriptions=e),u(e)}
87),a(7,"dx-validator"),b(8,"dxi-validation-rule",49),s()()()()(),b(9,"dxo-scrolling",50),S(10,Sp,1,5,"dxi-column",51)(11,Tp,3,2,"div",16),b(12,"dxo-paging",52),s()(),a(13,"dxi-item")(14,"div",39)(15,"dx-button",53),f("onClick",function(){p(t);let e=m(2);return u(e.closeAddEditPopup())}),s(),a(16,"dx-button",54),f("onClick",function(e){p(t);let i=m(2);return u(i.onFormSubmit(e))}),s()()()()}if(r&2){let t=m(2);l("formData",t.roleFormAddEdit),o(2),l("dataSource",t.dataSourceAddEdit)("columnAutoWidth",!0)("showBorders",!0),o(4),l("labelMode",t.labelMode)("inputAttr",I(13,pp)),x("value",t.roleFormAddEdit.roleDescriptions),l("disabled",t.isRoleDisabledName),o(3),l("preloadEnabled",!0),o(),l("ngForOf",t.headersAddEdit),o(),l("dxTemplateOf","permissionsFeatures"),o(),l("enabled",!1),o(4),q("text",t.isEditMode?"Save":"Create")}}function Ip(r,g){if(r&1){let t=y();a(0,"dx-popup",36),_("visibleChange",function(e){p(t);let i=m();return C(i.managecompanyPermissionPopup,e)||(i.managecompanyPermissionPopup=e),u(e)}),a(1,"div",37)(2,"h2"),h(3),s()(),a(4,"div",38)(5,"dx-validation-group")(6,"form",42),S(7,Dp,17,14,"dx-form",43),s()()()()}if(r&2){let t=m();l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",t.managecompanyPermissionPopup),l("wrapperAttr",I(7,cp)),o(3),O("",t.pageHeaderTitle," Role & Permissions"),o(4),l("ngIf",t.roleFormAddEdit)}}var Kr=(()=>{class r extends wt{constructor(t,n,e){super(),this.router=t,this.webStorageService=n,this.permissionTabService=e,this.unsubscriber=new Ct,this.deletePopup=!1,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.permissionCategoryId=3,this.pageHeaderTitle=M.Create,this.editMenuName="Edit Role & Permissions",this.editAdminMenuName="Edit Permission",this.deleteMenuName="Delete Role & Permissions",this.isDelete=!1,this.roleId=0,this.isRoleDisabledName=!1,this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"]);let i=this.webStorageService.getCurrentUserToken();this.loggedInUserId=i.userId,this.BindPermission(),this.actionMenu=[{text:"Edit Permissions",name:"Edit Permissions",icon:"edit",visible:!0,onClick:d=>{this.managecompanyPermissionPopup=!0}}],this.actionMenuRole=[{text:"Edit Role & Permissions",name:"Edit Role & Permissions",icon:"edit",visible:!0,onClick:d=>{this.managecompanyPermissionPopup=!0}},{text:"Delete Role & Permissions",name:"Delete Role & Permissions",icon:"delete",visible:!0,onClick:d=>{this.deletePopup=!0}}]}ManagePermissionPopupEvent(){this.roleFormAddEdit=new sa,this.roleFormAddEdit.roleName="",this.roleFormAddEdit.roleDescriptions="",this.roleFormAddEdit.permissionRoleId=0,this.roleFormAddEdit.permissionCategoryId=this.permissionCategoryId,this.isRoleDisabledName=!1,this.roleId=0,this.isEditMode=!1,this.BindAddEditPermission(),this.managecompanyPermissionPopup=!0}closePopup(){this.deletePopup=!1,this.isDelete=!1,this.managecompanyPermissionPopup=!1}closeAddEditPopup(){this.deletePopup=!1,this.deleteRolePopup=!1,this.managecompanyPermissionPopup=!1}BindPermission(){this.headers=[],this.roles=[],this.dataSource=[],this.loading=!0,this.permissionTabService.GetAllRoleForPermission(this.permissionCategoryId).pipe(w(this.unsubscriber)).subscribe(t=>{t.isSuccess&&(this.headers=t.responseModel,this.roles=t.responseModel.filter(n=>n.permissionRoleId!=0),this.roles.forEach(n=>{n.showEditMenu=!0,!n.isCanEdit&&!n.isCanRemove&&(n.showEditMenu=!1)}),this.permissionTabService.GetAllMemberPortalSettingsPermission(this.permissionCategoryId).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{if(n.isSuccess&&n.responseModel!=null&&n.responseModel!=null){let e=n.responseModel;console.log(n.responseModel),this.dataSource=e.results==null?[]:e.results}}))})}onItemClick(t,n){if(n>0&&t.itemData.name==this.editMenuName)return this.getRoleById(n);if(n>0&&t.itemData.name==this.deleteMenuName)return this.isDelete=!0,this.getRoleById(n);if(t.column==null||t.column==null&&t.column.dataField==null||t.column.dataField==null)return;let e=this.roles?.find(i=>i.roleDescriptions==t.column.dataField||i.roleName==t.column.dataField);e!=null&&e!=null&&this.actionMenuRole.forEach(i=>
87{if(i.name===this.deleteMenuName&&(i.visible=e.isCanRemove),i.name===this.editMenuName||i.name==this.editAdminMenuName){i.text=this.editMenuName,i.visible=e.isCanEdit;let d=lo.Primary.toString(),c=lo.Billing.toString();(e.roleName===d||e.roleName===c)&&(i.text=this.editAdminMenuName)}})}getRoleById(t){!t||isNaN(t)||(this.pageHeaderTitle=M.Edit,this.isEditMode=!0,this.loading=!0,this.permissionTabService.GetPermissionRoleById(Number(t)).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(n=>{this.processResult(n,()=>{if(n&&n.isSuccess&&n.responseModel!=null&&n.responseModel!=null){let e=n.responseModel;this.roleFormAddEdit=new sa,this.roleFormAddEdit.isActive=e.isActive,this.roleFormAddEdit.roleName=e.roleName,this.roleFormAddEdit.roleDescriptions=e.roleDescriptions,this.roleFormAddEdit.permissionCategoryId=e.permissionCategoryId,this.roleId=e.permissionRoleId,this.isRoleDisabledName=e.roleName==lo.Primary||e.roleName==lo.Billing,this.BindAddEditPermission(),this.isDelete?this.deletePopup=!0:this.managecompanyPermissionPopup=!0}})},n=>{this.showErrorMessage(n.message)}))}BindAddEditPermission(){let t=[],n=new ra;n.roleName="Features",t.push(n);let e=new ra;e.roleName="Permissions",t.push(e),this.headersAddEdit=t,this.dataSourceAddEdit=[],this.loading=!0,this.permissionTabService.GetMemberPortalRoleFeatureModulePermissionsByRoleId(this.permissionCategoryId,this.roleId).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(i=>{if(i.isSuccess&&i.responseModel!=null&&i.responseModel!=null){let d=i.responseModel;this.dataSourceAddEdit=d.results==null?[]:d.results}})}onFormSubmit({validationGroup:t}){if(t.validate().isValid){let e=0;if(this.dataSourceAddEdit.forEach(d=>{d.Permissions=="1"&&e++}),e==0){this.showErrorMessage("Please choose permission(s)");return}let i=this.roleFormAddEdit;i.permissionRoleId=this.roleId,i.isActive=!0,i.roleName=i.roleDescriptions.replace(" ",""),i.modifiedByUserId=this.loggedInUserId,i.permissionFeatureRoleMappingRequsetModels=[],this.dataSourceAddEdit.forEach(d=>{if(d.PermissionFeatureId!=0){let c=new Sr;c.permissionRoleId=this.roleId,c.permissionFeatureId=d.PermissionFeatureId,c.permissionFeaturesName=d.Features,c.isActive=d.Permissions=="1",c.modifiedByUserId=this.loggedInUserId,i.permissionFeatureRoleMappingRequsetModels.push(c)}}),this.loading=!0,this.permissionTabService.AddUpdateMemberPortalRoleAndPermissions(i).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(d=>{d&&d.isSuccess?(this.showSuccessMessage(this.isEditMode?"Permissions have been updated successfully":"Permissions have been created successfully"),this.closeAddEditPopup(),this.BindPermission()):this.showErrorMessage(d.message)},d=>{this.showErrorMessage(d.message)})}}DeleteRolePopup(){this.loading=!0,this.permissionTabService.ActiveInactivePermissionRole(this.roleId,this.loggedInUserId).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(t=>{this.closePopup(),t.isSuccess?(this.showSuccessMessage("Permission role has been deleted succussfully"),this.BindPermission()):this.showErrorMessage(t.message)},t=>{this.closePopup(),this.showErrorMessage(t.message)})}refreshGrid(t){this.gridInstance=t.component}AddRemoveFromPermissions(t,n){let e=n.PermissionFeatureId,i=n.PermissionFeatureMasterId,d=n.Features,c=this.dataSourceAddEdit.filter(v=>v.PermissionFeatureMasterId==i);if(c.length>0){if(!t.value&&d.toLowerCase()=="view"){let v=c.find(V=>V.Features.toLowerCase()=="view");c.map(function(V){(V.PermissionFeatureId!=v.PermissionFeatureId&&V.IsGroup!=1||V.PermissionFeatureId==e&&V.PermissionFeatureMasterId==i&&V.Features==d)&&(V.Permissions="0")})}else t.value&&d.toLowerCase()!="view"?c.map(function(v){(v.Features.toLowerCase()=="view"||v.PermissionFeatureId==e&&v.PermissionFeatureMasterId==i&&v.Features==d)&&(v.Permissions="1")}):c.map(function(v){v.PermissionFeatureId==e&&v.PermissionFeatureMasterId==i&&v.Features==d&&(v.Permissions=t.value==!0?"1":"0")});this.gridInstance!=null&&this.gridInstance.refresh()}}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(yt),k(Pr))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-company-permissions"]],viewQuery:function(n,e){if(n&1&&(U(rp,5),U(It,5),U(sp,7)),n&2){let i;H(i=j())&&(e.validator=i.first),H(i=j())&&(e.form=i.first),H(i=j())&&(e.validationGroup=i.first)}},standalone:!0,features:[xt,Q],decls:27,vars:15,consts:[[1,"view-wrapper","role-permissions-outer","company-permission-page"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"buttons"],["text","Create","icon","plus","type","normal","stylingMode","contained",1,"btn","btn--primary",3,"onClick"],[1,"manage-content-outer"],[1,"table-block"],["id","gridContainer","noDataText","No Records foun
87d.",1,"table-outer","permissions-table","permissions-table-new",3,"onCellClick","dataSource","columnAutoWidth","showBorders"],[3,"pageSize"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","name","alignment","left","headerCellTemplate","titleHeaderTemplate","cellTemplate","permissionsIcons",3,"caption","allowSorting","dataField","fixed","minWidth",4,"ngFor","ngForOf"],[4,"dxTemplate","dxTemplateOf"],["class","action-menu-btn",4,"dxTemplate","dxTemplateOf"],["container",".dx-viewport",3,"showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr","visibleChange",4,"ngIf"],["dataField","name","alignment","left","headerCellTemplate","titleHeaderTemplate","cellTemplate","permissionsIcons",3,"caption","allowSorting","dataField","fixed","minWidth"],[4,"ngIf"],[1,"role-name"],["href","javascript:void(0)",1,"role-name-lbl"],["class","action-menu-btn",4,"ngIf"],[1,"action-menu-btn"],["icon","dot-icon","cssClass","TestingClass","displayExpr","text","text","","stylingMode","text",1,"overflow-menu",3,"onItemClick","useItemTextAsTitle","showArrowIcon","useSelectMode","items"],["class","features-title",4,"ngIf"],["class","features-list",4,"ngIf"],[1,"features-title"],[1,"features-list"],["class","features-item",4,"ngIf"],[1,"features-item"],["width","20","height","10","viewBox","0 0 27 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.7157 4.95897L8.13346 13.2747L25.7503 1.055","stroke","#3874ff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["width","13","height","13","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15 15L1 1M15 1L1 15","stroke","#F0244F","stroke-width","2","stroke-linecap","round"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"form-outer"],["id","formAddEdit",3,"formData",4,"ngIf"],["id","formAddEdit",3,"formData"],["id","gridContainer","keyExpr","Id","noDataText"," ",1,"table-outer","permissions-table","permissions-table-non-pagination",3,"onContentReady","dataSource","columnAutoWidth","showBorders"],["location","before","locateInMenu","auto",1,"without-search"],[1,"dx-field"],["label","Name of Role",1,"text-box",3,"valueChange","labelMode","inputAttr","value","disabled"],["type","required","message","Name of role is required"],["mode","virtual","showScrollbar","onHover",3,"preloadEnabled"],["cellTemplate","permissionsFeatures",3,"caption","dataField","allowSorting","fixed","width",4,"ngFor","ngForOf"],[3,"enabled"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick","text"],["cellTemplate","permissionsFeatures",3,"caption","dataField","allowSorting","fixed","width"],[1,"toggle-btn"],[3,"onValueChanged","value"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Applications"),s()(),a(6,"li",3)(7,"a",4),h(8,"Member Portal"),s()(),a(9,"li",3),h(10,"Company Permissions"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Company Permissions"),s(),a(15,"div",8)(16,"dx-button",9),f("onClick",function(){return e.ManagePermissionPopupEvent()}),s()()()(),a(17,"div",10)(18,"div",11)(19,"dx-data-grid",12),f("onCellClick",function(d){return e.onItemClick(d,0)}),b(20,"dxo-paging",13)(21,"dxo-pager",14),S(22,up,1,5,"dxi-column",15)(23,fp,3,2,"div",16)(24,bp,3,2,"div",17),s()()()(),S(25,wp,13,7,"dx-popup",18)(26,Ip,8,8,"dx-popup",18)),n&2&&(o(19),l("dataSource",e.dataSource)("columnAutoWidth",!0)("showBorders",!0),o(),l("pageSize",5e3),o(),l("visible",!0)("showPageSizeSelector",!0)("showInfo",!0)("allowedPageSizes",I(14,lp))("showNavigationButtons",!0),o(),l("ngForOf",e.headers),o(),l("dxTemplateOf","titleHeaderTemplate"),o(),l("dxTemplateOf","permissionsIcons"),o(),l("ngIf",e.deletePopup),o(),l("ngIf",e.managecompanyPermissionPopup))},dependencies:[bt,vt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,ji,Nt,qn,Ni,fe,Ce,_e,ye,xe,ve,be,yn,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".company-permission-page[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.company-permission-page[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.2rem}.company-permission-page[_ngcontent-%COMP%] .title-breadcrumb[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%] .btn--primary[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%]{color:var(--white-color)!important}.dx-template-wrapper.dx-item-content.dx-toolbar-item-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.delete-btn[_ngcontent-%COMP%]{margin:-2px 0 0 32px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .delete-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}.edit-btn[_ngcontent-%COMP%]{margin:-2px 0 0 8px;display:inline-block;opacity:0;height:18px;position:absolute;cursor:pointer!important}span[_ngcontent-%COMP%]:hover .edit-btn[_ngcontent-%COMP%]{opacity:1;cursor:pointer!important}
87.role-name[_ngcontent-%COMP%]{cursor:pointer;display:flex;flex-direction:column}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--thead-color)!important;white-space:pre-wrap}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--link-color)!important}.role-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%] .dx-icon.dx-icon-dot-icon[_ngcontent-%COMP%]{height:18px}.role-name[_ngcontent-%COMP%] a.role-name-lbl[_ngcontent-%COMP%]{display:block;white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;text-align:center;width:100%}.role-name[_ngcontent-%COMP%] .action-menu-btn[_ngcontent-%COMP%]{text-align:center}.permissions-table[_ngcontent-%COMP%] .features-list[_ngcontent-%COMP%] .features-item[_ngcontent-%COMP%]{padding:1rem 0}.create-form[_ngcontent-%COMP%]{margin-bottom:1.5rem}"]})}}return r})();var Jr=(()=>{class r extends En{constructor(t,n){super(t,n)}GetMemberPortalSettings(){return this.get("MemberPortalSettings/GetMemberPortalSettings")}UpdateMemberPortalSettings(t){return this.post("MemberPortalSettings/UpdateMemberPortalSettings",t)}static{this.\u0275fac=function(n){return new(n||r)(nn(sn),nn(yt))}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function Lp(r,g){if(r&1){let t=y();xi(0),a(1,"div",17)(2,"dx-switch",18),_("valueChange",function(e){let i=p(t).$implicit;return C(i.isEnable,e)||(i.isEnable=e),u(e)}),s(),h(3),s(),vi()}if(r&2){let t=g.$implicit;o(2),x("value",t.isEnable),o(),O(" ",t.settingDisplayName," ")}}var Xr=(()=>{class r extends wt{constructor(t,n,e){super(),this.router=t,this.webStorageService=n,this.memberPortalSettingService=e,this.unsubscriber=new Ct,this.userToken=new Ki,this.settingsDisplayModel=new Array;let i=this.webStorageService.getCurrentUserToken();this.loggedInUserId=i.userId,this.userToken=n.getCurrentUserToken(),this.userToken||t.navigate(["/login"])}ngOnInit(){this.GetMemberPortalSettings()}GetMemberPortalSettings(){this.loading=!0,this.memberPortalSettingService.GetMemberPortalSettings().pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{t&&t.isSuccess?(this.loading=!1,t.responseModel!=null&&t.responseModel!=null&&(this.settingsDisplayModel=t.responseModel)):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}OnSave(){this.settingsDisplayModel.forEach(t=>{t.modifiedByUserId=this.loggedInUserId?this.loggedInUserId:0}),this.memberPortalSettingService.UpdateMemberPortalSettings(this.settingsDisplayModel).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(t=>{this.processResult(t,()=>{t&&t.isSuccess?(this.loading=!1,t.responseModel!=null&&t.responseModel!=null&&(t.responseModel==!0?this.showSuccessMessage("Member portal settings updated."):this.showErrorMessage("Error occured while updating member portal settings"))):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(yt),k(Jr))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-member-portal-setting"]],viewQuery:function(n,e){if(n&1&&U(N,5),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[xt,Q],decls:25,vars:1,consts:[[1,"view-wrapper","view-event-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"],[1,"card-outer","max-width"],[1,"card-header"],[1,"card-header__title"],[1,"card-content"],[1,"general-block"],[4,"ngFor","ngForOf"],[1,"bottom-button","max-width"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"toggle-btn"],[3,"valueChange","value"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Applications"),s()(),a(6,"li",3)(7,"a",4),h(8,"Membership Portal"),s()(),a(9,"li",3),h(10,"Member Portal Settings"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Member Portal Settings"),s()()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"h2",11),h(19,"General Settings"),s()(),a(20,"div",12)(21,"div",13),S(22,Lp,4,2,"ng-container",14),s()()(),a(23,"div",15)(24,"dx-button",16),f("onClick",function(){return e.OnSave()}),s()()()()),n&2&&(o(22),l("ngForOf",e.settingsDisplayModel))},dependencies:[bt,vt,Gt,ie,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,ni,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color);font:var(--h1-font)!important}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem}.card-outer[_ngcontent-%COMP%]{background-color:var(--white-color);border-radius:5px;padding:2rem 3rem;transition:.35s ease}.card-outer.collapse[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{margin-bottom:5px}.card-outer.collapse[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:rotate(180deg)}.card-outer.collapse[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{display:none}.bottom-button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;padding-top:2rem}.card-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:1.5rem}.card-header__title[_ngcontent-%COMP%]{width:auto;color:var(--primary-color);margin-bottom:1.5rem}.card-header__edit-collapse[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.card-header__edit-collapse[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%]{margin-left:2.5rem}.card-header__edit-collapse[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:.35s ease}.benefits-outer[_ngcontent-%COMP%]{width:100%;padding:0 2.4rem}.general-block[_ngcontent-%COMP%]{width:100%;border-bottom:1px solid var(--border-lighter);padding-bottom:1.5rem;margin-bottom:1.5rem}.general-block[_ngcontent-%COMP%]:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}.general-block.border-none[_ngcontent-%COMP%]{border:none;margin:0;padding:0}.general-block[_ngcontent-%COMP%] .switch-btn[_ngcontent-%COMP%], .general-block[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%]{width:100%;margin-bottom:1.8rem;margin-left:5px;font:var(--font-weight-400) var(--font-14) var(--font-family)!important;color:var(--body-color)!important}.general-block[_ngcontent-%COMP%] .switch-btn[_ngcontent-%COMP%] dx-switch[_ngcontent-%COMP%], .general-block[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%] dx-switch[_ngcontent-%COMP%]{display:inline-block;margin-top:-4px;margin-left:0}"]})}}return r})();var Rp=["fileInput"],Op=["faviconInput"],Gp=()=>({"aria-label":"Enter Browser Tab Title",maxlength:"60"}),$r=r=>({"font-family":r});function Bp(r,g){r&1&&(a(0,"div",53)(1,"div",54)(2,"div",55),A(),a(3,"svg",56),b(4,"path",57),s()(),G(),a(5,"span",58),h(6,"No logo uploaded"),s()()())}function Fp(r,g){if(r&1){let t=y();a(0,"div",59)(1,"div",54)(2,"div",55),b(3,"img",60),a(4,"button",61),f("click",function(){p(t);let e=m();return u(e.RemoveLogo())}),A(),a(5,"svg",62),b(6,"path",63),s()()()()()}if(r&2){let t=m();o(3),q("alt",t.imagealt),q("title",t.imageTitle),l("src",t.imageUrl,no)}}function Wp(r,g){if(r&1&&(a(0,"div",53)(1,"div",54)(2,"div",55),b(3,"img",64),s(),a(4,"span",58),h(5,"Cannolai (default)"),s()()()),r&2){let t=m();o(3),l("src",t.defaultFaviconUrl,no)}}function Np(r,g){if(r&1&&b(0,"img",66),r&2){let t=m().$implicit;l("src",t.url,no)}}function qp(r,g){if(r&1){let t=y();a(0,"div",59)(1,"div",54)(2,"div",55),S(3,Np,1,1,"img",65),a(4,"button",61),f("click",function(){p(t);let e=m();return u(e.removeFavicon())}),A(),a(5,"svg",62),b(6,"path",63),s()()()()()}if(r&2){let t=g.$implicit;o(3),l("ngIf",t.url)}}function Up(r,g){r&1&&(a(0,"small",67),h(1," Browser tab title must be 60 characters or fewer. "),s())}function Hp(r,g){if(r&1){let t=y();a(0,"div",45)(1,"div",46)(2,"h3"),h(3,"Primary Color"),s(),a(4,"p"),h(5,"Use for H1 headings, Primary buttons, links"),s(),a(6,"div",39)(7,"dx-color-box",47),_("valueChange",function(e){p(t);let i=m();return C(i.selectedPrimaryColor,e)||(i.selectedPrimaryColor=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onColorChange(e.value))}),s()()(),a(8,"div",68)(9,"h3"),h(10,"Secondary Color"),s(),a(11,"p"),h(12,"Use for H2 headings, Secondary buttons"),s(),a(13,"div",39)(14,"dx-color-box",47),_("valueChange",function(e){p(t);let i=m();return C(i.selectedSecondaryColor,e)||(i.selectedSecondaryColor=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onColorChange(e.value))}),s()()()()}if(r&2){let t=m();o(7),x("value",t.selectedPrimaryColor),l("applyValueMode","instantly"),o(7),x("value",t.selectedSecondaryColor),l("applyValueMode","instantly")}}function jp(r,g){if(r&1){let t=y();a(0,"div",69)(1,"div",39)(2,"dx-select-box",70),_("valueChange",function(e){p(t);let i=m();return C(i.selectedFont,e)||(i.selectedFont=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onFontChange(e.value))}),s()(),b(3,"br"),a(4,"div",71)(5,"span",72),h(6,"Sample Text Preview"),s(),a(7,"span",73),h(8,"This is how your email text will appear"),s()()()}if(r&2){let t=m();o(2),l("items",t.fontOptions),x("value",t.selectedFont),l("searchEnabled",!0),o(3),l("ngStyle",ai(5,$r,t.selectedFont)),o(2),l("ngStyle",ai(7,$r,t.selectedFont))}}var es=(()=>{class r extends wt{constructor(t,n,e,i,d,c){super(),this.themeService=t,this.staffUserService=n,this.sanitizer=e,this.cdr=i,this.title=d,this.document=c,this.maxFaviconBytes=1*1024*1024,this.maxTabTitleLength=60,this.targetFaviconPixels=64,this.defaultFaviconUrl="favicon.ico",this.brandingForm=new tr({browserTabTitle:new nr("",{nonNullable:!0,validators:[er.maxLength(60)]})}),this.isFaviconDragOver=!1,this.faviconRemoved=!1,this.selectedFaviconFiles=[],this.emailStyleSnapshot=null,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.fontOptions=['"Kumbh Sans", sans-serif',"Arial, sans-serif","Georgia, serif",'"Courier New", monospace','"Times New Roman", serif',"Verdana, sans-serif","Tahoma, sans-serif"],this.selectedFont='"Kumbh Sans", sans-serif',this.selectedPrimaryColor="#024079",this.selectedSecondaryColor="#1563AB",this.selectedHeaderBgColor="#219EBC",this.selectedMenuBgColor="#c1e0ed",this.PrimarybtnColor="#024079",this.PrimarybtnHoverColor="#1563AB",this.SecondarybtnColor="#219EBC",this.SecondarybtnHoverColor="#1fafd3",this.AccentbtnColor="#FFB703",this.AccentbtnHoverColor="#e9a702",this.file={name:"No Logo Uploaded"},this.isDragOver=!1,this.selectedFiles=[],this.unsubscriber=new Ct,this.companyLogo="",this.associationName="",this.companyLogoContentType="image/png",this.isImageSaved=!1,this.isTempImage=!1,this.cardImageBase64FromDB="",this.cardImageBase64Default="assets/img/placeholder-img.png",this.showRemoveLogoButton=!1,this.uploadButtonText="Upload Logo",this.getMemberPortalClientManageStyleLogo(),this.loadThemeFromServer(),this.loadPortalBranding()}get tabPreviewTitle(){return(this.brandingForm.controls.browserTabTitle.value||"").trim()||"Cannolai"}get faviconPreviewUrl(){return this.selectedFaviconFiles[0]?.url??this.defaultFaviconUrl}get tabTitleLength(){return(this.brandingForm.controls.browserTabTitle.value||"").length}get tabTitleCountLabel(){let t=this.tabTitleLength,n=this.maxTabTitleLength-t;if(t>=this.maxTabTitleLength)return`${this.maxTabTitleLength} of ${this.maxTabTitleLength} characters \uFFFD Limit reached`;let e=n===1?"1 character left":`${n} characters left`;return`${t} of ${this.maxTabTitleLength} characters \uFFFD ${e}`}onBrowserTabTitleChanged(t){let n=(t??"").slice(0,this.maxTabTitleLength);n!==this.brandingForm.controls.browserTabTitle.value&&(this.brandingForm.controls.browserTabTitle.setValue(n),this.brandingForm.controls.browserTabTitle.markAsTouched())}ngOnInit(){}getMemberPortalClientManageStyleLogo(){this.staffUserService.getTheme().pipe(w(this.unsubscriber)).subscribe(t=>{t&&t.isSuccess&&(t.responseModel.logoPath?this.companyLogo=t.responseModel.logoPath:this.companyLogo="",this.imageData="data:image/png;base64, "+this.companyLogo,this.imageUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.imageData),this.imagealt=this.associationName,this.imageTitle=this.associationName,this.associationName=t.responseModel.associationName)})}GetMemberPortalLogo(){this.staffUserService.GetMemberPortalLogo().subscribe({next:t=>{let n=this.file.name,e=n.split(".").pop()?.toLowerCase(),i="image/jpeg";e==="png"?i="image/png":e==="svg"?i="image/svg+xml":(e==="jpg"||e==="jpeg")&&(i="image/jpeg"),this.selectedFiles=[{file:new File([t],n,{t
87ype:i}),url:URL.createObjectURL(t)}]},error:()=>{this.selectedFiles=[]}})}onFontChange(t){this.selectedFont=t}onColorChange(t){this.themeService.setColor(this.selectedHeaderBgColor,this.selectedMenuBgColor)}loadThemeFromServer(){this.staffUserService.getTheme().subscribe({next:t=>{t.isSuccess&&t.responseModel&&(this.selectedHeaderBgColor=t.responseModel.headerBgColor,this.selectedMenuBgColor=t.responseModel.menuBgColor)},error:()=>{this.showErrorMessage("Failed to load theme.")}})}onSaveTheme(){if(this.brandingForm.markAllAsTouched(),this.brandingForm.invalid){this.showErrorMessage("Browser tab title must be 60 characters or fewer.");return}let t={headerBgColor:this.selectedHeaderBgColor,menuBgColor:this.selectedMenuBgColor,logoPath:this.companyLogo,companyLogoContentType:this.companyLogoContentType},n=this.selectedFiles.length>0?this.selectedFiles[0].file:null;this.staffUserService.saveTheme(t).subscribe({next:e=>{e.responseModel?this.savePortalBranding(()=>this.showSuccessMessage("Theme saved successfully.")):this.showErrorMessage("Failed to save theme.")},error:()=>{this.showErrorMessage("Failed to save theme.")}})}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.isDragOver=!0}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.isDragOver=!1}onFileDropped(t){t.preventDefault(),t.stopPropagation(),this.isDragOver=!1;let n=t.dataTransfer?.files;n&&this.handleFiles(Array.from(n))}triggerFileInput(){console.log("Browse button clicked!"),this.fileInput?(this.fileInput.nativeElement.click(),console.log("File input triggered!")):console.error("File input element not found!")}onFileSelected(t){t&&t.target&&t.target.files&&this.handleFiles(t)}handleFiles(t){if(t.target.files&&t.target.files[0]){let n=t.target.files[0],e=["image/png","image/jpeg","image/jpg","image/svg+xml"],i=15*1024*1024;if(n.size>i)return this.showErrorMessage("Maximum size allowed is 15MB."),!1;if(!e.includes(n.type))return this.showErrorMessage("Only PNG, JPG, JPEG, SVG images are allowed."),!1;let d=new FileReader;d.onload=c=>{let v=c.target.result,V=v.indexOf(",",0),E=v.slice(V+1);this.companyLogoContentType=n.type,this.companyLogo=E,this.isImageSaved=!0,this.isTempImage=!0,this.showRemoveLogoButton=!0,this.imageData=v,this.imageUrl=this.sanitizer.bypassSecurityTrustResourceUrl(v),this.imagealt=n.name,this.imageTitle=n.name,this.selectedFiles=[{file:n,url:URL.createObjectURL(n)}]},d.readAsDataURL(n)}return this.companyLogo}removeFile(){this.selectedFiles.length>0&&URL.revokeObjectURL(this.selectedFiles[0].url),this.selectedFiles=[]}RemoveLogo(){if(this.fileInput.value="",this.isTempImage){this.isTempImage=!1;let t=new Image;t.src="",this.cardImageBase64FromDB?(this.cardImageBase64Default=this.cardImageBase64FromDB,this.showRemoveLogoButton=!0):(this.cardImageBase64Default="assets/img/placeholder-img.png",this.showRemoveLogoButton=!1),this.uploadButtonText="Upload Logo",this.companyLogo="";return}this.staffUserService.RemoveClientLogo().pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(t=>{t.isSuccess&&(this.showSuccessMessage("Client photo removed successfully."),this.resetImageLogo())},t=>{this.showErrorMessage(t.message)})}resetImageLogo(){let t=new Image;t.src="",this.cardImageBase64Default="assets/img/placeholder-img.png",this.uploadButtonText="Upload Logo",this.showRemoveLogoButton=!1,this.companyLogo=""}onFaviconDragOver(t){t.preventDefault(),t.stopPropagation(),this.isFaviconDragOver=!0}onFaviconDragLeave(t){t.preventDefault(),t.stopPropagation(),this.isFaviconDragOver=!1}onFaviconDropped(t){t.preventDefault(),t.stopPropagation(),this.isFaviconDragOver=!1;let n=t.dataTransfer?.files;n&&this.handleFaviconFiles(Array.from(n))}triggerFaviconInput(){this.faviconInput?.nativeElement?.click()}onFaviconSelected(t){let n=t.target,e=n?.files;e&&this.handleFaviconFiles(Array.from(e)),n&&(n.value="")}handleFaviconFiles(t){return B(this,null,function*(){let n=[".ico",".png"];for(let e of t){if(!e)continue;if(e.size>this.maxFaviconBytes){this.showErrorMessage("Favicon must be 1 MB or smaller.");return}let i="."+(e.name.split(".").pop()||"").toLowerCase();if(!n.includes(i)){this.showErrorMessage("Favicon must be a .ico or .png file.");return}let d=yield this.prepareFaviconFile(e,i);if(!d)return;this.selectedFaviconFiles.length>0&&this.selectedFaviconFiles[0].isObjectUrl&&URL.revokeObjectURL(this.selectedFaviconFiles[0].url),this.selectedFaviconFiles=[{file:d,url:URL.createObjectURL(d),isObjectUrl:!0,isRemoteUrl:!1}],this.faviconRemoved=!1,this.cdr.detectChanges()}})}removeFavicon(){this.clearFaviconPreview(),this.faviconRemoved=!0}clearFaviconPreview(){this.selectedFaviconFiles.length>0&&this.selectedFaviconFiles[0].isObjectUrl&&URL.revokeObjectURL(this.selectedFaviconFiles[0].url),this.selectedFaviconFiles=[]}loadPortalBranding(){this.staffUserService.getTheme().subscribe({next:t=>{if(!t?.isSuccess||!t.responseModel)return;let n=t.responseModel;this.brandingForm.controls.browserTabTitle.setValue(n.browserTabTitle||""),this.loadFaviconPreview(n.faviconPath),this.applySavedBrowserBranding(n.faviconPath,n.browserTabTitle)}})}applySavedBrowserBranding(t,n){let e=(n||"Cannolai").trim()||"Cannolai";this.title.setTitle(e);let i=t?.trim()||this.defaultFaviconUrl,d=this.document.querySelector("link[rel='icon']");d||(d=this.document.createElement("link"),d.rel="icon",this.document.head.appendChild(d)),d.href=i}loadFaviconPreview(t){if(this.faviconRemoved=!1,!t){this.clearFaviconPreview();return}let n=this.getDisplayNameFromUrl(t,"favicon");this.selectedFaviconFiles.length>0&&this.selectedFaviconFiles[0].isObjectUrl&&URL.revokeObjectURL(this.selectedFaviconFiles[0].url),this.selectedFaviconFiles=[{file:new File([],n,{type:this.getMimeTypeFromFileName(n)}),url:this.sanitizer.bypassSecurityTrustUrl(t),isObjectUrl:!1,isRemoteUrl:!0}],this.cdr.detectChanges()}savePortalBranding(t){let n=()=>
87{if(!this.emailStyleSnapshot){this.showErrorMessage("Failed to save branding.");return}let e=Bn(dn({},this.emailStyleSnapshot),{browserTabTitle:this.brandingForm.controls.browserTabTitle.value}),i=this.selectedFaviconFiles.length>0&&!this.selectedFaviconFiles[0].isRemoteUrl?this.selectedFaviconFiles[0].file:null;this.staffUserService.saveStyles(e,null,i,this.faviconRemoved).subscribe({next:()=>{this.loadPortalBranding(),t()},error:d=>{let c=d?.error?.message||d?.message||"Failed to save branding.";this.showErrorMessage(c)}})};if(this.emailStyleSnapshot){n();return}this.staffUserService.getClientManageStyles().subscribe({next:e=>{if(!e?.isSuccess||!e.responseModel){this.showErrorMessage("Failed to save branding.");return}let i=e.responseModel;this.emailStyleSnapshot={primaryColor:i.primaryColor,secondaryColor:i.secondaryColor,fontId:i.fontId,topLineColor:i.topLineColor,bottomLineColor:i.bottomLineColor,associationName:i.associationName},n()},error:()=>this.showErrorMessage("Failed to save branding.")})}prepareFaviconFile(t,n){return n===".ico"?Promise.resolve(t):new Promise(e=>{let i=URL.createObjectURL(t),d=new Image;d.onload=()=>{if(URL.revokeObjectURL(i),d.width>this.targetFaviconPixels||d.height>this.targetFaviconPixels){this.resizeFaviconToCanvas(d,t).then(e);return}e(t)},d.onerror=()=>{URL.revokeObjectURL(i),this.showErrorMessage("Favicon PNG could not be read."),e(null)},d.src=i})}resizeFaviconToCanvas(t,n){let e=this.targetFaviconPixels,i=document.createElement("canvas");i.width=e,i.height=e;let d=i.getContext("2d");if(!d)return this.showErrorMessage("Favicon PNG could not be read."),Promise.resolve(null);let c=Math.min(e/t.width,e/t.height),v=t.width*c,V=t.height*c,E=(e-v)/2,T=(e-V)/2;d.clearRect(0,0,e,e),d.drawImage(t,E,T,v,V);let D=n.name.replace(/\.[^.]+$/,"")||"favicon";return new Promise(W=>{i.toBlob(Vt=>{if(!Vt){this.showErrorMessage("Favicon PNG could not be read."),W(null);return}W(new File([Vt],`${D}.png`,{type:"image/png"}))},"image/png")})}getMimeTypeFromFileName(t){let n=t?.split(".").pop()?.toLowerCase();return n==="png"?"image/png":n==="ico"?"image/x-icon":"image/png"}getDisplayNameFromUrl(t,n){if(!t)return n;try{if(t.startsWith("http://")||t.startsWith("https://")){let d=new URL(t).pathname.split("/").filter(Boolean).pop();return d?decodeURIComponent(d):n}return t.replace(/\\/g,"/").split("/").filter(Boolean).pop()||n}catch{return n}}static{this.\u0275fac=function(n){return new(n||r)(k(Ar),k(mr),k(za),k(rn),k(ja),k(Wa))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-styles-theme"]],viewQuery:function(n,e){if(n&1&&(U(Rp,5),U(Op,5)),n&2){let i;H(i=j())&&(e.fileInput=i.first),H(i=j())&&(e.faviconInput=i.first)}},standalone:!0,features:[xt,Q],decls:109,vars:27,consts:[["fileInput",""],["faviconInput",""],[1,"view-wrapper","style-theme-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer","style-theme-block"],[1,"card-outer"],["id","form",3,"formData"],[1,"scroll-outer"],[1,"card-outer__content","max-width"],[1,"upload-logo"],[1,"upload-document-block"],[1,"file-upload-container"],[1,"drag-drop-area",3,"dragover","dragleave","drop"],[1,"drag-drop-content"],[1,"from-your-desktop"],["text","Browse","stylingMode","contained","type","default",1,"btn","btn--preview","browse-btn",3,"onClick"],[1,"file-info"],[1,"file-size-limit"],["type","file","accept",".png,.jpg,.svg",2,"display","none",3,"change"],["class","selected-files-section no-logo-placeholder",4,"ngIf"],["class","selected-files-section",4,"ngIf"],[1,"branding-section"],[1,"branding-section__row"],[1,"file-upload-container","favicon-upload"],["type","file","accept",".ico,.png",2,"display","none",3,"change"],["class","selected-files-section",4,"ngFor","ngForOf"],["aria-label","Browser tab preview",1,"tab-preview"],[1,"tab-preview__label"],[1,"tab-preview__bar"],[1,"tab-preview__tab"],["alt","",1,"tab-preview__icon",3,"src"],[1,"tab-preview__title"],[1,"font-styles","signature","branding-title",3,"formGroup"],[1,"dx-field"],["label","Browser tab title","placeholder","Enter browser tab title",3,"onValueChanged","labelMode","value","maxLength","inputAttr"],[1,"branding-title__meta"],[1,"branding-title__count"],["class","branding-title__error",4,"ngIf"],[1,"color-theme"],[1,"color-theme__row"],[1,"color-theme__primary-box"],["placeholder","Pick a Color",1,"color-picker",3,"valueChange","onValueChanged","value","applyValueMode"],["class","color-theme__row",4,"ngIf"],["class","font-styles",4,"ngIf"],[1,"card-outer__button","max-width"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel"],["text","Save","stylingMode","contained","type","normal",1,"btn","btn--primary",3,"onClick"],[1,"selected-files-section","no-logo-placeholder"],[1,"selected-files-header"],[1,"selected-files-header__thumb-image"],["width","35","height","31","viewBox","0 0 35 31","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.5 0H5.5C4.04131 0 2.64236 0.579462 1.61091 1.61091C0.579462 2.64236 0 4.04131 0 5.5V25.5C0 26.9587 0.579462 28.3576 1.61091 29.3891C2.64236 30.4205 4.04131 31 5.5 31H29.5C30.9587 31 32.3576 30.4205 33.3891 29.3891C34.4205 28.3576 35 26.9587 35 25.5V5.5C35 4.04131 34.4205 2.64236 33.3891 1.61091C32.3576 0.579462 30.9587 0 29.5 0ZM5.5 3H29.5C30.163 3 30.7989 3.26339 31.2678 3.73223C31.7366 4.20107 32 4.83696 32 5.5V21.88L26.56 16.44C26.4178 16.288 26.2434 16.1696 26.0497 16.0935C25.8559 16.0174 25.6477 15.9855 25.44 16C25.2302 16.0133 25.025 16.0679 24.8363 16.1605C24.6475 16.2532 24.4789 16.3821 24.34 16.54L21.76 19.64L12.56 10.44C12.4244 10.2959 12.2599 10.1822 12.0772 10.1064C11.8945 10.0305 11.6977 9.99429 11.5 10C11.2902 10.0133 11.085 10.0679 10.8963 10.1605C10.7075 10.2532 10.5389 10.3821 10.4 10.54L3 19.36V5.5C3 5.1717 3.06466 4.84661 3.1903 4.54329C3.31594 4.23998 3.50009 3.96438 3.73223 3.73223C3.96438 3.50009 4.23998 3.31594 4.54329 3.1903C4.84661 3.06466 5.1717 3 5.5 3ZM3 25.5V24.04L11.6 13.72L19.84 21.96L14.8 27.96H5.5C4.84383 27.9601 4.21393 27.7022 3.74
87623 27.242C3.27852 26.7817 3.0105 26.1561 3 25.5ZM29.5 28H18.7L25.6 19.72L31.9 26.02C31.7894 26.576 31.4901 27.0768 31.0528 27.4376C30.6155 27.7984 30.0669 27.9971 29.5 28Z","fill","#464646"],[1,"file-count"],[1,"selected-files-section"],[3,"src","alt","title"],["title","Remove file",1,"remove-file-btn",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.4 2.73171H9.6C9.6 2.31771 9.43143 1.92067 9.13137 1.62793C8.83131 1.33519 8.42435 1.17073 8 1.17073C7.57565 1.17073 7.16869 1.33519 6.86863 1.62793C6.56857 1.92067 6.4 2.31771 6.4 2.73171ZM5.2 2.73171C5.2 2.37297 5.27242 2.01775 5.41314 1.68633C5.55385 1.3549 5.7601 1.05376 6.0201 0.800099C6.28011 0.546436 6.58877 0.34522 6.92849 0.207939C7.2682 0.0706577 7.6323 0 8 0C8.3677 0 8.7318 0.0706577 9.07151 0.207939C9.41122 0.34522 9.71989 0.546436 9.9799 0.800099C10.2399 1.05376 10.4461 1.3549 10.5869 1.68633C10.7276 2.01775 10.8 2.37297 10.8 2.73171H15.4C15.5591 2.73171 15.7117 2.79338 15.8243 2.90316C15.9368 3.01293 16 3.16182 16 3.31707C16 3.47232 15.9368 3.62121 15.8243 3.73099C15.7117 3.84077 15.5591 3.90244 15.4 3.90244H14.344L13.408 13.3549C13.3362 14.0792 12.9904 14.7514 12.4381 15.2404C11.8859 15.7295 11.1666 16.0003 10.4208 16H5.5792C4.83349 16.0001 4.11448 15.7292 3.56236 15.2402C3.01024 14.7512 2.66459 14.0791 2.5928 13.3549L1.656 3.90244H0.6C0.44087 3.90244 0.288258 3.84077 0.175736 3.73099C0.063214 3.62121 0 3.47232 0 3.31707C0 3.16182 0.063214 3.01293 0.175736 2.90316C0.288258 2.79338 0.44087 2.73171 0.6 2.73171H5.2ZM6.8 6.43902C6.8 6.28378 6.73679 6.13489 6.62426 6.02511C6.51174 5.91533 6.35913 5.85366 6.2 5.85366C6.04087 5.85366 5.88826 5.91533 5.77574 6.02511C5.66321 6.13489 5.6 6.28378 5.6 6.43902V12.2927C5.6 12.4479 5.66321 12.5968 5.77574 12.7066C5.88826 12.8164 6.04087 12.878 6.2 12.878C6.35913 12.878 6.51174 12.8164 6.62426 12.7066C6.73679 12.5968 6.8 12.4479 6.8 12.2927V6.43902ZM9.8 5.85366C9.95913 5.85366 10.1117 5.91533 10.2243 6.02511C10.3368 6.13489 10.4 6.28378 10.4 6.43902V12.2927C10.4 12.4479 10.3368 12.5968 10.2243 12.7066C10.1117 12.8164 9.95913 12.878 9.8 12.878C9.64087 12.878 9.48826 12.8164 9.37574 12.7066C9.26321 12.5968 9.2 12.4479 9.2 12.2927V6.43902C9.2 6.28378 9.26321 6.13489 9.37574 6.02511C9.48826 5.91533 9.64087 5.85366 9.8 5.85366ZM3.7872 13.2425C3.83035 13.677 4.0378 14.0802 4.36909 14.3735C4.70039 14.6669 5.1318 14.8294 5.5792 14.8293H10.4208C10.8682 14.8294 11.2996 14.6669 11.6309 14.3735C11.9622 14.0802 12.1697 13.677 12.2128 13.2425L13.1392 3.90244H2.8608L3.7872 13.2425Z","fill","#BC3F21"],["alt","Cannolai favicon",1,"selected-files-header__image",3,"src"],["alt","Favicon thumbnail","class","selected-files-header__image",3,"src",4,"ngIf"],["alt","Favicon thumbnail",1,"selected-files-header__image",3,"src"],[1,"branding-title__error"],[1,"color-theme__secondary-box"],[1,"font-styles"],["placeholder","Select Font Family",3,"valueChange","onValueChanged","items","value","searchEnabled"],[1,"font-preview"],[1,"font-preview__title",3,"ngStyle"],[1,"font-preview__text",3,"ngStyle"]],template:function(n,e){if(n&1){let i=y();a(0,"div",2)(1,"div",3)(2,"ul",4)(3,"li",5)(4,"a",6),h(5,"Applications"),s()(),a(6,"li",5)(7,"a",6),h(8,"Member Portal"),s()(),a(9,"li",5),h(10,"Style & Theme"),s()()(),a(11,"div",7)(12,"div",8)(13,"h1",9),h(14,"Style & Theme"),s()()(),a(15,"div",10)(16,"form",11)(17,"dx-form",12)(18,"dxi-item")(19,"dx-scroll-view",13)(20,"div",14)(21,"div",15)(22,"h3"),h(23,"Logo Upload"),s(),a(24,"div",16)(25,"div",17)(26,"div",18),f("dragover",function(c){return p(i),u(e.onDragOver(c))})("dragleave",function(c){return p(i),u(e.onDragLeave(c))})("drop",function(c){return p(i),u(e.onFileDropped(c))}),a(27,"div",19)(28,"div",20)(29,"dx-button",21),f("onClick",function(){return p(i),u(e.triggerFileInput())}),s(),a(30,"span",22),h(31,"from your desktop"),s()(),a(32,"div",23)(33,"small"),h(34,"* Max. Upload Size: 15 MB"),s(),a(35,"small"),h(36,"* Allowed Extension: .PNG, .JPG, .SVG"),s()()()(),a(37,"input",24,0),f("change",function(c){return p(i),u(e.onFileSelected(c))}),s(),S(39,Bp,7,0,"div",25)(40,Fp,7,3,"div",26),s()()(),a(41,"div",27)(42,"h2"),h(43,"Branding"),s(),a(44,"div",28)(45,"div",15)(46,"h3"),h(47,"Favicon Upload"),s(),a(48,"p"),h(49,"Shown as the Member Portal browser tab icon. Preview appears before save."),s(),a(50,"div",16)(51,"div",29)(52,"div",18),f("dragover",function(c){return p(i),u(e.onFaviconDragOver(c))})("dragleave",function(c){return p(i),u(e.onFaviconDragLeave(c))})("drop",function(c){return p(i),u(e.onFaviconDropped(c))}),a(53,"div",19)(54,"div",20)(55,"dx-button",21),f("onClick",function(){return p(i),u(e.triggerFaviconInput())}),s(),a(56,"span",22),h(57,"from your desktop"),s()(),a(58,"div",23)(59,"small"),h(60,"* Max. Upload Size: 1 MB"),s(),a(61,"small"),h(62,"* Allowed Extension: .ICO, .PNG"),s(),a(63,"small"),h(64,"* PNG and ICO of any pixel size are allowed"),s()()()(),a(65,"input",30,1),f("change",function(c){return p(i),u(e.onFaviconSelected(c))}),s(),S(67,Wp,6,1,"div",25)(68,qp,7,1,"div",31),s()()(),a(69,"div",32)(70,"span",33),h(71,"Live tab preview"),s(),a(72,"div",34)(73,"div",35),b(74,"img",36),a(75,"span",37),h(76),s()()()()(),a(77,"div",38)(78,"h3"),h(79,"Browser tab title"),s(),a(80,"p"),h(81,"Shown on the Member Portal browser tab."),s(),a(82,"div",39)(83,"dx-text-box",40),f("onValueChanged",function(c){return p(i),u(e.onBrowserTabTitleChanged(c.value))}),s(),a(84,"div",41)(85,"span",42),h(86),s()(),S(87,Up,2,0,"small",43),s()()(),a(88,"div",44)(89,"div",45)(90,"div",46)(91,"h3"),h(92,"Header Backgroun
87d Color"),s(),a(93,"p"),h(94,"Use for Header background"),s(),a(95,"div",39)(96,"dx-color-box",47),_("valueChange",function(c){return p(i),C(e.selectedHeaderBgColor,c)||(e.selectedHeaderBgColor=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onColorChange(c.value))}),s()()(),a(97,"div",46)(98,"h3"),h(99,"Menu Background Color"),s(),a(100,"p"),h(101,"Use for Menu background"),s(),a(102,"div",39)(103,"dx-color-box",47),_("valueChange",function(c){return p(i),C(e.selectedMenuBgColor,c)||(e.selectedMenuBgColor=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onColorChange(c.value))}),s()()()(),S(104,Hp,15,4,"div",48),s(),S(105,jp,9,9,"div",49),s()(),a(106,"div",50),b(107,"dx-button",51),a(108,"dx-button",52),f("onClick",function(){return p(i),u(e.onSaveTheme())}),s()()()()()()()}n&2&&(o(17),l("formData",e.formData),o(22),l("ngIf",!e.companyLogo),o(),l("ngIf",e.companyLogo),o(12),Qi("drag-over",e.isFaviconDragOver),o(15),l("ngIf",e.selectedFaviconFiles.length===0),o(),l("ngForOf",e.selectedFaviconFiles),o(6),l("src",e.faviconPreviewUrl,no),o(2),R(e.tabPreviewTitle),o(),l("formGroup",e.brandingForm),o(6),l("labelMode",e.labelMode)("value",e.brandingForm.controls.browserTabTitle.value)("maxLength",e.maxTabTitleLength)("inputAttr",I(26,Gp)),o(2),Qi("branding-title__count--warn",e.tabTitleLength>=50&&e.tabTitleLength<e.maxTabTitleLength)("branding-title__count--limit",e.tabTitleLength>=e.maxTabTitleLength),o(),O(" ",e.tabTitleCountLabel," "),o(),l("ngIf",e.brandingForm.controls.browserTabTitle.touched&&e.brandingForm.controls.browserTabTitle.invalid),o(9),x("value",e.selectedHeaderBgColor),l("applyValueMode","instantly"),o(7),x("value",e.selectedMenuBgColor),l("applyValueMode","instantly"),o(),l("ngIf",!1),o(),l("ngIf",!1))},dependencies:[bt,vt,Gt,Pt,Ua,ar,Mo,Po,or,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,rr,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".manage-content-outer[_ngcontent-%COMP%] .scroll-outer[_ngcontent-%COMP%]{width:calc(100% + 3rem)}.card-outer__content[_ngcontent-%COMP%]{width:100%;padding:2.5rem 3rem;margin-bottom:0;min-height:100%}.card-outer[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:1.5rem}.card-outer__button[_ngcontent-%COMP%]{padding-top:2rem}.bottom-button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;padding-top:2rem}.color-theme[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;flex-wrap:wrap;margin:0 0 2rem;padding:0 0 1rem;border-bottom:1px solid var(--border-color)}.color-theme__row[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;flex-wrap:wrap}.color-theme__primary-box[_ngcontent-%COMP%]{width:100%;max-width:300px;margin:0 3rem 0 0}.color-theme__secondary-box[_ngcontent-%COMP%]{width:100%;max-width:300px}.color-theme[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem}.color-theme[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem;font:var(--font-weight-500) var(--font-15) var(--font-family);color:var(--body-color)}.color-theme[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%;display:block;margin-bottom:1rem;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color)}.dx-field[_ngcontent-%COMP%]{width:100%;max-width:100%;margin-bottom:1.8rem}.font-styles[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.font-styles[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:360px;margin-bottom:0}.font-styles[_ngcontent-%COMP%] .font-preview[_ngcontent-%COMP%]{background-color:#f3f3f3;padding:2rem;border-radius:4px;max-width:360px}.font-styles[_ngcontent-%COMP%] .font-preview__title[_ngcontent-%COMP%]{margin-bottom:1rem;display:block;font-size:var(--font-20);font-weight:var(--font-weight-600)}.font-styles[_ngcontent-%COMP%] .font-preview__text[_ngcontent-%COMP%]{margin-bottom:0;font-size:var(--font-14)}.branding-section[_ngcontent-%COMP%]{width:100%;margin:0 0 2rem;padding:0 0 2rem;border-bottom:1px solid var(--border-color)}.branding-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;font:var(--font-weight-600) var(--font-20) var(--font-family);color:var(--black-color)}.branding-section__row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:2.5rem;width:100%;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-color)}.branding-section[_ngcontent-%COMP%] .upload-logo[_ngcontent-%COMP%]{flex:1 1 420px;min-width:0;width:auto;margin-bottom:0;padding-bottom:0;border-bottom:none}.branding-section[_ngcontent-%COMP%] .branding-title[_ngcontent-%COMP%]{width:100%;margin-bottom:0;padding-bottom:0;border-bottom:none}.branding-section[_ngcontent-%COMP%] .tab-preview[_ngcontent-%COMP%]{flex:1 1 280px;width:100%;max-width:420px;margin:0;padding:1.25rem}.branding-section[_ngcontent-%COMP%] .favicon-upload[_ngcontent-%COMP%]{flex-wrap:nowrap;align-items:center;gap:0;overflow:visible}.branding-section[_ngcontent-%COMP%] .favicon-upload[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%]{width:395px;max-width:395px}.branding-section[_ngcontent-%COMP%] .favicon-upload[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%]{margin:0 0 0 4rem;width:auto;min-width:7.5rem;overflow:visible}.upload-logo[_ngcontent-%COMP%]{width:100%;margin:0 0 2rem;padding:0 0 2rem;border-bottom:1px solid var(--border-color)}.upload-logo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{width:100%;margin-bottom:1rem}.upload-logo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem;font:var(--font-weight-500) var(--font-15) var(--font-family);color:var(--body-color)}.branding-title[_ngcontent-%COMP%]{margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-color)}.branding-title__meta[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:.4rem}.branding-title__count[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--body-color);font-variant-numeric:tabular-nums;letter-spacing:.01em}.branding-title__count--warn[_ngcontent-%COMP%]{color:#c47b00}.branding-title__count--limit[_ngcontent-%COMP%]{color:#bc3f21;font-weight:var(--font-weight-600)}.branding-title__error[_ngcontent-%COMP%]{display:block;margin-top:.5rem;color:#bc3f21;font:var(--font-weight-500) var(--font-13) var(--font-family)}.tab-preview[_ngcontent-%COMP%]{flex:1 1 280px;width:100%;max-width:420px;margin:0;padding:1.25rem 1.25rem 0;border:1px solid var(--border-color);border-radius:8px;background-color:var(--white-color)}.tab-preview__label[_ngcontent-%COMP%]{display:block;margin-bottom:.75rem;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color)}.tab-preview__bar[_ngcontent-%COMP%]{background:#e8eaed;border-radius:8px 8px 0 0;padding:.6rem .6rem 0}.tab-preview__tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;background:#fff;border-radius:8px 8px 0 0;padding:.45rem .85rem;box-shadow:0 -1px 2px #00000014}.tab-preview__icon[_ngcontent-%COMP%], .tab-preview__icon-placeholder[_ngcontent-%COMP%]{width:16px;height:16px;flex:0 0 16px;object-fit:contain}.tab-preview__icon-placeholder[_ngcontent-%COMP%]{border-radius:2px;background:#c5c5c5}.tab-preview__title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--black-color)}.drag-drop-area.drag-over[_ngcontent-%COMP%]{border-color:var(--accent-color);background-color:#219ebc14}.file-upload-container[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%]{width:395px;border:1px dashed var(--secondary-color);border-radius:4px;padding:2rem;text-align:center;background-color:var(--white-color);transition:all var(--transition-duration, .3s) ease;cursor:pointer}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .drag-drop-icon[_ngcontent-%COMP%]{margin-bottom:var(--spacing-md, 1rem)}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .drag-drop-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{opacity:var(--opacity-medium, .6)}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .from-your-desktop[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;-webkit-align-items:center;align-items:center;margin-bottom:2rem}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]{margin:0 2rem 0 0;width:auto;border:none;background-color:var(--accent-color);border-color:var(--accent-color)}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]:hover, .file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%]:focus{background-color:var(--accent-hover-color)!important;border-color:var(--accent-hover-color)!important}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .browse-btn[_ngcontent-%COMP%] .dx-button-content{padding:var(--spacing-sm, .5rem) var(--spacing-lg, 1.5rem)}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:block;font:var(--font-weight-600) var(--font-14) var(--font-family);color:var(--body-color)}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .file-size-limit[_ngcontent-%COMP%]{margin-top:1rem;padding-top:2rem;border-top:1px solid var(--border-color);padding-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .drag-drop-area[_ngcontent-%COMP%] .drag-drop-content[_ngcontent-%COMP%] .file-size-limit[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:block;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--body-color);margin-bottom:1rem}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%]{margin:0 0 0 4rem;width:calc(100% - 393px);overflow:visible}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%] h4[_ng
87content-%COMP%]{font:var(--font-weight-500) var(--font-15) var(--font-family);color:var(--black-color);margin-bottom:1.5rem}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%] .selected-files-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-500) var(--font-15) var(--font-family);color:var(--body-color);overflow:visible}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%] .selected-files-header__thumb-image[_ngcontent-%COMP%]{background-color:var(--upload-bg-color);border-radius:5px;width:93px;height:93px;margin-right:2rem;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;justify-content:center;-webkit-justify-content:center;position:relative;overflow:visible}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%] .selected-files-header__thumb-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:93px;max-height:93px}.file-upload-container[_ngcontent-%COMP%] .selected-files-section[_ngcontent-%COMP%] .selected-files-header[_ngcontent-%COMP%] .remove-file-btn[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px;border:1px solid #ddd;background-color:var(--white-color);border-radius:50%;padding:.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5}.color-display[_ngcontent-%COMP%]{width:300px;height:150px;margin-top:20px;border:1px solid #ccc;border-radius:8px;padding:10px;color:#fff;font-weight:700}"]})}}return r})();var ts=(()=>{class r{constructor(t,n){this.webStorageService=t,this.router=n,this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"])}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(St))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-client-smtp-configuration"]],standalone:!0,features:[Q],decls:17,vars:0,consts:[[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Integration Services"),s()(),a(9,"li",3),h(10,"Email Service"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Email Service"),s()()(),a(15,"div",8),b(16,"smtp-configurations"),s()())},dependencies:[bt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Vr]})}}return r})();var is=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-view-accounting"]],standalone:!0,features:[Q],decls:9,vars:0,consts:[[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Integration Services"),s()(),a(6,"li",3),h(7,"Accounting Integration"),s()()(),b(8,"app-quickbooks-developer-configurations"),s())},dependencies:[bt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Ir]})}}return r})();var ns=(()=>{class r{constructor(t,n){this.webStorageService=t,this.router=n,this.webStorageService.getCurrentUserToken()||this.router.navigate(["/login"])}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(St))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-client-hubspot-configuration"]],standalone:!0,features:[Q],decls:17,vars:0,consts:[[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Integration Services"),s()(),a(9,"li",3),h(10,"HubSpot Private App Account"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"HubSpot Private App Account"),s()()(),a(15,"div",8),b(16,"hubspot-configurations"),s()())},dependencies:[bt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Er]})}}return r})();var fo=class{};var Ln=class{constructor(){this.entityName="",this.propertyName="",this.demographicsTreeBoxValue=[],this.treeBoxSearchValue="",this.properties=[],this.hubspotProperties=[],this.controlType="TextBox",this.options=[],this.fieldType="",this.type="",this.hubspotOptions=[],this.multiOptions=[],this.assignedNumerValue=0,this.assignedDateValue=""}};var Ho=class{constructor(){this.options=[]}};var jo=(()=>
87{class r extends En{constructor(t,n){super(t,n),this.apiUrl="HubspotSyncConfiguration"}setEnabled(t){return this.post(`${this.apiUrl}/SetEnabled`,t)}addOrUpdateCriteriaByEntity(t,n){return this.post(`${this.apiUrl}/AddOrUpdateCriteria/${t}`,n)}getAllCriteriasByEntity(t){return this.get(`${this.apiUrl}/GetAllCriterias/${t}`)}getTenantEntitiesForHubspotSync(){return this.get(`${this.apiUrl}/GetTenantEntitiesForHubspotSync`)}getHubspotConfigurationAsync(){return this.get(`${this.apiUrl}/GetHubspotConfigurationAsync`)}deleteCriteriaByEntitysAsync(t){return this.get(`${this.apiUrl}/DeleteCriteriaByEntitysAsync/${t}`)}GetHubspotPropertiesByEntity(t){return this.get(`${this.apiUrl}/GetHubspotProperties/${t}`)}triggerContactCompanySyncFromHubspot(t){return this.get(`${this.apiUrl}/TriggerContactCompanySyncFromHubspot/${t}`)}isSyncProcessRunning(t){return this.get(`${this.apiUrl}/IsSyncProcessRunning/${t}`)}static{this.\u0275fac=function(n){return new(n||r)(nn(sn),nn(yt))}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var kn=(()=>{class r extends En{constructor(t,n){super(t,n)}GetContactHubspotProperties(){return this.get("TenantHubspot/GetContactHubspotProperties")}GetCompanyHubspotProperties(){return this.get("TenantHubspot/GetCompaniesProperties")}GetPropertiesAndMapping(t){return this.get(`TenantHubspot/GetPropertiesAndMapping/${t}`)}CreateObjectProperty(t,n){return this.post(`TenantHubspot/CreateObjectProperty/${t}?entityName=${t}`,n)}GetIsSyncEnabled(){return this.get("TenantHubspot/GetIsSyncEnabled")}SetIsSyncEnabled(t){return this.get(`TenantHubspot/SetIsSyncEnabled/${t}`)}UpdateFieldMapping(t,n){return this.post(`TenantHubspot/UpdateFieldMapping/${t}?entityName=${t}`,n)}static{this.\u0275fac=function(n){return new(n||r)(nn(sn),nn(yt))}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var zp=["targetGroup"],Zp=["treeView"],ua=()=>({"aria-label":"Entity"}),Qp=()=>({id:"elementId",class:"class-name"}),vn=()=>({"aria-label":"Simple Product"}),as=()=>({"aria-label":"checked"}),rs=()=>({"aria-label":"Position",class:"drop-down-box-box"});function Yp(r,g){if(r&1){let t=y();a(0,"div",43)(1,"div",44)(2,"div",45)(3,"a",46),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.SetRuleItemLogicalCondition(e.rowno,"And"))}),h(4,"And"),s(),a(5,"a",46),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.SetRuleItemLogicalCondition(e.rowno,"Or"))}),h(6,"Or"),s()()()()}if(r&2){let t=m().$implicit;o(3),l("ngClass",t.logicalCondition==="And"?"active":""),o(2),l("ngClass",t.logicalCondition==="Or"?"active":"")}}function Kp(r,g){if(r&1&&(a(0,"div")(1,"div",49),h(2),s()()),r&2){let t=g.$implicit;o(2),wo(" ",t.pageName," : ",t.controlLabel," (",t.controlType,") ")}}function Jp(r,g){if(r&1){let t=y();a(0,"dx-select-box",47),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.controlUniqId,e)||(i.controlUniqId=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m(2);return u(d.onSelectProperty(e,i.rowno))}),S(1,Kp,3,3,"div",48),s()}if(r&2){let t=m().$implicit,n=m(2);l("showClearButton",!0)("labelMode",n.labelMode)("searchEnabled",!0)("dataSource",t.properties),x("value",t.controlUniqId),l("inputAttr",I(7,ua)),o(),l("dxTemplateOf","itemtemplate")}}function Xp(r,g){if(r&1&&(a(0,"div")(1,"div",49),h(2),s()()),r&2){let t=g.$implicit;o(2),O(" ",t.label," ")}}function $p(r,g){if(r&1){let t=y();a(0,"dx-select-box",50),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.hubspotFieldName,e)||(i.hubspotFieldName=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m(2);return u(d.onSelectHubspotProperty(e,i.rowno))}),S(1,Xp,3,1,"div",48),a(2,"dx-validator"),b(3,"dxi-validation-rule",51),s()()}if(r&2){let t=m().$implicit,n=m(2);l("showClearButton",!0)("labelMode",n.labelMode)("searchEnabled",!0)("dataSource",t.groupedPropertyDataSource),x("value",t.hubspotFieldName),l("inputAttr",I(8,ua))("grouped",!0),o(),l("dxTemplateOf","itemtemplate")}}function eu(r,g){if(r&1){let t=y();a(0,"div",58)(1,"dx-tree-view",59,1),_("searchValueChange",function(e){p(t);let i=m(3).$implicit;return C(i.treeBoxSearchValue,e)||(i.treeBoxSearchValue=e),u(e)}
87),f("onContentReady",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.onDemoTreeViewReady(e,i.rowno))})("onItemSelectionChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.onDemoTreeViewSelectionChanged(e,i.rowno))}),s()()}if(r&2){let t=m(3).$implicit;o(),l("dataSource",t.multiOptions),x("searchValue",t.treeBoxSearchValue),l("searchEnabled",!0)("selectByClick",!0)}}function tu(r,g){if(r&1){let t=y();a(0,"dx-drop-down-box",56),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValues,e)||(i.assignedValues=e),u(e)}),f("onClosed",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.onDemoMultiselectClosed(e,i.rowno))}),S(1,eu,3,4,"div",57),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(5,rs))("dataSource",t.multiOptions),x("value",t.assignedValues),o(),l("dxTemplateOf","content")}}function iu(r,g){if(r&1){let t=y();a(0,"dx-date-box",63),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.setDateValue(e,i.rowno))}),s()}if(r&2){let t=m(3).$implicit,n=m(2);l("labelMode",n.labelMode)("value",t.assignedDateValue)("inputAttr",I(3,vn))}}function nu(r,g){if(r&1){let t=y();a(0,"dx-select-box",64),_("valueChange",function(e){p(t);let i=m(3).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.checkForSelectBoxExistingValue(e,i.rowno))}),s()}if(r&2){let t=m(3).$implicit,n=m(2);l("labelMode",n.labelMode)("items",n.relativeDateOptions),x("value",t.assignedValue),l("inputAttr",I(6,vn))("showClearButton",!1)("searchEnabled",!0)}}function ou(r,g){if(r&1&&(a(0,"div",60),S(1,iu,1,4,"dx-date-box",61)(2,nu,1,7,"dx-select-box",62),s()),r&2){let t=m(2).$implicit;o(),l("ngIf",!t.isRelativeDate),o(),l("ngIf",t.isRelativeDate)}}function au(r,g){if(r&1){let t=y();a(0,"dx-number-box",65),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedNumerValue,e)||(i.assignedNumerValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.setNumberValue(e,i.rowno))}),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(5,vn)),x("value",t.assignedNumerValue),l("min",0)("showSpinButtons",!0)}}function ru(r,g){if(r&1){let t=y();a(0,"dx-text-box",66),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.checkForTextBoxExistingValue(e,i.rowno))}),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(3,vn)),x("value",t.assignedValue)}}function su(r,g){if(r&1&&(a(0,"div",30),S(1,tu,2,6,"dx-drop-down-box",52)(2,ou,3,2,"div",53)(3,au,1,6,"dx-number-box",54)(4,ru,1,4,"dx-text-box",55),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.controlType==="MultiSelectbox"||t.controlType==="Selectbox"||t.controlType==="SelectBox"),o(),l("ngIf",t.controlType==="Datepicker"),o(),l("ngIf",t.controlType==="Numberbox"),o(),l("ngIf",t.controlType==="TextBox"||t.controlType==="Textbox")}}function lu(r,g){if(r&1){let t=y();a(0,"div",58)(1,"dx-tree-view",59,1),_("searchValueChange",function(e){p(t);let i=m(3).$implicit;return C(i.treeBoxSearchValue,e)||(i.treeBoxSearchValue=e),u(e)}),f("onContentReady",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.onDemoTreeViewReady(e,i.rowno))})("onItemSelectionChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.onDemoTreeViewSelectionChanged(e,i.rowno))}),s()()}if(r&2){let t=m(3).$implicit;o(),l("dataSource",t.multiOptions),x("searchValue",t.treeBoxSearchValue),l("searchEnabled",!0)("selectByClick",!0)}}function du(r,g){if(r&1){let t=y();a(0,"dx-drop-down-box",56),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValues,e)||(i.assignedValues=e),u(e)}),f("onClosed",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.onDemoMultiselectClosed(e,i.rowno))}),S(1,lu,3,4,"div",57),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(5,rs))("dataSource",t.multiOptions),x("value",t.assignedValues),o(),l("dxTemplateOf","content")}}function cu(r,g){if(r&1){let t=y();a(0,"dx-date-box",63),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.setDateValue(e,i.rowno))}),s()}if(r&2){let t=m(3).$implicit,n=m(2);l("labelMode",n.labelMode)("value",t.assignedDateValue)("inputAttr",I(3,vn))}}function pu(r,g){if(r&1){let t=y();a(0,"dx-select-box",64),_("valueChange",function(e){p(t);let i=m(3).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m(3).$implicit,d=m(2);return u(d.checkForSelectBoxExistingValue(e,i.rowno))}),s()}if(r&2){let t=m(3).$implicit,n=m(2);l("labelMode",n.labelMode)("items",n.relativeDateOptions),x("value",t.assignedValue),l("inputAttr",I(6,vn))("showClearButton",!1)("searchEnabled",!0)}}function uu(r,g){if(r&1&&(a(0,"div",60),S(1,cu,1,4,"dx-date-box",61)(2,pu,1,7,"dx-select-box",62),s()),r&2){let t=m(2).$implicit;o(),l("ngIf",!t.isRelativeDate),o(),l("ngIf",t.isRelativeDate)}}function mu(r,g){if(r&1){let t=y();a(0,"dx-number-box",65),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedNumerValue,e)||(i.assignedNumerValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.setNumberValue(e,i.rowno))}),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(5,vn)),x("value",t.assignedNumerValue),l("min",0)("showSpinButtons",!0)}}function gu(r,g){if(r&1){let t=y();a(0,"dx-text-box",66),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.checkForTextBoxExistingValue(e,i.rowno))}),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("inputAttr",I(3,vn)),x("value",t.assignedValue)}}function hu(r,g){if(r&1){let t=y();a(0,"dx-select-box",68),_("valueChange",function(e){p(t);let i=m(2).$implicit;return C(i.assignedValue,e)||(i.assignedValue=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2).$implicit,d=m(2);return u(d.checkForSelectBoxExistingValue(e,i.rowno))}),s()}if(r&2){let t=m(2).$implicit,n=m(2);l("labelMode",n.labelMode)("items",t.hubspotOptions),x("value",t.assignedValue),l("inputAttr",I(6,vn))("showClearButton",!0)("searchEnabled",!0)}}function fu(r,g){if(r&1&&(a(0,"div",30),S(1,du,2,6,"dx-drop-down-box",52)(2,uu,3,2,"div",53)(3,mu,1,6,"dx-number-box",54)(4,gu,1,4,"dx-text-box",55)(5,hu,1,7,"dx-select-box",67),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.type==="enumeration"),o(),l("ngIf",t.type==="datetime"),o(),l("ngIf",t.type==="number"),o(),l("ngIf",t.type==="string"),o(),l("ngIf",t.type==="bool"&&t.fieldType==="booleancheckbox")}}function Cu(r,g){if(r&1){let t=y();a(0,"a",69),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.RemoveCriteriaItem(e.rowno))}),A(),a(1,"svg",70),b(2,"circle",71)(3,"path",72)(4,"path",73),s()()}}function _u(r,g){if(r&1){let t=y();a(0,"a",69),f("click",function(){p(t);let e=m(3);return u(e.AddCriteriaItem())}),A(),a(1,"svg",70),b(2,"circle",74)(3,"path",75)(4,"path",76),s()()}}function yu(r,g){if(r&1){let t=y();a(0,"dx-check-box",77),_("valueChange",function(e){p(t);let i=m().$implicit;return C(i.isRelativeDate,e)||(i.isRelativeDate=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m().$implicit,d=m(2);return u(d.onRelativeDateChanged(e,i))}),s()}if(r&2){let t=m().$implicit;x("value",t.isRelativeDate),l("elementAttr",I(2,as))}}function xu(r,g){if(r&1){let t=y();xi(0),S(1,Yp,7,2,"div",26),a(2,"div",27)(3,"div",28)(4,"span",29),h(5,"If"),s(),a(6,"div",30)(7,"dx-select-box",31),_("valueChange",function(e){p(t);let i=m(2);return C(i.entityID,e)||(i.entityID=e),u(e)}),s()(),a(8,"div",32),S(9,Jp,2,8,"dx-select-box",33)(10,$p,4,9,"dx-select-box",34),s()(),a(11,"div",28)(12,"div",35)(13,"dx-select-box",36),_("valueChange",function(e){let i=p(t).$implicit;return C(i.condition,e)||(i.condition=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onSelectCondition(e,i.rowno))}),a(14,"dx-validator"),b(15,"dxi-validation-rule",37),s()()(),S(16,su,5,4,"div",38)(17,fu,6,5,"div",38),a(18,"div",39),S(19,Cu,5,0,"a",40)(20,_u,5,0,"a",40),s(),S(21,yu,1,3,"dx-check-box",41),s(),a(22,"div",28)(23,"div",32)(24,"dx-check-box",42),_("valueChange",function(e){let i=p(t).$implicit;return C(i.isIncludeBlanckNullEmpty,e)||(i.isIncludeBlanckNullEmpty=e),u(e)}),s()()()(),vi()}if(r&2){let t=g.$implicit,n=g.index,e=m(2);o(),l("ngIf",n!=0),o(6),l("showClearButton",!0)("labelMode",e.labelMode)("disabled",!0)("dataSource",t.groupedEntityDataSource),x("value",e.entityID),l("inputAttr",I(22,ua))("grouped",!0)("elementAttr",I(23,Qp)),o(2),l("ngIf",!e.isHubspotProperty),o(),l("ngIf",e.isHubspotProperty),o(3),l("labelMode",e.labelMode)("items",e.Condition)("inputAttr",I(24,vn)),x("value",t.condition),o(3),l("ngIf",!e.isHubspotProperty),o(),l("ngIf",e.isHubspotProperty),o(2),l("ngIf",e.GetActiveGroupItem().length>1),o(),l("ngIf",t.rowno==e.GetActiveGroupItem().length),o(),l("ngIf",t.controlType==="Datepicker"),o(3),x("value",t.isIncludeBlanckNullEmpty),l("elementAttr",I(25,as))}}function vu(r,g){if(r&1&&(a(0,"div",23)(1,"div",24),S(2,xu,25,26,"ng-container",25),s()()),r&2){let t=m();o(2),l("ngForOf",t.GetActiveGroupItem())}}/localhost/.test(document.location.host)||void 0;var ma=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V,E){super(),this.router=n,this.activatedRoute=e,this.hubspotSyncConfigurationService=i,this.webStorageService=d,this.eligibilityService=c,this.propertyService=v,this.hubspotService=V,this.cdr=E,this.EnumProductType=zn,this.EnumFlagTypes=Io,this.productCategoryId=0,this.unsubscriber=new Ct,this.progress=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.mode="",this.relativeDateOptions=["Today"],this.hubspotModel=[],this.isHubspotProperty=!0,this.type="",this.propertyValidator=[{type:"required",message:"Property is required"}],this.conditionValidator=[{type:"required",message:"Condition is required"}],this.assignValueValidator=[{type:"required",message:"Property is required"}],this.eligibilityRuleModel=new Pn,this.entitiesModel=[],this.groupedEntites=[],this.allProperties=[],this.previewEligibilityRuleGroups=[],this.hubspotSyncConfigEntityMappingCriteria=[],this.hubspotSyncConfigEntityMappingCriteriaResponse=[],this.eligibilityRuleId=0,this.saveButtonText="Create",this.saveAndViewButtonText="Create & View",this.entity
87ID=0,this.isEntitityDisabled=!1,this.isEdit=!1,this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(T=>{this.mode=T.mode,this.type=T.type,this.entityName=this.type,this.mode&&this.mode.toLowerCase()=="edit"&&(this.isEdit=!0,this.saveButtonText="Save",this.saveAndViewButtonText="Save & View"),this.loadData()}),this.Condition=Object.values(ur)}multiSelectDisplayFormatter(t){return()=>String(t?.assignedValue??"")}loadData(){return B(this,null,function*(){this.loading=!0,Yt([this.hubspotSyncConfigurationService.getTenantEntitiesForHubspotSync(),this.eligibilityService.GetAllPropertyForEligibilityRules(!0),this.hubspotSyncConfigurationService.GetHubspotPropertiesByEntity(this.entityName)]).pipe(Qt(([t,n,e])=>({entitiesModel:t,allProperties:n,hubspotModel:e}))).subscribe(t=>{this.loading=!1,Object.keys(t).forEach(e=>this[e]=t[e].responseModel),this.groupedEntites=[];let n=this.allProperties.filter((e,i,d)=>["AddressLine1","AddressLine2","City","State","Country","Zipcode","EmailAddress","PhoneNumber","AddressTypeId","IsBilling","IsPrimary","IsPublic"].includes(e.sourceColumnName)?i===d.findIndex(c=>c.entityName===e.entityName&&c.sourceColumnName===e.sourceColumnName&&c.pageName===e.pageName):(this.entitiesModel!=null&&this.entitiesModel.length>0&&(this.entityID=this.entitiesModel.find(c=>c.name==this.entityName)?.entityID,this.entityID>0&&(this.isEntitityDisabled=!0)),!0));this.allProperties=n,this.entitiesModel&&[...new Set(this.entitiesModel.map(i=>i.entityType))].forEach(i=>{let d=new ui;d.category=i=="Entity"?"":i,d.entities=this.entitiesModel.filter(c=>c.entityType==i),this.groupedEntites.push(d)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(e){return e.key=e.category,e.items=e.entities,e}}),this.hubspotDataSource=new ri({store:new kt({data:this.hubspotModel,key:"name"}),group:"groupName"}),this.mode&&this.mode.toLowerCase()=="edit"?this.GetAllCriteriasByEntity(this.entityName):this.clearEligibilityModel(),this.loading=!1})})}GetCompanyHubSpotField(){this.hubspotModel=[],this.hubspotService.GetCompanyHubspotProperties().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.hubspotModel=t.responseModel,this.hubspotDataSource=new ri({store:new kt({data:this.hubspotModel,key:"name"}),group:"groupName"}))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetContactHubSpotField(){this.hubspotModel=[],this.hubspotService.GetContactHubspotProperties().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.hubspotModel=t.responseModel,this.hubspotDataSource=new ri({store:new kt({data:this.hubspotModel,key:"name"}),group:"groupName"}))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onDemoTreeViewReady(t,n){let e=this.hubspotSyncConfigEntityMappingCriteriaResponse.find(i=>i.rowno==n).assignedValues;this.updateDemographicsSelection(t.component,e)}updateDemographicsSelection(t,n){t&&(n||t.unselectAll(),n&&n.length==0&&t.unselectAll(),n?.forEach(e=>{t.selectItem(e)}))}onDemoTreeViewSelectionChanged(t,n){let e=this.hubspotSyncConfigEntityMappingCriteriaResponse.find(c=>c.rowno==n).demographicsTreeBoxValue,i=e??new Array;t.node.selected==!1&&(i=i.filter(c=>c!=String(t.node.key)));let d=t.component.getSelectedNodes();d.length>0&&d.forEach(c=>{i.find(V=>V==c.key)||i.push(String(c.key))}),this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(c=>c.rowno==n).forEach(c=>{c.demographicsTreeBoxValue=JSON.parse(JSON.stringify(i)),c.assignedValue=c.demographicsTreeBoxValue.join(","),c.assignedValues=c.demographicsTreeBoxValue})}onDemoMultiselectClosed(t,n){this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(e=>e.rowno==n).forEach(e=>{e.treeBoxSearchValue=""})}displayValue(t){return t}onRelativeDateChanged(t,n){t.value?n.assignedValue=this.relativeDateOptions.find(e=>e):n.assignedValue=""}clearEligibilityModel(){let t=new Ln;t.hubspotSyncConfigEntityMappingCriteriaId=0,t.hubspotSyncConfigEntityMappingId=0,t.groupedEntityDataSource=this.fromPregroupedData,t.groupedEntityDataSource.load(),t.groupedPropertyDataSource=this.hubspotDataSource,t.groupedPropertyDataSource.load(),t.properties=Object.assign([],this.allProperties.filter(n=>n.entityName==this.entityName)),t.hubspotProperties=Object.assign([],this.hubspotModel),t.logicalCondition=="And",t.isActive=!0,t.modifiedByUserId=this.userToken.userId,t.isActive=!0,this.hubspotSyncConfigEntityMappingCriteriaResponse.push(t),this.ResetItemsRowNo()}GetAllCriteriasByEntity(t){return B(this,null,function*(){if(!t)return;let n=this;this.loading=!0,this.hubspotSyncConfigurationService.getAllCriteriasByEntity(t).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{if(this.loading=!1,e&&e.isSuccess){if(e.responseModel!=null&&e.responseModel!=null){let i=new Array,d=e.responseModel;if(d!=null&&d.length>0){let c=1;d.forEach(v=>{let V=new Ln;V.rowno=c,this.isEdit?(V.hubspotSyncConfigEntityMappingCriteriaId=v.hubspotSyncConfigEntityMappingCriteriaId,V.hubspotSyncConfigEntityMappingId=v.hubspotSyncConfigEntityMappingId):(V.hubspotSyncConfigEntityMappingCriteriaId=0,V.hubspotSyncConfigEntityMappingId=0),V.groupedEntityDataSource=n.fromPregroupedData,V.groupedEntityDataSource.load(),V.groupedPropertyDataSource=this.hubspotDataSource,V.groupedPropertyDataSource.load(),V.properties=Object.assign([],this.allProperties.filter(T=>T.entityName==t)),V.propertyReferenceId=v.propertyReferenceId,V.isMultiselect=v.isMultiselect,V.isDemographicsType=v.isDemographicsType,V.c
87ontrolUniqId=V.properties.find(T=>T.controlId==v.propertyReferenceId&&T.isDemographicsType==v.isDemographicsType)?.controlUniqId,V.logicalCondition=v.logicalCondition,V.isActive=!0,V.modifiedByUserId=this.userToken.userId,V.isIncludeBlanckNullEmpty=v.isIncludeBlanckNullEmpty,V.condition=v.condition;let E=V.properties.find(T=>T.controlId==V.propertyReferenceId&&T.isDemographicsType==V.isDemographicsType);if(E&&(V.controlType=E.controlType,V.options=E.options),V.hubspotProperties=Object.assign([],this.hubspotModel),V.hubspotProperties!=null&&V.hubspotProperties.length>0){let T=V.hubspotProperties.find(D=>D.name==v.hubspotFieldName);T&&(V.fieldType=T.fieldType,V.type=T.type,V.hubspotOptions=T.options)}if(V.hubspotFieldCaption=v.hubspotFieldCaption,V.hubspotGroupName=v.hubspotGroupName,V.hubspotFieldName=v.hubspotFieldName,this.isHubspotProperty==!0)if(V.options&&Array.isArray(V.hubspotOptions)?V.multiOptions=V.hubspotOptions.map(T=>typeof T=="object"&&T!==null?{strDisplay:String(T.label),strValue:String(T.value)}:{strDisplay:String(T.label),strValue:String(T.value),selected:!1}):V.multiOptions=[],V.type=="number")V.assignedNumerValue=Number(v.assignedValue),V.assignedValue=v.assignedValue;else if(V.type=="datetime")V.isRelativeDate=v.assignedValue=="Today",V.assignedDateValue=!V.isRelativeDate&&v.assignedValue?v.assignedValue:null,V.assignedValue=v.assignedValue;else if(V.type=="enumeration"){let T=v.assignedValue.split(",").map(D=>D.trim());V.assignedValues=T,V.assignedValue=v.assignedValue}else V.assignedValue=v.assignedValue;else if(V.options&&Array.isArray(V.options)?V.multiOptions=V.options.map(T=>typeof T=="object"&&T!==null?{strDisplay:String(T),strValue:String(T)}:{strDisplay:String(T),strValue:String(T),selected:!1}):V.multiOptions=[],V.controlType=="Numberbox")V.assignedNumerValue=Number(v.assignedValue),V.assignedValue=v.assignedValue;else if(V.controlType=="Datepicker")V.isRelativeDate=v.assignedValue=="Today",V.assignedDateValue=!V.isRelativeDate&&v.assignedValue?v.assignedValue:null,V.assignedValue=v.assignedValue;else if(V.controlType=="MultiSelectbox"||V.controlType=="Selectbox"||V.controlType=="SelectBox"){let T=v.assignedValue.split(",").map(D=>D.trim());V.assignedValues=T,V.assignedValue=v.assignedValue}else V.assignedValue=v.assignedValue;V.isActive=!0,i.push(V),this.hubspotSyncConfigEntityMappingCriteriaResponse.push(V),c=c+1})}}this.loading=!1}else this.loading=!1,this.showErrorMessage(e.message)})},e=>{this.loading=!1,this.showErrorMessage(e.message)})})}GetActiveGroup(){return this.eligibilityRuleModel.eligibilityRuleGroups.filter(t=>t.isActive)}GetActiveGroupItem(){return this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(t=>t.isActive)}SetRuleItemLogicalCondition(t,n){this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(e=>e.rowno==t).forEach(e=>{e.logicalCondition=n})}onSelectProperty(t,n){if(t.event!=null){let i=new Lo;t.value&&(i=Object.assign({},this.allProperties.find(d=>d.controlUniqId==t.value)),this.hubspotSyncConfigEntityMappingCriteriaResponse.find(c=>c.propertyReferenceId==i.controlId&&c.isDemographicsType==i.isDemographicsType&&c.isActive)&&this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(c=>c.rowno==n).forEach(c=>{c.propertyReferenceId=0,c.isDemographicsType=!1,c.controlUniqId=0,c.isActive=!0,c.modifiedByUserId==this.userToken.userId})),this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(d=>d.rowno==n).forEach(d=>{d.propertyReferenceId=t.value==null||t.value==null?null:i.controlId,d.isDemographicsType=t.value==null||t.value==null?!1:i.isDemographicsType,d.controlUniqId=t.value==null||t.value==null?null:i.controlUniqId,d.controlType=t.value==null||t.value==null?"TextBox":i.controlType,d.options=t.value==null||t.value==null?[]:i.options,d.options&&Array.isArray(d.options)?d.multiOptions=d.options.map(c=>typeof c=="object"&&c!==null?{strDisplay:String(c),strValue:String(c)}:{strDisplay:String(c),strValue:String(c),selected:!1}):d.multiOptions=[],d.assignedValue="",d.assignedNumerValue=null,d.assignedDateValue=null})}}onSelectHubspotProperty(t,n){if(t.event!=null){let i=new Ho;t.value&&(i=Object.assign({},this.hubspotModel.find(d=>d.name==t.value)),this.hubspotSyncConfigEntityMappingCriteriaResponse.find(c=>c.hubspotFieldName==i.name)&&this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(c=>
87c.rowno==n).forEach(c=>{c.hubspotFieldCaption=i.label,c.hubspotGroupName=i.groupName,c.assignedDatatype=i.fieldType,c.isActive=!0,c.modifiedByUserId==this.userToken.userId})),this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(d=>d.rowno==n).forEach(d=>{d.hubspotFieldName=t.value==null||t.value==null?null:i.name,d.type=t.value==null||t.value==null?"string":i.type,d.fieldType=t.value==null||t.value==null?"text":i.fieldType,d.hubspotOptions=t.value==null||t.value==null?[]:i.options,d.hubspotOptions&&Array.isArray(d.hubspotOptions)?d.multiOptions=d.hubspotOptions.map(c=>typeof c=="object"&&c!==null?{strDisplay:String(c.label),strValue:String(c.value)}:{strDisplay:String(c.label),strValue:String(c.value),selected:!1}):d.multiOptions=[],d.assignedValue="",d.assignedNumerValue=null,d.assignedDateValue=null})}}ResetItemsRowNo(){let t=1;this.hubspotSyncConfigEntityMappingCriteriaResponse.forEach(n=>{n.isActive?(n.rowno=t,n.rowno==1&&(n.logicalCondition=""),t=t+1):n.rowno=0})}RemoveGroupItem(t){}GetActiveCriteria(t){return t.filter(n=>n.isActive)}SetRuleCriteriaLogicalCondition(t,n,e,i){this.eligibilityRuleModel.eligibilityRuleGroups.filter(d=>d.rowno==t).forEach(d=>{d.eligibilityRuleGroupItems.filter(c=>c.rowno==n).forEach(c=>{c.itemCriterias.filter(v=>v.rowno==e).forEach(v=>{v.logicalCondition=i})})})}onSelectCondition(t,n){t.value}checkForExistingValue(t){this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(e=>e.rowno==t).forEach(e=>{})}checkForSelectBoxExistingValue(t,n){}convertDemoDate(t){let n=new Date(t),e=("0"+(n.getMonth()+1)).slice(-2),i=("0"+n.getDate()).slice(-2);return[e,i,n.getFullYear()].join("/")}setDateValue(t,n){t.value!=""&&t.value!=null?(this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedDateValue=t.value,this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedValue=this.convertDemoDate(t.value.toString()),this.checkForExistingValue(n)):(this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedDateValue=null,this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedValue="")}setNumberValue(t,n){t.value!=""&&t.value!=null?(this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedNumerValue=t.value,this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedValue=t.value.toString(),this.checkForExistingValue(n)):(this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedDateValue=null,this.hubspotSyncConfigEntityMappingCriteriaResponse.find(e=>e.rowno==n).assignedValue="")}checkForTextBoxExistingValue(t,n){t.value&&this.checkForExistingValue(n)}RemoveCriteriaItem(t){this.hubspotSyncConfigEntityMappingCriteriaResponse.find(n=>n.rowno==t).isActive=!1,this.ResetGroupRowNo()}AddCriteriaItem(){let t=new Ln;t.hubspotSyncConfigEntityMappingCriteriaId=0,t.hubspotSyncConfigEntityMappingId=0,t.groupedEntityDataSource=this.fromPregroupedData,t.groupedEntityDataSource.load(),t.properties=Object.assign([],this.allProperties.filter(i=>i.entityName==this.entityName)),t.groupedPropertyDataSource=this.hubspotDataSource,t.groupedPropertyDataSource.load(),t.logicalCondition="And",t.isActive=!0,t.modifiedByUserId=this.userToken.userId;let n=0,e=!1;if(n>0){let i=Object.assign({},this.allProperties.find(d=>d.controlId==n&&d.isDemographicsType==e));t.isActive=!0,t.modifiedByUserId=this.userToken.userId,i!=null&&i!=null?(t.controlType=i.controlType,t.options=i.options):(t.controlType="TextBox",t.type="text",t.options=[],t.hubspotOptions=[]),this.hubspotSyncConfigEntityMappingCriteriaResponse.filter(d=>d.isActive).length>0&&(t.logicalCondition="And")}this.hubspotSyncConfigEntityMappingCriteriaResponse.push(t),this.ResetGroupRowNo()}ResetGroupRowNo(){let t=1;this.hubspotSyncConfigEntityMappingCriteriaResponse.forEach(n=>{n.isActive?(n.rowno=t,n.rowno==1&&(n.logicalCondition=""),t=t+1):n.rowno=0})}AddGroupItem(t){this.eligibilityRuleModel.eligibilityRuleGroups.filter(n=>n.rowno==t).forEach(n=>{let e=new Mn;e.entities=this.entitiesModel,e.groupedDataSource=this.fromPregroupedData,e.groupedDataSource?.load(),e.itemCriterias=[],e.isActive=!0,e.modifiedByUserId=this.userToken.userId;let i=new cn;i.isActive=!0,i.modifiedByUserId=this.userToken.userId,e.itemCriterias.push(i),n.eligibilityRuleGroupItems.filter(d=>d.isActive).length>0&&(e.logicalCondition="And"),n.eligibilityRuleGroupItems.push(e)}),this.ResetGroupRowNo()}PreviewRuleClick(){let t=this.eligibilityRuleModel.eligibilityRuleGroups;this.previewEligibilityRuleGroups=Object.assign([],t),this.previewEligibilityRuleGroups.forEach(n=>
87{n.eligibilityRuleGroupItems.forEach(e=>{this.entitiesModel.find(i=>i.entityID==e.entityID)?e.entityName=this.entitiesModel.find(i=>i.entityID==e.entityID).name:e.entityName="",this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType)?e.propertyName=this.allProperties.find(i=>i.controlId==e.propertyReferenceId&&i.isDemographicsType==e.isDemographicsType).controlLabel:e.propertyName=""})}),this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}PreviewRuleClickClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}OnDynamicFormSubmit(t){if(this.targetGroup.instance.validate().isValid){this.ResetRuleOrder();let e=this.hubspotSyncConfigEntityMappingCriteriaResponse.map(i=>({hubspotSyncConfigEntityMappingCriteriaId:i.hubspotSyncConfigEntityMappingCriteriaId,hubspotSyncConfigEntityMappingId:i.hubspotSyncConfigEntityMappingId,propertyReferenceId:i.propertyReferenceId,isDemographicsType:i.isDemographicsType,isMultiselect:i.isMultiselect,logicalCondition:i.logicalCondition,condition:i.condition,logicalOrder:i.logicalOrder,assignedDatatype:i.assignedDatatype,assignedValue:i.assignedValue,isIncludeBlanckNullEmpty:i.isIncludeBlanckNullEmpty,isActive:i.isActive,modifiedByUserId:i.modifiedByUserId,hubspotFieldCaption:i.hubspotFieldCaption,hubspotGroupName:i.hubspotGroupName,hubspotFieldName:i.hubspotFieldName}));this.loading=!0,this.hubspotSyncConfigurationService.addOrUpdateCriteriaByEntity(this.entityName,e).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(i=>{this.loading=!1,i&&i.isSuccess?(this.showSuccessMessage("Criteria saved successfully!"),this.redirectToPage()):i&&!i.isSuccess&&this.showErrorMessage(i.message)},i=>{this.loading=!1,this.showErrorMessage(i.message)})}}redirectToPage(){this.router.navigate(["admin/client/setting/hubspot-property/"+this.entityName])}ResetRuleOrder(){let n=1;this.hubspotSyncConfigEntityMappingCriteriaResponse.forEach(e=>{e.logicalOrder=n,n=n+1})}static{this.\u0275fac=function(n){return new(n||r)(k(Di),k(St),k(Li),k(jo),k(yt),k(In),k(Kt),k(kn),k(rn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-manage-hubsport-property"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(zp,5),U(Zp,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.targetGroup=i.first),H(i=j())&&(e.treeView=i.first)}},inputs:{entityName:"entityName"},standalone:!0,features:[Wt([Di]),xt,Q],decls:33,vars:6,consts:[["targetGroup",""],["treeView",""],[1,"view-wrapper","manage-list-outer","create-list-outer","tooltip-wrapper"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],["href","javascript:void(0)",1,"breadcrumbs__link",3,"click"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer"],[1,"card-outer"],["id","form",3,"formData"],[1,"scroll-outer"],[1,"list-content"],[1,"card-outer__content","max-width"],[1,"set-criteria-outer","border-none"],[1,"rule-config"],["class","rule-config__block dash-border",4,"ngIf"],[1,"card-outer__button","max-width"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","normal",1,"btn","btn--primary",3,"onClick"],[1,"rule-config__block","dash-border"],[1,"condition"],[4,"ngFor","ngForOf"],["class","add-new-propertys",4,"ngIf"],[1,"and-or-row"],[1,"full-width","flex"],[1,"full-width__if"],[1,"dx-field","width-320"],["label","Entity","displayExpr","name","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","showClearButton","labelMode","disabled","dataSource","value","inputAttr","grouped","elementAttr"],[1,"dx-field"],["label","Property","class","select-box","displayExpr","controlLabel","valueExpr","controlUniqId","placeholder","Select","itemTemplate","itemtemplate",3,"showClearButton","labelMode","searchEnabled","dataSource","value","inputAttr","valueChange","onValueChanged",4,"ngIf"],["label","Property","class","select-box","displayExpr","label","valueExpr","name","placeholder","Select","itemTemplate","itemtemplate",3,"showClearButton","labelMode","searchEnabled","dataSource","value","inputAttr","grouped","valueChange","onValueChanged",4,"ngIf"],[1,"dx-field","condition-dx-field"],["label","Condition",3,"valueChange","onValueChanged","labelMode","items","inputAttr","value"],["type","required","message","Condition is required"],["class","dx-field width-320",4,"ngIf"],[1,"add-remove"],["href","javascript:void(0);",3,"click",4,"ngIf"],["class","relative-date-checkbox","text","Relative Date",3,"value","elementAttr","valueChange","onValueChanged",4,"ngIf"],["text","Include Null/Blank/Empty",1,"relative-date-checkbox",3,"valueChange","value","elementAttr"],[1,"add-new-propertys"],[1,"and-or-new"],[1,"and-or-new__tabs"],["href","javascript:void(0)",3,"click","ngClass"],["label","Property","displayExpr","controlLabel","valueExpr","controlUniqId","placeholder","Select","itemTemplate","itemtemplate",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","searchEnabled","dataSource","value","inputAttr"],[4,"dxTemplate","dxTemplateOf"],[2,"display","inline-block"],["label","Property","displayExpr","label","valueExpr","name","placeholder","Select","itemTemplate","itemtemplate",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","searchEnabled","dataSource","value","inputAttr","grouped"],["type","required","message","Property is required"],["label","Value","placeholder","Value","class","select-box","valueExpr","strValue","displayExpr","strDis
87play",3,"labelMode","inputAttr","dataSource","value","valueChange","onClosed",4,"ngIf"],["class","date-picker-criteria",4,"ngIf"],["label","Value","class","select-box numbertype","format","####","valueChangeEvent","keyup",3,"labelMode","inputAttr","value","min","showSpinButtons","valueChange","onValueChanged",4,"ngIf"],["label","Value",3,"labelMode","inputAttr","value","valueChange","onValueChanged",4,"ngIf"],["label","Value","placeholder","Value","valueExpr","strValue","displayExpr","strDisplay",1,"select-box",3,"valueChange","onClosed","labelMode","inputAttr","dataSource","value"],["class","multiple-outer",4,"dxTemplate","dxTemplateOf"],[1,"multiple-outer"],["dataStructure","plain","selectionMode","multiple","showCheckBoxesMode","normal","keyExpr","strValue","displayExpr","strDisplay",3,"searchValueChange","onContentReady","onItemSelectionChanged","dataSource","searchValue","searchEnabled","selectByClick"],[1,"date-picker-criteria"],["class","date-box","type","date","label","Value",3,"labelMode","value","inputAttr","onValueChanged",4,"ngIf"],["class","select-box recordtype","label","Value","placeholder","Select",3,"labelMode","items","value","inputAttr","showClearButton","searchEnabled","valueChange","onValueChanged",4,"ngIf"],["type","date","label","Value",1,"date-box",3,"onValueChanged","labelMode","value","inputAttr"],["label","Value","placeholder","Select",1,"select-box","recordtype",3,"valueChange","onValueChanged","labelMode","items","value","inputAttr","showClearButton","searchEnabled"],["label","Value","format","####","valueChangeEvent","keyup",1,"select-box","numbertype",3,"valueChange","onValueChanged","labelMode","inputAttr","value","min","showSpinButtons"],["label","Value",3,"valueChange","onValueChanged","labelMode","inputAttr","value"],["class","select-box recordtype","label","Value","valueExpr","value","displayExpr","label","placeholder","Select",3,"labelMode","items","value","inputAttr","showClearButton","searchEnabled","valueChange","onValueChanged",4,"ngIf"],["label","Value","valueExpr","value","displayExpr","label","placeholder","Select",1,"select-box","recordtype",3,"valueChange","onValueChanged","labelMode","items","value","inputAttr","showClearButton","searchEnabled"],["href","javascript:void(0);",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["opacity","0.8","cx","12","cy","12","r","12","fill","#3E3E3E"],["d","M7 12.6565H16.3435H7Z","fill","#50BC21"],["d","M7 12.6565H16.3435","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","12","r","12","fill","#0F0F0F"],["d","M12.1641 7.16412V17.4924V7.16412ZM7 12.3282H17.3282H7Z","fill","#50BC21"],["d","M12.1641 7.16412V17.4924M7 12.3282H17.3282","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["text","Relative Date",1,"relative-date-checkbox",3,"valueChange","onValueChanged","value","elementAttr"]],template:function(n,e){if(n&1){let i=y();a(0,"div",2)(1,"div",3)(2,"ul",4)(3,"li",5)(4,"a",6),h(5,"Settings"),s()(),a(6,"li",5)(7,"a",6),h(8,"Integration Services"),s()(),a(9,"li",5)(10,"a",7),f("click",function(){return p(i),u(e.redirectToPage())}),h(11,"HubSpot"),s()(),a(12,"li",5),h(13),s()()(),a(14,"div",8)(15,"div",9)(16,"h1",10),h(17),s()()(),a(18,"div",11)(19,"form",12)(20,"dx-validation-group",null,0)(22,"dx-form",13)(23,"dxi-item")(24,"dx-scroll-view",14)(25,"div",15)(26,"div",16)(27,"div",17)(28,"div",18),S(29,vu,3,1,"div",19),s()()()()(),a(30,"div",20)(31,"dx-button",21),f("onClick",function(){return p(i),u(e.redirectToPage())}),s(),a(32,"dx-button",22),f("onClick",function(){return p(i),u(e.OnDynamicFormSubmit(!0))}),s()()()()()()()()}n&2&&(o(13),Cn("",e.mode," ",e.entityName," HubSpot Property"),o(4),Cn("",e.mode," ",e.entityName," HubSpot Property"),o(5),l("formData",e.formData),o(7),l("ngIf",e.GetActiveGroupItem().length>0))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,_n,me,ge,he,Bt,fe,Hn,Ce,_e,ye,xe,ve,jn,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,Eo,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,Sn,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color);font:var(--h1-font)!important}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem}.space-between[_ngcontent-%COMP%]{justify-content:space-between;align-items:center!important}.manage-content-outer[_ngcontent-%COMP%] .scroll-outer[_ngcontent-%COMP%]{width:calc(100% + 3rem)}.manage-content-outer[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{padding-right:3rem}.manage-content-outer[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:2.5rem 3rem;margin-bottom:0;min-height:calc(100vh - 282px)}.manage-content-outer[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:1.5rem}.manage-content-outer[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{padding-top:2rem}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:320px;margin-bottom:2rem;margin-right:2rem}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]:last-child{margin-right:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin-top:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field.entity-box[_ngcontent-%COMP%]{max-width:215px}.manage-content-outer[_ngcontent-%COMP%] .dx-field.company-search[_ngcontent-%COMP%]{max-width:425px;margin-bottom:0}.manage-content-outer[_ngcontent-%COMP%] .dx-field.company-search[_ngcontent-%COMP%] .dx-texteditor-buttons-container[_ngcontent-%COMP%]{display:none!important}.empty-card[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:2rem}.below-contacts[_ngcontent-%COMP%]{width:100%;color:var(--primary-color);border-top:1px solid var(--border-lighter);padding:1.5rem 0 0;margin:0 0 1.5rem}.below-contacts__right[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{margin-right:4rem;position:relative;color:var(--delete-bg-color)!important;font:var(--font-weight-600) var(--font-14) var(--font-family);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.8rem;height:26px}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:28px;height:28px}.below-contacts__right[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;right:-2rem;background-color:var(--border-lighter);height:26px;width:1px}.select-category-block[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--border-lighter);padding-bottom:.5rem;margin-bottom:2rem}.flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap}.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{margin-bottom:1rem!important}.static-list-block[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:flex-start;flex-wrap:wrap}.static-list-block__top[_ngcontent-%COMP%]{display:block;padding:0;margin:0 0 .8rem;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.static-list-block[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%;margin-bottom:1.8rem}.table-outer[_ngcontent-%COMP%] .dx-datagrid[_ngcontent-%COMP%]{padding:0!important}.upload-file-outer[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:2.4rem}.upload-file-outer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:0 2rem}.upload-file-outer[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-500) var(--font-14) var(--font-family)}.upload-file-outer[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.upload-file-outer[_ngcontent-%COMP%] .notes[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-14) var(--font-family);padding-top:2rem}.upload-file-outer[_ngcontent-%COMP%] .notes[_ngcontent-%COMP%]:last-child{padding-top:1rem}.dynamic-list-outer[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%]{width:100%;max-width:70%;margin:0;padding:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .dynamic-list-eligibility[_ngcontent-%COMP%]{max-width:400px;margin:0}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .dynamic-list-eligibility[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin-top:0}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%]{margin-left:2rem;font:var(--font-weight-600) var(--font-14) var(--font-family);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.dynamic-list-outer[_ngcontent-%COMP%] .dynamic-list[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.set-criteria-outer[_ngcontent-%COMP%]{width:100%;border-top:1px solid var(--border-lighter);padding-top:1.5rem}.set-criteria-outer[_ngcontent-%COMP%] .border-none[_ngcontent-%COMP%]{border:none!important}.set-criteria-outer[_ngcontent-%COMP%] .card-header__title[_ngcontent-%COMP%]{margin-bottom:.5rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%]{width:100%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%]{width:100%;padding:2rem;border-radius:5px;position:relative;background-repeat:no-repeat;background-position:0 0,0 0,100% 0,0 100%;background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10
87px),repeating-linear-gradient(90deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(180deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(270deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px);border-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{max-width:1000px;position:relative;padding-left:38px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width__if[_ngcontent-%COMP%]{position:absolute;left:0;top:12px;padding:.4rem 1rem;border-radius:5px;color:var(--white-color);font:var(--font-weight-400) var(--font-12) var(--font-family);background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:46%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .dx-field.width-320[_ngcontent-%COMP%]{width:320px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;padding-top:1.2rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .full-width.flex[_ngcontent-%COMP%] .add-remove[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.8}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{justify-content:flex-start}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{margin-right:2rem;margin-bottom:2rem!important}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field.condition-dx-field[_ngcontent-%COMP%]{max-width:215px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]:last-child{margin-right:0rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or[_ngcontent-%COMP%]{padding-left:38px;position:relative;margin-top:-18px;padding-top:1.3rem;padding-bottom:1.5rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--white-color)!important;background-color:var(--dark-gray-color);font:var(--font-weight-400) var(--font-12) var(--font-family);padding:.5rem 1rem;text-transform:uppercase}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]:before{content:"";position:absolute;
87left:12px;top:-25px;height:calc(100% + 50px);width:1px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__tabs[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:25px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__first[_ngcontent-%COMP%]{position:absolute;top:-25px;left:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__first[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:20px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__last[_ngcontent-%COMP%]{position:absolute;bottom:-25px;left:0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .and-or__last[_ngcontent-%COMP%]:after{content:"";position:absolute;left:12px;top:50%;height:1px;width:20px;background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;margin-top:1rem;max-width:100%}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem;fill:var(--white-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .condition[_ngcontent-%COMP%] .addnew-rules[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--white-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{width:26px;height:26px;position:absolute;top:12px;right:12px;background-color:var(--delete-hover-color);border-radius:100px;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__block[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:hover{opacity:.9}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%]{width:100%;padding-left:1rem;padding-right:1rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new[_ngcontent-%COMP%]{background-color:var(--light-gray-color);position:relative;padding:1rem 1rem 1rem 30px;margin-bottom:2.8rem;margin-top:.8rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--white-color)!important;background-color:var(--dark-gray-color);font:var(--font-weight-400) var(--font-12) var(--font-family);padding:.5rem 1rem;text-transform:uppercase}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background-color:var(--green-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{border-radius:5px 0 0 5px}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{border-radius:0 5px 5px 0}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]:before{content:"";position:absolute;
87left:0;top:0;height:calc(100% + 0px);width:1px;background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .add-new-propertys[_ngcontent-%COMP%] .and-or-new__tabs[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;top:50%;height:1px;width:20px;background-color:var(--dark-gray-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .disabled-div[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.set-criteria-outer[_ngcontent-%COMP%] .rule-config[_ngcontent-%COMP%] .disabled-link[_ngcontent-%COMP%]{color:gray;pointer-events:none;text-decoration:none;cursor:not-allowed}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end;padding-top:2rem}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem;transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem;transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:.35s ease}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]{color:var(--primary-color)}.set-criteria-outer[_ngcontent-%COMP%] .rule-config__addgroup-btn[_ngcontent-%COMP%] .btn--cancel[_ngcontent-%COMP%]:hover svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:var(--secondary-color)}.delete-singel-rule[_ngcontent-%COMP%]{position:absolute;right:-25px;top:0}.delete-singel-rule[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{width:24px;height:24px}.table-block[_ngcontent-%COMP%]{padding-top:1rem}.title-block-box[_ngcontent-%COMP%]{width:100%;display:inline-block;margin-bottom:2rem;border-bottom:1px solid var(--border-lighter);padding-bottom:2rem}.title-block-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:600px;margin-bottom:0}.tooltip-wrapper[_ngcontent-%COMP%] .tooltip-info[_ngcontent-%COMP%]{margin-top:-9px}.date-picker-criteria[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.relative-date-checkbox[_ngcontent-%COMP%]{min-width:130px;margin-left:15px!important;margin-top:15px!important}']})}}return r})();function bu(r,g){if(r&1){let t=y();a(0,"a",28),f("click",function(){p(t);let e=m();return u(e.onClickTriggerSync())}),A(),a(1,"svg",29),b(2,"path",30)(3,"path",31)(4,"path",32),s(),h(5," Start Company Load "),s()}if(r&2){let t=m();l("ngClass",t.isProcessRunningForCompany?"disabled":"")}}function wu(r,g){if(r&1){let t=y();a(0,"a",28),f("click",function(){p(t);let e=m();return u(e.onClickTriggerSync())}),A(),a(1,"svg",29),b(2,"path",30)(3,"path",31)(4,"path",32),s(),h(5," Start Contact Load "),s()}if(r&2){let t=m();l("ngClass",t.isProcessRunningForContact?"disabled":"")}}function Su(r,g){r&1&&(a(0,"a",33),A(),a(1,"svg",34),b(2,"path",35),s(),h(3," Edit "),s())}function Pu(r,g){r&1&&(a(0,"a",36),A(),a(1,"svg",34),b(2,"path",35),s(),h(3," Edit "),s())}function Mu(r,g){r&1&&(a(0,"div",37),h(1,"Company"),s())}function Vu(r,g){r&1&&(a(0,"div",42)(1,"a",43)(2,"span"),A(),a(3,"svg",44),b(4,"path",45),s()(),h(5," Add Company HubSpot Property "),s()())}function Eu(r,g){if(r&1&&(a(0,"div",53)(1,"span"),h(2),s(),b(3,"span",54),s()),r&2){let t=m().$implicit;o(2),O(" ",t.logicalCondition," ")}}function Tu(r,g){if(r&1&&(a(0,"div",55)(1,"span",56),h(2,"If"),s(),a(3,"span",57)(4,"span"),h(5,"Entity is"),s(),h(6),s(),a(7,"span",58),A(),a(8,"svg",59),b(9,"path",60),s(),h(10),s(),G(),a(11,"span",61),h(12),s(),b(13,"span",58),a(14,"span",58),A(),a(15,"svg",59),b(16,"path",60),s(),h(17," Include Null/Blank/Empty "),s(),G(),a(18,"span",61),h(19),s()()),r&2){let t=m().$implicit,n=m(3);o(6),O(' "',t.entityName,'"'),o(4),O(" \xE2\u20AC\u0153",n.isHubspotProperty?t.hubspotFieldCaption:t.propertyName,"\xE2\u20AC\x9D "),o(2),Cn(" ",t.condition," \xE2\u20AC\u0153",n.isHubspotProperty&&t.type==="bool"&&t.fieldType==="booleancheckbox"&&t.assignedValue==="true"?"Yes":n.isHubspotProperty&&t.type==="bool"&&t.fieldType==="booleancheckbox"&&t.assignedValue==="false"?"No":t.assignedValue,"\xE2\u20AC\x9D "),o(7),O(' "',t.isIncludeBlanckNullEmpty?"Yes":"No",'" ')}}function Du(r,g){if(r&1){let t=y();a(0,"div",62)(1,"a",63),f("click",function(e){p(t);let i=m(4);return u(i.deleteCriteria(e))}),A(),a(2,"svg",34),b(3,"path",64),s()()()}}function Iu(r,g){if(r&1&&(xi(0),S(1,Eu,4,1,"div",50)(2,Tu,20,5,"div",51)(3,Du,4,0,"div",52),vi()),r&2){let t=g.$implicit,n=g.index;o(),l("ngIf",n!=0),o(),l("ngIf",t.entityName!==""),o(),l("ngIf",n==0)}}function Au(r,g){if(r&1&&(a(0,"div",46)(1,"div",47)(2,"div",48),S(3,Iu,4,3,"ng-container",49),s()()()),r&2){let t=m(2);o(3),l("ngForOf",t.GetActiveGroupItemCompany())}}function Lu(r,g){if(r&1&&(a(0,"div",38)(1,"div",39),S(2,Vu,6,0,"div",40)(3,Au,4,1,"div",41),s()()),r&2){let t=m();o(2),l("ngIf",t.GetActiveGroupItemCompany().length==0),o(),l("ngIf",t.GetActiveGroupItemCompany().length>0)}}function ku(r,g){r&1&&(a(0,"div",37),h(1,"Contact"),s())}function Ru(r,g){r&1&&(a(0,"div",42)(1,"a",65)(2,"span"),A(),a(3,"svg",44),b(4,"path",45),s()(),h(5," Add Contact HubSpot Property "),s()())}function Ou(r,g){if(r&1&&(a(0,"div",53)(1,"span"),h(2),s(),b(3,"span",54),s()),r&2){let t=m().$implicit;o(2),O(" ",t.logicalCondition," ")}}function Gu(r,g){if(r&1&&(a(0,"div",55)(1,"span",56),h(2,"If"),s(),a(3,"span",57)(4,"span"),h(5,"Entity is"),s(),h(6),s(),a(7,"span",58),A(),a(8,"svg",59),b(9,"path",60),s(),h(10),s(),G(),a(11,"span",61),h(12),s(),b(13,"span",58),a(14,"span",58),A(),a(15,"svg",59),b(16,"path",60),s(),h(17," Include Null/Blank/Empty "),s(),G(),a(18,"span",61),h(19),s()()),r&2){let t=m().$implicit,n=m(3);o(6),O(' "',t.entityName,'"'),o(4),O(" \xE2\u20AC\u0153",n.isHubspotProperty?t.hubspotFieldCaption:t.propertyName,"\xE2\u20AC\x9D "),o(2),Cn(" ",t.condition," \xE2\u20AC\u0153",n.isHubspotProperty&&t.type==="bool"&&t.fieldType==="booleancheckbox"&&t.assignedValue==="true"?"Yes":n.isHubspotProperty&&t.type==="bool"&&t.fieldType==="booleancheckbox"&&t.assignedValue==="false"?"No":t.assignedValue,"\xE2\u20AC\x9D "),o(7),O(' "',t.isIncludeBlanckNullEmpty?"Yes":"No",'" ')}}function Bu(r,g){if(r&1){let t=y();a(0,"div",62)(1,"a",63),f("click",function(e){p(t);let i=m(4);return u(i.deleteCriteria(e))}),A(),a(2,"svg",34),b(3,"path",64),s()()()}}function Fu(r,g){if(r&1&&(xi(0),S(1,Ou,4,1,"div",50)(2,Gu,20,5,"div",51)(3,Bu,4,0,"div",52),vi()),r&2){let t=g.$implicit,n=g.index;o(),l("ngIf",n!=0),o(),l("ngIf",t.entityName!==""),o(),l("ngIf",n==0)}}function Wu(r,g){if(r&1&&(a(0,"div",46)(1,"div",47)(2,"div",48),S(3,Fu,4,3,"ng-container",49),s()()()),r&2){let t=m(2);o(3),l("ngForOf",t.GetActiveGroupItemContact())}}function Nu(r,g){if(r&1&&(a(0,"div",38)(1,"div",39),S(2,Ru,6,0,"div",40)(3,Wu,4,1,"div",41),s()()),r&2){let t=m();o(2),l("ngIf",t.GetActiveGroupItemContact().length==0),o(),l("ngIf",t.GetActiveGroupItemContact().length>0)}}var ga=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.activatedRoute=n,this.hubspotSyncConfigurationService=e,this.webStorageService=i,this.eligibilityService=d,this.propertyService=c,this.cdr=v,this.unsubscriber=new Ct,this.progress=new Ct,this.entitiesModel=[],this.selectedTabIndex=0,this.groupedEntites=[],this.allProperties=[],this.hubspotSyncConfigEntityMappingCriteriaCompanyResponse=[],this.hubspotSyncConfigEntityMappingCriteriaContactResponse=[],this.syncPopup=!1,this.deletePopup=!1,this.isProcessRunningForCompany=!1,this.isProcessRunningForContact=!1,this.isHubspotProperty=!0,this.hubspotModel=[],this.type="",this.entityName="Company",this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.hubspotSyncConfigurationResponse=new fo,this.selectedTabIndex=0,this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(V=>{this.type=V.type,this.type&&(this.entityName=this.type),this.entityName=="Company"?this.selectedTabIndex=0:this.selectedTabIndex=1}),this.loadData()}loadData(){return B(this,null,function*(){this.loading=!0,Yt([this.hubspotSyncConfigurationService.getTenantEntitiesForHubspotSync(),this.eligibilityService.GetAllPropertyForEligibilityRules(!0),this.hubspotSyncConfigurationService.getHubspotConfigurationAsync()]).pipe(Qt(([t,n,e])=>({entitiesModel:t,allProperties:n,hubspotSyncConfigurationResponse:e}))).subscribe(t=>
87{this.loading=!1,Object.keys(t).forEach(e=>this[e]=t[e].responseModel),this.groupedEntites=[];let n=this.allProperties.filter((e,i,d)=>["AddressLine1","AddressLine2","City","State","Country","Zipcode","EmailAddress","PhoneNumber","AddressTypeId","IsBilling","IsPrimary","IsPublic"].includes(e.sourceColumnName)?i===d.findIndex(c=>c.entityName===e.entityName&&c.sourceColumnName===e.sourceColumnName&&c.pageName===e.pageName):!0);this.allProperties=n,this.entitiesModel&&([...new Set(this.entitiesModel.map(i=>i.entityType))].forEach(i=>{let d=new ui;d.category=i=="Entity"?"":i,d.entities=this.entitiesModel.filter(c=>c.entityType==i),this.groupedEntites.push(d)}),this.selectedTabIndex==0?this.GetAllCriteriasByEntity("Company"):this.GetAllCriteriasByEntity("Contact"),this.checkHubspotSyncProcessRunning()),this.loading=!1})})}GetHubspotPropertiesByEntity(t){this.hubspotModel=[],this.hubspotSyncConfigurationService.GetHubspotPropertiesByEntity(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess&&(this.hubspotModel=n.responseModel)})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}GetActiveGroupItemContact(){return this.hubspotSyncConfigEntityMappingCriteriaContactResponse.filter(t=>t.isActive)}GetActiveGroupItemCompany(){return this.hubspotSyncConfigEntityMappingCriteriaCompanyResponse.filter(t=>t.isActive)}GetAllCriteriasByEntity(t){t&&(this.loading=!0,this.hubspotSyncConfigurationService.getAllCriteriasByEntity(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{if(this.loading=!1,n&&n.isSuccess&&n.responseModel){this.hubspotSyncConfigEntityMappingCriteriaCompanyResponse=[],this.hubspotSyncConfigEntityMappingCriteriaContactResponse=[];let e=n.responseModel,i=1;e.forEach(d=>{let c=new Ln;c.rowno=i,c.entityName=t,c.hubspotSyncConfigEntityMappingCriteriaId=d.hubspotSyncConfigEntityMappingCriteriaId,c.hubspotSyncConfigEntityMappingId=d.hubspotSyncConfigEntityMappingId,c.properties=Object.assign([],this.allProperties.filter(V=>V.entityName==t)),c.propertyReferenceId=d.propertyReferenceId,c.isMultiselect=d.isMultiselect,c.isDemographicsType=d.isDemographicsType,c.controlUniqId=c.properties.find(V=>V.controlId==d.propertyReferenceId&&V.isDemographicsType==d.isDemographicsType)?.controlUniqId,c.logicalCondition=d.logicalCondition,c.isActive=!0,c.isIncludeBlanckNullEmpty=d.isIncludeBlanckNullEmpty,c.condition=d.condition;let v=c.properties.find(V=>V.controlId==c.propertyReferenceId&&V.isDemographicsType==c.isDemographicsType);if(c.controlType=v?.controlType,c.propertyName=v?.controlLabel,c.options=v?.options,c.controlType=="Numberbox"?(c.assignedNumerValue=Number(d.assignedValue),c.assignedValue=d.assignedValue):(c.controlType=="Datepicker"&&(c.isRelativeDate=d.assignedValue=="Today",c.assignedDateValue=!c.isRelativeDate&&d.assignedValue?d.assignedValue:null),c.assignedValue=d.assignedValue),c.isActive=!0,this.isHubspotProperty==!0){if(c.hubspotProperties=Object.assign([],this.hubspotModel),c.hubspotProperties!=null&&c.hubspotProperties.length>0){let V=c.hubspotProperties.find(E=>E.name==d.hubspotFieldName);V&&(c.fieldType=V.fieldType,c.type=V.type,c.hubspotOptions=V.options)}if(c.type=="number")c.assignedNumerValue=Number(d.assignedValue),c.assignedValue=d.assignedValue;else if(c.type=="datetime")c.isRelativeDate=d.assignedValue=="Today",c.assignedDateValue=!c.isRelativeDate&&d.assignedValue?d.assignedValue:null,c.assignedValue=d.assignedValue;else if(c.type=="enumeration"){let V=d.assignedValue.split(",").map(E=>E.trim());c.assignedValues=V,c.assignedValue=d.assignedValue}else c.assignedValue=d.assignedValue}c.hubspotFieldCaption=d.hubspotFieldCaption,c.hubspotGroupName=d.hubspotGroupName,c.hubspotFieldName=d.hubspotFieldName,t.toLowerCase()==="company"?this.hubspotSyncConfigEntityMappingCriteriaCompanyResponse.push(c):t.toLowerCase()==="contact"&&this.hubspotSyncConfigEntityMappingCriteriaContactResponse.push(c),i++})}else this.loading=!1,this.showErrorMessage(n.message)})},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}onSelectionChanged(t){if(this.selectedTabIndex==0){this.GetHubspotPropertiesByEntity("Company");var n=this.entitiesModel.find(e=>e.name=="Company");
87n&&(this.GetAllCriteriasByEntity(n.name),this.checkHubspotSyncProcessRunning())}else{this.GetHubspotPropertiesByEntity("Contact");var n=this.entitiesModel.find(i=>i.name=="Contact");n&&(this.checkHubspotSyncProcessRunning(),this.GetAllCriteriasByEntity(n.name))}}onSwithValueChanged(t){t.value!=null&&t.event!=null&&(this.action=t.value?"enable":"disable",this.actionMessage="HubSpot property sync",this.syncPopup=!0)}deleteCriteria(t){this.deletePopup=!0}getHubspotConfigurationAsync(){return B(this,null,function*(){this.loading=!0,this.hubspotSyncConfigurationService.getHubspotConfigurationAsync().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&t.responseModel?this.hubspotSyncConfigurationResponse=t.responseModel:(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})})}enableDisable(t){return B(this,null,function*(){this.loading=!0;let n=new fo;n.hubspotSyncConfigurationId=this.hubspotSyncConfigurationResponse.hubspotSyncConfigurationId,n.isEnabled=t,n.modifiedByUserId=this.userToken.userId,this.hubspotSyncConfigurationService.setEnabled(n).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{this.loading=!1,e&&e.isSuccess&&e.responseModel?(this.getHubspotConfigurationAsync(),this.showSuccessMessage("Hubspot property sync configuration has been updated successfully.")):(this.loading=!1,this.showErrorMessage(e.message))})},e=>{this.loading=!1,this.showErrorMessage(e.message)})})}onClickSyncClient(){let t=!!(this.action&&this.action=="enable");this.enableDisable(t)}onClickDeleteCriteria(){let t="Company";if(this.selectedTabIndex==0){let n=this.entitiesModel.find(e=>e.name=="Company");n&&(t=n.name)}else{let n=this.entitiesModel.find(e=>e.name=="Contact");n&&(t=n.name)}this.loading=!0,this.hubspotSyncConfigurationService.deleteCriteriaByEntitysAsync(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess&&n.responseModel?(this.showSuccessMessage("Hubspot property criteria(s) has been deleted."),this.GetAllCriteriasByEntity(t),this.cdr.detectChanges()):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}onClickTriggerSync(){this.loading=!0;let t="Company";if(this.selectedTabIndex==0){let n=this.entitiesModel.find(e=>e.name=="Company");n&&(t=n.name)}else{let n=this.entitiesModel.find(e=>e.name=="Contact");n&&(t=n.name)}this.hubspotSyncConfigurationService.triggerContactCompanySyncFromHubspot(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess&&n.responseModel?(this.GetAllCriteriasByEntity(t),this.checkHubspotSyncProcessRunning(),this.showSuccessMessage("Hubspot sync process has been started.")):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}checkHubspotSyncProcessRunning(){this.loading=!0;let t="Company";if(this.selectedTabIndex==0){let n=this.entitiesModel.find(e=>e.name=="Company");n&&(t=n.name)}else{let n=this.entitiesModel.find(e=>e.name=="Contact");n&&(t=n.name)}this.hubspotSyncConfigurationService.isSyncProcessRunning(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?t.toLowerCase()=="contact"?this.isProcessRunningForContact=n.responseModel:this.isProcessRunningForCompany=n.responseModel:(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}onClickSyncVisible(t){t!=null&&this.getHubspotConfigurationAsync()}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Li),k(jo),k(yt),k(In),k(Kt),k(rn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-hubsport-property"]],standalone:!0,features:[xt,Q],decls:43,vars:19,consts:[["tabPanel",""],[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"blue"],[1,"manage-content-outer"],[1,"card-outer__content","max-width","hubspot-configuration"],[1,"hubspot-property"],[1,"dx-field"],[1,"toggle-btn"],[2,"margin-left","0",3,"valueChange","onValueChanged","value"],[1,"hubspot-property-tabs"],[1,"hubspot-property-group-button"],["href","javascript:void(0)","class","btn btn--preview btn-sync",3,"ngClass","click",4,"ngIf"],["href","javascript:void(0)","class","btn btn--preview","routerLink","/admin/client/setting/hubspot-property/manage/Edit/Company",4,"ngIf"],["href","javascript:void(0)","class","btn btn--preview","routerLink","/admin/client/setting/hubspot-property/manage/Edit/Contact",4,"ngIf"],[1,"tabs-outer",3,"selectedIndexChange","onSelectionChanged","loop","animationEnabled","swipeEnabled","tabsPosition","height","selectedIndex"],["tabTemplate","CompanyHeader","template","CompanyContent"],["class","tabs-outer__header",4,"dxTemplate","dxTemplateOf"],["class","tabs-outer__content",4,"dxTemplate","dxTemplateOf"],["tabTemplate","ContactHeader","template","ContactContent"],[3,"visibleChange","save","visible","action","titleText"],["action","delete","titleText","criteria(s)",3,"visibleChange","save","visible"],["href","javascript:void(0)",1,"btn","btn--preview","btn-sync",3,"click","ngClass"],["width","18","height","18","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.625 8.5H4.125C3.85978 8.5 3.60543 8.39464 3.41789 8.20711C3.23036 8.01957 3.125 7.76522 3.125 7.5V3C3.125 2.73478 3.23036 2.48043 3.41789 2.29289C3.60543 2.10536 3.85978 2 4.125 2C4.39022 2 4.64457 2.10536 4.83211 2.29289C5.01964 2.48043 5.125 2.73478 5.125 3V6.5H8.625C8.89022 6.5 9.14457 6.60536 9.33211 6.79289C9.51964 6.98043 9.625 7.23478 9.625 7.5C9.625 7.76522 9.51964 8.01957 9.33211 8.20711C9.14457 8.39464 8.89022 8.5 8.625 8.5Z","fill","#ffffff"],["d","M21.0004 12.9986C20.7352 12.9986 20.4808 12.8933 20.2933 12.7057C20.1057 12.5182 20.0004 12.2639 20.0004 11.9986C20.0012 10.2382 19.4208 8.52668 18.3495 7.12974C17.2781 5.7328 15.7757 4.72853 14.0752 4.27276C12.3748 3.81699 10.5
87715 3.93521 8.94507 4.60908C7.31869 5.28295 5.96019 6.47478 5.08039 7.99964C4.94752 8.22918 4.7289 8.39654 4.47263 8.4649C4.21636 8.53326 3.94344 8.49701 3.71389 8.36414C3.48435 8.23126 3.31699 8.01265 3.24863 7.75638C3.18027 7.50011 3.21652 7.22718 3.34939 6.99764C4.44965 5.09187 6.14808 3.60248 8.1812 2.76052C10.2143 1.91857 12.4685 1.77111 14.594 2.34103C16.7195 2.91094 18.5974 4.16638 19.9366 5.91256C21.2757 7.65875 22.0012 9.79807 22.0004 11.9986C22.0004 12.2639 21.895 12.5182 21.7075 12.7057C21.52 12.8933 21.2656 12.9986 21.0004 12.9986ZM19.8754 21.9986C19.6102 21.9986 19.3558 21.8933 19.1683 21.7057C18.9807 21.5182 18.8754 21.2639 18.8754 20.9986V17.4986H15.3754C15.1102 17.4986 14.8558 17.3933 14.6683 17.2057C14.4807 17.0182 14.3754 16.7639 14.3754 16.4986C14.3754 16.2334 14.4807 15.9791 14.6683 15.7915C14.8558 15.604 15.1102 15.4986 15.3754 15.4986H19.8754C20.1406 15.4986 20.395 15.604 20.5825 15.7915C20.77 15.9791 20.8754 16.2334 20.8754 16.4986V20.9986C20.8754 21.2639 20.77 21.5182 20.5825 21.7057C20.395 21.8933 20.1406 21.9986 19.8754 21.9986Z","fill","#ffffff"],["d","M12 22C9.34865 21.9974 6.80665 20.9429 4.93186 19.0681C3.05707 17.1934 2.00265 14.6514 2 12C2 11.7348 2.10536 11.4804 2.29289 11.2929C2.48043 11.1054 2.73478 11 3 11C3.26522 11 3.51957 11.1054 3.70711 11.2929C3.89464 11.4804 4 11.7348 4 12C3.99924 13.7605 4.57956 15.472 5.65091 16.8689C6.72225 18.2658 8.22472 19.2701 9.92516 19.7259C11.6256 20.1816 13.4289 20.0634 15.0553 19.3896C16.6817 18.7157 18.0402 17.5239 18.92 15.999C18.9858 15.8853 19.0733 15.7858 19.1776 15.7059C19.2819 15.6261 19.4009 15.5676 19.5278 15.5337C19.6547 15.4999 19.787 15.4914 19.9172 15.5087C20.0473 15.5259 20.1728 15.5687 20.2865 15.6345C20.4002 15.7003 20.4997 15.7878 20.5796 15.8921C20.6594 15.9964 20.7179 16.1154 20.7518 16.2423C20.7856 16.3692 20.7941 16.5015 20.7768 16.6317C20.7596 16.7618 20.7168 16.8873 20.651 17.001C19.7717 18.5176 18.5102 19.7773 16.9923 20.6544C15.4744 21.5315 13.7531 21.9955 12 22Z","fill","#ffffff"],["href","javascript:void(0)","routerLink","/admin/client/setting/hubspot-property/manage/Edit/Company",1,"btn","btn--preview"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0f0f0f"],["href","javascript:void(0)","routerLink","/admin/client/setting/hubspot-property/manage/Edit/Contact",1,"btn","btn--preview"],[1,"tabs-outer__header"],[1,"tabs-outer__content"],[1,"card-content"],["class","client-info information-box hubspot-property-empty-state",4,"ngIf"],["class","preview-rule-block",4,"ngIf"],[1,"client-info","information-box","hubspot-property-empty-state"],["href","javascript:void(0)","routerLink","/admin/client/setting/hubspot-property/manage/Add/Company",1,"edits"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.02518 1.00021V11.0506M1 6.02539H11.0504","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"preview-rule-block"],[1,"preview-rule-block__row"],[1,"preview-configuration-rule-outer"],[4,"ngFor","ngForOf"],["class","preview-configuration-rule-outer__and-or",4,"ngIf"],["class","preview-configuration",4,"ngIf"],["class","delete-singel-rule",4,"ngIf"],[1,"preview-configuration-rule-outer__and-or"],[1,"line"],[1,"preview-configuration"],[1,"preview-configuration__if"],[1,"preview-configuration__entity"],[1,"preview-configuration__property"],["width","14","height","13","viewBox","0 0 16 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.5991 12.727C8.50962 12.6407 8.43862 12.5382 8.39018 12.4254C8.34174 12.3126 8.3168 12.1916 8.3168 12.0694C8.3168 11.9473 8.34174 11.8263 8.39018 11.7134C8.43862 11.6006 8.50962 11.4981 8.5991 11.4119L12.7175 7.42873L0.959811 7.42873C0.705253 7.42873 0.461122 7.33093 0.281123 7.15684C0.101124 6.98275 -2.94905e-07 6.74664 -2.84143e-07 6.50044C-2.73382e-07 6.25424 0.101124 6.01812 0.281123 5.84404C0.461122 5.66995 0.705253 5.57214 0.959811 5.57214L12.7175 5.57215L8.5991 1.58744C8.41879 1.41305 8.31749 1.17653 8.31749 0.929904C8.31749 0.683278 8.41879 0.446753 8.5991 0.272362C8.77941 0.0979715 9.02397 -3.02333e-07 9.27897 -2.93786e-07C9.53397 -2.85238e-07 9.77852 0.0979716 9.95883 0.272362L15.7177 5.84212C15.8072 5.92837 15.8782 6.03084
8715.9266 6.14368C15.9751 6.25651 16 6.37749 16 6.49967C16 6.62184 15.9751 6.74282 15.9266 6.85565C15.8782 6.96849 15.8072 7.07097 15.7177 7.15721L9.95883 12.727C9.86966 12.8135 9.76371 12.8822 9.64704 12.929C9.53037 12.9759 9.40529 13 9.27897 13C9.15264 13 9.02756 12.9759 8.9109 12.929C8.79423 12.8822 8.68827 12.8135 8.5991 12.727Z","fill","#219EBC"],[1,"preview-configuration__position"],[1,"delete-singel-rule"],["href","javascript:void(0)",1,"delete-btn",3,"click"],["d","M5.6 2.39024H8.4C8.4 2.028 8.2525 1.68059 7.98995 1.42444C7.7274 1.16829 7.3713 1.02439 7 1.02439C6.6287 1.02439 6.2726 1.16829 6.01005 1.42444C5.7475 1.68059 5.6 2.028 5.6 2.39024ZM4.55 2.39024C4.55 2.07635 4.61337 1.76554 4.7365 1.47554C4.85962 1.18554 5.04008 0.922041 5.26759 0.700086C5.49509 0.478132 5.76518 0.302068 6.06243 0.181947C6.35967 0.0618255 6.67826 0 7 0C7.32174 0 7.64033 0.0618255 7.93757 0.181947C8.23482 0.302068 8.50491 0.478132 8.73241 0.700086C8.95991 0.922041 9.14038 1.18554 9.2635 1.47554C9.38663 1.76554 9.45 2.07635 9.45 2.39024H13.475C13.6142 2.39024 13.7478 2.44421 13.8462 2.54026C13.9447 2.63632 14 2.7666 14 2.90244C14 3.03828 13.9447 3.16856 13.8462 3.26462C13.7478 3.36067 13.6142 3.41463 13.475 3.41463H12.551L11.732 11.6856C11.6692 12.3193 11.3666 12.9075 10.8834 13.3354C10.4001 13.7633 9.77082 14.0002 9.1182 14H4.8818C4.2293 14.0001 3.60017 13.7631 3.11706 13.3352C2.63396 12.9073 2.33151 12.3192 2.2687 11.6856L1.449 3.41463H0.525C0.385761 3.41463 0.252225 3.36067 0.153769 3.26462C0.0553123 3.16856 0 3.03828 0 2.90244C0 2.7666 0.0553123 2.63632 0.153769 2.54026C0.252225 2.44421 0.385761 2.39024 0.525 2.39024H4.55ZM5.95 5.63415C5.95 5.4983 5.89469 5.36803 5.79623 5.27197C5.69777 5.17591 5.56424 5.12195 5.425 5.12195C5.28576 5.12195 5.15223 5.17591 5.05377 5.27197C4.95531 5.36803 4.9 5.4983 4.9 5.63415V10.7561C4.9 10.8919 4.95531 11.0222 5.05377 11.1183C5.15223 11.2143 5.28576 11.2683 5.425 11.2683C5.56424 11.2683 5.69777 11.2143 5.79623 11.1183C5.89469 11.0222 5.95 10.8919 5.95 10.7561V5.63415ZM8.575 5.12195C8.71424 5.12195 8.84777 5.17591 8.94623 5.27197C9.04469 5.36803 9.1 5.4983 9.1 5.63415V10.7561C9.1 10.8919 9.04469 11.0222 8.94623 11.1183C8.84777 11.2143 8.71424 11.2683 8.575 11.2683C8.43576 11.2683 8.30223 11.2143 8.20377 11.1183C8.10531 11.0222 8.05 10.8919 8.05 10.7561V5.63415C8.05 5.4983 8.10531 5.36803 8.20377 5.27197C8.30223 5.17591 8.43576 5.12195 8.575 5.12195ZM3.3138 11.5872C3.35156 11.9674 3.53307 12.3202 3.82296 12.5769C4.11284 12.8335 4.49032 12.9757 4.8818 12.9756H9.1182C9.50968 12.9757 9.88716 12.8335 10.177 12.5769C10.4669 12.3202 10.6484 11.9674 10.6862 11.5872L11.4968 3.41463H2.5032L3.3138 11.5872Z","fill","white"],["href","javascript:void(0)","routerLink","/admin/client/setting/hubspot-property/manage/Add/Contact",1,"edits"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Settings"),s()(),a(6,"li",4)(7,"a",5),h(8,"Integration Services"),s()(),a(9,"li",4)(10,"a",5),h(11,"HubSpot"),s()(),a(12,"li",4),h(13,"HubSpot Property"),s()()(),a(14,"div",6)(15,"div",7)(16,"h1",8),h(17," HubSpot Property "),a(18,"span",9),h(19),s()()()(),a(20,"div",10)(21,"div",11)(22,"div",12)(23,"div",13)(24,"div",14)(25,"dx-switch",15),_("valueChange",function(c){return p(i),C(e.hubspotSyncConfigurationResponse.isEnabled,c)||(e.hubspotSyncConfigurationResponse.isEnabled=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSwithValueChanged(c))}),s(),h(26," \xA0 HubSpot Property "),s()(),a(27,"div",16)(28,"div",17),S(29,bu,6,1,"a",18)(30,wu,6,1,"a",18)(31,Su,4,0,"a",19)(32,Pu,4,0,"a",20),s(),a(33,"dx-tab-panel",21,0),_("selectedIndexChange",function(c){return p(i),C(e.selectedTabIndex,c)||(e.selectedTabIndex=c),u(c)}),f("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))}),b(35,"dxi-item",22),S(36,Mu,2,0,"div",23)(37,Lu,4,2,"div",24),b(38,"dxi-item",25),S(39,ku,2,0,"div",23)(40,Nu,4,2,"div",24),s()()()()(),a(41,"confirm-popup",26),_("visibleChange",function(c){return p(i),C(e.syncPopup,c)||(e.syncPopup=c),u(c)}),f("save",function(){return p(i),u(e.onClickSyncClient())})("visibleChange",function(c){return p(i),u(e.onClickSyncVisible(c))}),s(),a(42,"confirm-popup",27),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),f("save",function(){return p(i),u(e.onClickDeleteCriteria())}),s()()}
87n&2&&(o(19),O(" ",e.selectedTabIndex==0?'"Company"':'"Contact"'," "),o(6),x("value",e.hubspotSyncConfigurationResponse.isEnabled),o(4),l("ngIf",e.selectedTabIndex==0),o(),l("ngIf",e.selectedTabIndex==1),o(),l("ngIf",e.selectedTabIndex==0&&e.GetActiveGroupItemCompany().length>0),o(),l("ngIf",e.selectedTabIndex==1&&e.GetActiveGroupItemContact().length>0),o(),l("loop",!1)("animationEnabled",!1)("swipeEnabled",!1)("height",418),x("selectedIndex",e.selectedTabIndex),o(3),l("dxTemplateOf","CompanyHeader"),o(),l("dxTemplateOf","CompanyContent"),o(2),l("dxTemplateOf","ContactHeader"),o(),l("dxTemplateOf","ContactContent"),o(),q("action",e.action),q("titleText",e.actionMessage),x("visible",e.syncPopup),o(),x("visible",e.deletePopup))},dependencies:[bt,Ai,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,ni,it,Do,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Zn],styles:['.hubspot-property[_ngcontent-%COMP%]{padding:2rem}.hubspot-property-tabs[_ngcontent-%COMP%]{margin-top:2rem;position:relative}.hubspot-property-empty-state[_ngcontent-%COMP%]{border:1px solid #ccc;width:100%;padding:2rem;text-align:center;display:flex;align-items:center;justify-content:center;border-radius:3px}.preview-rule-block[_ngcontent-%COMP%]{width:100%;margin:0;padding:1rem 0rem 0rem 0}.preview-rule-block__row[_ngcontent-%COMP%]{width:100%;padding-bottom:0}.preview-rule-block__row[_ngcontent-%COMP%] .preview-rule-block-and-or[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:25px;margin:2rem 0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.preview-rule-block__row[_ngcontent-%COMP%] .preview-rule-block-and-or[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;height:calc(100% + 0px);width:1px;background-color:var(--dark-gray-color)}.preview-rule-block__row[_ngcontent-%COMP%] .preview-rule-block-and-or[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;top:50%;height:1px;width:20px;background-color:var(--dark-gray-color)}.preview-rule-block__row[_ngcontent-%COMP%] .preview-rule-block-and-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;display:inline-block;padding:.3rem .8rem;border-radius:5px;margin:0 .4rem;color:var(--white-color);font:var(--font-weight-500) var(--font-12) var(--font-family);background-color:var(--secondary-color);position:relative;text-transform:uppercase}.preview-rule-block__row[_ngcontent-%COMP%] .preview-rule-block-and-or[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:100%;height:1px;background-color:var(--border-color);padding:0}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%]{position:relative;width:100%;border-radius:5px;padding:2rem 2rem 1.5rem;background-repeat:no-repeat;background-position:0 0,0 0,100% 0,0 100%;background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(90deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(180deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(270deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px);border-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration[_ngcontent-%COMP%]{position:relative;padding-left:38px}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration[_ngcontent-%COMP%]:after{content:"";position:absolute;left:11px;bottom:2px;width:1px;height:calc(100% - 33px);background-color:var(--border-color)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__if[_ng
87content-%COMP%]{position:absolute;left:0;top:0;padding:.3rem .8rem;border-radius:5px;color:var(--white-color);font:var(--font-weight-400) var(--font-12) var(--font-family);background-color:var(--dark-gray-color)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__entity[_ngcontent-%COMP%]{width:100%;display:inline-block;margin-bottom:.8rem;color:var(--body-color);font:var(--font-weight-500) var(--font-15) var(--font-family)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__entity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--tag-color)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__property[_ngcontent-%COMP%]{width:100%;display:inline-block;margin-bottom:.8rem;color:var(--body-color);font:var(--font-weight-500) var(--font-15) var(--font-family);position:relative;padding-left:3rem}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__property[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:0;top:2px;text-transform:uppercase}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__position[_ngcontent-%COMP%]{width:100%;display:inline-block;margin-bottom:0;color:var(--body-color);font:var(--font-weight-500) var(--font-15) var(--font-family);position:relative;padding-left:3rem}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__position[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:0;top:0}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .preview-configuration__position[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;display:inline-block;padding:.3rem .8rem;border-radius:5px;margin:.4rem;color:var(--body-color);font:var(--font-weight-500) var(--font-12) var(--font-family);background-color:var(--accent-color);text-transform:uppercase}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer__and-or[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:35px;margin:1.5rem 0 2rem;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer__and-or[_ngcontent-%COMP%]:before{content:"";position:absolute;left:11px;top:0;height:calc(100% + 0px);width:1px;background-color:var(--dark-gray-color)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer__and-or[_ngcontent-%COMP%]:after{content:"";position:absolute;left:11px;top:50%;height:1px;width:20px;background-color:var(--dark-gray-color)}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer__and-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;display:inline-block;padding:.3rem .8rem;border-radius:5px;margin:0 .4rem;color:var(--body-color);font:var(--font-weight-500) var(--font-12) var(--font-family);background-color:var(--accent-color);position:relative;text-transform:uppercase}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer__and-or[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{width:100%;height:1px;background-color:var(--border-color);padding:0}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .delete-singel-rule[_ngcontent-%COMP%]{position:absolute;right:10px;top:10px}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .delete-singel-rule[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{width:26px;height:26px;position:relative;background-color:var(--delete-hover-color);border-radius:100px;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center}.preview-rule-block[_ngcontent-%COMP%] .preview-configuration-rule-outer[_ngcontent-%COMP%] .delete-singel-rule[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]:hover{opacity:.9}.hubspot-property-group-button[_ngcontent-%COMP%]{position:absolute;right:0;top:0;z-index:11;display:flex;gap:1rem}.hubspot-property-group-button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center}']})}}return r})();
87var Co=class{};var eo={CardPointe:"CardPointe",Paystand:"Paystand"};var Uu=()=>({"aria-label":"Payment Gateway"}),Hu=()=>({"aria-label":"Application Id"}),ju=()=>({"aria-label":"Client Id"}),zu=()=>({"aria-label":"Client Secret"}),Zu=()=>({"aria-label":"Customer Id"}),Qu=()=>({"aria-label":"Publishable Key"}),Yu=()=>({"aria-label":"API Base Url"}),ss=()=>({"aria-label":"Enable Credit Cards"}),ls=()=>({"aria-label":"Enable ACH"}),Ku=()=>({"aria-label":"Merchant Site Url"}),Ju=()=>({"aria-label":"Merchant Id Field"}),ds=()=>({"aria-label":"Username Field"}),cs=()=>({"aria-label":"Password Field"}),Xu=()=>({"aria-label":"ACH Merchant Id Field"});function $u(r,g){r&1&&(a(0,"i"),h(1,"Choose the payment gateway this client processes payments through."),s())}function e0(r,g){if(r&1&&(a(0,"i"),h(1),s()),r&2){let t=m();o(),O(" ",t.providerTitle," is selected but has no credentials yet. Payments cannot be taken until it is configured. ")}}function t0(r,g){if(r&1){let t=y();a(0,"a",21),f("click",function(){p(t);let e=m(2);return u(e.editMode())}),A(),a(1,"svg",22),b(2,"path",23),s(),h(3," Edit "),s()}}function i0(r,g){if(r&1&&b(0,"dxi-button",43),r&2){let t=m(3);l("options",t.passwordButton)}}function n0(r,g){r&1&&(a(0,"div",13)(1,"i"),h(2,"Sent as the X-CUSTOMER-ID header on every Paystand API call. Case sensitive."),s()())}function o0(r,g){r&1&&(a(0,"div",13)(1,"i"),h(2,"Used by the checkout in the member's browser. Safe to expose publicly."),s()())}function a0(r,g){r&1&&(a(0,"div",13)(1,"i"),h(2,"Leave empty for production. Use "),a(3,"span"),h(4,"https://api.paystand.co"),s(),h(5," for sandbox."),s(),b(6,"br"),a(7,"i"),h(8,"Host only - do not include /v3. Also selects the sandbox or live checkout in the member portal."),s()())}function r0(r,g){if(r&1){let t=y();a(0,"div",11)(1,"dx-button",44),f("onClick",function(){p(t);let e=m(3);return u(e.testPaystandConnection())}),s(),a(2,"div",13)(3,"i"),h(4,"Asks Paystand for an access token using the saved credentials."),s()()()}if(r&2){let t=m(3);o(),l("disabled",t.isTestingConnection)}}function s0(r,g){if(r&1){let t=y();a(0,"div",10)(1,"div",24)(2,"div",11)(3,"dx-text-box",25),_("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.applicationId,e)||(i.paystandConfig.applicationId=e),u(e)}),s()(),a(4,"div",11)(5,"dx-text-box",26),_("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.clientId,e)||(i.paystandConfig.clientId=e),u(e)}),a(6,"dx-validator"),b(7,"dxi-validation-rule",27),s()()(),a(8,"div",11)(9,"dx-text-box",28),_("modeChange",function(e){p(t);let i=m(2);return C(i.passwordMode,e)||(i.passwordMode=e),u(e)})("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.clientSecret,e)||(i.paystandConfig.clientSecret=e),u(e)}),S(10,i0,1,1,"dxi-button",29),a(11,"dx-validator"),b(12,"dxi-validation-rule",30),s()()(),a(13,"div",11)(14,"dx-text-box",31),_("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.customerId,e)||(i.paystandConfig.customerId=e),u(e)}),a(15,"dx-validator"),b(16,"dxi-validation-rule",32),s()(),S(17,n0,3,0,"div",33),s(),a(18,"div",11)(19,"dx-text-box",34),_("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.publishableKey,e)||(i.paystandConfig.publishableKey=e),u(e)}),a(20,"dx-validator"),b(21,"dxi-validation-rule",35),s()(),S(22,o0,3,0,"div",33),s(),a(23,"div",11)(24,"dx-text-box",36),_("valueChange",function(e){p(t);let i=m(2);return C(i.paystandConfig.apiBaseUrl,e)||(i.paystandConfig.apiBaseUrl=e),u(e)}),s(),S(25,a0,9,0,"div",33),s(),a(26,"div",37)(27,"div",38)(28,"div",39)(29,"dx-check-box",40),_("valueChange",function(e){p(t);let i=m(2);return C(i.isCreditCard,e)||(i.isCreditCard=e),u(e)}),s()()(),a(30,"div",38)(31,"div",39)(32,"dx-check-box",41),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAch,e)||(i.isAch=e),u(e)}),s()()()(),S(33,r0,5,1,"div",42),s()()}if(r&2){let t=m(2);o(3),l("labelMode",t.labelMode)("inputAttr",I(28,Hu)),x("value",t.paystandConfig.applicationId),o(2),l("labelMode",t.labelMode)("inputAttr",I(29,ju)),x("value",t.paystandConfig.clientId),o(4),l("labelMode",t.labelMode)("inputAttr",I(30,zu)),x("mode",t.passwordMode)("value",t.paystandConfig.clientSecret),o(),l("ngIf",t.isEditMode),o(4),l("labelMode",t.labelMode)("inputAttr",I(31,Zu)),x("value",t.paystandConfig.customerId),o(3),l("ngIf",t.isEditMode),o(2),l("labelMode",t.labelMode)("inputAttr",I(32,Qu)),x("value",t.paystandConfig.publishableKey),o(3),l("ngIf",t.isEditMode),o(2),l("labelMode",t.labelMode)("inputAttr",I(33,Yu)),x("value",t.paystandConfig.apiBaseUrl),o(),l("ngIf",t.isEditMode),o(4),x("value",t.isCreditCard),l("elementAttr",I(34,ss)),o(3),x("value",t.isAch),l("elementAttr",I(35,ls)),o(),l("ngIf",!t.isEditMode&&t.isProviderConfigured)}}function l0(r,g){r&1&&(a(0,"div",13)(1,"i")(2,"span"),h(3," https://<your-site>.cardconnect.com "),s()(),b(4,"br"),a(5,"i"),h(6," Replace <your-site> with the name assigned by CardPointe (e.g., fts, boltgw)."),s()())}function d0(r,g){if(r&1&&b(0,"dxi-button",43),r&2){let t=m(4);l("options",t.passwordButton)}}function c0(r,g){if(r&1){let t=y();a(0,"div",48)(1,"div",11)(2,"dx-text-box",49),_("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.merchantId,e)||(i.paymentGatewayConfig.merchantId=e),u(e)}
87),a(3,"dx-validator"),b(4,"dxi-validation-rule",50),s()()(),a(5,"div",11)(6,"dx-text-box",51),_("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.username,e)||(i.paymentGatewayConfig.username=e),u(e)}),a(7,"dx-validator"),b(8,"dxi-validation-rule",52),s()()(),a(9,"div",11)(10,"dx-text-box",53),_("modeChange",function(e){p(t);let i=m(3);return C(i.passwordMode,e)||(i.passwordMode=e),u(e)})("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.password,e)||(i.paymentGatewayConfig.password=e),u(e)}),S(11,d0,1,1,"dxi-button",29),a(12,"dx-validator"),b(13,"dxi-validation-rule",54),s()()()()}if(r&2){let t=m(3);o(2),l("labelMode",t.labelMode)("inputAttr",I(11,Ju)),x("value",t.paymentGatewayConfig.merchantId),o(4),l("labelMode",t.labelMode)("inputAttr",I(12,ds)),x("value",t.paymentGatewayConfig.username),o(4),l("labelMode",t.labelMode)("inputAttr",I(13,cs)),x("mode",t.passwordMode)("value",t.paymentGatewayConfig.password),o(),l("ngIf",t.isEditMode)}}function p0(r,g){if(r&1&&b(0,"dxi-button",43),r&2){let t=m(4);l("options",t.passwordButton)}}function u0(r,g){if(r&1){let t=y();a(0,"div",48)(1,"div",11)(2,"dx-text-box",55),_("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.achMerchantId,e)||(i.paymentGatewayConfig.achMerchantId=e),u(e)}),a(3,"dx-validator"),b(4,"dxi-validation-rule",56),s()()(),a(5,"div",11)(6,"dx-text-box",51),_("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.achUserName,e)||(i.paymentGatewayConfig.achUserName=e),u(e)}),a(7,"dx-validator"),b(8,"dxi-validation-rule",52),s()()(),a(9,"div",11)(10,"dx-text-box",53),_("modeChange",function(e){p(t);let i=m(3);return C(i.passwordMode,e)||(i.passwordMode=e),u(e)})("valueChange",function(e){p(t);let i=m(3);return C(i.paymentGatewayConfig.achPassword,e)||(i.paymentGatewayConfig.achPassword=e),u(e)}),S(11,p0,1,1,"dxi-button",29),a(12,"dx-validator"),b(13,"dxi-validation-rule",54),s()()()()}if(r&2){let t=m(3);o(2),l("labelMode",t.labelMode)("inputAttr",I(11,Xu)),x("value",t.paymentGatewayConfig.achMerchantId),o(4),l("labelMode",t.labelMode)("inputAttr",I(12,ds)),x("value",t.paymentGatewayConfig.achUserName),o(4),l("labelMode",t.labelMode)("inputAttr",I(13,cs)),x("mode",t.passwordMode)("value",t.paymentGatewayConfig.achPassword),o(),l("ngIf",t.isEditMode)}}function m0(r,g){if(r&1){let t=y();a(0,"div",10)(1,"div",24)(2,"div",11)(3,"dx-text-box",45),_("valueChange",function(e){p(t);let i=m(2);return C(i.paymentGatewayConfig.merchantAuthUrl,e)||(i.paymentGatewayConfig.merchantAuthUrl=e),u(e)}),a(4,"dx-validator"),b(5,"dxi-validation-rule",46),s()(),S(6,l0,7,0,"div",33),s(),a(7,"div",37)(8,"div",38)(9,"div",39)(10,"dx-check-box",40),_("valueChange",function(e){p(t);let i=m(2);return C(i.isCreditCard,e)||(i.isCreditCard=e),u(e)}),s()(),S(11,c0,14,14,"div",47),s(),a(12,"div",38)(13,"div",39)(14,"dx-check-box",41),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAch,e)||(i.isAch=e),u(e)}),s()(),S(15,u0,14,14,"div",47),s()()()()}if(r&2){let t=m(2);o(3),l("labelMode",t.labelMode)("inputAttr",I(10,Ku)),x("value",t.paymentGatewayConfig.merchantAuthUrl),o(3),l("ngIf",t.isEditMode),o(4),x("value",t.isCreditCard),l("elementAttr",I(11,ss)),o(),l("ngIf",t.isCreditCard),o(3),x("value",t.isAch),l("elementAttr",I(12,ls)),o(),l("ngIf",t.isAch)}}function g0(r,g){if(r&1&&(a(0,"form",17),S(1,t0,4,0,"a",18),a(2,"dx-form",19)(3,"dxi-item"),S(4,s0,34,36,"div",20)(5,m0,16,13,"div",20),s()()()),r&2){let t=m();l("ngClass",t.isEditMode?"":"view-mode"),o(),l("ngIf",t.isPermissionAddUpdate),o(),l("formData",t.formData),o(2),l("ngIf",t.isPaystand),o(),l("ngIf",t.isCardPointe)}}function h0(r,g){if(r&1){let t=y();a(0,"dx-button",60),f("onClick",function(){p(t);let e=m(2);return u(e.onFormCancel())}),s()}}function f0(r,g){if(r&1){let t=y();a(0,"dx-button",61),f("onClick",function(e){p(t);let i=m(2);return u(i.onFormSubmit(e))}),s()}if(r&2){let t=m(2);l("text",t.label)("useSubmitBehavior",!1)}}function C0(r,g){if(r&1&&(a(0,"div",57),S(1,h0,1,0,"dx-button",58)(2,f0,1,2,"dx-button",59),s()),r&2){let t=m();o(),l("ngIf",t.isEditMode),o(),l("ngIf",t.isEditMode&&t.isPermissionAddUpdate)}}var ps=(()=>{class r extends wt{get isCardPointe(){return this.selectedProvider===eo.CardPointe}get isPaystand(){return this.selectedProvider===eo.Paystand}get providerTitle(){return this.isCardPointe?"CardPointe Account":this.isPaystand?"Paystand Account":"Payment Gateway Account"}constructor(t,n,e,i){super(),this.webStorageService=t,this.router=n,this.permissionService=e,this.tenantService=i,this.unsubscriber=new Ct,this.formData={},this.isPermissionAddUpdate=!1,this.isPermissionView=!1,this.isEditMode=!1,this.stylingMode="outlined",this.labelMode="floating",this.label="Save",this.paymentGatewayConfig=new Lr,this.passwordMode="password",this.isCreditCard=!1,this.isAch=!1,this.providerOptions=[{value:eo.CardPointe,label:"CardPointe"},{value:eo.Paystand,label:"Paystand"}],this.activeProvider="",this.selectedProvider="",this.isProviderConfigured=!1,this.paystandConfig=new Co,this.isTestingConnection=!1,this.cdr=Hi(rn),this.passwordButton={icon:"eyeclose",stylingMode:"text",onClick:()=>{this.passwordMode=this.passwordMode==="text"?"password":"text",this.passwordButton=Bn(dn({},this.passwordButton),{icon:this.passwordMode==="text"?"eyeopen":"eyeclose"}),this.cdr.detectChanges()}},this.PaymentProviders=eo,this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.companyDetails=t.getClientConfig(),this.companyDetails&&(this.isProductowner=this.companyDetails.isProductOwner),this.getUserPermission()}ngOnInit(){return B(this,null,function*(){yield this.loadActiveProvider()})}loadActiveProvider(){return B(this,null,function*(){this.loading=!0;let t=this.tenantService.GetActivePaymentProvider().pipe(w(this.unsubscriber),P(()=>this.loading=!1)),n=yield wi(t);
87if(!n?.isSuccess){this.showErrorMessage(n?.message);return}if(this.activeProvider=n.responseModel?.activeProvider??"",this.isProviderConfigured=n.responseModel?.isConfigured??!1,this.selectedProvider=this.activeProvider,!this.selectedProvider){this.isEditMode=!0;return}yield this.getPaymentGatewayConfig()})}onProviderChanged(t){return B(this,null,function*(){if(!t||t===this.activeProvider)return;this.loading=!0;let n=this.tenantService.SetActivePaymentProvider({activeProvider:t,isConfigured:!1,modifiedByUserId:this.userToken.userId}).pipe(w(this.unsubscriber),P(()=>this.loading=!1)),e=yield wi(n);if(!e?.isSuccess){this.showErrorMessage(e?.message),this.selectedProvider=this.activeProvider;return}this.showSuccessMessage(e.message),yield this.loadActiveProvider()})}getPaymentGatewayConfig(){return B(this,null,function*(){if(this.loading=!0,this.isPaystand){let e=this.tenantService.GetPaystandConfiguration().pipe(w(this.unsubscriber),P(()=>this.loading=!1)),i=yield wi(e);if(!i?.isSuccess){this.showErrorMessage(i?.message);return}i.responseModel!=null?(this.paystandConfig=i.responseModel,this.isCreditCard=this.paystandConfig.isCreditCard,this.isAch=this.paystandConfig.isAch,this.isEditMode=!this.paystandConfig.clientId):(this.paystandConfig=new Co,this.isEditMode=!0);return}let t=this.tenantService.GetCardPointeConfiguration().pipe(w(this.unsubscriber),P(()=>this.loading=!1)),n=yield wi(t);n&&n.isSuccess?n.responseModel!=null?(this.paymentGatewayConfig=n.responseModel,this.isCreditCard=this.paymentGatewayConfig.isCreditCard,this.isAch=this.paymentGatewayConfig.isAch,this.isEditMode=!1):this.isEditMode=!0:(this.showErrorMessage(n.message),this.loading=!1,this.loadingCustom=!1)})}testPaystandConnection(){return B(this,null,function*(){this.isTestingConnection=!0;let t=this.tenantService.TestPaystandConnection().pipe(w(this.unsubscriber),P(()=>this.isTestingConnection=!1)),n=yield wi(t);n?.isSuccess?this.showSuccessMessage(n.message):this.showErrorMessage(n?.message??"Could not connect to Paystand.")})}editMode(){this.isEditMode=!this.isEditMode}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.PaymentGateway.toString(),ti.View.toString()),this.isPermissionAddUpdate=this.permissionService.getPermission(ei.PaymentGateway.toString(),ti.Update.toString())}onFormSubmit(n){return B(this,arguments,function*({validationGroup:t}){if(!t.validate().isValid)return;if(!this.isCreditCard&&!this.isAch){this.showErrorMessage("Please select at least one payment method: Credit Card or ACH.");return}if(this.isPaystand){this.paystandConfig.modifiedByUserId=this.userToken.userId,this.paystandConfig.isCreditCard=this.isCreditCard,this.paystandConfig.isAch=this.isAch;let d=yield wi(this.tenantService.AddUpdatePaystandConfiguration(this.paystandConfig));d.isSuccess?(this.showSuccessMessage(d.message),yield this.loadActiveProvider(),this.isEditMode=!1):(this.showErrorMessage(d.message),this.loading=!1,this.loadingCustom=!1);return}this.paymentGatewayConfig.modifiedByUserId=this.userToken.userId,this.paymentGatewayConfig.isCreditCard=this.isCreditCard,this.paymentGatewayConfig.isAch=this.isAch;let e=this.tenantService.AddUpdateCardPointeConfiguration(this.paymentGatewayConfig),i=yield wi(e);i.isSuccess?(this.showSuccessMessage(i.message),this.getPaymentGatewayConfig(),this.isEditMode=!1):(this.showErrorMessage(i.message),this.loading=!1,this.loadingCustom=!1)})}onFormCancel(){this.isEditMode=!1,this.getPaymentGatewayConfig()}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(St),k(ci),k(Fo))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-payment-gateway-configuration"]],standalone:!0,features:[xt,Q],decls:25,vars:12,consts:[[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer","ams-hubsport"],[1,"card-outer","max-width",2,"margin-bottom","16px"],[1,"card-outer__content","payment-gateway-configuration"],[1,"dx-field"],["displayExpr","label","valueExpr","value","label","Payment Gateway",3,"onValueChanged","items","labelMode","value","disabled","inputAttr"],[1,"text-xs","text-gray-500","mt-1",2,"margin-top","5px"],[4,"ngIf"],["class","card-outer max-width",3,"ngClass",4,"ngIf"],["class","card-outer__button max-width",4,"ngIf"],[1,"card-outer","max-width",3,"ngClass"],["href","javascript:void(0)","class","btn btn--preview edit-btn",3,"click",4,"ngIf"],["id","form",3,"formData"],["class","card-outer__content payment-gateway-configuration",4,"ngIf"],["href","javascript:void(0)",1,"btn","btn--preview","edit-btn",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0F0F0F"],[1,"hubspot-configuration__box"],["label","Application Id",3,"valueChange","labelMode","inputAttr","value"],["label","Client Id",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Client Id is required"],["label","Client Secret","type","password",3,"modeChange","valueChange","labelMode","inputAttr","mode","value"],["name","password","location","after",3,"options",4,"ngIf"],["type","required","message","Client Secret is required"],["label","Customer Id",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Customer Id is required"],["class","text-xs text-gray-500 mt-1","style","margin-top:5px;",4,"ngIf"],["label","Publishable Key",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Publishable Key is required"],["label","API Base Url","placeholder","https://api.paystand.com",3,"valueChange","labelMode","inputAttr","value"],[1,"merchant-credentials-grid"],[1,"merchant-credentials-grid__column"],[1,"dx-field-value","checkbox","checkbox-box"],["text","Enable Credit Cards",3,"valueChange","value","elementAttr"],["text","Enable ACH",3,"valueChange","value","elementAttr"],["class","dx-field",4,"ngIf"],["name","password","location","after",3,"options"],["text","Test connection","stylingMode","contained","type","normal",1,"btn","btn--preview",3,"onClick","disabled"],["label","Merchant Site Url","placeholder","https://<your-site>.cardconnect.com",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Merchant Site Url is required"],["class","checkbox-box-group",4,"ngIf"],[1,"checkbox-box-group"],["label","Merchant Id",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Merchant Id is required"],["label","Username",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Username is required"],["label","Password","type","password",3,"modeChange","valueChange","labelMode","inputAttr","mode","value"],["type","required","message","Password is required"],["label","ACH Merchant Id",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","ACH Merchant Id is required"],[1,"card-outer__button","max-width"],["text","Cancel","class","btn btn--cancel","stylingMode","contained","type","normal",3,"onClick",4,"ngIf"],["class","btn btn--primary","stylingMode","contained","type","default",3,"text","useSubmitBehavior","onClick",4,"ngIf"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick","text","useSubmitBehavior"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Integration Services"),s()(),a(9,"li",3),h(10),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14),s()()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"dx-select-box",12),f("onValueChanged",function(d){return e.onProviderChanged(d.value)}),s(),a(20,"div",13),S(21,$u,2,0,"i",14)(22,e0,2,1,"i",14),s()()()(),S(23,g0,6,5,"form",15)(24,C0,3,2,"div",16),s()()),n&2&&(o(10),R(e.providerTitle),o(4),R(e.providerTitle),o(5),l("items",e.providerOptions)("labelMode",e.labelMode)("value",e.selectedProvider)("disabled",!e.isPermissionAddUpdate)("inputAttr",I(11,Uu)),o(2),l("ngIf",!e.selectedProvider),o(),l("ngIf",e.selectedProvider&&!e.isProviderConfigured),o(),l("ngIf",e.selectedProvider),o(),l("ngIf",e.selectedProvider))},dependencies:[bt,vt,Jt,Pt,ie,Mt,ne,oe,Xa,ae,re,se,le,Et,de,ce,pe,ue,_n,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".card-outer[_ngcontent-%COMP%]{width:100%;position:relative}.card-outer[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{width:auto;position:absolute;top:-52px;right:0;display:none}.card-outer[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}
87.card-outer.view-mode[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{display:flex}.payment-gateway-configuration[_ngcontent-%COMP%]{padding:2.5rem 3rem 3rem}.payment-gateway-configuration__box[_ngcontent-%COMP%]{width:100%;max-width:700px;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-flex-wrap:wrap;flex-wrap:wrap}.payment-gateway-configuration__box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]:last-child{margin-bottom:1.5rem}.merchant-credentials-grid[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;width:100%}.merchant-credentials-grid__column[_ngcontent-%COMP%]{width:49%}.merchant-credentials-grid__column[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{position:relative;max-width:100%}.checkbox-box[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}"]})}}return r})();function _0(r,g){r&1&&Ra(0)}function y0(r,g){if(r&1&&(xi(0),a(1,"p"),h(2),s(),vi()),r&2){let t=m();o(2),R(t.error)}}var us=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V,E){super(),this.router=t,this.activatedRoute=n,this.webStorageService=e,this.clientService=d,this.authenticationService=c,this.tenantService=v,this.hubspotAutorizationService=V,this.http=E,this.isError=!1,this.error="Oops! It seems you're trying to sign in using a different authentication method than what you originally signed up with.Please sign in using the method you registered with.",this.btnText="Back to Sign In",this.unsubscriber=new Ct,this.progress=new Ct,this.isProductOwner=!1,this.loginDisplay=!1,this._destroying$=new Ct,this.currentUser=e.getCurrentUserToken(),this.location=i;let T=this.activatedRoute.snapshot.queryParams,D=T.code,W=T.iss,Vt=T.clientUrl,ii=T.client_id,mi=T.redirect_uri,jt=T.nonce,fi=T.state,Ji=T.response_type,io=T.scope;if(this.webStorageService.getCurrentUserToken())if(D)D&&this.HubspotContentauthorize(D,fi,W);else{let Xo=`Hubspot/authorize?accessToken=${this.currentUser.token}&client_id=${ii}&redirect_uri=${encodeURIComponent(mi)}&nonce=${jt}&response_type=${Ji}&scope=${encodeURIComponent(io)}&state=${encodeURIComponent(fi)}`,$o=`${Ya.apiUrl}connect/authorizev1?accessToken=${this.currentUser.token}&client_id=${ii}&redirect_uri=${encodeURIComponent(mi)}&nonce=${jt}&response_type=${Ji}&scope=${encodeURIComponent(io)}&state=${encodeURIComponent(fi)}`;window.location.href=$o}else{let Xo=window.location.hostname,$o=window.location.protocol,Sa=window.location.port,D9=Xo.split(".")[0],ol=`${$o}//${Xo}${Sa?":"+Sa:""}/admin/login?returnUrl=${this.router.url}`;this.router.navigate([ol]),this.router.navigate(["admin/login"],{queryParams:{returnUrl:this.router.url}})}}HubspotContentauthorize(t,n,e){this.loading=!0,this.tenantService.Callback(t,n,e).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(i=>{this.processResult(i,()=>B(this,null,function*(){i&&i.isSuccess?i.responseModel!=null:this.showErrorMessage(i.message)}))},i=>{this.showErrorMessage(i.message)})}Exchange(t,n,e){let i=new Si().set("grant_type","authorization_code").set("client_id","32a56c87-a186-4f38-b228-0914759466a7").set("code",t).set("redirect_uri","https://commonwealth-spent-conservative-sail.trycloudflare.com/admin/client/setting/hubspot-oidc-configuration"),d=new oa({"Content-Type":"application/x-www-form-urlencoded"});this.loading=!0,this.tenantService.Exchange(i.toString(),d).pipe(w(this.unsubscriber),P(()=>this.loading=!1)).subscribe(c=>{this.processResult(c,()=>B(this,null,function*(){if(c&&c.isSuccess){if(c.responseModel!=null){let v=c.responseModel;this.access_token=v.access_token,this.token_type=v.token_type,this.expires_in=v.expires_in,this.scope=v.scope}}else this.showErrorMessage(c.message)}))},c=>{this.showErrorMessage(c.message)})}getToken(t,n,e){let i=new Si().set("grant_type","authorization_code").set("code",t).set("redirect_uri",n),d=new oa({"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+btoa("32a56c87-a186-4f38-b228-0914759466a7:AQAAAAEAACcQAAAAEBrulUoTG1g+hdrzXRR9qFE4WvFsoeLwDPSrh8TjuOCk/0j5HtjMQJDpAn+nF15FZg==")});return this.http.post(`${e}api/Hubspot/token`,i.toString(),{headers:d}).pipe(Ta(c=>{console.log("Token response:",c),localStorage.setItem("access_token",c.access_token),c.refresh_token&&localStorage.setItem("refresh_token",c.refresh_token)}),bo(c=>{console.error("Token error:",c);let v=c?.error;return v?.error==="invalid_client"?alert("Invalid client credentials"):v?.error==="invalid_grant"?alert("Authorization code expired or invalid"):alert("Token request failed"),Ma(()=>c)}))}ngOnDestroy(){this._destroying$.next(void 0),this._destroying$.complete()}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Li),k(yt),k(Nn),k(yr),k(li),k(Fo),k(Tr),k(sn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-hubspot-oidc"]],standalone:!0,features:[Wt([Nn,{provide:Na,useClass:qa}
87]),xt,Q],decls:6,vars:2,consts:[[1,"not-found"],[1,"not-found__box"],[4,"ngIf"]],template:function(n,e){n&1&&(xi(0),a(1,"div",0)(2,"div",1),b(3,"h1"),S(4,_0,1,0,"ng-container",2)(5,y0,3,1,"ng-container",2),s()(),vi()),n&2&&(o(4),l("ngIf",!e.isError),o(),l("ngIf",e.isError))},dependencies:[bt,vt,Pt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:['.box-outer[_ngcontent-%COMP%]{width:100%;min-height:100vh;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center}.box-outer__content[_ngcontent-%COMP%]{width:440px;margin:auto;padding:30px 40px 25px;flex-grow:0;border:none;background-color:var(--white-color);border-radius:5px;box-shadow:0 0 20px #00000014}.login-form[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;justify-content:center;-webkit-justify-content:center}.login-form[_ngcontent-%COMP%] .dx-visibility-change-handler[_ngcontent-%COMP%]{width:100%}.login-form[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{width:100%;margin:0 0 2rem!important}.login-form[_ngcontent-%COMP%] .forgot-pass[_ngcontent-%COMP%]{padding:2rem 0 .5rem}.login-form[_ngcontent-%COMP%] .or[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;align-items:center;position:relative;margin-bottom:1rem}.login-form[_ngcontent-%COMP%] .or[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background-color:var(--border-color)}.login-form[_ngcontent-%COMP%] .or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:40px;height:40px;background-color:var(--white-color);color:var(--body-color);z-index:99;font-weight:500;text-align:center;line-height:40px}.login-form[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{text-align:center;font-size:16px;font-style:normal}.login-form[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline}.login-form[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.login-form[_ngcontent-%COMP%] .form-text{margin:10px 0;color:#242424b3}.not-found[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 62px);margin:0;padding:0;text-align:center;display:flex;justify-content:center;align-items:center}.not-found__box[_ngcontent-%COMP%]{border:1px solid var(--border-color);background-color:var(--white-color);padding:8rem 5rem;width:100%;max-width:700px;border-radius:5px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.not-found__box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{width:100%;font:var(--h1-font)!important;color:var(--h1-color);font-weight:var(--font-weight-800);font-size:4rem!important;margin:0}.not-found__box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:var(--font-15);font-family:var(--font-family)!important;font-weight:var(--font-weight-400);margin-bottom:2.5rem}']})}}return r})();var ms=(()=>{class r{constructor(){this.installUrl=La(""),this.isInstalling=Ei(!1)}onInstall(){this.installUrl()&&(this.isInstalling.set(!0),window.location.href=this.installUrl())}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-hubspot-install"]],inputs:{installUrl:[Da.SignalBased,"installUrl"]},standalone:!0,features:[Q],decls:10,vars:1,consts:[[1,"install-card-wrapper"],[1,"install-card"],[1,"install-card__logo"],[1,"install-card__logo-circle"],["src","assets/img/hubspot-icon.svg","alt","HubSpot icon","width","44","height","44"],[1,"install-card__title"],[1,"install-card__description"],["text","Install HubSpot App","type","default","stylingMode","contained",1,"hubspot-install-btn",3,"onClick","disabled"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),b(4,"img",4),s()(),a(5,"h2",5),h(6,"Connect HubSpot"),s(),a(7,"p",6),h(8," Connect your HubSpot account to sync contacts, companies, and properties between Cannolai and HubSpot. "),s(),a(9,"dx-button",7),f("onClick",function(){return e.onInstall()}),s()()()),n&2&&(o(9),l("disabled",e.isInstalling()))},dependencies:[vt,ie,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".install-card-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:calc(100vh - 300px);padding:2rem}.install-card[_ngcontent-%COMP%]{width:100%;max-width:480px;background:#fff;border-radius:12px;box-shadow:0 2px 16px #00000014;padding:3rem 2.5rem;text-align:center}.install-card__logo[_ngcontent-%COMP%]{margin-bottom:1.5rem;display:flex;justify-content:center}
87.install-card__logo-circle[_ngcontent-%COMP%]{width:70px;height:70px;border-radius:50%;background-color:#fff0e8;display:flex;align-items:center;justify-content:center;margin:0 auto}.install-card__logo-circle[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:52px;height:52px}.install-card__title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;color:#1a1a2e;margin:0 0 .75rem}.install-card__description[_ngcontent-%COMP%]{color:#8a9bb0;font-size:14px;line-height:1.6;margin:0 0 2rem}.install-card[_ngcontent-%COMP%] .hubspot-install-btn.dx-button{background-color:#00a4bd;border-color:#00a4bd;border-radius:6px;height:42px;padding:0 2rem}.install-card[_ngcontent-%COMP%] .hubspot-install-btn.dx-button .dx-button-text{color:#fff;font-weight:600;font-size:14px}.install-card[_ngcontent-%COMP%] .hubspot-install-btn.dx-button:hover, .install-card[_ngcontent-%COMP%] .hubspot-install-btn.dx-button.dx-state-hover{background-color:#243b53;border-color:#243b53}.install-card[_ngcontent-%COMP%] .hubspot-install-btn.dx-button.dx-state-focused{background-color:#243b53;border-color:#243b53}"],changeDetection:0})}}return r})();var zo=(r,g)=>g.originalIndex;function x0(r,g){r&1&&(a(0,"div",1),b(1,"dx-load-indicator"),a(2,"p"),h(3,"HubSpot is connecting. Please wait a moment\u2026"),s()())}function v0(r,g){if(r&1&&b(0,"app-hubspot-install",2),r&2){let t=m(2);l("installUrl",t.installUrl())}}function b0(r,g){r&1&&(a(0,"div",4),b(1,"dx-load-indicator"),s())}function w0(r,g){if(r&1){let t=y();a(0,"dx-switch",10),f("onValueChanged",function(e){p(t);let i=m(3);return u(i.onSyncToggle(e.value))}),s(),a(1,"span",11),h(2,"Enable HubSpot Sync"),s()}if(r&2){let t=m(3);l("value",t.isSyncEnabled())("disabled",t.isLoading())}}function S0(r,g){r&1&&(a(0,"div",12),h(1,"Contacts"),s())}function P0(r,g){if(r&1&&(a(0,"div")(1,"span"),h(2),s()()),r&2){let t=g.$implicit;o(),Qi("create-option",t.name==="__create__")("unmapped-option",t.name==="__unmapped__"),o(),R(t.label)}}function M0(r,g){if(r&1){let t=y();a(0,"div",31)(1,"span",32),h(2),s(),a(3,"span",33),h(4),s(),a(5,"dx-select-box",34),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(5);return u(d.onContactFieldSelected(i.originalIndex,e.value,e.event))}),S(6,P0,3,5,"div",35),s(),a(7,"span",36),h(8),s()()}if(r&2){let t=g.$implicit,n=m(5);Qi("is-system",t.isSystem),o(2),R(t.controlProperty),o(2),R(t.isSystem?"":t.labelName),o(),l("dataSource",n.contactDropdownSources()[t.originalIndex])("value",t.hubspotInternalName)("grouped",!0)("showClearButton",!0)("searchEnabled",!0)("disabled",n.creatingRows().has(t.originalIndex)),o(),l("dxTemplateOf","item"),o(2),R(t.hubspotInternalName||"\u2014")}}function V0(r,g){if(r&1&&(a(0,"div")(1,"span"),h(2),s()()),r&2){let t=g.$implicit;o(),Qi("create-option",t.name==="__create__")("unmapped-option",t.name==="__unmapped__"),o(),R(t.label)}}function E0(r,g){if(r&1){let t=y();a(0,"div",31)(1,"span",32),h(2),s(),a(3,"span",33),h(4),s(),a(5,"dx-select-box",34),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(6);return u(d.onContactFieldSelected(i.originalIndex,e.value,e.event))}),S(6,V0,3,5,"div",35),s(),a(7,"span",36),h(8),s()()}if(r&2){let t=g.$implicit,n=m(6);Qi("is-system",t.isSystem),o(2),R(t.controlProperty),o(2),R(t.isSystem?"":t.labelName),o(),l("dataSource",n.contactDropdownSources()[t.originalIndex])("value",t.hubspotInternalName)("grouped",!0)("showClearButton",!0)("searchEnabled",!0)("disabled",n.creatingRows().has(t.originalIndex)),o(),l("dxTemplateOf","item"),o(2),R(t.hubspotInternalName||"\u2014")}}function T0(r,g){if(r&1&&(a(0,"div",37)(1,"h3"),h(2,"Demographics"),s()(),ao(3,E0,9,12,"div",28,zo)),r&2){let t=m(5);o(3),ro(t.contactDemographicRows())}}function D0(r,g){r&1&&(a(0,"div",29),h(1,"No properties match your search."),s())}function I0(r,g){r&1&&b(0,"dx-load-indicator")}function A0(r,g){if(r&1){let t=y();a(0,"dx-button",38),f("onClick",function(){p(t);let e=m(5);return u(e.saveContactMapping())}),s()}if(r&2){let t=m(5);l("disabled",!t.contactHasChanges())}}function L0(r,g){if(r&1){let t=y();a(0,"div",19)(1,"div",20)(2,"div",21),A(),a(3,"svg",22),b(4,"circle",23)(5,"line",24),s(),G(),a(6,"dx-text-box",25),f("valueChange",function(e){p(t);let i=m(4);return u(i.contactSearch.set(e))}),s()()(),a(7,"div",26)(8,"div",27)(9,"span"),h(10,"Control Property"),s(),a(11,"span"),h(12,"Label Name"),s(),a(13,"span"),h(14,"HubSpot Field"),s(),a(15,"span"),h(16,"HubSpot Internal Name"),s()(),ao(17,M0,9,12,"div",28,zo),S(19,T0,5,0)(20,D0,2,0,"div",29),s(),a(21,"div",30),S(22,I0,1,0,"dx-load-indicator")(23,A0,1,1),s()()}if(r&2){let t=m(4);o(6),l("showClearButton",!0)("value",t.contactSearch()),o(11),ro(t.contactStandardRows()),o(2),un(19,t.contactDemographicRows().length>0?19:-1),o(),un(20,t.filteredContactRows().length===0?20:-1),o(2),un(22,t.isSavingContact()?22:23)}}function k0(r,g){if(r&1){let t=y();a(0,"div",13)(1,"div",14)(2,"div",15),f("click",function(){p(t);let e=m(3);return u(e.toggleCard())}),a(3,"h2",16),h(4,"Property Mapping"),s(),A(),a(5,"svg",17),b(6,"polyline",18),s()(),S(7,L0,24,5,"div",19),s()()}if(r&2){let t=m(3);o(5),Qi("collapsed",!t.isCardExpanded()),o(2),un(7,t.isCardExpanded()?7:-1)}}function R0(r,g){r&1&&(a(0,"div",12),h(1,"Companies"),s())}function O0(r,g){if(r&1&&(a(0,"div")(1,"span"),h(2),s()()),r&2){let t=g.$implicit;o(),Qi("create-option",t.name==="__create__")("unmapped-option",t.name==="__unmapped__"),o(),R(t.label)}}function G0(r,g){if(r&1){let t=y();a(0,"div",31)(1,"span",32),h(2),s(),a(3,"span",33),h(4),s(),a(5,"dx-select-box",39),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(5);return u(d.onCompanyFieldSelected(i.originalIndex,e.value,e.event))}),S(6,O0,3,5,"div",35),s(),a(7,"span",36),h(8),s()()}if(r&2){let t=g.$implicit,n=m(5);Qi("is-system",t.isSystem),o(2),R(t.controlProperty),o(2),R(t.isSystem?"":t.labelName),o(),l("dataSource",n.companyDropdownSources()[t.originalIndex])("value",t.hubspotInternalName)("grouped",!0)("showClearButton",!0)("disabled",n.creatingRows().has(t.originalIndex))("searchEnabled",!0),o(),l("dxTemplateOf","item"),o(2),R(t.hubspotInternalName||"\u2014")}}function B0(r,g){if(r&1&&(a(0,"div")(1,"span"),h(2),s()()),r&2){let t=g.$implicit;o(),Qi("create-option",t.name==="__create__")("unmapped-option",t.name==="__unmapped__"),o(),R(t.label)}}function F0(r,g){if(r&1){let t=y();a(0,"div",31)(1,"span",32),h(2),s(),a(3,"span",33),h(4),s(),a(5,"dx-select-box",39),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(6);return u(d.onCompanyFieldSelected(i.originalIndex,e.value,e.event))}),S(6,B0,3,5,"div",35),s(),a(7,"span",36),h(8),s()()}if(r&2){let t=g.$implicit,n=m(6);Qi("is-system",t.isSystem),o(2),R(t.controlProperty),o(2),R(t.isSystem?"":t.labelName),o(),l("dataSource",n.companyDropdownSources()[t.originalIndex])("value",t.hubspotInternalName)("grouped",!0)("showClearButton",!0)("disabled",n.creatingRows().has(t.originalIndex))("searchEnabled",!0),o(),l("dxTemplateOf","item"),o(2),R(t.hubspotInternalName||"\u2014")}}function W0(r,g){if(r&1&&(a(0,"div",37)(1,"h3"),h(2,"Demographics"),s()(),ao(3,F0,9,12,"div",28,zo)),r&2){let t=m(5);o(3),ro(t.companyDemographicRows())}}function N0(r,g){r&1&&(a(0,"div",29),h(1,"No properties match your search."),s())}function q0(r,g){r&1&&b(0,"dx-load-indicator")}function U0(r,g){if(r&1){let t=y();a(0,"dx-button",40),f("onClick",function(){p(t);let e=m(5);return u(e.saveCompanyMapping())}),s()}if(r&2){let t=m(5);l("disabled",!t.companyHasChanges())}}function H0(r,g){if(r&1){let t=y();a(0,"div",19)(1,"div",20)(2,"div",21),A(),a(3,"svg",22),b(4,"circle",23)(5,"line",24),s(),G(),a(6,"dx-text-box",25),f("valueChange",function(e){p(t);let i=m(4);return u(i.companySearch.set(e))}),s()()(),a(7,"div",26)(8,"div",27)(9,"span"),h(10,"Control Property"),s(),a(11,"span"),h(12,"Label Name"),s(),a(13,"span"),h(14,"HubSpot Field"),s(),a(15,"span"),h(16,"HubSpot Internal Name"),s()(),ao(17,G0,9,12,"div",28,zo),S(19,W0,5,0)(20,N0,2,0,"div",29),s(),a(21,"div",30),S(22,q0,1,0,"dx-load-indicator")(23,U0,1,1),s()()}if(r&2){let t=m(4);o(6),l("showClearButton",!0)("value",t.companySearch()),o(11),ro(t.companyStandardRows()),o(2),un(19,t.companyDemographicRows().length>0?19:-1),o(),un(20,t.filteredCompanyRows().length===0?20:-1),o(2),un(22,t.isSavingCompany()?22:23)}}function j0(r,g){if(r&1){let t=y();a(0,"div",13)(1,"div",14)(2,"div",15),f("click",function(){p(t);let e=m(3);return u(e.toggleCard())}),a(3,"h2",16),h(4,"Property Mapping"),s(),A(),a(5,"svg",17),b(6,"polyline",18),s()(),S(7,H0,24,5,"div",19),s()()}if(r&2){let t=m(3);o(5),Qi("collapsed",!t.isCardExpanded()),o(2),un(7,t.isCardExpanded()?7:-1)}}function z0(r,g){if(r&1){let t=y();a(0,"div",3),S(1,b0,2,0,"div",4)(2,w0,3,2),s(),a(3,"dx-tab-panel",5),f("selectedIndexChange",function(e){p(t);let i=m(2);return u(i.selectedTabIndexValue=e)}),b(4,"dxi-item",6),S(5,S0,2,0,"div",7)(6,k0,8,3,"div",8),b(7,"dxi-item",9),S(8,R0,2,0,"div",7)(9,j0,8,3,"div",8),s()}if(r&2){let t=m(2);o(),un(1,t.isSyncLoading()||t.loading?1:2),o(2),l("loop",!1)("animationEnabled",!1)("swipeEnabled",!1)("selectedIndex",t.selectedTabIndexValue),o(2),l("dxTemplateOf","ContactsHeader"),o(),l("dxTemplateOf","ContactsContent"),o(2),l("dxTemplateOf","CompaniesHeader"),o(),l("dxTemplateOf","CompaniesContent")}}function Z0(r,g){if(r&1&&S(0,x0,4,0,"div",1)(1,v0,1,1)(2,z0,10,9),r&2){let t=m();un(0,t.isQueued()&&!t.isInstalled()?0:t.isInstalled()?2:1)}}var ha="__create__",fa="__unmapped__",Q0={NotArchived:{labelName:"Active",controlType:"checkbox"},FirstName:{labelName:"First Name",controlType:"textbox"},LastName:{labelName:"Last Name",controlType:"textbox"},MiddleName:{labelName:"Middle Name",controlType:"textbox"},JobTitle:{labelName:"Job Title",controlType:"textbox"},BadgeName:{labelName:"Badge Name",controlType:"textbox"},JoinDate:{labelName:"Join Date",controlType:"datepicker"},SinceDate:{labelName:"Since Date",controlType:"datepicker"},Salutation:{labelName:"Salutation",controlType:"textbox"},TwitterHandle:{labelName:"Twitter Handle",controlType:"textbox"},LinkedInProfile:{labelName:"LinkedIn Profile",controlType:"textbox"},Credentials:{labelName:"Credentials",controlType:"textbox"},IsMember:{labelName:"Is Member",controlType:"textbox"},RecordType:{labelName:"Record Type",controlType:"selectbox"},ContactStatusType:{labelName:"Contact Status Type",controlType:"selectbox"},JobFunction:{labelName:"Job Function",controlType:"selectbox"},PrimaryEmail:{labelName:"Primary Email",controlType:"textbox"},PrimaryEmailType:{labelName:"Primary Email Type",controlType:"textbox"},PrimaryPhone:{labelName:"Primary Phone",controlType:"textbox"},PrimaryPhoneType:{labelName:"Primary Phone Type",controlType:"textbox"},AddressLine1:{labelName:"Address Line 1",controlType:"textbox"},AddressLine2:{labelName:"Address Line 2",controlType:"textbox"},City:{labelName:"City",controlType:"textbox"},State:{labelName:"State",controlType:"textbox"},PostalCode:{labelName:"Postal Code",controlType:"textbox"},Country:{labelName:"Country",controlType:"textbox"},AddressType:{labelName:"Address Type",controlType:"textbox"},CompanyName:{labelName:"Company Name",controlType:"textbox"},OrganizationType:{labelName:"Organization Type",controlType:"selectbox"},CompanyType:{labelName:"Company Type",controlType:"selectbox"},CompanyStatus:{labelName:"Company Status",controlType:"selectbox"},EmailDomain:{labelName:"Email Domain",controlType:"textbox"}},gs=(()=>{class r extends wt{constructor(){super(),this.disconnected=Aa(),this.hubspotService=Hi(kn),this.location=Hi(Nn),this.isQueued=So(Hi(Li).queryParamMap.pipe(Qt(t=>t.get("install")==="queued")),{initialValue:!1}),this.apiError=Ei(!1),this.installUrl=Mi(()=>this.mappingData()?.contacts?.responseModel?.hubSpotAppInstallUrl||this.mappingData()?.companies?.responseModel?.hubSpotAppInstallUrl||""),this.isInstalled=Mi(()=>{let t=this.mappingData();return t?(t.contacts?.responseModel?.availableHubSpotProperties??t.companies?.responseModel?.availableHubSpotProperties??[]).length>0:!1}),this.isCardExpanded=Ei(!0),this.selectedTabIndex=Ei(0),this.mappingRefreshTrigger=Ei(0),this.loadKey=Mi(()=>`${this.selectedTabIndex()}-${this.mappingRefreshTrigger()}`),this.mappingData=So(Qa(this.loadKey).pipe(ia(()=>{let t=this.selectedTabIndex(),n=Yt({contacts:t===0?this.hubspotService.GetPropertiesAndMapping("Contact"):ea(null),companies:t===1?this.hubspotService.GetPropertiesAndMapping("Company"):ea(null)});return this.isQueued()?Va(0,5e3).pipe(ia(()=>n),ta(null),Ea(e=>e?(e.contacts?.responseModel?.availableHubSpotProperties??e.companies?.responseModel?.availableHubSpotProperties??[]).length===0:!0,!0)):n.pipe(ta(null))}),bo(()=>
87(this.apiError.set(!0),this.disconnected.emit(),Pa))),{initialValue:null}),this.isLoading=Mi(()=>{if(this.apiError())return!1;let t=this.selectedTabIndex(),n=this.mappingData();return t===0?n===null||n.contacts===null:t===1?n===null||n.companies===null:!1}),this.contactSearch=Ei(""),this.companySearch=Ei(""),this.syncData=So(this.hubspotService.GetIsSyncEnabled(),{initialValue:null}),this.isSyncLoading=Mi(()=>this.syncData()===null),this.syncOverride=Ei(null),this.isSyncEnabled=Mi(()=>this.syncOverride()??this.syncData()?.responseModel?.isSyncEnabled??!1),this.loadedContactFields=Mi(()=>this.normalizeHsFields(this.mappingData()?.contacts?.responseModel?.availableHubSpotProperties??[])),this.loadedCompanyFields=Mi(()=>this.normalizeHsFields(this.mappingData()?.companies?.responseModel?.availableHubSpotProperties??[])),this.loadedContactMappings=Mi(()=>this.buildRows(this.mappingData()?.contacts?.responseModel?.currentMapping,this.loadedContactFields())),this.loadedCompanyMappings=Mi(()=>this.buildRows(this.mappingData()?.companies?.responseModel?.currentMapping,this.loadedCompanyFields())),this.contactOverrides=Ei(new Map),this.companyOverrides=Ei(new Map),this.hubspotContactFields=Mi(()=>[...this.loadedContactFields(),...this.createdContactFields()]),this.hubspotCompanyFields=Mi(()=>[...this.loadedCompanyFields(),...this.createdCompanyFields()]),this.contactMappings=Mi(()=>{let t=this.loadedContactMappings(),n=this.contactOverrides();return t.map((e,i)=>n.has(i)?dn(dn({},e),n.get(i)):e)}),this.companyMappings=Mi(()=>{let t=this.loadedCompanyMappings(),n=this.companyOverrides();return t.map((e,i)=>n.has(i)?dn(dn({},e),n.get(i)):e)}),this.createdContactFields=Ei([]),this.createdCompanyFields=Ei([]),this.creatingRows=Ei(new Set),this.contactSavedBaseline=Ei(null),this.companySavedBaseline=Ei(null),this.isSavingContact=Ei(!1),this.isSavingCompany=Ei(!1),this.contactHasChanges=Mi(()=>{let t=this.contactMappings(),n=this.contactSavedBaseline()??this.loadedContactMappings();return t.some((e,i)=>e.hubspotInternalName!==n[i]?.hubspotInternalName)}),this.companyHasChanges=Mi(()=>{let t=this.companyMappings(),n=this.companySavedBaseline()??this.loadedCompanyMappings();return t.some((e,i)=>e.hubspotInternalName!==n[i]?.hubspotInternalName)}),this.filteredContactRows=Mi(()=>this.filterRowsWithIndex(this.contactMappings(),this.contactSearch())),this.contactStandardRows=Mi(()=>this.filteredContactRows().filter(t=>!t.isDemographic)),this.contactDemographicRows=Mi(()=>this.filteredContactRows().filter(t=>t.isDemographic)),this.filteredCompanyRows=Mi(()=>this.filterRowsWithIndex(this.companyMappings(),this.companySearch())),this.companyStandardRows=Mi(()=>this.filteredCompanyRows().filter(t=>!t.isDemographic)),this.companyDemographicRows=Mi(()=>this.filteredCompanyRows().filter(t=>t.isDemographic)),this.contactAvailableFields=Mi(()=>this.computeAvailableFields(this.contactMappings(),this.hubspotContactFields())),this.companyAvailableFields=Mi(()=>this.computeAvailableFields(this.companyMappings(),this.hubspotCompanyFields())),this.contactDropdownSources=Mi(()=>this.contactAvailableFields().map(t=>this.createGroupedItems(t))),this.companyDropdownSources=Mi(()=>this.companyAvailableFields().map(t=>this.createGroupedItems(t))),Fa(()=>{this.isInstalled()&&this.isQueued()&&this.location.replaceState(this.location.path().split("?")[0])})}onSyncToggle(t){this.syncOverride.set(t),this.loading=!0,this.hubspotService.SetIsSyncEnabled(t).subscribe({next:n=>{this.loading=!1,this.syncOverride.set(n?.responseModel?.isSyncEnabled??t)},error:()=>{this.loading=!1,this.syncOverride.set(!t),this.showErrorMessage("Failed to update HubSpot sync setting. Please try again.")}})}toggleCard(){this.isCardExpanded.update(t=>!t)}get selectedTabIndexValue(){return this.selectedTabIndex()}set selectedTabIndexValue(t){this.selectedTabIndex.set(t)}filterRowsWithIndex(t,n){let e=n.trim().toLowerCase();return t.reduce((i,d,c)=>((!e||d.controlProperty.toLowerCase().includes(e)||d.labelName.toLowerCase().includes(e))&&i.push(Bn(dn({},d),{originalIndex:c})),i),[])}getCompatibleTypes(t){return{multiselectbox:{types:["enumeration"],fieldTypes:["checkbox"]},selectbox:{types:["enumeration"],fieldTypes:["select","radio"]},checkbox:{types:["bool"],fieldTypes:["booleancheckbox"]},numberbox:{types:["number"]},datepicker:{types:["date","datetime"]},textbox:{types:["string"]}}[t.toLowerCase()]??null}computeAvailableFields(t,n){return t.map((e,i)=>{let d=new Set(t.map((v,V)=>V!==i&&v.hubspotInternalName?v.hubspotInternalName:null).filter(v=>v!==null)),c=this.getCompatibleTypes(e.controlType);return n.filter(v=>!(d.has(v.name)||c&&(!c.types.includes(v.type)||c.fieldTypes&&!c.fieldTypes.includes(v.fieldType))))})}createGroupedItems(t){let n={};
87return t.forEach(e=>{n[e.groupLabel]||(n[e.groupLabel]=[]),n[e.groupLabel].push(e)}),[{key:"",items:[{name:fa,label:"\u2014 Not Mapped \u2014",groupName:"__action__",groupLabel:"",type:"",fieldType:""},{name:ha,label:"+ Create Property in HubSpot",groupName:"__action__",groupLabel:"",type:"",fieldType:""}]},...Object.entries(n).map(([e,i])=>({key:e,items:i}))]}normalizeHsFields(t){return(t??[]).map(n=>Bn(dn({},n),{groupLabel:n.groupLabel||n.groupName.replace(/_/g," ").toUpperCase()}))}buildRows(t,n=[]){let e=[];return t?.fields&&Object.entries(t.fields).forEach(([i,d])=>{let c=Q0[i];e.push({controlProperty:i,labelName:c?.labelName??i,controlType:c?.controlType??"textbox",hubspotInternalName:d||null,hubspotFieldName:null,isDemographic:!1})}),t?.demographicTypes&&t.demographicTypes.forEach(i=>{let d=n.find(c=>c.name===i.hubSpotFieldName);e.push({controlProperty:i.demographicTypeName,labelName:i.demographicTypeName,controlType:i.cannolaiControlType??"textbox",hubspotInternalName:i.hubSpotFieldName||null,hubspotFieldName:d?.label??null,demographicTypeId:i.demographicTypeId,isDemographic:!0})}),e}onContactFieldSelected(t,n,e){if(e){if(n===ha){this.onCreateProperty("contact",t);return}this.onFieldSelected("contact",t,n===fa?null:n)}}onCompanyFieldSelected(t,n,e){if(e){if(n===ha){this.onCreateProperty("company",t);return}this.onFieldSelected("company",t,n===fa?null:n)}}onFieldSelected(t,n,e){let i=t==="contact",d=i?this.hubspotContactFields():this.hubspotCompanyFields(),c=i?this.contactOverrides:this.companyOverrides,v={};if(e===null)v.hubspotInternalName=null,v.hubspotFieldName=null;else{let E=d.find(T=>T.name===e);if(!E)return;v.hubspotInternalName=e,v.hubspotFieldName=E.label}let V=new Map(c());V.set(n,dn(dn({},V.get(n)),v)),c.set(V)}saveContactMapping(){this.isSavingContact.set(!0);let t=this.contactSavedBaseline()??this.loadedContactMappings();this.hubspotService.UpdateFieldMapping("Contact",this.buildMappingPayload(this.contactMappings(),t,"Contact")).subscribe({next:()=>{this.isSavingContact.set(!1),this.contactOverrides.set(new Map),this.contactSavedBaseline.set(null),this.mappingRefreshTrigger.update(n=>n+1),this.showSuccessMessage("Contact mapping saved successfully.")},error:()=>{this.isSavingContact.set(!1),this.showErrorMessage("Failed to save contact mapping. Please try again.")}})}saveCompanyMapping(){this.isSavingCompany.set(!0);let t=this.companySavedBaseline()??this.loadedCompanyMappings();this.hubspotService.UpdateFieldMapping("Company",this.buildMappingPayload(this.companyMappings(),t,"Company")).subscribe({next:()=>{this.isSavingCompany.set(!1),this.companyOverrides.set(new Map),this.companySavedBaseline.set(null),this.mappingRefreshTrigger.update(n=>n+1),this.showSuccessMessage("Company mapping saved successfully.")},error:()=>{this.isSavingCompany.set(!1),this.showErrorMessage("Failed to save company mapping. Please try again.")}})}buildMappingPayload(t,n,e){return t.filter((i,d)=>i.hubspotInternalName!==n[d]?.hubspotInternalName).map(i=>({demographicTypeId:i.demographicTypeId??0,entity:e,fieldName:i.controlProperty,hubSpotFieldName:i.hubspotInternalName??""}))}onCreateProperty(t,n){let e=t==="contact",d=(e?this.contactMappings():this.companyMappings())[n],c=e?"contactinformation":"companyinformation",v="cni_"+d.controlProperty.toLowerCase().replace(/\s+/g,"_"),V=d.labelName||d.controlProperty,E=this.getCompatibleTypes(d.controlType),T=E?.types[0]??"string",D=E?.fieldTypes?.[0]??"text",W=D==="booleancheckbox"?[{label:"Yes",value:"true",displayOrder:1},{label:"No",value:"false",displayOrder:2}]:T==="enumeration"?[{label:"Option 1",value:"option_1",displayOrder:1}]:void 0;this.creatingRows.update(Vt=>new Set([...Vt,n])),this.hubspotService.CreateObjectProperty(e?"Contact":"Company",{name:v,label:V,description:`Cannolai property: ${V}`,groupName:c,type:T,fieldType:D,options:W}).subscribe({next:Vt=>{this.creatingRows.update(fi=>{let Ji=new Set(fi);return Ji.delete(n),Ji});let ii=Vt?.responseModel;if(!ii?.name)return;let mi={name:ii.name,label:ii.label,groupName:ii.groupName,groupLabel:e?"CANNOLAI CONTACT":"CANNOLAI COMPANY",type:ii.type,fieldType:ii.fieldType},jt=e?this.createdContactFields:this.createdCompanyFields;jt().some(fi=>fi.name===mi.name)||jt.update(fi=>[...fi,mi]),this.onFieldSelected(t,n,mi.name)},error:Vt=>{this.creatingRows.update(mi=>
87{let jt=new Set(mi);return jt.delete(n),jt});let ii=Vt?.status===409?"This property already exists in HubSpot. Delete it from HubSpot and try again.":"Failed to create HubSpot property. Please try again.";this.showErrorMessage(ii)}})}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-hubspot-property-mapping"]],outputs:{disconnected:"disconnected"},standalone:!0,features:[xt,Q],decls:2,vars:1,consts:[[1,"property-mapping-wrapper"],[1,"hubspot-queued-state"],[3,"installUrl"],[1,"property-mapping-header"],[2,"display","flex","align-items","center","justify-content","center","width","100%","padding","8px 0"],[1,"tabs-outer",3,"selectedIndexChange","loop","animationEnabled","swipeEnabled","selectedIndex"],["tabTemplate","ContactsHeader","template","ContactsContent"],["class","tabs-outer__header",4,"dxTemplate","dxTemplateOf"],["class","tabs-outer__content",4,"dxTemplate","dxTemplateOf"],["tabTemplate","CompaniesHeader","template","CompaniesContent"],[2,"margin-left","0",3,"onValueChanged","value","disabled"],[1,"toggle-label"],[1,"tabs-outer__header"],[1,"tabs-outer__content"],[1,"card-outer"],[1,"card-header",3,"click"],[1,"card-header__title"],["xmlns","http://www.w3.org/2000/svg","width","18","height","18","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"card-header__chevron"],["points","18 15 12 9 6 15"],[1,"card-body"],[1,"card-search"],[1,"search-input-wrapper"],["xmlns","http://www.w3.org/2000/svg","width","14","height","14","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"search-icon"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["placeholder","Search properties...","valueChangeEvent","input",3,"valueChange","showClearButton","value"],[1,"mapping-table"],[1,"mapping-table__header"],[1,"mapping-table__row",3,"is-system"],[1,"mapping-table__empty"],[2,"display","flex","justify-content","flex-end","padding","16px 16px 8px"],[1,"mapping-table__row"],[1,"col-control-property"],[1,"col-label-name"],["displayExpr","label","valueExpr","name","placeholder","\u2014 Not Mapped \u2014",1,"col-hubspot-field",3,"onValueChanged","dataSource","value","grouped","showClearButton","searchEnabled","disabled"],[4,"dxTemplate","dxTemplateOf"],[1,"col-internal-name"],[1,"mapping-table__section-header"],["text","Save Mapping","type","default","stylingMode","contained",3,"onClick","disabled"],["displayExpr","label","valueExpr","name","placeholder","\u2014 Not Mapped \u2014",1,"col-hubspot-field",3,"onValueChanged","dataSource","value","grouped","showClearButton","disabled","searchEnabled"],["text","Save Mapping","type","default","stylingMode","contained",1,"btn","btn--primary",3,"onClick","disabled"]],template:function(n,e){n&1&&(a(0,"div",0),S(1,Z0,3,1),s()),n&2&&(o(),un(1,e.isLoading()?-1:1))},dependencies:[vt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,sr,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,ni,it,Do,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,ms],styles:[".property-mapping-wrapper[_ngcontent-%COMP%]{width:100%}.loading-spinner[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:400px}.property-mapping-header[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:1.5rem}.property-mapping-header[_ngcontent-%COMP%] .toggle-label[_ngcontent-%COMP%]{margin-left:.5rem;font-size:14px;font-weight:500;color:#333}.tabs-outer__header[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#6b7484;cursor:pointer}.tabs-outer__header.dx-state-active[_ngcontent-%COMP%]{color:var(--primary-color, #0066cc)}.tabs-outer__content[_ngcontent-%COMP%]{padding:1.5rem 0 0}.tabs-outer[_ngcontent-%COMP%] .dx-tabpanel-container, .tabs-outer[_ngcontent-%COMP%] .dx-multiview-item, .tabs-outer[_ngcontent-%COMP%] .dx-multiview-item-content{background-color:transparent}.card-outer[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px #0000000f}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;cursor:pointer;border-bottom:1px solid #e0e0e0;background:#fff;-webkit-user-select:none;user-select:none}.card-header__title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:var(--primary-color, #0066cc);margin:0}.card-header__chevron[_ngcontent-%COMP%]{color:#6b7484;transition:transform .2s ease;flex-shrink:0}.card-header__chevron.collapsed[_ngcontent-%COMP%]{transform:rotate(180deg)}.card-search[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 200px 400px 1fr;column-gap:1.25rem;padding:.875rem 1.5rem .5rem}.search-input-wrapper[_ngcontent-%COMP%]{grid-column:3/5;justify-self:end;position:relative;width:260px}.search-input-wrapper[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;
87left:10px;top:50%;transform:translateY(-50%);color:#9ca3af;z-index:2;pointer-events:none}.search-input-wrapper[_ngcontent-%COMP%] dx-text-box[_ngcontent-%COMP%]{width:100%}.search-input-wrapper[_ngcontent-%COMP%] .dx-texteditor.dx-editor-filled .dx-placeholder:before, .search-input-wrapper[_ngcontent-%COMP%] .dx-texteditor.dx-editor-filled .dx-texteditor-input, .search-input-wrapper[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined .dx-placeholder:before, .search-input-wrapper[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined .dx-texteditor-input{padding:5px 30px}.mapping-table__header[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 200px 400px 1fr;column-gap:1.25rem;padding:.6rem 1.5rem;border-bottom:1px solid #e8ecf0}.mapping-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#6b7484}.mapping-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{padding-left:1.75rem}.mapping-table__section-header[_ngcontent-%COMP%]{padding:.75rem 1.5rem .6rem;background-color:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.mapping-table__section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:#475569;margin:0;text-transform:uppercase;letter-spacing:.05em}.mapping-table__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:180px 200px 400px 1fr;column-gap:1.25rem;padding:.65rem 1.5rem;align-items:center;border-bottom:1px solid #f0f4f8}.mapping-table__row[_ngcontent-%COMP%]:last-child{border-bottom:none}.mapping-table__row.is-system[_ngcontent-%COMP%]{background-color:#fafbfc}.mapping-table__row[_ngcontent-%COMP%] dx-select-box[_ngcontent-%COMP%]{width:80%}.mapping-table__empty[_ngcontent-%COMP%]{padding:1.5rem;text-align:center;font-size:14px;color:#6b7484}
87.col-control-property[_ngcontent-%COMP%], .col-label-name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#1a212d}.col-internal-name[_ngcontent-%COMP%]{font-size:13px;font-family:Courier New,monospace;color:#6b7484;padding-left:1.75rem}.create-option[_ngcontent-%COMP%]{color:#00a4bd;font-weight:500}.unmapped-option[_ngcontent-%COMP%]{color:#1a212d} .dx-button.dx-button-default.dx-button-mode-contained .dx-button-text{color:#fff} .dx-button.dx-button-default.dx-button-mode-contained.dx-state-hover .dx-button-text, .dx-button.dx-button-default.dx-button-mode-contained.dx-state-focused .dx-button-text{color:#fff}"],changeDetection:0})}}return r})();var hs=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-hubspot-settings"]],standalone:!0,features:[Q],decls:17,vars:0,consts:[[1,"view-wrapper","manage-client"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"manage-content-outer","ams-hubspot"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Integration Services"),s()(),a(6,"li",3)(7,"a",4),h(8,"HubSpot"),s()(),a(9,"li",3),h(10,"HubSpot Settings"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"HubSpot Settings"),s()()(),a(15,"div",8),b(16,"app-hubspot-property-mapping"),s()())},dependencies:[vt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,gs],changeDetection:0})}}return r})();var Y0=[{ID:1,ControlName:"Email Address",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"Salutation",ControlType:"Selectbox",LabelName:"Record Type",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:3,ControlName:"FirstName",ControlType:"Textbox",LabelName:"First Name",Tooltip:"-",HubSpotMapping:"2",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:4,ControlName:"LastName",ControlType:"Textbox",LabelName:"Last Name",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:5,ControlName:"MiddleInitial",ControlType:"Textbox",LabelName:"Middle Initial",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:6,ControlName:"RecordType",ControlType:"Selectbox",LabelName:"Record Type",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:7,ControlName:"Credentials",ControlType:"Textbox",LabelName:"Credentials",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:8,ControlName:"JobTitle",ControlType:"Textbox",LabelName:"Job Title",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:9,ControlName:"jobFunction",ControlType:"Selectbox",LabelName:"Job Function",Tooltip:"-",HubSpotMapping:"3",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:10,ControlName:"Company",ControlType:"Lookup",LabelName:"Company",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:11,ControlName:"BadgeName",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:12,ControlName:"TwitterHandle",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"},{ID:13,ControlName:"LinkedInProfile",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"2"}];var K0=[{ID:1,Name:"Textbox"},{ID:2,Name:"Selectbox"}];var J0=[{ID:1,Name:"-"},{ID:2,Name:"firstname"},{ID:3,Name:"job_function"}];var X0=[{ID:1,Name:"Alabama"},{ID:2,Name:"Alaska"},{ID:3,Name:"Arizona"},{ID:4,Name:"Arkansas"},{ID:5,Name:"California"}],$0=[{ID:1,ControlName:"StreetAddress",ControlType:"Textbox",LabelName:"Street Address",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"Country",ControlType:"Selectbox",LabelName:"Country",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],em=[{ID:1,ControlName:"EmailAddress",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"IsPrimary",ControlType:"Checkbox",LabelName:"Is Primary",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:3,ControlName:"IsBilling",ControlType:"Checkbox",LabelName:"Is Billing",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:4,ControlName:"IsPublic",ControlType:"Checkbox",LabelName:"Is Public",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],tm=[{ID:1,ControlName:"EmailAddress",ControlType:"Textbox",LabelName:"Email",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"IsPrimary",ControlType:"Checkbox",LabelName:"Is Primary",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:3,ControlName:"IsBilling",ControlType:"Checkbox",LabelName:"Is Billing",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:4,ControlName:"IsPublic",ControlType:"Checkbox",LabelName:"Is Public",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],im=[{ID:1,ControlName:"Gender",ControlType:"Selectbox",LabelName:"Gender",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}
87,{ID:2,ControlName:"Age",ControlType:"Number",LabelName:"Age",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:3,ControlName:"BirthYear",ControlType:"Selectbox",LabelName:"Birth Year",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:4,ControlName:"GraduationDate",ControlType:"Calendar",LabelName:"Graduation Date",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],nm=[{ID:1,ControlName:"StreetAddress",ControlType:"Textbox",LabelName:"Street Address",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"Country",ControlType:"Selectbox",LabelName:"Country",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],om=[{ID:1,ControlName:"StreetAddress",ControlType:"Textbox",LabelName:"Street Address",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"},{ID:2,ControlName:"Country",ControlType:"Selectbox",LabelName:"Country",Tooltip:"-",HubSpotMapping:"1",Required:"",Visible:"",Editable:"",Controls:"1"}],At=(()=>{class r{getEmployees(){return Y0}getStates(){return X0}getControl(){return K0}getHubSpots(){return J0}getAddresss(){return $0}getEmails(){return em}getPhones(){return tm}getDemographics(){return im}getMembershipInformation(){return nm}getEligibilityInformation(){return om}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac})}}return r})();var am=()=>({"aria-label":"Entity"});/localhost/.test(document.location.host)||void 0;var fs=(()=>{class r extends wt{constructor(t){super(),this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.personalInfoCollapseExpand=!1,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.DemographicsCollapseExpand=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.dataSource=new kt({key:"ID",data:t.getEmployees()}),this.states=t.getStates(),this.controlss=t.getControl(),this.hubspot=t.getHubSpots(),this.Addresss=new kt({key:"ID",data:t.getAddresss()}),this.Emails=new kt({key:"ID",data:t.getEmails()}),this.Phones=new kt({key:"ID",data:t.getPhones()}),this.Demographics=new kt({key:"ID",data:t.getDemographics()}),this.cType=["All","Textbox","Select"],this.EntityType=["Contacts","Address","Email ","Phone "],this.AssignTo=["All Clients"],this.ControlName=["Control Name"],this.FieldType=["Field Type"],this.SelectAddress=["Billing Address","Home Address","Office Address"],this.SelectEmail=["Comapny Email","Personal Email"],this.SelectPhone=["Comapny Phone","Personal Phone"],this.ControlType=["Control Type 1","Control Type 2","Control Type 3","Control Type 4"],this.EntityName=["Contacts","Companies","Groups","Products","Memberships","Events","List"]}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}personalInformation(){this.personalInfoCollapseExpand=!this.personalInfoCollapseExpand}AddressInformation(){this.AddressInfoCollapseExpand=!this.AddressInfoCollapseExpand}EmailInformation(){this.EmailInfoCollapseExpand=!this.EmailInfoCollapseExpand}PhoneInformation(){this.PhoneInfoCollapseExpand=!this.PhoneInfoCollapseExpand}DemographicsInformation(){this.DemographicsCollapseExpand=!this.DemographicsCollapseExpand}DemographicsPopupEvent(){this.addDemographicsPopup=!0}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(){this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}DeleteValuePopupEvent(){this.deletePopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At))}}static{this.\u0275cmp=Z({type:r,selectors:[["manage-properties"]],viewQuery:function(n,e){if(n&1&&U(N,5),n&2){let i;H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:8,vars:4,consts:[[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Entity",3,"labelMode","items","inputAttr"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),h(4," Contacts Configuration "),s(),a(5,"div",4),b(6,"dx-select-box",5),s()()(),b(7,"router-outlet"),s()),n&2&&(o(6),l("labelMode",e.labelMode)("items",e.EntityName)("inputAttr",I(3,am)))},dependencies:[bt,Za,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:['.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 225px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}']})}}return r})();var qi=class{constructor(){this.isActive=!0,this.isReadOnly=!0,this.isVisible=!0,this.isRequired=!1,this.isCanEdit=!0,this.demographicsDetails=[],this.rowno=0}},Ca={demographicsTypeID:0,entityID:0,demographics:"",controlType:"",selectionType:"",isActive:!0,modifiedByUserId:0,controlName:"",controlTooltip:"",controlDataType:"",isReadOnly:!1,isVisible:!0,isRequired:!0,isCanEdit:!0,productCategoryId:0,rowno:0,demographicsDetails:[]},Vi=class{constructor(){this.isActive=!0,this.rowno=0,this.modifiedByUserId=0}};var oi=class{};var _t=class{constructor(){this.lookupTableValueId=0}};wn();var rm=["validationListGroup"],sm=["popover"],lm=()=>({id:"elementId",class:"overlay overly-status popup-filter-registration-type-overly"}),dm=()=>({"aria-label":"Select category type"}),cm=()=>({"aria-label":"Select list type"});function pm(r,g){if(r&1){let t=y();a(0,"div",46)(1,"h3"),h(2,"Set Condition"),s(),a(3,"div",47)(4,"div",48)(5,"dx-radio-group",49),_("valueChange",function(e){p(t);let i=m();return C(i.selectedCondition1,e)||(i.selectedCondition1=e),u(e)}),s()()()()}if(r&2){let t=m();o(5),l("items",t.priorities),x("value",t.selectedCondition1)}}var Cs=(()=>{class r extends wt{constructor(t,n,e,i){super(),this.router=t,this.eventsService=n,this.webStorageService=e,this.taxonomyService=i,this.unsubscriber=new Ct,this.selectedIds=[],this.stylingMode="outlined",this.labelMode="floating",this.eligibilityId=0,this.visibleChange2=new Bi,this.visibleEligibilityChange=new Bi,this.dataGridParamNames=["UserInfoId","skip","take","sort","filter","sortOrder","ListTypeId","CategoryId"],this.priorities=[{value:"AND",text:"All of the selected with (AND)"},{value:"OR",text:"All of the selected with (OR)"}],this.userToken=new Ki,this.listformData={},this.eventListType=[],this.eventListCategoryType=[],this.DemographicsEligibilityListMappings=[],this.AutoNo=0,this.ProductCategoryId=0,this.userToken=this.webStorageService.getCurrentUserToken(),this.loadData(),this.GetDataSource(),this.allMode="allPages",this.checkBoxesMode=(tn.current().startsWith("material"),"always")}ngOnChanges(){this.GetDataSource();let t=this.DemographicsEligibilityListMappings.filter(n=>n.isActive);t.length>0&&(this.selectedCondition1=t[0].logicalCondition,this.selectedIds=t.map(n=>n.listId),this.selectedCount=this.selectedIds.length,this.dataGrid&&this.dataGrid.instance.selectRows(this.selectedIds,!0))}loadData(){this.loading=!0,Yt([this.eventsService.GetAllListType(),this.eventsService.GetAllListCategoryType(),this.eventsService.GetAllRegitrationType()]).pipe(Qt(([t,n,e])=>({eventListType:t,eventListCategoryType:n,eventRegitationTypeList:e}))).subscribe(t=>{Object.keys(t).forEach(n=>this[n]=t[n].responseModel),this.loading=!1})}GetDataSource(){this.loading=!0;let t=this,n=i=>i!=null&&i!=="";if(this.dataScource=new ki({key:"listId",load(i){return B(this,null,function*(){let d=new Si;t.dataGridParamNames.forEach(c=>{n(i[c])?c==="filter"?d=d.set(c,JSON.stringify(i[c])):c==="UserInfoId"?d=d.set(c,0):c==="CategoryId"?d=d.set(c,t.selectedCategoryType):c==="ListTypeId"?d=d.set(c,t.selectedListType):d=d.set(c,JSON.stringify(i[c])):c==="UserInfoId"?d=d.set(c,0):c==="CategoryId"?d=d.set(c,t.selectedCategoryType?t.selectedCategoryType.toString():0):c==="ListTypeId"?d=d.set(c,t.selectedListType?t.selectedListType.toString():0):c==="take"?d=d.set(c,20):c==="skip"?d=d.set(c,0):c==="sort"?d=d.set(c,null):d=d.set(c,"")});try{let c=yield wi(t.eventsService.GetAllList(d));return t.totalRecordCount=c.responseModel!=null?c.responseModel.totalRecords:0,{data:c.responseModel.results,totalCount:c.responseModel.totalRecords,summary:c.summary,groupCount:c.groupCount}}catch{throw new Error("Data Loading Error")}})}}),this.loading=!1,this.dataGrid!=null){let i=this.dataGrid.instance;i.clearSelection(),i.option("focusedRowIndex",-1)}}onListTypeChange(t){this.selectedListType=t.value}refreshList(){this.GetDataSource()}onItemClick(t){let n=this.dataGrid.instance.getSelectedRowsData();this.selectedCount=n.map(e=>e.listId).length}onCategoryListTypeChange(t){this.selectedCategoryType=t.value}onSubmit(){let t=this.dataGrid.instance.getSelectedRowsData(),n=t.map(e=>e.listId);if(this.selectedCount==null||this.selectedCount==0){this.showErrorMessage("Please select atleast one list.");return}if(this.selectedCount>1&&(this.selectedCondition1==""||this.selectedCondition1==null||this.selectedCondition1=="null"||this.selectedCondition1=="-")){this.selectedCondition1==null,this.showErrorMessage("Please select a condition.");return}
87n.length==1&&(this.selectedCondition1=null),n.forEach(e=>{let i=t.find(d=>d.listId==e);if(i){let d=this.DemographicsEligibilityListMappings.find(c=>c.listId==e);if(d)d.listId=i.listId,d.listName=i.listName,d.listReturnType=i.listReturnType,d.listTypeId=i.listTypeId,d.listType=i.listTypeName,d.listCategoryId=i.listCategoryId,d.listCategory=i.categoryName,d.listStructure=i.listStructureName,d.logicalOrder=0,d.logicalCondition=this.selectedCondition1?this.selectedCondition1:"",d.isActive=!0,d.modifiedByUserId=this.userToken.userId;else{let c=new Bo;c.demographicsEligibilityListMappingId=0,c.productCategoryId=0,c.listId=i.listId,c.listName=i.listName,c.listReturnType=i.listReturnType,c.listTypeId=i.listTypeId,c.listType=i.listTypeName,c.listCategoryId=i.listCategoryId,c.listCategory=i.categoryName,c.listStructure=i.listStructureName,c.logicalOrder=0,c.logicalCondition=this.selectedCondition1?this.selectedCondition1:"",c.isActive=!0,c.modifiedByUserId=this.userToken.userId,c.productCategoryId=this.ProductCategoryId,this.DemographicsEligibilityListMappings.push(c)}}}
87),this.DemographicsEligibilityListMappings.forEach(e=>{n.find(d=>d==e.listId)?e.logicalCondition=this.selectedCondition1?this.selectedCondition1:"":e.isActive=!1}),this.loading=!0,this.taxonomyService.AddOrUpdateDemographicsEligibility(this.DemographicsEligibilityListMappings).pipe(w(this.unsubscriber)).subscribe(e=>{this.loading=!1,e&&e.isSuccess?(this.showSuccessMessage("Eligibility has been saved successfully"),this.searchText=null,this.selectedCount=0,this.GetDataSource(),this.visibleChange2.emit(!0),this.visibleEligibilityChange.emit(this.DemographicsEligibilityListMappings)):e&&!e.isSuccess&&(this.loading=!1,this.showErrorMessage(e.message))},e=>{this.loading=!1,this.showErrorMessage(e.message)})}close(){this.searchText=null,this.selectedCount=0,this.GetDataSource(),setTimeout(()=>{this.validationListGroup&&this.validationListGroup.instance.reset()},0),this.visibleChange2.emit(!1)}clearFilter(){this.selectedCategoryType=null,this.selectedListType=null,this.GetDataSource(),this.popover&&(this.popover.visible=!1)}applyFilter(t){this.selectedCategoryType=this.selectedCategoryType,this.selectedListType=this.selectedListType,this.GetDataSource(),this.popover&&(this.popover.visible=!1)}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(fr),k(yt),k(mn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-add-list-popup"]],viewQuery:function(n,e){if(n&1&&(U(rm,5),U(sm,5),U(N,5)),n&2){let i;H(i=j())&&(e.validationListGroup=i.first),H(i=j())&&(e.popover=i.first),H(i=j())&&(e.dataGrid=i.first)}},inputs:{DemographicsEligibilityListMappings:"DemographicsEligibilityListMappings",AutoNo:"AutoNo",ProductCategoryId:"ProductCategoryId"},outputs:{visibleChange2:"visibleChange2",visibleEligibilityChange:"visibleEligibilityChange"},standalone:!0,features:[xt,on,Q],decls:59,vars:31,consts:[["validationListGroup",""],["popover",""],[1,"cutoff-date-popup-outer","tooltip-wrapper"],[1,"card-outer"],["id","form",3,"formData"],[1,"select-from-lists-block"],[1,"select-from-lists-block__title"],["href","javascript:void(0)","routerLink","/admin/client/setting/list-management/manage","target","_blank",1,"btn","btn--primary"],[1,"dx-icon","dx-icon-plus"],[1,"notes"],[1,"table-block","create-contact-table"],["id","gridContainer","noDataText","",1,"table-outer","users-table",3,"onCellClick","dataSource","showBorders","allowColumnReordering","allowColumnResizing","focusedRowEnabled","columnAutoWidth","columnHidingEnabled","focusedRowIndex"],[3,"enabled"],[3,"groupPaging"],["placeholder","Search by List",3,"textChange","visible","text"],["name","searchPanel","location","before","locateInMenu","auto"],["location","after","locateInMenu","auto",1,"dx-toolbar-after-item"],[1,"filters-block"],["href","javascript:void(0)",1,"sync-btn",3,"click"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.6478 2.35C12.9076 1.60494 12.0273 1.01371 11.0577 0.610385C10.088 0.207061 9.04804 -0.000384799 7.99781 5.35839e-07C3.57781 5.35839e-07 0.0078125 3.58 0.0078125 8C0.0078125 12.42 3.57781 16 7.99781 16C11.7278 16 14.8378 13.45 15.7278 10H13.6478C13.2359 11.1695 12.4712 12.1824 11.4592 12.8988C10.4472 13.6153 9.23776 14 7.99781 14C4.68781 14 1.99781 11.31 1.99781 8C1.99781 4.69 4.68781 2 7.99781 2C9.65781 2 11.1378 2.69 12.2178 3.78L8.99781 7H15.9978V5.35839e-07L13.6478 2.35Z","fill","#024079"],["text","Filters","id","TypeFilters","icon","filters","type","normal","stylingMode","contained",1,"btn","btn--primary","filters-btn"],["target","#TypeFilters","showEvent","click","placement","right","position","bottom",3,"width","wrapperAttr"],[1,"filters-outer"],[1,"filters-outer__form"],[1,"filters-outer__title"],[1,"filters-outer__content"],[1,"dx-field"],["label","Category","displayExpr","categoryName","valueExpr","listCategoryId",3,"valueChange","onValueChanged","labelMode","items","showClearButton","inputAttr","value"],["label","List Type","displayExpr","listTypeName","valueExpr","listTypeId",3,"valueChange","onValueChanged","labelMode","items","showClearButton","value","inputAttr"],[1,"dx-field","full-width","buttons"],["href","javascript:void(0)",1,"reset-filter",3,"click"],[1,"reset-filter__icon"],["width","11","height","11","viewBox","0 0 11 11","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.73056 0.633529C2.77509 0.675749 2.81043 0.725904 2.83453 0.781123C2.85864 0.836341 2.87105 0.895537 2.87105 0.955321C2.87105 1.0151 2.85864 1.0743 2.83453 1.12952C2.81043 1.18474 2.77509 1.23489 2.73056 1.27711L1.63351 2.31885H6.69599C7.83748 2.31885 8.93222 2.74982 9.73938 3.51695C10.5465 4.28408 11 5.32453 11 6.40942C11 7.49431 10.5465 8.53477 9.73938 9.3019C8.93222 10.069 7.83748 10.5 6.69599 10.5H2.8702C2.74336 10.5 2.62173 10.4521 2.53204 10.3669C2.44236 10.2816 2.39197 10.166 2.39197 10.0455C2.39197 9.92495 2.44236 9.80934 2.53204 9.7241C2.62173 9.63887 2.74336 9.59098 2.8702 9.59098H6.69599C7.58382 9.59098 8.43528 9.25578 9.06307 8.65913C9.69086 8.06247 10.0436 7.25323 10.0436 6.40942C10.0436 5.56562 9.69086 4.75638 9.06307 4.15972C8.43528 3.56306 7.58382 3.22786 6.69599 3.22786H1.63351L2.73056 4.2696C2.77502 4.31186 2.81029 4.36202 2.83435 4.41724C2.85842 4.47245 2.8708 4.53163 2.8708 4.59139C2.8708 4.65115 2.85842 4.71033 2.83435 4.76554C2.81029 4.82076 2.77502 4.87092 2.73056 4.91318C2.68609 4.95544 2.63331 4.98896 2.57521 5.01183C2.51712 5.0347 2.45485 5.04647 2.39197 5.04647C2.32909 5.04647 2.26683 5.0347 2.20873 5.01183C2.15064 4.98896 2.09785 4.95544 2.05339 4.91318L0.140496 3.09515C0.0959608 3.05293 0.0606271 3.00277 0.0365184 2.94755C0.0124098 2.89234 0 2.83314 0 2.77336C0 2.71357 0.0124098 2.65438 0.0365184 2.59916C0.0606271 2.54394 0.0959608 2.49378 0.140496 2.45156L2.05339 0.633529C2.09781 0.591202 2.15059 0.557621 2.20869 0.534707C2.26679 0.511794 2.32907 0.5 2.39197 0.5C2.45488 0.5 2.51716 0.511794 2.57526 0.534707C2.63336 0.557621 2.68613 0.591202 2.73056 0.633529Z","fill","white"],["text","Search","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[3,"visible"],["selectAllMode","page","showCheckBoxesM
87ode","always","mode","multiple"],["dataField","listName","caption","List"],["dataField","categoryName","caption","Category"],["dataField","listTypeName","caption","List Type"],[1,"set-condition"],["class","set-condition__box",4,"ngIf"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"set-condition__box"],[1,"select-radio"],[1,"dx-field-value"],["layout","horizontal","displayExpr","text","valueExpr","value",3,"valueChange","items","value"]],template:function(n,e){if(n&1){let i=y();a(0,"div",2)(1,"form",3)(2,"dx-validation-group",null,0)(4,"dx-form",4)(5,"dxi-item")(6,"div",5)(7,"div",6)(8,"h3"),h(9,"Select from Lists"),s(),a(10,"a",7),b(11,"i",8),h(12," Create List "),s()(),a(13,"span",9),h(14,"The list contains both static and dynamic lists."),s(),a(15,"div",10)(16,"dx-data-grid",11),f("onCellClick",function(c){return p(i),u(e.onItemClick(c))}),b(17,"dxo-column-chooser",12)(18,"dxo-column-fixing",12)(19,"dxo-remote-operations",13),a(20,"dxo-search-panel",14),_("textChange",function(c){return p(i),C(e.searchText,c)||(e.searchText=c),u(c)}),s(),a(21,"dxo-toolbar"),b(22,"dxi-item",15),a(23,"dxi-item",16)(24,"div",17)(25,"a",18),f("click",function(){return p(i),u(e.refreshList())}),A(),a(26,"svg",19),b(27,"path",20),s(),h(28," Refresh "),s(),G(),b(29,"dx-button",21),a(30,"dx-popover",22,1)(32,"form",23)(33,"dx-form",24)(34,"dxi-item")(35,"h3",25),h(36,"Filters"),s(),a(37,"div",26)(38,"div",27)(39,"dx-select-box",28),_("valueChange",function(c){return p(i),C(e.selectedCategoryType,c)||(e.selectedCategoryType=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onCategoryListTypeChange(c))}),s()(),a(40,"div",27)(41,"dx-select-box",29),_("valueChange",function(c){return p(i),C(e.selectedListType,c)||(e.selectedListType=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onListTypeChange(c))}),s()(),a(42,"div",30)(43,"a",31),f("click",function(){return p(i),u(e.clearFilter())}),a(44,"span",32),A(),a(45,"svg",33),b(46,"path",34),s()(),h(47," Reset "),s(),G(),a(48,"dx-button",35),f("onClick",function(c){return p(i),u(e.applyFilter(c))}),s()()()()()()()()()(),b(49,"dxo-pager",36)(50,"dxo-selection",37)(51,"dxi-column",38)(52,"dxi-column",39)(53,"dxi-column",40),s()(),a(54,"div",41),S(55,pm,6,2,"div",42),s()(),a(56,"div",43)(57,"dx-button",44),f("onClick",function(){return p(i),u(e.close())}),s(),a(58,"dx-button",45),f("onClick",function(){return p(i),u(e.onSubmit())}),s()()()()()()()}n&2&&(o(4),l("formData",e.listformData),o(12),l("dataSource",e.dataScource)("showBorders",!0)("allowColumnReordering",!1)("allowColumnResizing",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0)("columnHidingEnabled",!0)("focusedRowIndex",0),o(),l("enabled",!0),o(),l("enabled",!0),o(),l("groupPaging",!0),o(),l("visible",!0),x("text",e.searchText),o(10),l("width",640)("wrapperAttr",I(28,lm)),o(9),l("labelMode",e.labelMode)("items",e.eventListCategoryType)("showClearButton",!0)("inputAttr",I(29,dm)),x("value",e.selectedCategoryType),o(2),l("labelMode",e.labelMode)("items",e.eventListType)("showClearButton",!0),x("value",e.selectedListType),l("inputAttr",I(30,cm)),o(8),l("visible",!1),o(6),l("ngIf",e.selectedCount>1))},dependencies:[vt,Pt,bt,Ai,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Tn,Un,Fi,Ot,ji,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,To,Ue,He,je,Dn,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,Ut,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".top-notes[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-14) var(--font-family);margin:0 0 1.5rem;padding:0;color:var(--small-text-color)}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5;background-color:#f0f0f0}.top-block[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0 0 1.5rem;border-bottom:1px solid var(--border-lighter);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;align-items:center}@media (max-width: 1440px){.top-block[_ngcontent-%COMP%]{margin:0 0 1.5rem;padding:0 0 1.5rem}}.top-block__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;width:100%;max-width:75%}.top-block__left[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-500) var(--font-14) var(--font-family);margin-left:1.5rem}.top-block__left[_ngcontent-%COMP%] .sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.top-block__right[_ngcontent-%COMP%]{margin:0}.top-block[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:320px;margin:0}.top-block[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%]{margin:0}.top-block[_ngcontent-%COMP%] .tooltip-info[_ngcontent-%COMP%]{margin-top:-10px}.select-from-lists-block[_ngcontent-%COMP%]{width:100%;margin:0 0 2rem;padding:0}@media (max-width: 1440px){.select-from-lists-block[_ngcontent-%COMP%]{margin:0 0 1.5rem}}.select-from-lists-block[_ngcontent-%COMP%] .notes[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-14) var(--font-family);margin:0 0 1rem;padding:0;color:var(--small-text-color)}.select-from-lists-block__title[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center}.select-from-lists-block__title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:var(--secondary-color);margin:0}a.sync-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin-right:1.5rem;font:var(--font-weight-600) var(--font-14) var(--font-family)}a.sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}a.sync-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--primary-color)}.set-condition[_ngcontent-%COMP%]{width:100%;min-height:45px;margin-top:.7rem}.set-condition[_ngcontent-%COMP%] .set-condition__box[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;border:1px solid var(--border-lighter);padding:.7rem 1rem;border-radius:5px}.set-condition[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.set-condition[_ngcontent-%COMP%] .select-radio[_ngcontent-%COMP%]{margin-bottom:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.set-condition[_ngcontent-%COMP%] .select-radio[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%]{width:100%}.set-condition[_ngcontent-%COMP%] .select-radio[_ngcontent-%COMP%] .dx-field-value[_ngcontent-%COMP%] dx-radio-group[_ngcontent-%COMP%]{margin-right:-2rem}"]})}}return r})();var um=["validationGroup"],mm=()=>({id:"elementId",class:"popup-outer w-500"}),gm=()=>({"aria-label":"Values"});function hm(r,g){if(r&1){let t=y();a(0,"div",22)(1,"span",23),h(2),s(),a(3,"div",24)(4,"a",25),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditValuesEvent(e))}),A(),a(5,"svg",26),b(6,"path",27),s()(),G(),a(7,"a",28),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteValuesEvent(e))}),A(),a(8,"svg",26),b(9,"path",29),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.description)}}var Qo=(()=>{class r extends wt{constructor(t,n,e){super(),this.webStorageService=t,this.utilityservice=n,this.taxonomyService=e,this.unsubscriber=new Ct,this.visibleChangeSidebar=new Bi,this.save=new Bi,this.saveChild=new Bi,this.customFieldDetails=new Array,this.customFieldId=0,this.isEditLabelValue=!1,this.customFieldLableName="",this.customFieldDetailsModel=new Array,this.labelValuePageHeader="Add",this.selectedDetail=new Vi,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.deletePopup=!1,this.userToken=new Ki,this.addOptionFrom="",this.userToken=t.getCurrentUserToken()}
87ngOnChanges(){this.customFieldDetailsModel=[],this.customFieldDetails!=null&&this.customFieldDetails.length>0&&this.customFieldDetails.forEach(t=>{this.customFieldDetailsModel.push(t),this.ResetCustomDetailsRowno()})}getCustomFieldDetails(){return this.customFieldDetailsModel.filter(t=>t.isActive)}saveDetailValue(t){if(!this.validationGroup.instance.validate().isValid)return;let e=!1,i=this.customFieldDetailsModel.filter(c=>c.description.trim().toLowerCase()==this.labelValue.trim().toLowerCase()&&c.isActive==!0);if(i!=null&&i.length>0){e=!0,this.showErrorMessage("Value already exists");return}if(this.isEditLabelValue){var d=this.customFieldDetailsModel.find(v=>v.rowno==this.selectedDetail.rowno);d&&(d.description=this.labelValue)}else{var d=new Vi;d.description=this.labelValue,d.isActive=!0,d.modifiedByUserId=this.userToken.userId,d.demographicsTypeID=this.customFieldId?this.customFieldId:0,(this.customFieldDetailsModel==null||this.customFieldDetailsModel==null)&&(this.customFieldDetailsModel=[]),this.customFieldDetailsModel.push(d),this.ResetCustomDetailsRowno()}this.closePopupsEvent()}onClickDeleteLabel(){this.selectedDetail.demographicsDetailID>0?this.selectedDetail.isActive=!1:this.customFieldDetailsModel.find(n=>n.rowno==this.selectedDetail.rowno)&&(this.customFieldDetailsModel.find(n=>n.rowno==this.selectedDetail.rowno).isActive=!1,this.ResetCustomDetailsRowno()),this.selectedDetail=new Vi,this.labelValue="",this.validationGroup.instance.reset()}ResetCustomDetailsRowno(){let t=1;this.customFieldDetailsModel.forEach(n=>{n.rowno=t,t=t+1})}AddNewValuesEvent(){this.isEditLabelValue=!1,this.labelValuePageHeader="Add",this.AddNewValues=!0}EditValuesEvent(t){this.selectedDetail=t,this.labelValue=this.selectedDetail.description,this.isEditLabelValue=!0,this.labelValuePageHeader="Edit",this.AddNewValues=!0}DeleteValuesEvent(t){this.selectedDetail=t,this.labelValue=this.selectedDetail.description,this.deletePopup=!0}closePopupsEvent(){this.labelValue="",this.selectedDetail=new Vi,this.validationGroup.instance.reset(),this.AddNewValues=!1}closeSidebar(){this.visibleChangeSidebar.emit(!1)}onFormSubmit(t){this.customFieldId>0&&this.customFieldDetailsModel.forEach(n=>{n.demographicsTypeID=this.customFieldId,n.modifiedByUserId=this.userToken.userId}),this.addOptionFrom=="Parent"?(this.loading=!0,this.utilityservice.AddOrUpdateDemographicsControlDetails(this.customFieldDetailsModel,this.customFieldId).pipe(w(this.unsubscriber)).subscribe(n=>{this.loading=!1,n&&n.isSuccess?(this.showSuccessMessage("Property's value has been saved successfully"),this.closeSidebar(),this.customFieldDetailsModel=[],this.save.emit(this.customFieldDetailsModel)):n&&!n.isSuccess&&(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})):(this.saveChild.emit(this.customFieldDetailsModel),this.closeSidebar(),this.customFieldDetailsModel=[])}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(di),k(mn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-create-demographics-field-value-popup"]],viewQuery:function(n,e){if(n&1&&U(um,5),n&2){let i;H(i=j())&&(e.validationGroup=i.first)}},inputs:{customFieldDetails:"customFieldDetails",customFieldId:"customFieldId",isEditLabelValue:"isEditLabelValue",customFieldLableName:"customFieldLableName",addOptionFrom:"addOptionFrom"},outputs:{visibleChangeSidebar:"visibleChangeSidebar",save:"save",saveChild:"saveChild"},standalone:!0,features:[xt,on,Q],decls:33,vars:17,consts:[["validationGroup",""],[1,"sidebar-outer__content","tooltip-wrapper"],[1,"scroll-outer","registration-add-value-sidebar"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"edits",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.02518 1.00021V11.0506M1 6.02539H11.0504","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"blue-color"],[1,"dx-popup-content"],[1,"card-outer"],["id","form",3,"formData"],[1,"full-width","dx-field"],["label","Values",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Value is required"],[3,"visibleChange","save","visible","action","titleText"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"dx-scroll-view",2)(2,"div",3),S(3,hm,10,1,"div",4),s()(),a(4,"div",5)(5,"a",6),f("
87click",function(){return p(i),u(e.AddNewValuesEvent())}),a(6,"span"),A(),a(7,"svg",7),b(8,"path",8),s()(),h(9," Add Value "),s()()(),G(),a(10,"div",9)(11,"dx-button",10),f("onClick",function(){return p(i),u(e.closeSidebar())}),s(),a(12,"dx-button",11),f("onClick",function(c){return p(i),u(e.onFormSubmit(c))}),s()(),a(13,"dx-popup",12),_("visibleChange",function(c){return p(i),C(e.AddNewValues,c)||(e.AddNewValues=c),u(c)}),a(14,"div",13)(15,"h2"),h(16),a(17,"span",14),h(18),s()()(),a(19,"div",15)(20,"form",16)(21,"dx-validation-group",null,0)(23,"dx-form",17)(24,"dxi-item")(25,"div",18)(26,"dx-text-box",19),_("valueChange",function(c){return p(i),C(e.labelValue,c)||(e.labelValue=c),u(c)}),a(27,"dx-validator"),b(28,"dxi-validation-rule",20),s()()()()()()(),a(29,"div",9)(30,"dx-button",10),f("onClick",function(){return p(i),u(e.closePopupsEvent())}),s(),a(31,"dx-button",11),f("onClick",function(c){return p(i),u(e.saveDetailValue(c))}),s()()()(),a(32,"confirm-popup",21),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),f("save",function(){return p(i),u(e.onClickDeleteLabel())}),s()}n&2&&(o(3),l("ngForOf",e.getCustomFieldDetails()),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.AddNewValues),l("wrapperAttr",I(15,mm)),o(3),O("",e.labelValuePageHeader," Value for "),o(2),R(e.customFieldLableName),o(5),l("formData",e.formData),o(3),l("labelMode",e.labelMode)("inputAttr",I(16,gm)),x("value",e.labelValue),o(6),q("action",e.deleteAction),q("titleText",e.selectedDetail.description),x("visible",e.deletePopup))},dependencies:[vt,Gt,Zn,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".sidebar-outer__content[_ngcontent-%COMP%]{height:calc(100vh - 115px)}.flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;align-items:flex-start}.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48.5%}.scroll-outer[_ngcontent-%COMP%]{height:auto}.scroll-outer[_ngcontent-%COMP%] .dx-scrollview-content[_ngcontent-%COMP%]{max-height:calc(100vh - 155px)!important}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:20px 30px 15px}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__item[_ngcontent-%COMP%]:last-child{border:none;margin-bottom:0;padding-bottom:0}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.add-value-box[_ngcontent-%COMP%]{width:100%;padding:5px 30px 15px}.dx-popup-footer[_ngcontent-%COMP%]{padding:5px 30px 15px}.dx-popup-content[_ngcontent-%COMP%]{padding:0!important}.dx-popup-content[_ngcontent-%COMP%] .dx-popup-footer[_ngcontent-%COMP%]{padding:1.5rem 0 0!important}"]})}}return r})();var fm=["validationDemographicsFieldGroup"],Cm=()=>({"aria-label":"Label Name"}),_m=()=>({"aria-label":"Control Name"}),ym=()=>({"aria-label":"Simple Control Type"}),xm=()=>({"aria-label":"Tooltip"}),vm=()=>({id:"elementId",class:"popup-outer w-500 normal-sidebar custome-value-sidebar"});function bm(r,g){if(r&1){let t=y();a(0,"div",25)(1,"div",5)(2,"a",26),f("click",function(){p(t);let e=m();return u(e.AddLabelClickEvent())}),a(3,"span"),A(),a(4,"svg",27),b(5,"path",28),s()(),h(6," Add Value "),s()()()}}function wm(r,g){if(r&1){let t=y();a(0,"dx-button",29),f("onClick",function(e){p(t);let i=m();return u(i.onControlFormSubmit(e,!0))}),s()}}var _s=(()=>{class r extends wt{constructor(t,n,e){super(),this.webStorageService=t,this.utilityservice=n,this.taxonomyService=e,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.controlType=[],this.userToken=new Ki,this.visibleDemographicsChange=new Bi,this.saveDemographicsControl
87=new Bi,this.AddSystemPageControl=new qi,this.controlNamePattern=/^[a-zA-Z]+$/,this.SystemPageControls=[],this.EditRowno=0,this.isEditControl=!1,this.ManageValuesSidebar=!1,this.tempcustomFieldDetails=[],this.visibleChangeSidebar=new Bi,this.AddOptionFrom="Child",this.userToken=t.getCurrentUserToken(),this.controlType.push({strDisplay:Pi.Checkbox.toString(),strValue:Pi.Checkbox.toString()}),this.controlType.push({strDisplay:Pi.Datepicker.toString(),strValue:Pi.Datepicker.toString()}),this.controlType.push({strDisplay:Pi.MultiSelectbox.toString(),strValue:Pi.MultiSelectbox.toString()}),this.controlType.push({strDisplay:Pi.Numberbox.toString(),strValue:Pi.Numberbox.toString()}),this.controlType.push({strDisplay:Pi.Selectbox.toString(),strValue:Pi.Selectbox.toString()}),this.controlType.push({strDisplay:Pi.TextBox.toString(),strValue:Pi.TextBox.toString()})}ngOnChanges(){Number(this.AddSystemPageControl.demographicsTypeID)>0?this.isEditControl=!0:this.isEditControl=!1}AddLabelClickEvent(){this.tempcustomFieldDetails=JSON.parse(JSON.stringify(this.AddSystemPageControl.demographicsDetails)),this.ManageValuesSidebar=!0}close(){this.AddSystemPageControl=new qi,this.visibleDemographicsChange.emit(!1),this.validationDemographicsFieldGroup.instance.reset()}onControlFormSubmit(t,n){if(!this.validationDemographicsFieldGroup.instance.validate().isValid)return;if(this.SystemPageControls.find(v=>v.fieldCaption.toLowerCase()==this.AddSystemPageControl.demographics.toLowerCase()&&v.systemPageControlId!=this.AddSystemPageControl.demographicsTypeID)){this.showErrorMessage("Label name "+this.AddSystemPageControl.demographics+" already exists.");return}if(this.SystemPageControls.find(v=>v.sourceColumnName.toLowerCase()==this.AddSystemPageControl.controlName.toLowerCase()&&v.systemPageControlId!=this.AddSystemPageControl.demographicsTypeID)){this.showErrorMessage("Control name "+this.AddSystemPageControl.controlName+" already exists.");return}this.AddSystemPageControl.isActive=!0,this.AddSystemPageControl.rowno=this.EditRowno,this.AddSystemPageControl.modifiedByUserId=this.userToken.userId,this.loading=!0,(this.AddSystemPageControl.demographicsTypeID>0?this.utilityservice.UpdateDemographics(this.AddSystemPageControl):this.utilityservice.AddDemographics(this.AddSystemPageControl)).pipe(w(this.unsubscriber)).subscribe(v=>{this.loading=!1,v&&v.isSuccess?(Number(this.AddSystemPageControl.demographicsTypeID)>0?this.showSuccessMessage("Property has been updated successfully"):this.showSuccessMessage("Property has been created successfully"),this.saveDemographicsControl.emit(this.AddSystemPageControl),this.AddSystemPageControl=new qi,n||this.close()):v&&!v.isSuccess&&(this.loading=!1,this.showErrorMessage(v.message))},v=>{this.loading=!1,this.showErrorMessage(v.message)})}ShowSideBarEvent(){return!!(this.AddSystemPageControl.controlType&&(this.AddSystemPageControl.controlType.toLowerCase()==Pi.Selectbox.toString().toLowerCase()||this.AddSystemPageControl.controlType.toLowerCase()==Pi.MultiSelectbox.toString().toLowerCase()))}closechildSidebar(){this.tempcustomFieldDetails=[],this.ManageValuesSidebar=!1,this.visibleChangeSidebar.emit(!1)}saveCustomFieldDetails(t){this.AddSystemPageControl.demographicsDetails=Object.assign(t),this.tempcustomFieldDetails=[]}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(di),k(mn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-create-demographics-field-popup"]],viewQuery:function(n,e){if(n&1&&U(fm,5),n&2){let i;H(i=j())&&(e.validationDemographicsFieldGroup=i.first)}},inputs:{AddSystemPageControl:"AddSystemPageControl",SystemPageControls:"SystemPageControls",EditRowno:"EditRowno"},outputs:{visibleDemographicsChange:"visibleDemographicsChange",saveDemographicsControl:"saveDemographicsControl",visibleChangeSidebar:"visibleChangeSidebar"},standalone:!0,features:[xt,on,Q],decls:39,vars:36,consts:[["validationDemographicsFieldGroup",""],[1,"card-outer","tooltip-wrapper"],["id","form",3,"formData"],[1,"add-form-field"],[1,"flex"],[1,"dx-field"],["label","Label Name",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Label Name is required"],["type","pattern","message","Special characters are not allowed",3,"pattern"],["label","Control Name",3,"valueChange","labelMode","inputAttr","value","disabled"],["type","required","message","Control Name is required"],["type","pattern","message","Only letters allowed",3,"pattern"],["label","Control Type","displayExpr","strDis
87play","valueExpr","strValue",3,"valueChange","labelMode","items","inputAttr","value","disabled"],["type","required","message","Control Type is required"],["label","Tooltip",3,"valueChange","labelMode","inputAttr","value"],["type","required","message","Tooltip is required"],["class","flex add-value",4,"ngIf"],[1,"dx-popup-footer",2,"padding-top","1rem"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"blue-color"],[3,"visibleChangeSidebar","saveChild","customFieldDetails","customFieldLableName","customFieldId","addOptionFrom"],[1,"flex","add-value"],["href","javascript:void(0)",1,"edits",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.02518 1.00021V11.0506M1 6.02539H11.0504","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"form",1)(1,"dx-validation-group",null,0)(3,"dx-form",2)(4,"dxi-item")(5,"div",3)(6,"div",4)(7,"div",5)(8,"dx-text-box",6),_("valueChange",function(c){return p(i),C(e.AddSystemPageControl.demographics,c)||(e.AddSystemPageControl.demographics=c),u(c)}),a(9,"dx-validator"),b(10,"dxi-validation-rule",7)(11,"dxi-validation-rule",8),s()()(),a(12,"div",5)(13,"dx-text-box",9),_("valueChange",function(c){return p(i),C(e.AddSystemPageControl.controlName,c)||(e.AddSystemPageControl.controlName=c),u(c)}),a(14,"dx-validator"),b(15,"dxi-validation-rule",10)(16,"dxi-validation-rule",11),s()()()(),a(17,"div",4)(18,"div",5)(19,"dx-select-box",12),_("valueChange",function(c){return p(i),C(e.AddSystemPageControl.controlType,c)||(e.AddSystemPageControl.controlType=c),u(c)}),a(20,"dx-validator"),b(21,"dxi-validation-rule",13),s()()(),a(22,"div",5)(23,"dx-text-box",14),_("valueChange",function(c){return p(i),C(e.AddSystemPageControl.controlTooltip,c)||(e.AddSystemPageControl.controlTooltip=c),u(c)}),a(24,"dx-validator"),b(25,"dxi-validation-rule",15)(26,"dxi-validation-rule",8),s()()()(),S(27,bm,7,0,"div",16),s(),a(28,"div",17)(29,"dx-button",18),f("onClick",function(){return p(i),u(e.close())}),s(),S(30,wm,1,0,"dx-button",19),a(31,"dx-button",20),f("onClick",function(c){return p(i),u(e.onControlFormSubmit(c,!1))}),s()()()()()(),a(32,"dx-popup",21),_("visibleChange",function(c){return p(i),C(e.ManageValuesSidebar,c)||(e.ManageValuesSidebar=c),u(c)}),a(33,"div",22)(34,"h2"),h(35,"Add Values For "),a(36,"span",23),h(37),s()()(),a(38,"app-create-demographics-field-value-popup",24),f("visibleChangeSidebar",function(){return p(i),u(e.closechildSidebar())})("saveChild",function(c){return p(i),u(e.saveCustomFieldDetails(c))}),s()()}n&2&&(o(3),l("formData",e.formData),o(5),l("labelMode",e.labelMode)("inputAttr",I(31,Cm)),x("value",e.AddSystemPageControl.demographics),o(3),l("pattern","^[a-zA-Z0-9 ]+$"),o(2),l("labelMode",e.labelMode)("inputAttr",I(32,_m)),x("value",e.AddSystemPageControl.controlName),l("disabled",e.isEditControl),o(3),l("pattern",e.controlNamePattern),o(3),l("labelMode",e.labelMode)("items",e.controlType)("inputAttr",I(33,ym)),x("value",e.AddSystemPageControl.controlType),l("disabled",e.isEditControl),o(4),l("labelMode",e.labelMode)("inputAttr",I(34,xm)),x("value",e.AddSystemPageControl.controlTooltip),o(3),l("pattern","^[a-zA-Z0-9 ]+$"),o(),l("ngIf",e.ShowSideBarEvent()),o(3),l("ngIf",!e.isEditControl),o(2),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.ManageValuesSidebar),l("wrapperAttr",I(35,vm)),o(5),R(e.AddSystemPageControl==null?null:e.AddSystemPageControl.demographics),o(),l("customFieldDetails",e.tempcustomFieldDetail
87s)("customFieldLableName",e.AddSystemPageControl==null?null:e.AddSystemPageControl.demographics)("customFieldId",e.EditRowno)("addOptionFrom",e.AddOptionFrom))},dependencies:[vt,Pt,Qo,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".flex[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:flex-start}.flex.add-value[_ngcontent-%COMP%]{margin-bottom:1rem}"]})}}return r})();var Sm=["addValueGroup"],Pm=["targetDemographicsCategory"],Mm=()=>({"aria-label":"Owner"}),Vm=()=>({id:"elementId",class:"popup-outer w-900"}),Em=()=>({id:"elementId",class:"popup-outer w-700"}),_a=()=>({id:"elementId",class:"popup-outer delete-popup"}),Tm=()=>({id:"elementId",class:"popup-outer w-500 normal-sidebar custome-value-sidebar"}),Dm=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Im=()=>({"aria-label":"ControlName"}),Am=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"}),Lm=r=>({"parent-node":r}),Yo=()=>({"aria-label":"Assign To"});function km(r,g){if(r&1&&(a(0,"div")(1,"span",69),h(2),s()()),r&2){let t=g.$implicit,n=m(2);o(),l("ngClass",ai(2,Lm,n.isParent(t.productCategoryId))),o(),O(" ",t.categoryName," ")}}function Rm(r,g){if(r&1){let t=y();a(0,"div")(1,"dx-tree-view",68,1),f("onContentReady",function(e){p(t);let i=m();return u(i.onTreeViewContentReady(e))})("onItemClick",function(e){p(t);let i=m();return u(i.onTreeViewItemClick(e))})("onItemSelectionChanged",function(e){p(t);let i=m();return u(i.treeView_itemSelectionChanged(e))}),S(3,km,3,4,"div",14),s()()}if(r&2){let t=m();o(),l("dataSource",t.productCategories())("searchEnabled",!0)("selectByClick",!0),o(2),l("dxTemplateOf","item")}}function Om(r,g){if(r&1){let t=y();a(0,"div",72)(1,"span"),h(2,"Address Type:"),s(),a(3,"dx-select-box",78),_("valueChange",function(e){p(t);let i=m(2);return C(i.selectedAddressType,e)||(i.selectedAddressType=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onSelectAddressTypeControl(e))}),s()()}if(r&2){let t=m(2);o(3),l("items",t.addressTypes),x("value",t.selectedAddressType),l("inputAttr",I(3,Yo))}}function Gm(r,g){if(r&1){let t=y();a(0,"div",72)(1,"span"),h(2,"Phone Type:"),s(),a(3,"dx-select-box",79),_("valueChange",function(e){p(t);let i=m(2);return C(i.selectedPhoneType,e)||(i.selectedPhoneType=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onSelectPhoneTypeControl(e))}),s()()}if(r&2){let t=m(2);o(3),l("items",t.phoneTypes),x("value",t.selectedPhoneType),l("inputAttr",I(3,Yo))}}function Bm(r,g){if(r&1){let t=y();a(0,"div",72)(1,"span"),h(2,"Email Type:"),s(),a(3,"dx-select-box",80),_("valueChange",function(e){p(t);let i=m(2);return C(i.selectedEmailType,e)||(i.selectedEmailType=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onSelectEmailTypeControl(e))}),s()()}if(r&2){let t=m(2);o(3),l("items",t.emailTypes),x("value",t.selectedEmailType),l("inputAttr",I(3,Yo))}}function Fm(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",82),_("valueChange",function(e){p(t);let i=m(2);return C(i.isSystemProperty,e)||(i.isSystemProperty=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onShowSystemProperty(e))}),s(),h(2," Show System Property "),s()}if(r&2){let t=m(2);o(),x("value",t.isSystemProperty)}}function Wm(r,g){if(r&1){let t=y();a(0,"div",83)(1,"a",84),f("click",function(){p(t);let e=m(2);return u(e.AddProperty())}),a(2,"span"),A(),a(3,"svg",85),b(4,"path",86),s()(),h(5," Add Property "),s()()}}function Nm(r,g){if(r&1){let t=y();a(0,"div",70)(1,"div",71)(2,"div",72)(3,"span"),h(4,"Control Type:"),s(),a(5,"dx-select-box",73),_("valueChange",function(e){p(t);let i=m();return C(i.selectedPersonalControl,e)||(i.selectedPersonalControl=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onSelectControl(e))}),s()(),S(6,Om,4,4,"div",74)(7,Gm,4,4,"div",74)(8,Bm,4,4,"div",74),s(),a(9,"div",75),S(10,Fm,3,1,"div",76)(11,Wm,6,0,"div",77),s()()}if(r&2){let t=m();o(5),l("showClearButton",!0)("items",t.filterControlType),x("value",t.selectedPersonalControl),l("inputAttr",I(9,Yo)),o(),l("ngIf",t.isAddressType),o(),l("ngIf",t.isPhoneType),o(),l("ngIf",t.isEmailType),o(2),l("ngIf",t.isDemoGraphicsProperty()),o(),l("ngIf",t.isDemoGraphicsProperty())}}function qm(r,g){if(r&1){let t=y();a(0,"div",87)(1,"a",84),f("click",function(){p(t);let e=m();return u(e.AddProperty())}),a(2,"span"),A(),a(3,"svg",85),b(4,"path",86),s()(),h(5," Add Property "),s()()}}function Um(r,g){if(r&1){let t=y();a(0,"a",116),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.ManageCustomFieldsLabelClick(e.data))}),A(),a(1,"svg",117),b(2,"path",118),s(),h(3," Manage "),s()}}function Hm(r,g){if(r&1&&(a(0,"div",112)(1,"div",113)(2,"span",114),h(3),s(),S(4,Um,4,0,"a",115),s()()),r&2){let t=g.$implicit,n=m(2);o(2),q("title",t.data.fieldCaption),o(),R(t.data.fieldCaption),o(),l("ngIf",n.ShowSideBarValueEvent(t.data))}}function jm(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function zm(r,g){if(r&1){let t=y();a(0,"div",119)(1,"span",120),h(2,"Required"),s(),a(3,"dx-switch",121),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllRequired,e)||(i.isAllRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllRequireChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllRequired)}}function Zm(r,g){if(r&1){let t=y();a(0,"div",122)(1,"dx-switch",121),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Qm(r,g){if(r&1){let t=y();a(0,"div",119)(1,"span",120),h(2,"Visible"),s(),a(3,"dx-switch",121),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllVisible,e)||(i.isAllVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllVisibleChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllVisible)}}function Ym(r,g){if(r&1){let t=y();a(0,"div",122)(1,"dx-switch",121),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Km(r,g){if(r&1){let t=y();a(0,"div",119)(1,"span",120),h(2,"Editable"),s(),a(3,"dx-switch",121),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllEditable,e)||(i.isAllEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllEditableChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllEditable)}}function Jm(r,g){if(r&1){let t=y();a(0,"div",123)(1,"dx-switch",121),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Xm(r,g){if(r&1){let t=y();a(0,"div",119)(1,"span",120),h(2,"Include in Signup"),s(),a(3,"dx-switch",121),_("valueChange",function(e){p(t);let i=m(3);return C(i.isAllIncludeInSignup,e)||(i.isAllIncludeInSignup=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(3);return u(i.onAllIncludeInSignupChanged(e))}),s()()}if(r&2){let t=m(3);o(3),x("value",t.isAllIncludeInSignup)}}function $m(r,g){if(r&1){let t=y();a(0,"div",123)(1,"dx-switch",121),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isIncludeInSignup,e)||(i.data.isIncludeInSignup=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(3);return u(d.onIncludeInSignupChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isIncludeInSignup)}}function eg(r,g){r&1&&(a(0,"dxi-column",124),S(1,Xm,4,1,"div",125)(2,$m,2,1,"div",108),s()),r&2&&(l("fixed",!0)("allowEditing",!1)("width",130),o(),l("dxTemplateOf","titleHeaderTemplateSignup"),o(),l("dxTemplateOf","EditableBodyTemplateSignup"))}function tg(r,g){if(r&1){let t=y();a(0,"div",126)(1,"dx-drop-down-button",127),f("onItemClick",function(e){let i=p(t).$implicit,d=m(2);return u(d.onActionItemClick(e,i.data))}),s()()}if(r&2){let t=m(2);o(),l("showArrowIcon",!1)("useItemTextAsTitle",!1)("useSelectMode",!1)("items",t.actionMenu)}}function ig(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-data-grid",89,2),f("onCellClick",function(e){p(t);let i=m();return u(i.onCustomFieldItemClick(e))})("onSelectionChanged",function(e){p(t);let i=m();return u(i.onPropertySelectionChanged(e))})("onSaving",function(e){p(t);let i=m();return u(i.onPropertyInfoSaving(e))}),b(3,"dxo-column-fixing",90)(4,"dxo-paging",90),a(5,"dxo-editing",91),_("changesChange",function(e){p(t);let i=m();return C(i.changes,e)||(i.changes=e),u(e)}),s(),b(6,"dxi-column",92)(7,"dxi-column",93)(8,"dxi-column",94),a(9,"dxi-column",95),b(10,"dxi-validation-rule",96)(11,"dxi-validation-rule",97)(12,"dxi-validation-rule",98),S(13,Hm,5,3,"div",99),s(),b(14,"dxi-column",100),a(15,"dxi-column",101),S(16,jm,2,4,"span",102),s(),a(17,"dxi-column",103),S(18,zm,4,1,"div",104)(19,Zm,2,2,"div",105),s(),a(20,"dxi-column",106),S(21,Qm,4,1,"div",104)(22,Ym,2,2,"div",105),s(),a(23,"dxi-column",107),S(24,Km,4,1,"div",104)(25,Jm,2,1,"div",108),s(),S(26,eg,3,5,"dxi-column",109),a(27,"dxi-column",110),S(28,tg,2,4,"div",111),s()()()}if(r&2){let t=m();o(),l("showBorders",!0)("dataSource",t.systemPageControls)("repaintChangesOnly",!0),o(2),l("enabled",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",t.changes),o(),l("fixed",!0)("minWidth",160)("allowEditing",!1),o(),l("fixed",!1)("minWidth",160)("allowEditing",!1),o(),l("fixed",!1)("minWidth",160)("allowEditing",!1),o(),l("fixed",!1)("minWidth",240),o(2),l("pattern","^[a-zA-Z0-9 ]+$"),o(),l("validationCallback",t.asyncPropertyValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("minWidth",180)("fixed",!1),o(),l("allowEditing",!1)("minWidth",100)("fixed",!1),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",90),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",90),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",90),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngIf",t.isShowIncludeInSignUp()),o(),l("width",100)("fixed",!0)("visible",t.isDemoGraphicsProperty()),o(),l("dxTemplateOf","ActionTemplate")}}function ng(r,g){if(r&1){let t=y();a(0,"div",70),b(1,"div",71),a(2,"div",75)(3,"a",84),f("click",function(){p(t);let e=m(2);return u(e.AddListProperty())}),a(4,"span"),A(),a(5,"svg",85),b(6,"path",86),s()(),h(7," Add "),s()()()}}function og(r,g){if(r&1){let t=y();a(0,"div",87)(1,"a",84),f("click",function(){p(t);let e=m(2);return u(e.AddListProperty())}),a(2,"span"),A(),a(3,"svg",85),b(4,"path",86),s()(),h(5," Add Audience "),s()()}}function ag(r,g){if(r&1){let t=y();a(0,"div",126)(1,"dx-drop-down-button",127),f("onItemClick",function(e){let i=p(t).$implicit,d=m(3);return u(d.onEligibilityActionItemClick(e,i.data))}),s()()}if(r&2){let t=m(3);o(),l("showArrowIcon",!1)("useItemTextAsTitle",!1)("useSelectMode",!1)("items",t.eligibilityActionMenu)}}function rg(r,g){if(r&1){let t=y();a(0,"div",129)(1,"dx-data-grid",130),f("onCellClick",function(e){p(t);let i=m(2);return u(i.onEligibilityItemClick(e))}),b(2,"dxo-paging",90)(3,"dxi-column",131)(4,"dxi-column",132)(5,"dxi-column",133)(6,"dxi-column",134)(7,"dxi-column",135),a(8,"dxi-column",136),S(9,ag,2,4,"div",111),s()()()}if(r&2){let t=m(2);o(),l("dataSource",t.eligibilityDataSource)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!0)("width",150),o(),l("dxTemplateOf","EligibilityActionTemplate")}}function sg(r,g){if(r&1){let t=y();a(0,"div",16)(1,"div",20)(2,"h2",21),h(3,"Set Audience"),s(),a(4,"div",22)(5,"a",23),f("click",function(){p(t);let e=m();return u(e.EligibilityInformation())}),A(),a(6,"svg",24),b(7,"path",25),s()()()(),G(),a(8,"div",26),S(9,ng,8,0,"div",27)(10,og,6,0,"div",28)(11,rg,10,11,"div",128),s()()}if(r&2){let t=m();o(9),l("ngIf",t.totalDemographicsEligiblity()>0),o(),l("ngIf",t.totalDemographicsEligiblity()==0),o(),l("ngIf",t.totalDemographicsEligiblity()>0)}}function lg(r,g){if(r&1){let t=y();a(0,"div",137)(1,"span",138),h(2),s(),a(3,"div",139)(4,"a",140),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",141),b(6,"path",142),s()(),G(),a(7,"a",143),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",141),b(9,"path",144),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function dg(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for\xA0"),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function cg(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for\xA0"),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function pg(r,g){if(r&1){let t=y();a(0,"dx-button",145),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function ug(r,g){if(r&1){let t=y();a(0,"dx-button",146),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function mg(r,g){if(r&1){let t=y();a(0,"dx-button",147),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}var _o=(()=>{class r extends wt{constructor(){super(),this.pageTitle="Create",this.addValueGroup=oo("addValueGroup"),this.targetDemographicsCategory=oo("targetDemographicsCategory"),this.dataGrid=oo(N),this.treeView=oo(Sn),this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.treeBoxValue=[],this.productCategories=Ei([]),this.parentCategoryIdSet=new Set,this.unsubscriber=new Ct,this.groupedCategories=[],this.AddListPopup=!1,this.AddFieldsPopup=!1,this.productCategoryInformation=new uo,this.systemPageControls=[],this.tempSystemPageControls=[],this.demographicsEligibilityListMappings=[],this.tempDemographicsEligibilityListMappings=[],this.demographcisCategoryId=0,this.addSystemPageControl=new qi,this.selectedPageControl=new mo,this.totalDemographicsControl
87=Ei(0),this.totalDemographicsEligiblity=Ei(0),this.actionMenu=[],this.eligibilityActionMenu=[],this.editRowno=0,this.deleteCustomFormFieldPopup=!1,this.deleteListPopup=!1,this.isEdit=!1,this.autoNo=0,this.parenttempcustomFieldDetails=[],this.isEditCustomDetail=!1,this.ParentManageValuesSidebar=!1,this.selectedCustomField=new qi,this.AddOptionFrom="Parent",this.isviewmode=!1,this.flagTypes=[],this.flagTypeId=0,this.productTypes=[],this.productTypeOptions=[],this.productTypeId=0,this.isTreeBoxOpened=!1,this.isDemoGraphicsProperty=Ei(!1),this.isContactDemoGraphicsProperty=!1,this.isCompanyDemoGraphicsProperty=!1,this.categoryTreeName=Ei(""),this.isSystemProperty=!1,this.personalControlType=[],this.filterControlType=[],this.selectedPersonalControl="",this.propertyCollapseExpand=!1,this.eligibilityCollapseExpand=!1,this.isAllRequired=!1,this.isAllVisible=!1,this.isAllEditable=!1,this.isAllIncludeInSignup=!1,this.isContactProperty=Ei(!1),this.isCompanyProperty=Ei(!1),this.isFilter=Ei(!1),this.FilterActive=!1,this.selectedControlId=0,this.selectedControlCategory="",this.AddValueHeader="",this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.deletePopup=!1,this.changes=[],this.selectedItemKeys=[],this.gridColumns=[],this.addressTypes=[],this.emailTypes=[],this.phoneTypes=[],this.isPhoneType=!1,this.isAddressType=!1,this.isEmailType=!1,this.selectedPhoneType="",this.selectedAddressType="",this.selectedEmailType="",this.webStorageService=Hi(yt),this.activatedRoute=Hi(Li),this.router=Hi(St),this.taxonomyService=Hi(mn),this.productService=Hi(hr),this.propertyService=Hi(Kt),this.utilityService=Hi(di),this.authenticationService=Hi(li),this.permissionService=Hi(ci),this.commonservice=Hi(gr),this.destroyRef=Hi(Ia),this.loadData=()=>{this.loading=!0,Yt([this.utilityService.GetAllMasterDataForContact()]).pipe(Qt(([t])=>({masterData:t}))).subscribe(t=>{this.loading=!1,Object.keys(t).forEach(n=>this[n]=t[n].responseModel),this.addressTypes=this.masterData.addressTypes,this.emailTypes=this.masterData.emailAddressTypes,this.phoneTypes=this.masterData.phoneTypes})},this._treeInitialized=!1,this.isEditLookupValue=!1,this.isEditMode=!1,this.ShowPropertyGrid=Mi(()=>this.isFilter()||this.isDemoGraphicsProperty()&&this.totalDemographicsControl()>0?!0:!(this.isDemoGraphicsProperty()&&this.totalDemographicsControl()==0)),this.asyncPropertyValidation=t=>B(this,null,function*(){return!(this.systemPageControls.filter(e=>e.fieldCaption.replace(/ /g,"")==t.value.replace(/ /g,"")&&e.systemPageControlId!=t.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.customCallback=this.customCallback.bind(this),this.actionMenu=[{value:"EditControl",text:"Edit",icon:"edit",visible:!0,onClick:t=>{this.EditProperty()}},{value:"DeleteControl",text:"Delete",icon:"delete",visible:!0,onClick:t=>{this.deleteCustomFormFieldPopup=!0}}],this.eligibilityActionMenu=[{value:"Delete",text:"Remove",icon:"delete",visible:!0,onClick:t=>{this.deleteListPopup=!0}}],this.filterControlType.push({strDisplay:"All",strValue:""}),this.filterControlType.push({strDisplay:Pi.Checkbox.toString(),strValue:Pi.Checkbox.toString()}),this.filterControlType.push({strDisplay:Pi.Datepicker.toString(),strValue:Pi.Datepicker.toString()}),this.filterControlType.push({strDisplay:Pi.MultiSelectbox.toString(),strValue:Pi.MultiSelectbox.toString()}),this.filterControlType.push({strDisplay:Pi.Numberbox.toString(),strValue:Pi.Numberbox.toString()}),this.filterControlType.push({strDisplay:Pi.Selectbox.toString(),strValue:Pi.Selectbox.toString()}),this.filterControlType.push({strDisplay:Pi.TextBox.toString(),strValue:Pi.TextBox.toString()}),this.loadData()}getUserPermission(){this.permissionService.getPermission(ei.ManageProperty.toString(),ti.View.toString())||this.authenticationService.notAuthorized()}ngOnInit(){this.gridColumns=[{dataField:"sourceColumnName",caption:"Control Property",alignment:"left",fixed:!0,minWidth:160,allowEditing:!1},{dataField:"formControlType",caption:"Control Type",alignment:"left",fixed:!1,minWidth:160,allowEditing:!1},{dataField:"parentCategoryName",caption:"Category",alignment:"left",fixed:!1,minWidth:160,allowEditing:!1},{dataField:"fieldCaption",caption:"Label Name",alignment:"left",fixed:!1,minWidth:240,cellTemplate:"LabelNameManage",cssClass:"onhover",validationRules:[{type:"required",message:"Label name is required"},{type:"pattern",pattern:"^[a-zA-Z0-9 ]+$",message:"Special characters are not allowed"},{type:"async",message:"Label name is not unique.",validationCallback:this.asyncPropertyValidation}]},{dataField:"formControlTooltip",caption:"ToolTip",minWidth:180,alignment:"left",fixed:!1,cssClass:"onhover"},{dataField:"isCanEdit",allowEditing:!1,minWidth:100,fixed:!1,caption:"System Property",cellTemplate:"statusTemplate",cssClass:"system-property-cols"},{dataField:"Required",cssClass:"shortingnone",caption:"Required",fixed:!0,type:"buttons",allowEditing:!1,width:90,alignment:"center",headerCellTemplate:"titleHeaderTemplate1",cellTemplate:"EditableBodyTemplate1"},{dataField:"Visible",cssClass:"shortingnone",caption:"Visible",fixed:!0,type:"buttons",allowEditing:!1,width:90,alignment:"center",headerCellTemplate:"titleHeaderTemplate2",cellTemplate:"EditableBodyTemplate2"},{dataField:"Editable",cssClass:"shortingnone",caption:"Editable",f
87ixed:!0,type:"buttons",allowEditing:!1,width:90,alignment:"center",headerCellTemplate:"titleHeaderTemplate3",cellTemplate:"EditableBodyTemplate3"},{dataField:"isIncludeInSignup",cssClass:"shortingnone",caption:"Include in Signup",fixed:!0,type:"buttons",allowEditing:!1,width:130,alignment:"center",headerCellTemplate:"titleHeaderTemplateSignup",cellTemplate:"EditableBodyTemplateSignup",showCondition:"signup"},{dataField:"action",width:100,fixed:!0,caption:"Action",type:"buttons",cellTemplate:"ActionTemplate",showCondition:"demographics"}],this.getAllFlagTypes()}getColVisible(t){return t.showCondition==="signup"?this.isShowIncludeInSignUp():t.showCondition==="demographics"?this.isDemoGraphicsProperty():!0}getAllFlagTypes(){this.loading=!0,this.taxonomyService.GetAllFlagTypes().pipe(Ti(this.destroyRef)).subscribe(t=>{this.processResult(t,()=>{if(this.loading=!1,t&&t.isSuccess){if(t.responseModel!=null&&t.responseModel!=null){this.flagTypes=t.responseModel;let n=this.flagTypes.find(e=>e.flagType=="Feature");n&&(this.flagTypeId=n.flagTypeId),this.getAllProductTypes()}}else this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}getAllProductTypes(){this.loading=!0,this.productService.GetAllProductTypesTaxonmy().pipe(Ti(this.destroyRef)).subscribe(t=>{this.processResult(t,()=>{if(t&&t.isSuccess){if(this.loading=!1,t.responseModel!=null&&t.responseModel!=null){let n=t.responseModel;n.sort((i,d)=>i.productType.toLowerCase()<d.productType.toLowerCase()?-1:i.productType.toLowerCase()>d.productType.toLowerCase()?1:0),this.productTypes=JSON.parse(JSON.stringify(n)),this.productTypeOptions=this.productTypes.filter(i=>i.flagTypeId==this.flagTypeId);let e=this.productTypeOptions.find(i=>i.productType.toLowerCase()==zn.Properties.toString().toLowerCase());e?this.productTypeId=e.productTypeId:this.productTypeId=this.productTypeOptions[0].productTypeId,this.GetProductCategory()}}else this.loading=!1,this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetProductCategory(){Number(this.productTypeId)>0&&(this.loading=!0,this.taxonomyService.GetAllProductCategoriesByProductTypeId(this.productTypeId).pipe(Ti(this.destroyRef)).subscribe(t=>{this.processResult(t,()=>{if(this.loading=!1,t&&t.isSuccess){if(t.responseModel!=null&&t.responseModel!=null){let e=JSON.parse(JSON.stringify(t.responseModel)).sort((i,d)=>i.categoryName.localeCompare(d.categoryName));this.productCategories.set(e),this.parentCategoryIdSet=new Set(this.productCategories().filter(i=>i.parentCategoryId!=null&&i.parentCategoryId!==0).map(i=>Number(i.parentCategoryId))),Number(this.productCategoryId)>0&&this.HideShowDemographics()}}else this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}GetPropertyControls(){if(this.dataGrid()!=null&&(this.dataGrid()?.instance?.clearSelection(),this.dataGrid()?.instance?.option("focusedrowindex",-1)),!this.productCategoryId)return;let t=this.productCategories().find(e=>e.productCategoryId==this.productCategoryId);t&&(t.categoryCode=="AddressInformation"?(this.isAddressType=!0,this.selectedAddressType=this.addressTypes&&this.addressTypes.length>0&&this.selectedAddressType==""?this.addressTypes[0].code:this.selectedAddressType):t.categoryCode=="EmailInformation"?(this.isEmailType=!0,this.selectedEmailType=this.emailTypes&&this.emailTypes.length>0&&this.selectedEmailType==""?this.emailTypes[0].code:this.selectedEmailType):t.categoryCode=="PhoneInformation"&&(this.isPhoneType=!0,this.selectedPhoneType=this.phoneTypes&&this.phoneTypes.length>0&&this.selectedPhoneType==""?this.phoneTypes[0].code:this.selectedPhoneType)),this.isAddressType||(this.selectedAddressType=""),this.isEmailType||(this.selectedEmailType=""),this.isPhoneType||(this.selectedPhoneType=""),this.isAllRequired=!1,this.isAllVisible=!1,this.isAllEditable=!1,this.isAllIncludeInSignup=!1,this.loading=!0,(this.isDemoGraphicsProperty()?this.taxonomyService.GetDemographicsPropertyControls(Number(this.productCategoryId),this.isDemoGraphicsProperty()?this.isSystemProperty==!1?0:1:-1,this.selectedPersonalControl):this.taxonomyService.GetPropertyControl
87s(Number(this.productCategoryId),-1,this.selectedPersonalControl,this.isAddressType?this.selectedAddressType:this.isPhoneType?this.selectedPhoneType:this.isEmailType?this.selectedEmailType:"")).pipe(Ti(this.destroyRef)).subscribe(e=>{this.processResult(e,()=>{this.loading=!1,e&&e.isSuccess&&(e.responseModel!=null&&e.responseModel!=null?(this.systemPageControls=JSON.parse(JSON.stringify(e.responseModel)),this.systemPageControls!=null&&this.systemPageControls.length>0&&(this.systemPageControls.every(V=>V.isRequired==!0)&&(this.isAllRequired=!0),this.systemPageControls.every(V=>V.isReadOnly==!0)&&(this.isAllEditable=!0),this.systemPageControls.every(V=>V.isIncludeInSignup==!0)&&(this.isAllIncludeInSignup=!0),this.systemPageControls.every(V=>V.isVisible==!0)&&(this.isAllVisible=!0))):(this.loading=!1,this.showErrorMessage(e.message))),this.ResetSystemPageControlRowNo(),this.BindSystemPageControl()})},e=>{this.loading=!1,this.showErrorMessage(e.message)})}GetPropertyEligibility(){this.productCategoryId&&(this.demographicsEligibilityListMappings=[],this.loading=!0,this.taxonomyService.GetPropertyEligibility(Number(this.productCategoryId)).pipe(Ti(this.destroyRef)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(t.responseModel!=null&&t.responseModel!=null?(this.demographicsEligibilityListMappings=JSON.parse(JSON.stringify(t.responseModel)),this.ResetEligibilityRowNo(),this.BindEligibility()):(this.loading=!1,this.showErrorMessage(t.message)))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}isShowIncludeInSignUp(){return this.isContactProperty()||this.isCompanyProperty()}setCategoryName(t){let n=this.productCategories().find(e=>e.productCategoryId==t);n&&(this.categoryTreeName.set(this.categoryTreeName()==""?n.categoryName:n.categoryName+" / "+this.categoryTreeName()),this.categoryTreeName().toLowerCase().includes("contact")||this.categoryTreeName().toLowerCase().includes("company")||this.categoryTreeName().toLowerCase().includes("companies")||this.categoryTreeName().toLowerCase().includes("contacts "),Number(n.parentCategoryId)>0&&this.setCategoryName(Number(n.parentCategoryId)))}CheckDemographicsCategory(t){let n=this.productCategories().find(e=>e.productCategoryId==t);n&&Number(n.parentCategoryId)==0&&n.categoryCode==Ao.Demographics.toString()?this.isDemoGraphicsProperty.set(!0):n&&Number(n.parentCategoryId)>0&&this.CheckDemographicsCategory(Number(n.parentCategoryId))}CheckContactCategory(t){let n=this.productCategories().find(e=>e.productCategoryId==t);n&&n.categoryCode==Ao.Contact.toString()?this.isContactProperty.set(!0):n&&Number(n.parentCategoryId)>0&&this.CheckContactCategory(Number(n.parentCategoryId))}CheckCompanyCategory(t){let n=this.productCategories().find(e=>e.productCategoryId==t);n&&n.categoryCode==Ao.Company.toString()?this.isCompanyProperty.set(!0):n&&Number(n.parentCategoryId)>0&&this.CheckCompanyCategory(Number(n.parentCategoryId))}isParent(t){return this.parentCategoryIdSet.has(t)}onTreeViewContentReady(t){this._treeInitialized||(this._treeInitialized=!0,this.treeBoxValue&&t.component.selectItem(this.treeBoxValue),t.component.expandAll(),setTimeout(()=>{this._treeInitialized=!1},0))}onTreeViewItemClick(t){if(t.itemData.parentCategoryId==0){t.event.preventDefault();return}if(t.itemData.parentCategory=="General"){t.event.preventDefault();return}this.productCategoryId=t.itemData.productCategoryId,this.parentCategoryId=0,this.selectedPersonalControl="",this.isSystemProperty=!1,this.systemPageControls=[],this.HideShowDemographics()}HideShowDemographics(){Number(this.productCategoryId)>0&&(this.systemPageControls=[],this.isFilter.set(!1),this.isDemoGraphicsProperty.set(!1),this.CheckDemographicsCategory(this.productCategoryId),this.isContactProperty.set(!1),this.CheckContactCategory(this.productCategoryId),this.isCompanyProperty.set(!1),this.CheckCompanyCategory(this.productCategoryId),this.isPhoneType=!1,this.isAddressType=!1,this.isEmailType=!1,this.selectedAddressType="",this.selectedEmailType="",this.selectedPhoneType="",this.GetPropertyControls(),this.GetPropertyEligibility(),this.categoryTreeName.set(""),this.setCategoryName(Number(this.productCategoryId)))}onTreeBoxOptionChanged(t){t.name==="value"&&(this.isTreeBoxOpened=!1)}treeView_itemSelectionChanged(t){this.treeBoxValue=t.component.getSelectedNodeKeys()}syncTreeViewSelection(){this.treeView()&&(this.treeBoxValue&&this.treeBoxValue[0]>0?(this.treeView()?.instance.selectItem(this.treeBoxValue),this.productCategoryInformation.parentCategoryId=Number(this.treeBoxValue[0])):(this.productCategoryInformation.parentCategoryId=null,this.systemPageControls=[],this.isFilter.set(!1),this.isDemoGraphicsProperty.set(!1),this.isContactProperty.set(!1),this.isCompanyProperty.set(!1),this.categoryTreeName.set(""),this.treeView()?.instance.unselectAll()))}
87AddProperty(){this.editRowno=0,this.addSystemPageControl=new qi,this.addSystemPageControl.rowno=0,this.addSystemPageControl.productCategoryId=this.productCategoryId,this.AddFieldsPopup=!0}EditProperty(){this.selectedPageControl&&(this.addSystemPageControl=new qi,this.addSystemPageControl.demographicsTypeID=this.selectedPageControl.systemPageControlId,this.addSystemPageControl.demographics=this.selectedPageControl.fieldCaption,this.addSystemPageControl.controlType=this.selectedPageControl.formControlType,this.addSystemPageControl.selectionType="",this.addSystemPageControl.isActive=this.selectedPageControl.isActive,this.addSystemPageControl.modifiedByUserId=this.selectedPageControl.modifiedByUserId,this.addSystemPageControl.controlName=this.selectedPageControl.sourceColumnName,this.addSystemPageControl.controlTooltip=this.selectedPageControl.formControlTooltip,this.addSystemPageControl.controlDataType="",this.addSystemPageControl.isReadOnly=this.selectedPageControl.isReadOnly,this.addSystemPageControl.isVisible=this.selectedPageControl.isVisible,this.addSystemPageControl.isRequired=this.selectedPageControl.isRequired,this.addSystemPageControl.isCanEdit=this.selectedPageControl.isCanEdit,this.addSystemPageControl.productCategoryId=this.selectedPageControl.productCategoryId,this.addSystemPageControl.demographicsDetails=JSON.parse(JSON.stringify(this.selectedPageControl.systemPageControlDetails)),this.editRowno=this.addSystemPageControl.rowno,this.AddFieldsPopup=!0,this.selectedPageControl=new mo)}closeDemogrpahicsFieldsPopup(){this.AddFieldsPopup=!1}AddListProperty(){this.autoNo=this.commonservice.refreshAutoNo(),this.AddListPopup=!0}closeListPopup(){this.AddListPopup=!1}UpdateEligibilityList(t){this.GetPropertyEligibility()}ResetEligibilityRowNo(){let t=1;
87this.demographicsEligibilityListMappings.forEach(n=>{n.rowno=t,t=t+1})}BindEligibility(){let t=this.demographicsEligibilityListMappings.filter(n=>n.isActive);this.totalDemographicsEligiblity.set(t.length),this.eligibilityDataSource=new kt({key:"rowno",data:t})}UpdateDemographicsControl(t){this.GetPropertyControls()}ResetSystemPageControlRowNo(){let t=1;this.systemPageControls.forEach(n=>{n.rowno=t,t=t+1})}BindSystemPageControl(){let t=this.systemPageControls.filter(n=>n.isActive);this.totalDemographicsControl.set(t.length),this.pageControlsDataSource=new kt({key:"rowno",data:t})}onCustomFieldItemClick(t){t.data&&(this.selectedPageControl=t.data,this.selectedPageControl&&this.actionMenu.filter(n=>{n.value=="DeleteControl"&&(this.isDemoGraphicsProperty()&&this.selectedPageControl.isCanEdit?n.visible=!0:n.visible=!1)}))}onActionItemClick(t,n){n&&(this.selectedPageControl=n,t?.itemData?.value==="EditControl"?this.EditProperty():t?.itemData?.value==="DeleteControl"&&(this.deleteCustomFormFieldPopup=!0))}onEligibilityItemClick(t){t.data&&(this.selectedEligibility=t.data)}onEligibilityActionItemClick(t,n){n&&(this.selectedEligibility=n,t?.itemData?.value==="Delete"&&(this.deleteListPopup=!0))}resetForm(){this.productCategoryInformation=new uo,this.systemPageControls=[],this.demographicsEligibilityListMappings=[],this.treeBoxValue=[]}closeDeleteCustomFormFieldPopup(){this.deleteCustomFormFieldPopup=!1,this.selectedPageControl=new mo}DeleteCustomFormField(){this.loading=!0,this.utilityService.ActiveInactiveDemographic(this.selectedPageControl.systemPageControlId,!1).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(t=>{this.loading=!1,t.isSuccess?(this.GetPropertyControls(),this.showSuccessMessage("Property successfully deleted."),this.closeDeleteCustomFormFieldPopup()):this.showErrorMessage(t.message)},t=>{this.showErrorMessage(t.message)})}closeDeleteListPopup(){this.deleteListPopup=!1,this.selectedEligibility=new Bo}DeleteList(){this.loading=!0,this.taxonomyService.ActiveInactivePropertyEligibility(this.selectedEligibility.demographicsEligibilityListMappingId,!1).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(t=>{this.loading=!1,t.isSuccess?(this.GetPropertyEligibility(),this.showSuccessMessage("List deleted successfully"),this.closeDeleteListPopup()):this.showErrorMessage(t.message)},t=>{this.showErrorMessage(t.message)})}ShowSideBarValueEvent(t){return t.isLookupReference?!0:!!(this.isDemoGraphicsProperty()&&(t.formControlType.toLowerCase()==Pi.Selectbox.toString().toLowerCase()||t.formControlType.toLowerCase()==Pi.MultiSelectbox.toString().toLowerCase()))}ManageCustomFieldsLabelClick(t){t.isLookupReference?(this.selectedControlId=t.systemPageControlId,this.selectedControlCategory=t.parentCategoryName,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive):(this.selectedCustomField=new qi,this.selectedCustomField.demographicsTypeID=t.systemPageControlId,this.selectedCustomField.demographics=t.fieldCaption,this.selectedCustomField.controlType=t.formControlType,this.selectedCustomField.selectionType="",this.selectedCustomField.isActive=t.isActive,this.selectedCustomField.modifiedByUserId=t.modifiedByUserId,this.selectedCustomField.controlName=t.sourceColumnName,this.selectedCustomField.controlTooltip=t.formControlTooltip,this.selectedCustomField.controlDataType="",this.selectedCustomField.isReadOnly=t.isReadOnly,this.selectedCustomField.isVisible=t.isVisible,this.selectedCustomField.isRequired=t.isRequired,this.selectedCustomField.isCanEdit=t.isCanEdit,this.selectedCustomField.productCategoryId=t.productCategoryId,this.selectedCustomField.demographicsDetails=t.systemPageControlDetails,this.parenttempcustomFieldDetails=t.systemPageControlDetails,this.isEditCustomDetail=!0,this.ParentManageValuesSidebar=!0),Dt("* => open",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&(this.loading=!0,this.propertyService.GetLookUpTableRecord(t,this.selectedControlCategory).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)}))}closeSidebar(){this.isEditCustomDetail=!1,this.ParentManageValuesSidebar=!1,Dt("* => closed",[Tt("0.5s")])}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}
87DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}LookupValuePopupEvent(){this.addValueGroup()?.instance.reset(),this.addValuePopupPopup=!0}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}customCallback(t){let n=this.lookupValue;return n&&this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}addLookupValueDetail(t,n){if(!(this.addValueGroup()?.instance.validate()).isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0;let d=this.systemPageControls.find(c=>c.systemPageControlId==this.selectedControlId);this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?(i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId):d&&(i.controlId=d.systemPageControlId,i.tableId=d.lookupReferenceSystemTableID),i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=this.selectedControlCategory,this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(c=>{c.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup()?.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup()?.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(c.message))},c=>{this.loading=!1,this.showErrorMessage(c.message)})}editLookupValueDetail(){(this.addValueGroup()?.instance.validate()).isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=this.selectedControlCategory,this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup()?.instance.reset(),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1,this.GetProductCategory()):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}closeDeleteValuePopup(){this.selectedLookupTableValue=new _t,this.deletePopup=!1}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(Ti(this.destroyRef),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.addValueGroup()?.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}saveCustomFieldDetails(t){this.GetPropertyControls(),this.parenttempcustomFieldDetails=[]}onShowSystemProperty(t){this.isFilter.set(!0),this.isSystemProperty=t.value,this.GetPropertyControls()}onSelectControl({value:t}){this.isFilter.set(!0),this.selectedPersonalControl=t,this.GetPropertyControls()}onSelectAddressTypeControl({value:t}){this.isFilter.set(!0),this.selectedAddressType=t,this.GetPropertyControls()}onSelectPhoneTypeControl({value:t}){this.isFilter.set(!0),this.selectedPhoneType=t,this.GetPropertyControls()}onSelectEmailTypeControl({value:t}){this.isFilter.set(!0),this.selectedEmailType=t,this.GetPropertyControls()}PropertyInformation(){this.propertyCollapseExpand=!this.propertyCollapseExpand}EligibilityInformation(){this.eligibilityCollapseExpand=!this.eligibilityCollapseExpand}onAllRequireChanged(t){if(this.dataGrid()!=null&&this.dataGrid()?.instance&&(this.dataGrid()?.instance.clearSelection(),this.dataGrid()?.instance.option("focusedRowIndex",-1)),t.event==null)return;this.isAllRequired=t.value;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!=""&&(n=this.selectedPersonalControl),this.loading=!0,this.isDemoGraphicsProperty()?this.taxonomyService.UpdateAllRequireFieldDemographicsControl(Number(this.productCategoryId),this.isSystemProperty==!1?0:1,t.value,n).pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)}):this.taxonomyService.UpdateAllRequireFieldContactControl(Number(this.productCategoryId),-1,t.value,n,this.isAddressType?this.selectedAddressType:this.isPhoneType?this.selectedPhoneType:this.isEmailType?this.selectedEmailType:"").pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)})}onAllVisibleChanged(t){if(this.dataGrid()!=null&&this.dataGrid()?.instance&&(this.dataGrid()?.instance.clearSelection(),this.dataGrid()?.instance.option("focusedRowIndex",-1)),t.event==null)return;this.isAllVisible=t.value;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!=""&&(n=this.selectedPersonalControl),this.loading=!0,this.isDemoGraphicsProperty()?this.taxonomyService.UpdateAllVisibleFieldDemographicsControl(Number(this.productCategoryId),this.isSystemProperty==!1?0:1,t.value,n).pipe(Ti(this.destroyRef)).subscribe(e=>
87{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)}):this.taxonomyService.UpdateAllVisibleFieldContactControl(Number(this.productCategoryId),-1,t.value,n,this.isAddressType?this.selectedAddressType:this.isPhoneType?this.selectedPhoneType:this.isEmailType?this.selectedEmailType:"").pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)})}onAllEditableChanged(t){if(this.dataGrid()!=null&&this.dataGrid()?.instance&&(this.dataGrid()?.instance.clearSelection(),this.dataGrid()?.instance.option("focusedRowIndex",-1)),t.event==null)return;this.isAllEditable=t.value;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!=""&&(n=this.selectedPersonalControl),this.loading=!0,this.isDemoGraphicsProperty()?this.taxonomyService.UpdateAllEditableFieldDemographicsControl(Number(this.productCategoryId),this.isSystemProperty==!1?0:1,t.value,n).pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)}):this.taxonomyService.UpdateAllEditableFieldContactControl(Number(this.productCategoryId),-1,t.value,n,this.isAddressType?this.selectedAddressType:this.isPhoneType?this.selectedPhoneType:this.isEmailType?this.selectedEmailType:"").pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)})}onAllIncludeInSignupChanged(t){if(this.dataGrid()!=null&&this.dataGrid()?.instance&&(this.dataGrid()?.instance.clearSelection(),this.dataGrid()?.instance.option("focusedRowIndex",-1)),t.event==null)return;this.isAllIncludeInSignup=t.value;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!=""&&(n=this.selectedPersonalControl),this.loading=!0,this.isDemoGraphicsProperty()?this.taxonomyService.UpdateAllIncludeInSignupFieldDemographicsControl(Number(this.productCategoryId),this.isSystemProperty==!1?0:1,t.value,n).pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)}):this.taxonomyService.UpdateAllIsInSignupFieldContactControl(Number(this.productCategoryId),-1,t.value,n,this.isAddressType?this.selectedAddressType:this.isPhoneType?this.selectedPhoneType:this.isEmailType?this.selectedEmailType:"").pipe(Ti(this.destroyRef)).subscribe(e=>{this.loading=!1,e.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Properties are updated successfully"))},e=>{this.loading=!1,this.showErrorMessage(e.message)})}onRequireChanged(t,n){if(this.dataGrid()!=null){let e=this.dataGrid()?.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&(this.loading=!0,(this.isDemoGraphicsProperty()?this.taxonomyService.UpdateRequireFieldDemographicsControl(n,t.value):this.taxonomyService.UpdateRequireFieldPageControl(n,t.value)).pipe(Ti(this.destroyRef)).subscribe(i=>{this.loading=!1,i.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Required property is updated successfully"))},i=>{this.loading=!1,this.showErrorMessage(i.message)}))}onVisibleChanged(t,n){if(this.dataGrid()!=null){let e=this.dataGrid()?.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&(this.loading=!0,(this.isDemoGraphicsProperty()?this.taxonomyService.UpdateVisibleFieldDemographicsControl(n,t.value):this.taxonomyService.UpdateVisibleFieldPageControl(n,t.value)).pipe(Ti(this.destroyRef)).subscribe(i=>{this.loading=!1,i.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Visible property is updated successfully"))},i=>{this.loading=!1,this.showErrorMessage(i.message)}))}onEditableChanged(t,n){if(this.dataGrid()!=null){let e=this.dataGrid()?.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&(this.loading=!0,(this.isDemoGraphicsProperty()?this.taxonomyService.Upd
87ateEditableFieldDemographicsControl(n,t.value):this.taxonomyService.UpdateEditableFieldPageControl(n,t.value)).pipe(Ti(this.destroyRef)).subscribe(i=>{this.loading=!1,i.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Editable property is updated successfully"))},i=>{this.loading=!1,this.showErrorMessage(i.message)}))}onIncludeInSignupChanged(t,n){if(this.dataGrid()!=null){let e=this.dataGrid()?.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&(this.loading=!0,(this.isDemoGraphicsProperty()?this.taxonomyService.UpdateIncludeInSignupFieldDemographicsControl(n,t.value):this.taxonomyService.UpdateIsIncludeInFieldPageControl(n,t.value)).pipe(Ti(this.destroyRef)).subscribe(i=>{this.loading=!1,i.isSuccess&&(this.GetPropertyControls(),this.showSuccessMessage("Editable property is updated successfully"))},i=>{this.loading=!1,this.showErrorMessage(i.message)}))}onPropertySelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}resolveEditedPageControl(t){if(t?.key==null)return null;if(typeof t.key=="object"){let e=t.key;if(e.systemPageControlId>0)return this.systemPageControls.find(i=>i.systemPageControlId===e.systemPageControlId)??e}let n=Number(t.key);return n>0?this.systemPageControls.find(e=>e.systemPageControlId===n)??null:null}getEditedControlId(t){return t?.key==null?0:typeof t.key=="object"?Number(t.key.systemPageControlId)||0:Number(t.key)||0}processDemographicSaving(t){return B(this,null,function*(){let n=t.data,e=Object.keys(n),i=Object.values(n),d=this.resolveEditedPageControl(t);if(!d){this.showErrorMessage("Unable to identify the property being updated.");return}d[e[0]]=i[0].toString().trim();let c=new qi;c.demographicsTypeID=d.systemPageControlId,c.demographics=d.fieldCaption,c.controlType=d.formControlType,c.selectionType="",c.isActive=d.isActive,c.modifiedByUserId=this.userToken.userId,c.controlName=d.sourceColumnName,c.controlTooltip=d.formControlTooltip,c.controlDataType="",c.isReadOnly=d.isReadOnly,c.isVisible=d.isVisible,c.isRequired=d.isRequired,c.isCanEdit=d.isCanEdit,c.demographicsDetails=JSON.parse(JSON.stringify(d.systemPageControlDetails??[])),this.utilityService.UpdateDemographics(c).pipe(Ti(this.destroyRef)).subscribe(v=>{this.processResult(v,()=>{v&&v.isSuccess?(this.changes=[],this.dataGrid()!=null&&this.dataGrid()?.instance&&(this.dataGrid()?.instance.clearSelection(),this.dataGrid()?.instance.option("focusedRowIndex",-1)),this.GetPropertyControls(),this.showSuccessMessage("Property has been updated successfully")):this.showErrorMessage(v.message)})},v=>{this.showErrorMessage(v.message)})})}onPropertyInfoSaving(t){let n=t.changes[0];if(n&&n.key!=null){let e=!1,i=this.getEditedControlId(n);if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let c=Object.values(n.data).length>0?Object.values(n.data).toString():"";c.toString().trim().replace(/ /g,"")!=""?this.systemPageControls.filter(V=>V.fieldCaption.toLowerCase().replace(/ /g,"")==c.toString().toLowerCase().replace(/ /g,"")&&V.systemPageControlId!=i).length>0&&(e=!0):e=!0}e?this.GetPropertyControls():(t.cancel=!0,t.promise=this.isDemoGraphicsProperty()?this.processDemographicSaving(n):this.processSaving(n))}}processSaving(t){return B(this,null,function*(){let n=new oi;n.modifiedByUserId=this.userToken.userId,n.tenantSystemPageControls=[];let e=t.data,i=Object.keys(e),d=Object.values(e),c=this.resolveEditedPageControl(t);if(!c){this.showErrorMessage("Unable to identify the property being updated.");return}c[i[0]]=d[0].toString().trim(),n.tenantSystemPageControls.push(c),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(n).pipe(Ti(this.destroyRef)).subscribe(v=>{this.processResult(v,()=>{if(this.loading=!1,v&&v.isSuccess){if(this.changes=[],this.showSuccessMessage("Property has been updated successfully"),this.selectedPageControl=new mo,this.dataGrid()!=null){let V=this.dataGrid()?.instance;V.clearSelection(),V.option("focusedrowindex",-1)}this.GetPropertyControls()}else this.loading=!1,this.showErrorMessage(v.message)})},v=>{this.loading=!1,this.showErrorMessage(v.message)})})}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-manage-demographics-category"]],viewQuery:function(n,e){n&1&&(so(e.addValueGroup,Sm,5),so(e.targetDemographicsCategory,Pm,5),so(e.dataGrid,N,5),so(e.treeView,Sn,5)),n&2&&Oa(4)},standalone:!0,features:[xt,Q],decls:147,vars:94,consts:[["addValueGroup",""],["treeView",""],["dataGrid",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"title-breadcrumb__right"],[1,"dx-field","value","manage-property"],["label","Category","valueExpr","productCategoryId","displayExpr","categoryName","placeholder","Select",1,"drop-down-select-box",3,"valueChange","openedChange","onValueChanged","onOptionChanged","labelMode","value","o
87pened","inputAttr","showClearButton","dataSource"],[4,"dxTemplate","dxTemplateOf"],[1,"manage-content-outer",3,"ngClass"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],["class","properties-filter",4,"ngIf"],["class","empty-card",4,"ngIf"],["class","table-block property-table",4,"ngIf"],[1,"accordion-block"],["class","card-outer",4,"ngIf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[3,"visibleChange2","visibleEligibilityChange","DemographicsEligibilityListMappings","ProductCategoryId","AutoNo"],[1,"dx-popup-header"],[3,"visibleDemographicsChange","saveDemographicsControl","AddSystemPageControl","SystemPageControls","EditRowno"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"blue-color"],[3,"visibleChangeSidebar","save","isEditLabelValue","customFieldDetails","customFieldId","addOptionFrom"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],[4,"ngIf"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"dx-popup-footer",2,"padding-top","1rem"],["dataStructure","plain","keyExpr","productCategoryId","parentIdExpr","parentCategoryId","selectionMode","single","displayExpr","categoryName",1,"manage-property-drop-down-tree-view",3,"onContentReady","onItemClick","onItemSelectionChanged","dataSource","searchEnabled","selectByClick"],[3,"ngClass"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["valueExpr","strValue","displayExpr","strDisplay","placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],["class","dx-field filters",4,"ngIf"],[1,"properties-filter__right"],["class","toggle-btn",4,"ngIf"],["class","dx-field",4,"ngIf"],["valueExpr","code","displayExpr","addressType","placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","items","value","inputAttr"],["valueExpr","code","displayExpr","phoneType","placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","items","value","inputAttr"],["valueExpr","code","displayExpr","emailAddressType","placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","items","value","inputAttr"],[1,"toggle-btn"],[3,"valueChange","onValueChanged","value"],[1,"dx-field"],["href","javascript:void(0)",1,"edits",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.02518 1.00021V11.0506M1 6.02539H11.0504","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"empty-card"],[1,"table-block","property-table"],["id","gridContainer","keyExpr","systemPageControlId","noDataText"," ",1,"table-outer","editable",3,"onCellClick","onSelectionChanged","onSaving","showBorders","dataSource","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUp
87dating","changes"],["dataField","sourceColumnName","caption","Control Property","alignment","left",3,"fixed","minWidth","allowEditing"],["dataField","formControlType","caption","Control Type","alignment","left",3,"fixed","minWidth","allowEditing"],["dataField","parentCategoryName","caption","Category","alignment","left",3,"fixed","minWidth","allowEditing"],["dataField","fieldCaption","caption","Label Name","alignment","left","cellTemplate","LabelNameManage","cssClass","onhover",3,"fixed","minWidth"],["type","required","message","Label name is required"],["type","pattern","message","Special characters are not allowed",3,"pattern"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","ToolTip","alignment","left","cssClass","onhover",3,"minWidth","fixed"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",1,"system-property-cols",3,"allowEditing","minWidth","fixed"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],["dataField","isIncludeInSignup","cssClass","shortingnone","caption","Include in Signup","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplateSignup","cellTemplate","EditableBodyTemplateSignup",3,"fixed","allowEditing","width",4,"ngIf"],["dataField","action","caption","Action","type","buttons","cellTemplate","ActionTemplate",3,"width","fixed","visible"],["class","action-menu-btn",4,"dxTemplate","dxTemplateOf"],[1,"managesettings"],[1,"manage-with-icon"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"],["dataField","isIncludeInSignup","cssClass","shortingnone","caption","Include in Signup","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplateSignup","cellTemplate","EditableBodyTemplateSignup",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0; padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],[1,"action-menu-btn"],["icon","dot-icon","cssClass","TestingClass","displayExpr","text","text","","stylingMode","text",1,"overflow-menu",3,"onItemClick","showArrowIcon","useItemTextAsTitle","useSelectMode","items"],["class","table-block audience-table",4,"ngIf"],[1,"table-block","audience-table"],["id","gridContainer1",1,"table-outer",3,"onCellClick","dataSource","repaintChangesOnly"],["dataField","listName","caption","List Name","alignment","left",3,"fixed"],["dataField","listReturnType","caption","List Return Type","alignment","left",3,"fixed"],["dataField","listCategory","caption","List Category","alignment","left",3,"fixed"],["dataField","listStructure","caption","List Structure","alignment","left",3,"fixed"],["dataField","listType","caption","List Type","alignment","left",3,"fixed"],["dataField","action","caption","Action","type","buttons","cellTemplate","EligibilityActionTemplate",3,"fixed","width"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",3)(1,"div",4)(2,"ul",5)(3,"li",6)(4,"a",7),h(5,"Admin"),s()(),a(6,"li",6)(7,"a",7),h(8,"Property Management"),s()(),a(9,"li",6),h(10," Manage Property "),s()()(),a(11,"div",8)(12,"div",9)(13,"h1",10),h(14,"Manage Property for "),a(15,"span"),h(16),s()(),a(17,"div",11)(18,"div",12)(19,"dx-drop-down-box",13),_("valueChange",function(c){return p(i),C(e.treeBoxValue,c)||(e.treeBoxValue=c),u(c)})("openedChange",function(c){return p(i),C(e.isTreeBoxOpened,c)||(e.isTreeBoxOpened=c),u(c)}),f("onValueChanged",function(){return p(i),u(e.syncTreeViewSelection())})("onOptionChanged",function(c){return p(i),u(e.onTreeBoxOptionChanged(c))}),S(20,Rm,4,4,"div",14),s()()()()(),a(21,"div",15)(22,"form",16)(23,"div",17)(24,"dx-scroll-view",18)(25,"div",19)(26,"div",16)(27,"div",20)(28,"h2",21),h(29,"Property"),s(),a(30,"div",22)(31,"a",23),f("click",function(){return p(i),u(e.PropertyInformation())}),A(),a(32,"svg",24),b(33,"path",25),s()()()(),G(),a(34,"div",26),S(35,Nm,12,10,"div",27)(36,qm,6,0,"div",28)(37,ig,29,47,"div",29),s()()(),a(38,"div",30),S(39,sg,12,3,"div",31),s()()()()()(),a(40,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.AddListPopup,
87c)||(e.AddListPopup=c),u(c)}),a(41,"app-add-list-popup",33),f("visibleChange2",function(){return p(i),u(e.closeListPopup())})("visibleEligibilityChange",function(c){return p(i),u(e.UpdateEligibilityList(c))}),s()(),a(42,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.AddFieldsPopup,c)||(e.AddFieldsPopup=c),u(c)}),a(43,"div",34)(44,"h2"),h(45),s()(),a(46,"app-create-demographics-field-popup",35),f("visibleDemographicsChange",function(){return p(i),u(e.closeDemogrpahicsFieldsPopup())})("saveDemographicsControl",function(c){return p(i),u(e.UpdateDemographicsControl(c))}),s()(),a(47,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.deleteCustomFormFieldPopup,c)||(e.deleteCustomFormFieldPopup=c),u(c)}),a(48,"div",34)(49,"h2"),h(50,"Confirmation"),s()(),a(51,"div",36)(52,"p"),h(53,'Are you sure you want to delete "'),a(54,"strong"),h(55),s(),h(56,'" ?'),s()(),a(57,"div",37)(58,"dx-button",38),f("onClick",function(){return p(i),u(e.closeDeleteCustomFormFieldPopup())}),s(),a(59,"dx-button",39),f("onClick",function(){return p(i),u(e.DeleteCustomFormField())}),s()()(),a(60,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.deleteListPopup,c)||(e.deleteListPopup=c),u(c)}),a(61,"div",34)(62,"h2"),h(63,"Confirmation"),s()(),a(64,"div",36)(65,"p"),h(66,'Are you sure you want to delete "'),a(67,"strong"),h(68),s(),h(69,'" ?'),s()(),a(70,"div",37)(71,"dx-button",38),f("onClick",function(){return p(i),u(e.closeDeleteListPopup())}),s(),a(72,"dx-button",39),f("onClick",function(){return p(i),u(e.DeleteList())}),s()()(),a(73,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.ParentManageValuesSidebar,c)||(e.ParentManageValuesSidebar=c),u(c)}),a(74,"div",34)(75,"h2"),h(76,"Manage Values For "),a(77,"span",40),h(78),s()()(),a(79,"app-create-demographics-field-value-popup",41),f("visibleChangeSidebar",function(){return p(i),u(e.closeSidebar())})("save",function(c){return p(i),u(e.saveCustomFieldDetails(c))}),s()(),a(80,"div",42)(81,"div",43)(82,"div",44)(83,"h2"),h(84,"Manage Values for "),a(85,"span",40),h(86),s()()(),a(87,"div",45)(88,"div",46)(89,"dx-scroll-view",18),S(90,lg,10,1,"div",47),s()(),a(91,"div",48)(92,"a",49),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(93,"svg",50),b(94,"circle",51)(95,"path",52),s(),h(96," Add Value "),s()()(),G(),a(97,"div",53)(98,"a",54),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(99," Close "),s()()()(),a(100,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(101,"div",34),S(102,dg,4,1,"h2",55)(103,cg,4,1,"h2",55),s(),a(104,"div",36)(105,"form",56)(106,"dx-validation-group",null,0)(108,"dx-form",57)(109,"dxi-item")(110,"div",58)(111,"div",59)(112,"dx-text-box",60),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(113,"dx-validator"),b(114,"dxi-validation-rule",61)(115,"dxi-validation-rule",62),s()()()()()()()()(),a(116,"div",37)(117,"dx-button",63),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(118,pg,1,0,"dx-button",64)(119,ug,1,0,"dx-button",65)(120,mg,1,0,"dx-button",66),s()(),a(121,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(122,"div",34)(123,"h2"),h(124,"Confirmation"),s()(),a(125,"div",36)(126,"p"),h(127,"Are you sure you want to delete "),a(128,"strong"),h(129),s(),h(130," ?"),s()(),a(131,"div",67)(132,"dx-button",38),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),a(133,"dx-button",39),f("onClick",function(){return p(i),u(e.removeLookupValueDetails(e.selectedLookupTableValue))}),s()()(),a(134,"dx-popup",32),_("visibleChange",function(c){return p(i),C(e.deleteCustomFormFieldPopup,c)||(e.deleteCustomFormFieldPopup=c),u(c)}),a(135,"div",34)(136,"h2"),h(137,"Confirmation"),s()(),a(138,"div",36)(139,"p"),h(140,'Are you sure you want to delete "'),a(141,"strong"),h(142),s(),h(143,'" ?'),s()(),a(144,"div",37)(145,"dx-button",38),f("onClick",function(){return p(i),u(e.closeDeleteCustomFormFieldPopup())}),s(),a(146,"dx-button",39),f("onClick",function(){return p(i),u(e.DeleteCustomFormField())}),s()()()}
87n&2&&(o(16),R(e.categoryTreeName()),o(3),l("labelMode",e.labelMode),x("value",e.treeBoxValue)("opened",e.isTreeBoxOpened),l("inputAttr",I(84,Mm))("showClearButton",!0)("dataSource",e.productCategories()),o(),l("dxTemplateOf","content"),o(),l("ngClass",e.isDemoGraphicsProperty()?"demographics":"without-demographics"),o(4),l("ngClass",e.propertyCollapseExpand?"collapse":"expand"),o(10),l("ngIf",e.totalDemographicsControl()>0||e.isFilter()),o(),l("ngIf",e.isDemoGraphicsProperty()&&e.totalDemographicsControl()==0&&!e.isFilter()),o(),l("ngIf",e.ShowPropertyGrid()),o(2),l("ngIf",e.isDemoGraphicsProperty()),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.AddListPopup),l("wrapperAttr",I(85,Vm)),o(),l("DemographicsEligibilityListMappings",e.demographicsEligibilityListMappings)("ProductCategoryId",e.productCategoryId)("AutoNo",e.autoNo),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.AddFieldsPopup),l("wrapperAttr",I(86,Em)),o(3),O("",e.editRowno>0?"Edit":"Add"," Property"),o(),l("AddSystemPageControl",e.addSystemPageControl)("SystemPageControls",e.systemPageControls)("EditRowno",e.editRowno),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deleteCustomFormFieldPopup),l("wrapperAttr",I(87,_a)),o(8),R(e.selectedPageControl==null?null:e.selectedPageControl.fieldCaption),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deleteListPopup),l("wrapperAttr",I(88,_a)),o(8),R(e.selectedEligibility==null?null:e.selectedEligibility.listName),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.ParentManageValuesSidebar),l("wrapperAttr",I(89,Tm)),o(5),R(e.selectedCustomField==null?null:e.selectedCustomField.demographics),o(),l("isEditLabelValue",e.isEditCustomDetail)("customFieldDetails",e.parenttempcustomFieldDetails)("customFieldId",e.selectedCustomField.demographicsTypeID)("addOptionFrom",e.AddOptionFrom),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(90,Dm)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(91,Im)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(92,Am)),o(8),R(e.deleteValue),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deleteCustomFormFieldPopup),l("wrapperAttr",I(93,_a)),o(8),R(e.selectedPageControl==null?null:e.selectedPageControl.fieldCaption))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Fi,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,jn,be,yn,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,Sn,J,te,ee,$,X,K,Y,Cs,_s,Qo],styles:['.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:110px;padding-left:1rem;padding-right:1.5rem}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%]{margin-left:-5px!important}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%] .dx-button-text[_ngcontent-%COMP%]{text-overflow:inherit}.title-breadcrumb__right[_ngcontent-%COMP%]{display:flex;align-items:center}.title-breadcrumb__right[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{margin:.7rem 0 0 1.5rem!important;max-width:320px}.title-breadcrumb__right[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-floating-label[_ngcontent-%COMP%], .title-breadcrumb__right[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-editor-outlined.dx-texteditor-with-label[_ngcontent-%COMP%]{margin-top:0}.title-breadcrumb[_ngcontent-%COMP%] .title-breadcrumb__title[_ngcontent-%COMP%]{width:auto}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 230px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.properties-filter__right[_ngcontent-%COMP%]{display:flex;gap:2rem}.properties-filter__right[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%]{min-width:230px}.manage-with-icon[_ngcontent-%COMP%]{display:flex}.parent-node[_ngcontent-%COMP%]{font-weight:700}']})}}return r})();var Rn=class{};var gg=["addValueGroup"],hg=()=>({"aria-label":"Entity"}),fg=()=>({id:"elementId",class:"popup-outer add-value-popup w-600"}),Cg=()=>({"aria-label":"ControlName"}),ys=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"});function _g(r,g){if(r&1){let t=y();a(0,"div",44)(1,"span",45),h(2),s(),a(3,"div",46)(4,"a",47),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",48),b(6,"path",49),s()(),G(),a(7,"a",50),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteValuePopupEvent(e))}),A(),a(8,"svg",48),b(9,"path",51),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.addressType)}}function yg(r,g){if(r&1){let t=y();a(0,"dx-button",52),f("onClick",function(e){p(t);let i=m();return u(i.AddAddressValue(e,!0))}),s()}}function xg(r,g){if(r&1){let t=y();a(0,"dx-button",53),f("onClick",function(e){p(t);let i=m();return u(i.AddAddressValue(e,!1))}),s()}}function vg(r,g){if(r&1){let t=y();a(0,"dx-button",54),f("onClick",function(){p(t);let e=m();return u(e.EditConfirmValuePopupEvent())}),s()}}/localhost/.test(document.location.host)||void 0;var xs=(()=>{class r extends wt{constructor(t,n,e){super(),this.webStorageService=t,this.router=n,this.utilityService=e,this.ValueValidator=[{type:"required",message:"Adddress type is required"}],this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.addressTypes=[],this.isEditmode=!1,this.pageHeader="Add",this.selectedAddressType=new Rn,this.confirmEdit=!1,this.commonPropertiesType=[],this.commonPropertiesType=this.commonPropertiesTypes,this.selectedValue="Address Type",this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.customCallback=this.customCallback.bind(this),this.GetAllAddressTypes()}GetAllAddressTypes(){this.addressTypes=[],this.loading=!0,this.utilityService.GetAllAddressType().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?this.addressTypes=t.responseModel:(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onValueChanged({value:t}){t=="Address Type"?this.router.navigate(["admin/client/setting/properties/address-configuration"]):t=="Email Address Type"?this.router.navigate(["admin/client/setting/properties/email-configuration"]):t=="Phone Type"?this.router.navigate(["admin/client/setting/properties/phone-configuration"]):t=="Demographics Category"?this.router.navigate(["admin/client/setting/properties/demographics-category"]):this.router.navigate(["admin/client/setting/properties/address-configuration"])}AddAddressValue(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new Rn;i.addressType=this.addressValue,i.addressTypeID=0,i.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdateAddressType(i).pipe(w(this.unsubscriber)).subscribe(d=>{this.processResult(d,()=>{this.loading=!1,d&&d.isSuccess?(this.showSuccessMessage("Address Type has been added successfully"),this.GetAllAddressTypes(),this.addressValue=null,this.addValueGroup.instance.reset(),n||(this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))})},d=>{this.loading=!1,this.showErrorMessage(d.message)})}EditLookupValuePopupEvent(t){this.selectedAddressType=t,this.addressValue=this.selectedAddressType.addressType,this.isEditmode=!0,this.pageHeader="Edit",this.addValuePopupPopup=!0}EditAddressValue(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedAddressType.addressType=this.addressValue,this.selectedAddressType.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdateAddressType(this.selectedAddressType).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?(this.showSuccessMessage("Address Type has been updated successfully"),this.confirmEdit=!1,this.GetAllAddressTypes(),this.selectedAddressType=new Rn,this.addressValue=null,this.isEditmode=!1,this.pageHeader="Add",this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.isEditmode=!1,this.pageHeader="Add",this.addValuePopupPopup=!0}closeAddValuePopup(){this.addValueGroup.instance.reset(),this.GetAllAddressTypes(),this.addValuePopupPopup=!1}DeleteValuePopupEvent(t){this.selectedAddressType=t,this.deleteProperty=t.addressType,this.deletePopup=!0}closeDeleteValuePopup(){this.selectedAddressType=new Rn,this.deleteProperty=null,this.deletePopup=!1}DeleteAddressType(){this.selectedAddressType.addressTypeID>0&&(this.loading=!0,this.utilityService.ActiveInactiveAddressType(this.selectedAddressType.addressTypeID,!1).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?(this.showSuccessMessage("Address Type has been deleted successfully"),this.GetAllAddressTypes(),this.selectedAddressType=new Rn,this.deleteProperty=null,this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}EditConfirmValuePopupEvent(){this.addValueGroup.instance.validate().isValid&&
87(this.confirmEdit=!0)}closeConfirmEditPopup(){this.confirmEdit=!1}customCallback(t){let n=this.addressValue;return n&&this.addressTypes!=null&&this.addressTypes.length>0?!this.addressTypes.find(i=>i.addressType.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.addressTypeID!=this.selectedAddressType.addressTypeID):!0}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(St),k(di))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-address-configuration"]],viewQuery:function(n,e){if(n&1&&U(gg,5),n&2){let i;H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:84,vars:36,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb","max-width"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Type","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","labelMode","dataSource","value","inputAttr"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block","max-width"],[1,"card-header"],[1,"card-header__title"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block","pb-10"],[1,"form-outer"],["id","form",3,"formData"],[1,"contact-popup",2,"margin-bottom","1rem"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","required","message","Address type is required"],["type","custom","message","Address type is already exists",3,"validationCallback"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"dx-popup-content-block"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Common Property"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Common Property"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.selectedValue,c)||(e.selectedValue=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onValueChanged(c))}),s()()()(),a(17,"div",11)(18,"div",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Address Type"),s(),a(26,"a",18),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(27,"svg",19),b(28,"circle",20)(29,"path",21),s(),h(30," Add Value "),s()(),G(),a(31,"div",22)(32,"div",23),S(33,_g,10,1,"div",24),s()()()()()()()()(),a(34,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(35,"div",26)(36,"h2"),h(37),s()(),a(38,"div",27)(39,"dx-validation-group",null,0)(41,"form",28)(42,"dx-form",29)(43,"dxi-item")(44,"div",30)(45,"div",31)(46,"div",32)(47,"dx-text-box",33),_("valueChange",function(c){return p(i),C(e.addressValue,c)||(e.addressValue=c),u(c)}),a(48,"dx-validator"),b(49,"dxi-validation-rule",34)(50,"dxi-validation-rule",35),s()()()()()()()()()(),a(51,"div",36)(52,"dx-button",37),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(53,yg,1,0,"dx-button",38)(54,xg,1,0,"dx-button",39)(55,vg,1,0,"dx-button",40),s()(),a(56,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(57,"div",26)(58,"h2"),h(59,"Confirmation"),s()(),a(60,"div",41)(61,"p"),h(62,"Are you sure you want to delete "),a(63,"strong"),h(64),s(),h(65," ?"),s()(),a(66,"div",36)(67,"dx-button",42),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),a(68,"dx-button",43),f("onClick",function(){return p(i),u(e.DeleteAddressType())}),s()()(),a(69,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.confirmEdit,c)||(e.confirmEdit=c),u(c)}),a(70,"div",26)(71,"h2"),h(72,"Confirmation"),s()(),a(73,"div",41)(74,"p"),h(75,'New HubSpot properties will be created on edit for "'),a(76,"strong"),h(77),s(),h(78,'".'),b(79,"br"),h(80,"Are you sure you want to proceed?"),s()(),a(81,"div",36)(82,"dx-button",42),f("onClick",function(){return p(i),u(e.closeConfirmEditPopup())}),s(),a(83,"dx-button",43),f("onClick",function(){return p(i),u(e.EditAddressValue())}),s()()()}n&2&&(o(16),l("labelMode",e.labelMode)("dataSource",e.commonPropertiesType),x("value",e.selectedValue),l("inputAttr",I(31,hg)),o(17),l("ngForOf",e.addressTypes),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(32,fg)),o(3),O("",e.pageHeader," Value for Address Type"),o(5),l("formData",e.formData),o(5),l("labelMode",e.labelMode),x("value",e.addressValue),l("inputAttr",I(33,Cg)),o(3),l("validationCallback",e.customCallback),o(3),l("ngIf",!e.isEditmode),o(),l("ngIf",!e.isEditmode),o(),l("ngIf",e.isEditmode),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(34,ys)),o(8),R(e.deleteProperty),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.confirmEdit),l("wrapperAttr",I(35,ys)),o(8),R(e.selectedAddressType.addressType))},dependencies:[bt,vt,Gt,Pt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb.max-width[_ngcontent-%COMP%]{max-width:1312px}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0;color:var(--secondary-color);font-weight:var(--font-weight-500);white-space:nowrap}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 207px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}@media (max-width: 1440px){.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{height:calc(100vh - 176px)}}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:1rem 0 0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__item[_ngcontent-%COMP%]:last-child{border:none}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}"]})}}return r})();var On=class{constructor(){this.defaultEmailtypeForContactProfileEmail=!1}};var bg=["addValueGroup"],wg=()=>({"aria-label":"Entity"}),Sg=()=>({id:"elementId",class:"popup-outer add-value-popup w-600"}),Pg=()=>({"aria-label":"ControlName"}),Mg=()=>({"aria-label":"checked"}),vs=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"});function Vg(r,g){r&1&&(a(0,"span",57),h(1,"Default"),s())}function Eg(r,g){if(r&1){let t=y();a(0,"div",48)(1,"span",49),h(2),S(3,Vg,2,0,"span",50),s(),a(4,"div",51)(5,"a",52),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(6,"svg",53),b(7,"path",54),s()(),G(),a(8,"a",55),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteValuePopupEvent(e))}),A(),a(9,"svg",53),b(10,"path",56),s()()()()}if(r&2){let t=g.$implicit;o(2),O(" ",t.emailAddressType," "),o(),l("ngIf",t.defaultEmailtypeForContactProfileEmail)}}function Tg(r,g){if(r&1){let t=y();a(0,"dx-button",58),f("onClick",function(e){p(t);let i=m();return u(i.AddEmailAddressValue(e,!0))}),s()}}function Dg(r,g){if(r&1){let t=y();a(0,"dx-button",59),f("onClick",function(e){p(t);let i=m();return u(i.AddEmailAddressValue(e,!1))}),s()}}function Ig(r,g){if(r&1){let t=y();a(0,"dx-button",60),f("onClick",function(){p(t);let e=m();return u(e.EditConfirmValuePopupEvent())}),s()}}/localhost/.test(document.location.host)||void 0;var bs=(()=>{class r extends wt{constructor(t,n,e){super(),this.utilityService=t,this.router=n,this.webStorageService=e,this.ValueValidator=[{type:"required",message:"Email adddress type is required"}],this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.deletePopup=!1,this.addValuePopupPopup=!1,this.emailAddressTypes=[],this.selectedEmailAddressType=new On,this.isDefaultEmail=!1,this.pageHeader="Add",this.isEditmode=!1,this.confirmEdit=!1,this.commonPropertiesType=[],this.commonPropertiesType=this.commonPropertiesTypes,this.selectedValue="Email Address Type",this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.customCallback=this.customCallback.bind(this),this.GetAllEmailAddressTypes()}closePopup(){this.deletePopup=!1}GetAllEmailAddressTypes(){this.emailAddressTypes=[],this.loading=!0,this.utilityService.GetAllEmailAddressType().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?this.emailAddressTypes=t.responseModel:(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onValueChanged({value:t}){t=="Address Type"?this.router.navigate(["admin/client/setting/properties/address-configuration"]):t=="Email Address Type"?this.router.navigate(["admin/client/setting/properties/email-configuration"]):t=="Phone Type"?this.router.navigate(["admin/client/setting/properties/phone-configuration"]):t=="Demographics Category"?this.router.navigate(["admin/client/setting/properties/demographics-category"]):this.router.navigate(["admin/client/setting/properties/email-configuration"])}EditLookupValuePopupEvent(t){this.selectedEmailAddressType=t,this.emailAddressValue=this.selectedEmailAddressType.emailAddressType,this.isDefaultEmail=this.selectedEmailAddressType.defaultEmailtypeForContactProfileEmail,this.isEditmode=!0,this.pageHeader="Edit",this.addValuePopupPopup=!0}AddEmailAddressValue(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new On;i.emailAddressType=this.emailAddressValue,i.defaultEmailtypeForContactProfileEmail=this.isDefaultEmail,i.emailAddressTypesID=0,i.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdateEmailAddressType(i).pipe(w(this.unsubscriber)).subscribe(d=>{this.processResult(d,()=>{this.loading=!1,d&&d.isSuccess?(this.showSuccessMessage("Email Type has been added successfully"),this.GetAllEmailAddressTypes(),this.emailAddressValue=null,this.isEditmode=!1,this.addValueGroup.instance.reset(),n||(this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))})},d=>{this.loading=!1,this.showErrorMessage(d.message)})}EditEmailAddressValue(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedEmailAddressType.emailAddressType=this.emailAddressValue,this.selectedEmailAddressType.defaultEmailtypeForContactProfileEmail=this.isDefaultEmail,this.selectedEmailAddressType.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdateEmailAddressType(this.selectedEmailAddressType).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?(this.confirmEdit=!1,this.showSuccessMessage("Email Type has been updated successfully"),this.GetAllEmailAddressTypes(),this.selectedEmailAddressType=new On,this.emailAddressValue=null,this.isDefaultEmail=!1,this.isEditmode=!1,this.pageHeader="Add",this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.isEditmode=!1,this.pageHeader="Add",this.addValuePopupPopup=!0}closeAddValuePopup(){this.addValueGroup.instance.reset(),this.GetAllEmailAddressTypes(),this.addValuePopupPopup=!1}DeleteValuePopupEvent(t){if(this.selectedEmailAddressType=t,t.defaultEmailtypeForContactProfileEmail){this.showErrorMessage("This is the default email address. To delete this email address, please assign default address to another email address.");return}this.deleteProperty=t.emailAddressType,this.deletePopup=!0}closeDeleteValuePopup(){this.selectedEmailAddressType=new On,this.deleteProperty=null,this.deletePopup=!1}DeleteEmailAddressType(){this.selectedEmailAddressType.emailAddressTypesID>0&&(this.loading=!0,this.utilityService.ActiveInactiveEmailAddressType(this.selectedEmailAddressType.emailAddressTypesID,!1).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?(this.showSuccessMessage("Email Type has been deleted successfully"),this.GetAllEmailAddressTypes(),this.selectedEmailAddressType=new On,this.deleteProperty=null,this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}EditConfirmValuePopupEvent(){if(this.addValueGroup.instance.validate().isValid){if(this.selectedEmailAddressType.defaultEmailtypeForContactProfileEmail&&!this.isDefaultEmail){this.showErrorMessage("Please assign at least one default email address.");return}this.confirmEdit=!0}}closeConfirmEditPopup(){this.confirmEdit=!1}customCallback(t){let n=this.emailAddressValue;return n&&this.emailAddressTypes!=null&&this.emailAddressTypes.length>0?!this.emailAddressTypes.find(i=>i.emailAddressType.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.emailAddressTypesID!=this.selectedEmailAddressType.emailAddressTypesID):!0}static{this.\u0275fac=function(n){return new(n||r)(k(di),k(St),k(yt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-email-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(bg,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:88,vars:40,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb","max-width"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Type","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","labelMode","dataSource","value","inputAttr"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block","max-width"],[1,"card-header"],[1,"card-header__title"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block","pb-10"],[1,"form-outer"],["id","form",3,"formData"],[1,"contact-popup",2,"margin-bottom","1rem"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],[3,"validationRules"],["type","required","message","Email address type is required"],["type","custom","message","Email address type is already exists",3,"validationCallback"],[1,"full-width","checkbox-block"],[1,"dx-field-value","checkbox"],["text","Default Email",3,"valueChange","value","elementAttr"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"dx-popup-content-block"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"manage-values__item"],[1,"manage-values__label"],["class","badge",4,"ngIf"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],[1,"badge"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Common Property"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Common Property"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.selectedValue,c)||(e.selectedValue=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onValueChanged(c))}),s()()()(),a(17,"div",11)(18,"div",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Email Address Type"),s(),a(26,"a",18),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(27,"svg",19),b(28,"circle",20)(29,"path",21),s(),h(30," Add Value "),s()(),G(),a(31,"div",22)(32,"div",23),S(33,Eg,11,2,"div",24),s()()()()()()()()(),a(34,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(35,"div",26)(36,"h2"),h(37),s()(),a(38,"div",27)(39,"form",28)(40,"dx-validation-group",null,0)(42,"dx-form",29)(43,"dxi-item")(44,"div",30)(45,"div",31)(46,"div",32)(47,"dx-text-box",33),_("valueChange",function(c){return p(i),C(e.emailAddressValue,c)||(e.emailAddressValue=c),u(c)}),b(48,"dx-validator",34),a(49,"dx-validator"),b(50,"dxi-validation-rule",35)(51,"dxi-validation-rule",36),s()()(),a(52,"div",37)(53,"div",38)(54,"dx-check-box",39),_("valueChange",function(c){return p(i),C(e.isDefaultEmail,c)||(e.isDefaultEmail=c),u(c)}),s()()()()()()()()()(),a(55,"div",40)(56,"dx-button",41),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(57,Tg,1,0,"dx-button",42)(58,Dg,1,0,"dx-button",43)(59,Ig,1,0,"dx-button",44),s()(),a(60,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(61,"div",26)(62,"h2"),h(63,"Confirmation"),s()(),a(64,"div",45)(65,"p"),h(66,"Are you sure you want to delete "),a(67,"strong"),h(68),s(),h(69," ?"),s()(),a(70,"div",40)(71,"dx-button",46),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),a(72,"dx-button",47),f("onClick",function(){return p(i),u(e.DeleteEmailAddressType())}),s()()(),a(73,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.confirmEdit,c)||(e.confirmEdit=c),u(c)}),a(74,"div",26)(75,"h2"),h(76,"Confirmation"),s()(),a(77,"div",45)(78,"p"),h(79,'New HubSpot properties will be created on edit for "'),a(80,"strong"),h(81),s(),h(82,'".'),b(83,"br"),h(84,"Are you sure you want to proceed?"),s()(),a(85,"div",40)(86,"dx-button",46),f("onClick",function(){return p(i),u(e.closeConfirmEditPopup())}),s(),a(87,"dx-button",47),f("onClick",function(){return p(i),u(e.EditEmailAddressValue())}),s()()()}n&2&&(o(16),l("labelMode",e.labelMode)("dataSource",e.commonPropertiesType),x("value",e.selectedValue),l("inputAttr",I(34,wg)),o(17),l("ngForOf",e.emailAddressTypes),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(35,Sg)),o(3),O("",e.pageHeader," Value for Email Address Type"),o(5),l("formData",e.formData),o(5),l("labelMode",e.labelMode),x("value",e.emailAddressValue),l("inputAttr",I(36,Pg)),o(),l("validationRules",e.ValueValidator),o(3),l("validationCallback",e.customCallback),o(3),x("value",e.isDefaultEmail),l("elementAttr",I(37,Mg)),o(3),l("ngIf",!e.isEditmode),o(),l("ngIf",!e.isEditmode),o(),l("ngIf",e.isEditmode),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(38,vs)),o(8),R(e.deleteProperty),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.confirmEdit),l("wrapperAttr",I(39,vs)),o(8),R(e.selectedEmailAddressType.emailAddressType))},dependencies:[bt,vt,Gt,Pt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,_n,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb.max-width[_ngcontent-%COMP%]{max-width:1312px}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0;color:var(--secondary-color);font-weight:var(--font-weight-500);white-space:nowrap}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 207px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:1rem 0 0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__item[_ngcontent-%COMP%]:last-child{border:none}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.manage-values[_ngcontent-%COMP%] .badge[_ngcontent-%COMP%]{display:inline-block;border-radius:100px;font:var(--font-weight-600) var(--font-13) var(--font-family);line-height:normal;padding:.3rem 1.5rem .4rem;margin:0 .7rem .7rem 0;border:1px solid var(--border-color);color:var(--tag-color)}"]})}}return r})();var Ag=["addValueGroup"],Lg=()=>({"aria-label":"Entity"}),kg=()=>({id:"elementId",class:"popup-outer add-value-popup w-600"}),Rg=()=>({"aria-label":"ControlName"}),ws=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"});function Og(r,g){if(r&1){let t=y();a(0,"div",44)(1,"span",45),h(2),s(),a(3,"div",46)(4,"a",47),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",48),b(6,"path",49),s()(),G(),a(7,"a",50),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteValuePopupEvent(e))}),A(),a(8,"svg",48),b(9,"path",51),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.phoneType)}}function Gg(r,g){if(r&1){let t=y();a(0,"dx-button",52),f("onClick",function(e){p(t);let i=m();return u(i.AddPhoneValue(e,!0))}),s()}}function Bg(r,g){if(r&1){let t=y();a(0,"dx-button",53),f("onClick",function(e){p(t);let i=m();return u(i.AddPhoneValue(e,!1))}),s()}}function Fg(r,g){if(r&1){let t=y();a(0,"dx-button",54),f("onClick",function(){p(t);let e=m();return u(e.EditConfirmValuePopupEvent())}),s()}}/localhost/.test(document.location.host)||void 0;var Ss=(()=>{class r extends wt{constructor(t,n,e){super(),this.utilityService=t,this.router=n,this.webStorageService=e,this.ValueValidator=[{type:"required",message:"Email adddress type is required"}],this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.addValuePopupPopup=!1,this.deletePopup=!1,this.phoneTypes=[],this.selectedPhoneType=new Qn,this.isEditmode=!1,this.pageHeader="Add",this.confirmEdit=!1,this.commonPropertiesType=[],this.commonPropertiesType=this.commonPropertiesTypes,this.selectedValue="Phone Type",this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.customCallback=this.customCallback.bind(this),this.GetAllPhoneTypes()}GetAllPhoneTypes(){this.phoneTypes=[],this.loading=!0,this.utilityService.GetAllPhoneType().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?this.phoneTypes=t.responseModel:(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onValueChanged({value:t}){t=="Address Type"?this.router.navigate(["admin/client/setting/properties/address-configuration"]):t=="Email Address Type"?this.router.navigate(["admin/client/setting/properties/email-configuration"]):t=="Phone Type"?this.router.navigate(["admin/client/setting/properties/phone-configuration"]):t=="Demographics Category"?this.router.navigate(["admin/client/setting/properties/demographics-category"]):this.router.navigate(["admin/client/setting/properties/phone-configuration"])}EditLookupValuePopupEvent(t){this.selectedPhoneType=t,this.phoneValue=this.selectedPhoneType.phoneType,this.isEditmode=!0,this.pageHeader="Edit",this.addValuePopupPopup=!0}EditPhoneValue(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedPhoneType.phoneType=this.phoneValue,this.selectedPhoneType.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdatePhoneType(this.selectedPhoneType).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?(this.showSuccessMessage("Phone Type has been updated successfully"),this.confirmEdit=!1,this.GetAllPhoneTypes(),this.selectedPhoneType=new Qn,this.phoneValue=null,this.isEditmode=!1,this.pageHeader="Add",this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}AddPhoneValue(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new Qn;i.phoneType=this.phoneValue,i.phoneTypeID=0,i.modifiedByUserId=this.userToken.userId,this.loading=!0,this.utilityService.AddUpdatePhoneType(i).pipe(w(this.unsubscriber)).subscribe(d=>{this.processResult(d,()=>{this.loading=!1,d&&d.isSuccess?(this.showSuccessMessage("Phone Type has been added successfully"),this.GetAllPhoneTypes(),this.phoneValue=null,this.addValueGroup.instance.reset(),n||(this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))})},d=>{this.loading=!1,this.showErrorMessage(d.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.isEditmode=!1,this.pageHeader="Add",this.addValuePopupPopup=!0}closeAddValuePopup(){this.addValueGroup.instance.reset(),this.GetAllPhoneTypes(),this.addValuePopupPopup=!1}DeleteValuePopupEvent(t){this.selectedPhoneType=t,this.deleteProperty=t.phoneType,this.deletePopup=!0}closeDeleteValuePopup(){this.selectedPhoneType=new Qn,this.deleteProperty=null,this.deletePopup=!1}DeletePhoneType(){this.selectedPhoneType.phoneTypeID>0&&(this.loading=!0,this.utilityService.ActiveInactivePhoneType(this.selectedPhoneType.phoneTypeID,!1).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?(this.showSuccessMessage("Phone Type has been deleted successfully"),this.GetAllPhoneTypes(),this.selectedPhoneType=new Qn,this.deleteProperty=null,this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}EditConfirmValuePopupEvent(){this.addValueGroup.instance.validate().isValid&&
87(this.confirmEdit=!0)}closeConfirmEditPopup(){this.confirmEdit=!1}customCallback(t){let n=this.phoneValue;return n&&this.phoneTypes!=null&&this.phoneTypes.length>0?!this.phoneTypes.find(i=>i.phoneType.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.phoneTypeID!=this.selectedPhoneType.phoneTypeID):!0}static{this.\u0275fac=function(n){return new(n||r)(k(di),k(St),k(yt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-phone-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(Ag,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:84,vars:36,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb","max-width"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Type","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","labelMode","dataSource","value","inputAttr"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block","max-width"],[1,"card-header"],[1,"card-header__title"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block","pb-10"],[1,"form-outer"],["id","form",3,"formData"],[1,"contact-popup",2,"margin-bottom","1rem"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","required","message","Phone type is required"],["type","custom","message","Phone type is already exists",3,"validationCallback"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"dx-popup-content-block"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Common Property"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Common Property"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.selectedValue,c)||(e.selectedValue=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onValueChanged(c))}),s()()()(),a(17,"div",11)(18,"div",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Phone Type"),s(),a(26,"a",18),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(27,"svg",19),b(28,"circle",20)(29,"path",21),s(),h(30," Add Value "),s()(),G(),a(31,"div",22)(32,"div",23),S(33,Og,10,1,"div",24),s()()()()()()()()(),a(34,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(35,"div",26)(36,"h2"),h(37),s()(),a(38,"div",27)(39,"form",28)(40,"dx-validation-group",null,0)(42,"dx-form",29)(43,"dxi-item")(44,"div",30)(45,"div",31)(46,"div",32)(47,"dx-text-box",33),_("valueChange",function(c){return p(i),C(e.phoneValue,c)||(e.phoneValue=c),u(c)}),a(48,"dx-validator"),b(49,"dxi-validation-rule",34)(50,"dxi-validation-rule",35),s()()()()()()()()()(),a(51,"div",36)(52,"dx-button",37),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(53,Gg,1,0,"dx-button",38)(54,Bg,1,0,"dx-button",39)(55,Fg,1,0,"dx-button",40),s()(),a(56,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(57,"div",26)(58,"h2"),h(59,"Confirmation"),s()(),a(60,"div",41)(61,"p"),h(62,"Are you sure you want to delete "),a(63,"strong"),h(64),s(),h(65," ?"),s()(),a(66,"div",36)(67,"dx-button",42),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),a(68,"dx-button",43),f("onClick",function(){return p(i),u(e.DeletePhoneType())}),s()()(),a(69,"dx-popup",25),_("visibleChange",function(c){return p(i),C(e.confirmEdit,c)||(e.confirmEdit=c),u(c)}),a(70,"div",26)(71,"h2"),h(72,"Confirmation"),s()(),a(73,"div",41)(74,"p"),h(75,'New HubSpot properties will be created on edit for "'),a(76,"strong"),h(77),s(),h(78,'".'),b(79,"br"),h(80,"Are you sure you want to proceed?"),s()(),a(81,"div",36)(82,"dx-button",42),f("onClick",function(){return p(i),u(e.closeConfirmEditPopup())}),s(),a(83,"dx-button",43),f("onClick",function(){return p(i),u(e.EditPhoneValue())}),s()()()}n&2&&(o(16),l("labelMode",e.labelMode)("dataSource",e.commonPropertiesType),x("value",e.selectedValue),l("inputAttr",I(31,Lg)),o(17),l("ngForOf",e.phoneTypes),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(32,kg)),o(3),O("",e.pageHeader," Value for Phone Type"),o(5),l("formData",e.formData),o(5),l("labelMode",e.labelMode),x("value",e.phoneValue),l("inputAttr",I(33,Rg)),o(3),l("validationCallback",e.customCallback),o(3),l("ngIf",!e.isEditmode),o(),l("ngIf",!e.isEditmode),o(),l("ngIf",e.isEditmode),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(34,ws)),o(8),R(e.deleteProperty),o(5),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.confirmEdit),l("wrapperAttr",I(35,ws)),o(8),R(e.selectedPhoneType.phoneType))},dependencies:[bt,vt,Gt,Pt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb.max-width[_ngcontent-%COMP%]{max-width:1312px}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0;color:var(--secondary-color);font-weight:var(--font-weight-500);white-space:nowrap}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 207px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:1rem 0 0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__item[_ngcontent-%COMP%]:last-child{border:none}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}"]})}}return r})();var Gn=class{};var _i=(()=>{class r{constructor(t){this.router=t}OnChangeEntity(t,n){let e=t.find(i=>i.entityID==n);if(!(e==null||e==null))switch(e.name){case z.Contact:this.router.navigate(["admin/client/setting/properties/contacts-configuration"]);break;case z.Company:this.router.navigate(["admin/client/setting/properties/companies-configuration"]);break;case z.Groups:this.router.navigate(["admin/client/setting/properties/groups-configuration"]);break;case z.Memberships:this.router.navigate(["admin/client/setting/properties/memberships-configuration"]);break;case z.Events:this.router.navigate(["admin/client/setting/properties/events-configuration"]);break;case z.List:this.router.navigate(["admin/client/setting/properties/list-configuration"]);break;case z.Benefits:this.router.navigate(["admin/client/setting/properties/benefits-configuration"]);break;case z.Tax:this.router.navigate(["admin/client/setting/properties/tax-configuration"]);break;case z.FiscalPeriod:this.router.navigate(["admin/client/setting/properties/fiscalperiod-configurations"]);break;case z.PaymentMethods:this.router.navigate(["admin/client/setting/properties/paymentmethods-configuration"]);break;case z.Currencies:this.router.navigate(["admin/client/setting/properties/currencies-configuration"]);break;case z.ChartOfAccounts:this.router.navigate(["admin/client/setting/properties/chart-configuration"]);break;case z.Products:this.router.navigate(["admin/client/setting/properties/product-configuration"]);break;case z.ProductSetting:this.router.navigate(["admin/client/setting/properties/productsetting-configuration"]);break;case z.Promotion:this.router.navigate(["admin/client/setting/properties/promotion-configuration"]);break;case z.Discount:this.router.navigate(["admin/client/setting/properties/discount-configuration"]);break;case z.ProductSetting:this.router.navigate(["admin/client/setting/properties/productsetting-configuration"]);break;case z.Batch:this.router.navigate(["admin/client/setting/properties/batches-configuration"]);break;case z.Inventories:this.router.navigate(["admin/client/setting/properties/warehouse-configuration"]);break;case z.Fees:this.router.navigate(["admin/client/setting/properties/fee-configuration"]);break;default:break}}static{this.\u0275fac=function(n){return new(n||r)(nn(St))}}static{this.\u0275prov=pn({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Wg=["demographicsGroup"],Ng=["addValueGroup"],qg=()=>({"aria-label":"Entity"}),Vn=()=>({"aria-label":"Assign To"}),Ug=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Ps=()=>({"aria-label":"ControlName"}),Hg=()=>({id:"elementId",class:"popup-outer w-700"}),jg=()=>({"aria-label":"LabelName"}),Ms=()=>({"aria-label":"ControlType"}),zg=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"}),to=()=>({"aria-label":"Data"});function Zg(r,g){if(r&1){let t=y();a(0,"a",105),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",106),b(2,"path",107),s(),h(3," Manage "),s()}}function Qg(r,g){if(r&1&&(a(0,"div",102)(1,"span",103),h(2),s(),S(3,Zg,4,0,"a",104),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function Yg(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Kg(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function Jg(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function Xg(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalRequired,e)||(i.isAllPersonalRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalRequired)}}function $g(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function e1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalVisible,e)||(i.isAllPersonalVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalVisible)}}function t1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function i1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalEditable,e)||(i.isAllPersonalEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalEditable)}}function n1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function o1(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function a1(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function r1(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function s1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressRequired,e)||(i.isAllAddressRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressRequired)}}function l1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function d1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressVisible,e)||(i.isAllAddressVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressVisible)}}function c1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function p1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressEditable,e)||(i.isAllAddressEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressEditable)}}function u1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function m1(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function g1(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function h1(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEmailValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function f1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEmailRequired,e)||(i.isAllEmailRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEmailRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEmailRequired)}}function C1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEmailRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function _1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEmailVisible,e)||(i.isAllEmailVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEmailVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEmailVisible)}}function y1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEmailVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function x1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEmailEditable,e)||(i.isAllEmailEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEmailEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEmailEditable)}}function v1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEmailEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function b1(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function w1(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function S1(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressPhoneValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function P1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneRequired,e)||(i.isAllPhoneRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneRequired)}}function M1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function V1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneVisible,e)||(i.isAllPhoneVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneVisible)}}function E1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function T1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneEditable,e)||(i.isAllPhoneEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneEditable)}}function D1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function I1(r,g){if(r&1){let t=y();a(0,"a",105),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageDemographicsLabelClick(e.data))}),A(),a(1,"svg",106),b(2,"path",107),s(),h(3," Manage "),s()}}function A1(r,g){if(r&1&&(a(0,"div",102)(1,"span"),h(2),s(),S(3,I1,4,0,"a",104),s()),r&2){let t=g.$implicit;o(2),O(" ",t.data.demographics," "),o(),l("ngIf",t.data.controlType==="Selectbox"&&t.data.demographics!=="Birth Year"&&t.data.demographics!=="University Country")}}function L1(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function k1(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function R1(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function O1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoRequired,e)||(i.isAllDemoRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoRequired)}}function G1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsRequireChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isRequired)}}function B1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoVisible,e)||(i.isAllDemoVisible=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoVisible)}}function F1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsVisibleChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isVisible)}}function W1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoEditable,e)||(i.isAllDemoEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoEditable)}}function N1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsEditableChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function q1(r,g){if(r&1){let t=y();a(0,"a",105),f("click",function(){p(t);let e=m().$implicit,i=m(2);return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",106),b(2,"path",107),s(),h(3," Manage "),s()}}function U1(r,g){if(r&1&&(a(0,"div",102)(1,"span",103),h(2),s(),S(3,q1,4,0,"a",104),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function H1(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function j1(r,g){if(r&1&&(a(0,"div",102),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function z1(r,g){if(r&1){let t=y();a(0,"div",102)(1,"dx-select-box",108),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onAffiliationHubspotValueChanges(e,i.data))}),s()()}if(r&2){let t=m(2);o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,to))("grouped",!0)("searchEnabled",!0)}}function Z1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Required"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllAffiliationRequired,e)||(i.isAllAffiliationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllAffiliationRequireChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllAffiliationRequired)}}function Q1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onAffiliationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Y1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Visible"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllAffiliationVisible,e)||(i.isAllAffiliationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllAffiliationVisibleChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllAffiliationVisible)}}function K1(r,g){if(r&1){let t=y();a(0,"div",112)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onAffiliationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function J1(r,g){if(r&1){let t=y();a(0,"div",109)(1,"span",110),h(2,"Editable"),s(),a(3,"dx-switch",111),_("valueChange",function(e){p(t);let i=m(2);return C(i.isAllAffiliationEditable,e)||(i.isAllAffiliationEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m(2);return u(i.onAllAffiliationEditableChanged(e))}),s()()}if(r&2){let t=m(2);o(3),x("value",t.isAllAffiliationEditable)}}function X1(r,g){if(r&1){let t=y();a(0,"div",113)(1,"dx-switch",111),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m(2);return u(d.onAffiliationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function $1(r,g){if(r&1){let t=y();a(0,"div",16)(1,"div",13)(2,"div",17)(3,"h2",18),h(4,"Affiliations Information"),s(),a(5,"div",19)(6,"a",20),f("click",function(){p(t);let e=m();return u(e.AffiliationsInformation())}),A(),a(7,"svg",21),b(8,"path",22),s()()()(),G(),a(9,"div",23)(10,"div",24)(11,"div",25)(12,"div",26)(13,"span"),h(14,"Control Type:"),s(),a(15,"dx-select-box",114),_("valueChange",function(e){p(t);let i=m();return C(i.selectedAffiliationControl,e)||(i.selectedAffiliationControl=e),u(e)}),f("onValueChanged",function(){p(t);let e=m();return u(e.filterAffiliationProperty())}),s()()()(),a(16,"div",30)(17,"dx-data-grid",31),f("onSelectionChanged",function(e){p(t);let i=m();return u(i.onSelectionChanged(e))})("onSaving",function(e){p(t);let i=m();return u(i.onAffiliationsInfoSaving(e))}),b(18,"dxo-paging",32),a(19,"dxo-editing",33),_("changesChange",function(e){p(t);let i=m();return C(i.changes,e)||(i.changes=e),u(e)}),s(),b(20,"dxi-column",34)(21,"dxi-column",35),a(22,"dxi-column",36),b(23,"dxi-validation-rule",37)(24,"dxi-validation-rule",38),S(25,U1,4,3,"div",39),s(),b(26,"dxi-column",40),a(27,"dxi-column",41),S(28,H1,2,4,"span",42),s(),a(29,"dxi-column",43),S(30,j1,2,1,"div",39)(31,z1,2,5,"div",39),s(),a(32,"dxi-column",44),S(33,Z1,4,1,"div",45)(34,Q1,2,2,"div",46),s(),a(35,"dxi-column",47),S(36,Y1,4,1,"div",45)(37,K1,2,2,"div",46),s(),a(38,"dxi-column",48),S(39,J1,4,1,"div",45)(40,X1,2,1,"div",49),s()()()()()()}if(r&2){let t=m();l("ngClass",t.ConstituentsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(42,Vn))("items",t.affiliationControlType),x("value",t.selectedAffiliationControl),o(2),l("dataSource",t.affiliationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",t.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",t.asyncAffiliationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3")}}function eh(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Values for "),a(2,"span",115),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function th(r,g){if(r&1&&(a(0,"h2"),h(1,"Manage Values for "),a(2,"span",115),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function ih(r,g){if(r&1){let t=y();a(0,"div",118)(1,"span",119),h(2),s(),a(3,"div",120)(4,"a",121),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.EditDemographicValuePopupEvent(e))}),A(),a(5,"svg",122),b(6,"path",123),s()(),G(),a(7,"a",124),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.DeleteDemographicDetailEvent(e))}),A(),a(8,"svg",122),b(9,"path",125),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.description)}}function nh(r,g){if(r&1&&(a(0,"div",116)(1,"dx-scroll-view",15),S(2,ih,10,1,"div",117),s()()),r&2){let t=m();o(2),l("ngForOf",t.addDemographics.demographicsDetails)}}function oh(r,g){if(r&1){let t=y();a(0,"div",118)(1,"span",119),h(2),s(),a(3,"div",120)(4,"a",121),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",122),b(6,"path",123),s()(),G(),a(7,"a",124),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",122),b(9,"path",125),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function ah(r,g){if(r&1&&(a(0,"div",116)(1,"dx-scroll-view",15),S(2,oh,10,1,"div",117),s()()),r&2){let t=m();o(2),l("ngForOf",t.LookUpTableValues)}}function rh(r,g){if(r&1){let t=y();a(0,"a",57),f("click",function(){p(t);let e=m();return u(e.ValuePopupEvent())}
87),A(),a(1,"svg",58),b(2,"circle",59)(3,"path",60),s(),h(4," Add Value "),s()}}function sh(r,g){if(r&1){let t=y();a(0,"a",57),f("click",function(){p(t);let e=m();return u(e.LookupValuePopupEvent())}),A(),a(1,"svg",58),b(2,"circle",59)(3,"path",60),s(),h(4," Add Value "),s()}}function lh(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function dh(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function ch(r,g){if(r&1){let t=y();a(0,"dx-button",126),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function ph(r,g){if(r&1){let t=y();a(0,"dx-button",127),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function uh(r,g){if(r&1){let t=y();a(0,"dx-button",99),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}function mh(r,g){if(r&1){let t=y();a(0,"dx-button",126),f("onClick",function(e){p(t);let i=m();return u(i.addDemographicDetail(e,!0))}),s()}}function gh(r,g){if(r&1){let t=y();a(0,"dx-button",127),f("onClick",function(e){p(t);let i=m();return u(i.addDemographicDetail(e,!1))}),s()}}function hh(r,g){if(r&1){let t=y();a(0,"dx-button",99),f("onClick",function(){p(t);let e=m();return u(e.editDemographicDetail())}),s()}}function fh(r,g){if(r&1){let t=y();a(0,"dx-button",126),f("onClick",function(e){p(t);let i=m();return u(i.manageAddDemographicDetail(e,!0))}),s()}}function Ch(r,g){if(r&1){let t=y();a(0,"dx-button",127),f("onClick",function(e){p(t);let i=m();return u(i.manageAddDemographicDetail(e,!1))}),s()}}function _h(r,g){if(r&1){let t=y();a(0,"dx-button",99),f("onClick",function(){p(t);let e=m();return u(e.manageEditDemographicDetail())}),s()}}function yh(r,g){if(r&1){let t=y();a(0,"div",10)(1,"dx-select-box",128),_("valueChange",function(e){p(t);let i=m();return C(i.addDemographics.controlDataType,e)||(i.addDemographics.controlDataType=e),u(e)}),s()()}if(r&2){let t=m();o(),l("labelMode",t.labelMode),x("value",t.addDemographics.controlDataType),l("items",t.ControlDataType)("inputAttr",I(5,Ms))("showClearButton",!0)}}function xh(r,g){if(r&1){let t=y();a(0,"div",72)(1,"a",57),f("click",function(){p(t);let e=m();return u(e.DemographicsAddValuePopupEvent())}),A(),a(2,"svg",58),b(3,"circle",59)(4,"path",60),s(),h(5," Add Value "),s()()}}function vh(r,g){if(r&1){let t=y();a(0,"dx-button",129),f("onClick",function(){p(t);let e=m();return u(e.removeDemographicDetails(e.selectedDemographicDetail))}),s()}}function bh(r,g){if(r&1){let t=y();a(0,"dx-button",129),f("onClick",function(){p(t);let e=m();return u(e.removeManageDemographicDetails(e.selectedDemographicDetail))}),s()}}function wh(r,g){if(r&1){let t=y();a(0,"dx-button",129),f("onClick",function(){p(t);let e=m();return u(e.removeLookupValueDetails(e.selectedLookupTableValue))}),s()}}/localhost/.test(document.location.host)||void 0;var Vs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=t,this.propertyService=n,this.utilityService=e,this.hubspotService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.personalInfoCollapseExpand=!1,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.DemographicsCollapseExpand=!1,this.ConstituentsCollapseExpand=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.allProfileControls=[],this.allAddressControls=[],this.allEmailControls=[],this.allPhoneControls=[],this.allAffiliationControls=[],this.allDemographicsTypes=[],this.profileControls=[],this.addressControls=[],this.emailControls=[],this.phoneControls=[],this.affiliationControls=[],this.demographicsTypes=[],this.profileControlsTypes=[],this.addressControlsTypes=[],this.emailControlsTypes=[],this.phoneControlsTypes=[],this.demographicsTypesMains=[],this.affiliationControlsTypes=[],this.emailTypes=[],this.phoneTypes=[],this.addressTypes=[],this.personalControlType=[],this.addressControlType=[],this.emailControlType=[],this.phoneControlType=[],this.affiliationControlType=[],this.demoControlType=[],this.demographicDetail
87s=[],this.selectedDemographicDetail=new Vi,this.isEditDemoDetail=!1,this.isEditMode=!1,this.isEditLookupValue=!1,this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.selectedControlId=0,this.addressCode="",this.emailCode="",this.phoneCode="",this.selectedPersonalControl="All",this.selectedAddressControl="All",this.selectedEmailControl="All",this.selectedPhoneControl="All",this.selectedAffiliationControl="All",this.selectedDemoControl="All",this.hubspotModel=[],this.changes=[],this.isAllPersonalRequired=!1,this.isAllPersonalVisible=!1,this.isAllPersonalEditable=!1,this.isAllAddressRequired=!1,this.isAllAddressVisible=!1,this.isAllAddressEditable=!1,this.isAllEmailRequired=!1,this.isAllEmailVisible=!1,this.isAllEmailEditable=!1,this.isAllPhoneRequired=!1,this.isAllPhoneVisible=!1,this.isAllPhoneEditable=!1,this.isAllAffiliationRequired=!1,this.isAllAffiliationVisible=!1,this.isAllAffiliationEditable=!1,this.isAllDemoRequired=!1,this.isAllDemoVisible=!1,this.isAllDemoEditable=!1,this.LabelValidator=[{type:"required",message:"Label name is required"}],this.ControlNameValidator=[{type:"required",message:"Control name is required"}],this.ControlTypeValidator=[{type:"required",message:"Control type is required"}],this.hubspotFields=[],this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}}),this.fromPregroupedData.load();let T=this.entitiesModel.find(D=>D.name==z.Contact);T&&(this.entityID=T.entityID)})},this.loadData=()=>{this.loading=!0,Yt([this.utilityService.GetAllAddressType(),this.utilityService.GetAllEmailAddressType(),this.utilityService.GetAllPhoneType(),this.hubspotService.GetContactHubspotProperties()]).pipe(Qt(([E,T,D,W])=>({addressTypes:E,emailTypes:T,phoneTypes:D,hubspotFields:W}))).subscribe(E=>{this.loading=!1,Object.keys(E).forEach(T=>this[T]=E[T].responseModel),this.addressTypes!=null&&this.addressTypes.length>0&&(this.addressCode=this.addressTypes[0].code),this.emailTypes!=null&&this.emailTypes.length>0&&(this.emailCode=this.emailTypes[0].code),this.phoneTypes!=null&&this.phoneTypes.length>0&&(this.phoneCode=this.phoneTypes[0].code),this.GetHubSpotField(),this.GetProfilePersonalProperty(),this.GetAddressProperty(),this.GetEmailProperty(),this.GetPhoneProperty(),this.loadDemographicsData()})},this.asyncProfileValidation=E=>B(this,null,function*(){return!(this.profileControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncAddressValidation=E=>B(this,null,function*(){return!(this.addressControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncEmailValidation=E=>B(this,null,function*(){return!(this.emailControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncPhoneValidation=E=>B(this,null,function*(){return!(this.phoneControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncDemographicValidation=E=>B(this,null,function*(){return!(this.demographicsTypesMains.filter(D=>D.demographics.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.demographicsTypeID!=E.data.demographicsTypeID).length>0)}),this.asyncAffiliationValidation=E=>B(this,null,function*(){return!(this.allAffiliationControls.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.sourceColumnName!=E.data.sourceColumnName).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.customCallback=this.customCallback.bind(this),this.ControlType=["Datepicker","Numberbox","Selectbox","TextBox"],this.ControlDataType=["Money","Age","Date","Text","Number"],this.loadData(),this.loadEntitiesData(),this.addDemographics=Ca,this.addDemographics.demographicsDetails=[],this.addDemographics=new qi}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}GetHubSpotField(){this.hubspotModel=[],this.loading=!0,this.hubspotService.GetContactHubspotProperties().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.hubspotModel=t.responseModel,this.hubspotDataSource=new ri({store:new kt({data:this.hubspotModel,key:"name"}),group:"groupName"}))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}ResetHubSpotField(){this.GetHubSpotField()}GetProfilePersonalProperty(){this.profileControlsTypes=[],this.loading=!0,this.propertyService.GetAllContactPersonalInfoPageControls().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProfileControls=t.responseModel,this.allProfileControls!=null&&this.allProfileControls.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>
870&&this.allProfileControls.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterProfilePersonalProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProfilePersonalProperty(){this.profileControls=this.allProfileControls,this.profileControlsTypes=this.profileControls,this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!="All"&&(this.profileControls=this.profileControls.filter(i=>i.formControlType==this.selectedPersonalControl)),this.allProfileControls.forEach(i=>{this.personalControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.personalControlType.push(i.formControlType)}),this.personalControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.personalControlType.splice(0,0,"All"),this.isAllPersonalRequired=!1,this.profileControls.every(i=>i.isRequired==!0)&&(this.isAllPersonalRequired=!0),this.isAllPersonalEditable=!1,this.profileControls.every(i=>i.isReadOnly==!0)&&(this.isAllPersonalEditable=!0),this.isAllPersonalVisible=!1,this.profileControls.every(i=>i.isVisible==!0)&&(this.isAllPersonalVisible=!0)}GetAddressProperty(){this.loading=!0,this.propertyService.GetContactPageControlsByPageName(M.PropertyPageName.addressInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAddressControls=t.responseModel,this.allAddressControls!=null&&this.allAddressControls.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allAddressControls.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterAddressProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAddressProperty(){this.addressControls=this.allAddressControls.filter(i=>i.pageCategory.toLowerCase()==this.addressCode.toLowerCase()),this.addressControlsTypes=this.addressControls,this.selectedAddressControl!=null&&this.selectedAddressControl!=null&&this.selectedAddressControl!="All"&&(this.addressControls=this.addressControls.filter(i=>i.formControlType==this.selectedAddressControl)),this.addressControls=this.addressControls.sort((i,d)=>i.controlDisplayOrder<d.controlDisplayOrder?-1:1),this.allAddressControls.forEach(i=>{this.addressControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.addressControlType.push(i.formControlType)}),this.addressControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.addressControlType.splice(0,0,"All"),this.isAllAddressRequired=!1,this.addressControls.every(i=>i.isRequired==!0)&&(this.isAllAddressRequired=!0),this.isAllAddressEditable=!1,this.addressControls.every(i=>i.isReadOnly==!0)&&(this.isAllAddressEditable=!0),this.isAllAddressVisible=!1,this.addressControls.every(i=>i.isVisible==!0)&&(this.isAllAddressVisible=!0)}GetEmailProperty(){this.loading=!0,this.propertyService.GetContactPageControlsByPageName(M.PropertyPageName.emailInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEmailControls=t.responseModel,this.allEmailControls!=null&&this.allEmailControls.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allEmailControls.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterEmailProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEmailProperty(){this.emailControls=this.allEmailControls.filter(i=>i.pageCategory.toLowerCase()==this.emailCode.toLowerCase()),this.emailControlsTypes=this.emailControls,this.selectedEmailControl!=null&&this.selectedEmailControl!=null&&this.selectedEmailControl!="All"&&(this.emailControls=this.emailControls.filter(i=>i.formControlType==this.selectedEmailControl)),this.emailControls=this.emailControls.sort((i,d)=>i.controlDisplayOrder<d.controlDisplayOrder?-1:1),this.allEmailControls.forEac
87h(i=>{this.emailControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.emailControlType.push(i.formControlType)}),this.emailControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.emailControlType.splice(0,0,"All"),this.isAllEmailRequired=!1,this.emailControls.every(i=>i.isRequired==!0)&&(this.isAllEmailRequired=!0),this.isAllEmailEditable=!1,this.emailControls.every(i=>i.isReadOnly==!0)&&(this.isAllEmailEditable=!0),this.isAllEmailVisible=!1,this.emailControls.every(i=>i.isVisible==!0)&&(this.isAllEmailVisible=!0)}GetAffiliationsProperty(){this.loading=!0,this.propertyService.GetContactPageControlsByPageName(M.PropertyPageName.Affiliations.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAffiliationControls=t.responseModel,this.allAffiliationControls!=null&&this.allAffiliationControls.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allAffiliationControls.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterAffiliationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAffiliationProperty(){this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!=""&&this.selectedAffiliationControl!="All"?this.affiliationControls=this.allAffiliationControls.filter(i=>i.formControlType==this.selectedAffiliationControl):(this.affiliationControls=[],this.allAffiliationControls.forEach(i=>{this.affiliationControls.push(i)})),this.allAffiliationControls.forEach(i=>{this.affiliationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.affiliationControlType.push(i.formControlType)}),this.affiliationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.affiliationControlType.splice(0,0,"All"),this.isAllAffiliationRequired=!1,this.affiliationControls.every(i=>i.isRequired==!0)&&(this.isAllAffiliationRequired=!0),this.isAllAffiliationEditable=!1,this.affiliationControls.every(i=>i.isReadOnly==!0)&&(this.isAllAffiliationEditable=!0),this.isAllAffiliationVisible=!1,this.affiliationControls.every(i=>i.isVisible==!0)&&(this.isAllAffiliationVisible=!0)}GetPhoneProperty(){this.loading=!0,this.propertyService.GetContactPageControlsByPageName(M.PropertyPageName.phoneInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPhoneControls=t.responseModel,this.allPhoneControls!=null&&this.allPhoneControls.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allPhoneControls.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterPhoneProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPhoneProperty(){this.phoneControls=this.allPhoneControls.filter(i=>i.pageCategory.toLowerCase()==this.phoneCode.toLowerCase()),this.phoneControlsTypes=this.phoneControls,this.selectedPhoneControl!=null&&this.selectedPhoneControl!=null&&this.selectedPhoneControl!="All"&&(this.phoneControls=this.phoneControls.filter(i=>i.formControlType==this.selectedPhoneControl)),this.phoneControls=this.phoneControls.sort((i,d)=>i.controlDisplayOrder<d.controlDisplayOrder?-1:1),this.allPhoneControls.forEach(i=>{this.phoneControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.phoneControlType.push(i.formControlType)}),this.phoneControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.phoneControlType.splice(0,0,"All"),this.isAllPhoneRequired=!1,this.phoneControls.every(i=>i.isRequired==!0)&&(this.isAllPhoneRequired=!0),this.isAllPhoneEditable=!1,this.phoneControls.every(i=>i.isReadOnly==!0)&&(this.isAllPhoneEditable=!0),this.isAllPhoneVisible=!1,this.phoneControls.every(i=>i.isVisible==!0)&&(this.isAllPhoneVisible=!0)}loadDemographicsData(){this.loading=!0,this.utilityService.GetContactAllDemographicsType().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.allDemographicsTypes=t.responseModel,this.allDemographicsTypes!=null&&this.allDemographicsTypes.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>
870&&this.allDemographicsTypes.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterDemographics()):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterDemographics(){this.demographicsTypes=this.allDemographicsTypes,this.demographicsTypesMains=this.allDemographicsTypes,this.selectedDemoControl!=null&&this.selectedDemoControl!=null&&this.selectedDemoControl!="All"&&(this.demographicsTypes=this.demographicsTypes.filter(i=>i.controlType==this.selectedDemoControl)),this.allDemographicsTypes.forEach(i=>{this.demoControlType.find(d=>d.toLowerCase()==i.controlType.toLowerCase())==null&&this.demoControlType.push(i.controlType)}),this.demoControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.demoControlType.splice(0,0,"All"),this.isAllDemoRequired=!1,this.demographicsTypes.every(i=>i.isRequired==!0)&&(this.isAllDemoRequired=!0),this.isAllDemoEditable=!1,this.demographicsTypes.every(i=>i.isReadOnly==!0)&&(this.isAllDemoEditable=!0),this.isAllDemoVisible=!1,this.demographicsTypes.every(i=>i.isVisible==!0)&&(this.isAllDemoVisible=!0)}onSelectAdressType({value:t}){t==null&&(t=this.addressTypes.length>0?this.addressTypes[0].code:""),this.addressCode=t,this.filterAddressProperty()}onSelectEmailType({value:t}){t==null&&(t=this.emailTypes.length>0?this.emailTypes[0].code:""),this.emailCode=t,this.filterEmailProperty()}onSelectPhoneType({value:t}){t==null&&(t=this.phoneTypes.length>0?this.phoneTypes[0].code:""),this.phoneCode=t,this.filterPhoneProperty()}onProfileSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onSelectPersonalControl({value:t}){this.selectedPersonalControl=t,this.filterProfilePersonalProperty()}onSelectAddressControl({value:t}){this.selectedAddressControl=t,this.filterAddressProperty()}onSelectEmailControl({value:t}){this.selectedEmailControl=t,this.filterEmailProperty()}onSelectPhoneControl({value:t}){this.selectedPhoneControl=t,this.filterPhoneProperty()}onSelectDemographicsControl({value:t}){this.selectedDemoControl=t,this.filterDemographics()}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}personalInformation(){this.personalInfoCollapseExpand=!this.personalInfoCollapseExpand}AddressInformation(){this.AddressInfoCollapseExpand=!this.AddressInfoCollapseExpand}EmailInformation(){this.EmailInfoCollapseExpand=!this.EmailInfoCollapseExpand}PhoneInformation(){this.PhoneInfoCollapseExpand=!this.PhoneInfoCollapseExpand}DemographicsInformation(){this.DemographicsCollapseExpand=!this.DemographicsCollapseExpand}AffiliationsInformation(){this.ConstituentsCollapseExpand=!this.ConstituentsCollapseExpand}DemographicsPopupEvent(){this.addDemographics=Ca,this.addDemographics.demographicsDetails=[],this.addDemographics=new qi,this.demographicsGroup.instance.reset(),this.addDemographicsPopup=!0}EditDemographicValuePopupEvent(t){this.selectedDemographicDetail=t,this.lookupValue=t.description,this.isEditDemoDetail=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}ValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}closeDemographicsPopup(){this.addDemographicsPopup=!1}customCallback(t){let n=this.lookupValue;return n&&this.isDemographicsAddValue?this.addDemographics.demographicsDetails!=null&&this.addDemographics.demographicsDetails.length>0?!this.addDemographics.demographicsDetails.find(i=>i.description.trim()==n.trim()&&i.demographicsDetailID!=this.selectedDemographicDetail.demographicsDetailID):!0:n&&!this.isDemographicsAddValue&&this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Contact.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0,this.isDemographicsAddValue=!1)},n=>{this.showErrorMessage(n.message)})}DemographicsAddValuePopupEvent(){this.isDemographicsAddValue=!0,this.AddValueHeader=this.addDemographics.demographics,this.FilterActive=!0}ManageDemographicsLabelClick(t){this.AddValueHeader=t.demographics,this.GetManageValueLabelsList(t),this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}GetManageValueLabelsList(t){this.loading=!0,this.utilityService.GetAllDemographicDetailsByDemographicTypeId(t.demographicsTypeID).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.demographicDetails=n.responseModel,this.addDemographics=t,this.addDemographics.demographicsDetails=this.demographicDetails,this.isDemographicsAddValue=!0,this.isDemographicsManageValue=!0):this.showErrorMessage(n.message)},n=>{this.showErrorMessage(n.message)})}manageAddDemographicDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new Vi;i.demographicsTypeID=this.addDemographics.demographicsTypeID,i.description=this.lookupValue,i.modifiedByUserId=this.userToken.userId,i.demographicsDetailID=0,this.loading=!0,this.utilityService.AddUpdateDemographicsDetails(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.lookupValue} successfully added to ${this.addDemographics.demographics}.`),this.lookupValue=null,n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):this.showErrorMessage(d.message)},d=>{this.showErrorMessage(d.message)})}manageEditDemographicDetail(){if(!this.addValueGroup.instance.validate().isValid)return;let n=new Vi;n.demographicsTypeID=this.addDemographics.demographicsTypeID,n.description=this.lookupValue,n.modifiedByUserId=this.userToken.userId,n.demographicsDetailID=this.selectedDemographicDetail.demographicsDetailID,this.loading=!0,this.utilityService.AddUpdateDemographicsDetails(n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.lookupValue} successfully updated.`),this.lookupValue=null,this.isEditDemoDetail=!1,this.isEditMode=!1,this.addValuePopupPopup=!1):this.showErrorMessage(e.message)},e=>{this.showErrorMessage(e.message)})}
87removeManageDemographicDetails(t){let n=new Vi;n.demographicsTypeID=this.addDemographics.demographicsTypeID,n.description=this.lookupValue,n.modifiedByUserId=this.userToken.userId,n.isActive=!1,n.demographicsDetailID=this.selectedDemographicDetail.demographicsDetailID,this.loading=!0,this.utilityService.ActiveInactiveDemographicDetail(this.selectedDemographicDetail.demographicsDetailID,!1).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.selectedDemographicDetail.description} successfully deleted.`),this.lookupValue=null,this.addValuePopupPopup=!1,this.deletePopup=!1,this.selectedDemographicDetail=new Vi):this.showErrorMessage(e.message)},e=>{this.showErrorMessage(e.message)})}addDemographicDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;if(this.addDemographics.demographicsDetails.filter(c=>c.description==this.lookupValue).length>0){this.showErrorMessage("Demographic detail already exists in the list");return}let d=new Vi;d.description=this.lookupValue,d.isActive=!0,this.addDemographics.demographicsDetails.push(d),this.ResetDemographicDetailRowno(),n?(this.lookupValue=null,this.addValueGroup.instance.reset()):this.closeAddValuePopup()}editDemographicDetail(){if(!this.addValueGroup.instance.validate().isValid)return;if(this.addDemographics.demographicsDetails.filter(i=>i.description==this.lookupValue&&i.rowno!=this.selectedDemographicDetail.rowno).length>0){this.showErrorMessage("Demographic detail already exists in the list");return}let e=this.addDemographics.demographicsDetails.find(i=>i.rowno==this.selectedDemographicDetail.rowno);e.description=this.lookupValue,this.isEditDemoDetail=!1,this.isEditMode=!1,this.selectedDemographicDetail=new Vi,this.addValueGroup.instance.reset(),this.closeAddValuePopup()}ResetDemographicDetailRowno(){let t=0;this.addDemographics.demographicsDetails.forEach(n=>{n.rowno=t+1,t=t+1})}DeleteDemographicDetailEvent(t){this.selectedDemographicDetail=t,this.deleteValue=t.description,this.deletePopup=!0}removeDemographicDetails(t){this.addDemographics.demographicsDetails=this.addDemographics.demographicsDetails.filter(n=>n.rowno!=this.selectedDemographicDetail.rowno),this.ResetDemographicDetailRowno(),this.selectedDemographicDetail=new Vi,this.deleteValue=null,this.deletePopup=!1}closeDeleteValuePopup(){this.selectedDemographicDetail=new Vi,this.selectedLookupTableValue=new _t,this.deletePopup=!1}closeAddValuePopup(){this.isEditDemoDetail=!1,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.selectedDemographicDetail=new Vi}onPersonalInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.personalInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.profileInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.profileControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProfilePersonalProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.personalInformation.toString()))}}onAddressInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.addressInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.addressControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAddressProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.addressInformation.toString()))}}onEmailInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.emailInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.emailControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEmailProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.emailInformation.toString()))}}onPhoneInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.phoneInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.phoneControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPhoneProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.phoneInformation.toString()))}}onDemographicsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName==null){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="controlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.demographicsTypesMains.filter(v=>v.demographics.toLowerCase().replace(/ /g,"")==d.toLowerCase().replace(/ /g,"")&&v.demographicsTypeID!=n.key.demographicsTypeID).length>0&&(e=!0):e=!0}e?this.loadDemographicsData():(t.cancel=!0,t.promise=this.processDemographicSaving(n))}}onAffiliationsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.Affiliations.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.profileControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProfilePersonalProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Affiliations.toString()))}}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.Upd
87ateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.personalInformation.toString()?this.GetProfilePersonalProperty():n==M.PropertyPageName.addressInformation.toString()?this.GetAddressProperty():n==M.PropertyPageName.emailInformation.toString()?this.GetEmailProperty():n==M.PropertyPageName.phoneInformation.toString()&&this.GetPhoneProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}processDemographicSaving(t){return B(this,null,function*(){let n=t.data,e=Object.keys(n),i=Object.values(n),d=t.key;d.modifiedByUserId=this.userToken.userId,d[e[0]]=i[0].toString().trim(),this.loading=!0,this.utilityService.UpdateDemographics(d).pipe(w(this.unsubscriber)).subscribe(c=>{this.processResult(c,()=>{if(this.loading=!1,c&&c.isSuccess){if(this.changes=[],this.dataGrid!=null){let v=this.dataGrid.instance;v.clearSelection(),v.option("focusedrowindex",-1)}this.loadDemographicsData(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(c.message)})},c=>{this.loading=!1,this.showErrorMessage(c.message)})})}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isDemographicsAddValue=!1,this.isDemographicsManageValue=!1,this.isEditDemoDetail=!1,this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}DeleteValuePopupEvent(){this.deletePopup=!0}onAllPersonalRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPersonalRequired=t.value;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!="All"&&(n=this.selectedPersonalControl),this.propertyService.UpdateAllRequireFieldContactControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPersonalVisibleChanged(t){if(this.isAllPersonalVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!="All"&&(n=this.selectedPersonalControl),this.propertyService.UpdateAllVisibleFieldContactControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPersonalEditableChanged(t){if(this.isAllPersonalEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPersonalControl!=null&&this.selectedPersonalControl!=null&&this.selectedPersonalControl!="All"&&(n=this.selectedPersonalControl),this.propertyService.Upd
87ateAllEditableFieldContactControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProfilePersonalProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAddressRequired=t.value;let n="";this.selectedAddressControl!=null&&this.selectedAddressControl!=null&&this.selectedAddressControl!="All"&&(n=this.selectedAddressControl),this.propertyService.UpdateAllRequireFieldContactControl(M.PropertyPageName.addressInformation.toString(),this.addressCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressVisibleChanged(t){if(this.isAllAddressVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAddressControl!=null&&this.selectedAddressControl!=null&&this.selectedAddressControl!="All"&&(n=this.selectedAddressControl),this.propertyService.UpdateAllVisibleFieldContactControl(M.PropertyPageName.addressInformation.toString(),this.addressCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressEditableChanged(t){if(this.isAllAddressEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAddressControl!=null&&this.selectedAddressControl!=null&&this.selectedAddressControl!="All"&&(n=this.selectedAddressControl),this.propertyService.UpdateAllEditableFieldContactControl(M.PropertyPageName.addressInformation.toString(),this.addressCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEmailRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEmailRequired=t.value;let n="";this.selectedEmailControl!=null&&this.selectedEmailControl!=null&&this.selectedEmailControl!="All"&&(n=this.selectedEmailControl),this.propertyService.Upd
87ateAllRequireFieldContactControl(M.PropertyPageName.emailInformation.toString(),this.emailCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEmailRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEmailVisibleChanged(t){if(this.isAllEmailVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEmailControl!=null&&this.selectedEmailControl!=null&&this.selectedEmailControl!="All"&&(n=this.selectedEmailControl),this.propertyService.UpdateAllVisibleFieldContactControl(M.PropertyPageName.emailInformation.toString(),this.emailCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEmailVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEmailEditableChanged(t){if(this.isAllEmailEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEmailControl!=null&&this.selectedEmailControl!=null&&this.selectedEmailControl!="All"&&(n=this.selectedEmailControl),this.propertyService.UpdateAllEditableFieldContactControl(M.PropertyPageName.emailInformation.toString(),this.emailCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEmailEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEmailProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPhoneRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPhoneRequired=t.value;let n="";this.selectedPhoneControl!=null&&this.selectedPhoneControl!=null&&this.selectedPhoneControl!="All"&&(n=this.selectedPhoneControl),this.propertyService.UpdateAllRequireFieldContactControl(M.PropertyPageName.phoneInformation.toString(),this.phoneCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPhoneVisibleChanged(t){if(this.isAllPhoneVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPhoneControl!=null&&this.selectedPhoneControl!=null&&this.selectedPhoneControl!="All"&&(n=this.selectedPhoneControl),this.propertyService.Upd
87ateAllVisibleFieldContactControl(M.PropertyPageName.phoneInformation.toString(),this.phoneCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPhoneEditableChanged(t){if(this.isAllPhoneEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPhoneControl!=null&&this.selectedPhoneControl!=null&&this.selectedPhoneControl!="All"&&(n=this.selectedPhoneControl),this.propertyService.UpdateAllEditableFieldContactControl(M.PropertyPageName.phoneInformation.toString(),this.phoneCode,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationRequired=t.value;let n="";this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!="All"&&(n=this.selectedAffiliationControl),this.propertyService.UpdateAllRequireFieldContactControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationVisible=t.value;let n="";this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!="All"&&(n=this.selectedAffiliationControl),this.propertyService.UpdateAllVisibleFieldContactControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationEditable=t.value;let n="";this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!=null&&this.selectedAffiliationControl!="All"&&(n=this.selectedAffiliationControl),this.propertyService.Upd
87ateAllEditableFieldContactControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDemographicsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllDemoRequired=t.value;let n="";this.selectedDemoControl!=null&&this.selectedDemoControl!=null&&this.selectedDemoControl!="All"&&(n=this.selectedDemoControl),this.utilityService.UpdateAllContactDemographicsRequireFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.loadDemographicsData(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateRequireFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.loadDemographicsData(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDemographicsVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllDemoVisible=t.value;let n="";this.selectedDemoControl!=null&&this.selectedDemoControl!=null&&this.selectedDemoControl!="All"&&(n=this.selectedDemoControl),this.utilityService.UpdateAllContactDemographicsVisibleFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.loadDemographicsData(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateVisibleFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.loadDemographicsData(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDemographicsEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllDemoEditable=t.value;let n="";this.selectedDemoControl!=null&&this.selectedDemoControl!=null&&this.selectedDemoControl!="All"&&(n=this.selectedDemoControl),this.utilityService.UpdateAllContactDemographicsEditableFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.loadDemographicsData(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateEditableFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.showSuccessMessage("Editable property is updated successfully"),this.loadDemographicsData())},e=>{this.showErrorMessage(e.message)})}onFormDemoSubmit({validationGroup:t,event:n}
87){this.demographicsGroup.instance.validate().isValid&&(this.addDemographics.controlTooltip=this.addDemographics.demographics,this.addDemographics.modifiedByUserId=this.userToken.userId,this.utilityService.AddContactDemographics(this.addDemographics).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(i=>{i.isSuccess?(this.closeDemographicsPopup(),this.loadDemographicsData(),this.showSuccessMessage("Demographic property added successfully")):(this.loading=!1,this.showErrorMessage(i.message))},i=>{this.showErrorMessage(i.message)}))}onPersonalHubSpotValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.personalInformation.toString())}onAddressHubSpotValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.addressInformation.toString())}onEmailValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.emailInformation.toString())}onAddressPhoneValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.phoneInformation.toString())}onAffiliationHubspotValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.Affiliations.toString())}UpdateHubspotDetails(t,n,e){if(t!=""){let i=new Gn;i.hubspotFieldName=t;let d=this.hubspotModel.filter(v=>v.name==t),c="";d.length>0&&(c=d[0].groupName),i.hubspotGroupName=c,i.systemPageControlId=n.systemPageControlId,i.systemPageId=n.systemPageId,i.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.UpdateSystemPageControlHubSpotField(i).pipe(w(this.unsubscriber)).subscribe(v=>{this.processResult(v,()=>{if(this.loading=!1,v&&v.isSuccess){if(this.changes=[],this.dataGrid!=null){let V=this.dataGrid.instance;V.clearSelection(),V.option("focusedrowindex",-1)}e==M.PropertyPageName.personalInformation.toString()?this.GetProfilePersonalProperty():e==M.PropertyPageName.addressInformation.toString()?this.GetAddressProperty():e==M.PropertyPageName.emailInformation.toString()?this.GetEmailProperty():e==M.PropertyPageName.phoneInformation.toString()&&this.GetPhoneProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(v.message)})},v=>{this.loading=!1,this.showErrorMessage(v.message)})}}onDemographicsHubSpotValueChanges({value:t},n){if(t!=""){let e=new Gn;e.hubspotFieldName=t;let i=this.hubspotModel.filter(c=>c.name==t),d="";i.length>0&&(d=i[0].groupName),e.modifiedByUserId=this.userToken.userId,e.hubspotGroupName=d,e.demographicsTypeID=n.demographicsTypeID,this.loading=!0,this.propertyService.UpdateDemographicsControlHubSpotField(e).pipe(w(this.unsubscriber)).subscribe(c=>{this.processResult(c,()=>{if(this.loading=!1,c&&c.isSuccess){if(this.changes=[],this.dataGrid!=null){let v=this.dataGrid.instance;v.clearSelection(),v.option("focusedrowindex",-1)}this.loadDemographicsData(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(c.message)})},c=>{this.loading=!1,this.showErrorMessage(c.message)})}}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Kt),k(di),k(kn),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-contacts-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(Wg,5),U(Ng,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.demographicsGroup=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:333,vars:302,consts:[["addValueGroup",""],["demographicsGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Contacts","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"properties-filter__right"],["text","Sync with HubSpot","icon","sync","stylingMode","contained","type","normal",1,"btn","btn--sync",3,"onClick"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUp
87dating","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","HubSpotMapping","caption","HubSpot Mapping","editCellTemplate","editHubspotNameManage","cellTemplate","hubspotNameManage",3,"width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],["placeholder","Select",1,"select-box","entity-type",3,"onValueChanged","valueChange","showClearButton","dataSource","value","inputAttr"],["displayExpr","addressType","valueExpr","code","placeholder","Select",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","dataSource","inputAttr","value"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSaving","dataSource","showBorders","repaintChangesOnly"],["dataField","fieldCaption","caption","Label Name",3,"width"],["displayExpr","emailAddressType","valueExpr","code","placeholder","Select",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","dataSource","value","inputAttr"],["displayExpr","phoneType","valueExpr","code","placeholder","Select",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","dataSource","value","inputAttr"],["placeholder","Select",1,"select-box","entity-type",3,"onValueChanged","valueChange","showClearButton","items","value","inputAttr"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["dataField","controlName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","controlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","demographics","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["dataField","controlTooltip","caption","Tooltip",3,"width"],["class","accordion-block",3,"ngClass",4,"ngIf"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[4,"ngIf"],[1,"sidebar-outer__content"],["class","manage-values",4,"ngIf"],[1,"full-width","add-value-box"],["href","javascript:void(0)","class","add-btn",3,"click",4,"ngIf"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"full-width"],["label","Label Name",3,"valueChange","labelMode","value","inputAttr"],[3,"validationRules"],["label","Control Name",3,"valueChange","labelMode","value","inputAttr"],["label","Control Type",1,"select-box",3,"valueChange","labelMode","items","value","inputAttr","showClearButton"],["class","dx-field",4,"ngIf"],["class","full-width add-value-box",4,"ngIf"],[1,"dx-popup-footer",2,"padding-top","1rem"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],["valueExpr","name","displayExpr","label",3,"onValueChanged","dataSource","inputAttr","grouped","searchEnabled"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","inputAttr","items","value"],[1,"blue-color"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["label","Control Data Type",1,"select-box",3,"valueChange","labelMode","value","items","inputAttr","showClearButton"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",2)(1,"div",3)(2,"ul",4)(3,"li",5)(4,"a",6),h(5,"Admin"),s()(),a(6,"li",5)(7,"a",6),h(8,"Property Management"),s()(),a(9,"li",5),h(10,"Contacts Configuration"),s()()(),a(11,"div",7)(12,"div",8)(13,"h1",9),h(14,"Contacts Configuration"),s(),a(15,"div",10)(16,"dx-select-box",11),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",12)(18,"form",13)(19,"div",14)(20,"dx-scroll-view",15)(21,"div",16)(22,"div",13)(23,"div",17)(24,"h2",18),h(25,"Personal Information"),s(),a(26,"div",19)(27,"a",20),f("
87click",function(){return p(i),u(e.personalInformation())}),A(),a(28,"svg",21),b(29,"path",22),s()()()(),G(),a(30,"div",23)(31,"div",24)(32,"div",25)(33,"div",26)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",27),_("valueChange",function(c){return p(i),C(e.selectedPersonalControl,c)||(e.selectedPersonalControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPersonalControl(c))}),s()()(),a(37,"div",28)(38,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(39,"div",30)(40,"dx-data-grid",31),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPersonalInfoSaving(c))}),b(41,"dxo-paging",32),a(42,"dxo-editing",33),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(43,"dxi-column",34)(44,"dxi-column",35),a(45,"dxi-column",36),b(46,"dxi-validation-rule",37)(47,"dxi-validation-rule",38),S(48,Qg,4,3,"div",39),s(),b(49,"dxi-column",40),a(50,"dxi-column",41),S(51,Yg,2,4,"span",42),s(),a(52,"dxi-column",43),S(53,Kg,2,1,"div",39)(54,Jg,2,5,"div",39),s(),a(55,"dxi-column",44),S(56,Xg,4,1,"div",45)(57,$g,2,2,"div",46),s(),a(58,"dxi-column",47),S(59,e1,4,1,"div",45)(60,t1,2,2,"div",46),s(),a(61,"dxi-column",48),S(62,i1,4,1,"div",45)(63,n1,2,1,"div",49),s()()()()()(),a(64,"div",16)(65,"div",13)(66,"div",17)(67,"h2",18),h(68,"Address Information"),s(),a(69,"div",19)(70,"a",20),f("click",function(){return p(i),u(e.AddressInformation())}),A(),a(71,"svg",21),b(72,"path",22),s()()()(),G(),a(73,"div",23)(74,"div",24)(75,"div",25)(76,"div",26)(77,"span"),h(78,"Control Type:"),s(),a(79,"dx-select-box",50),f("onValueChanged",function(c){return p(i),u(e.onSelectAddressControl(c))}),_("valueChange",function(c){return p(i),C(e.selectedAddressControl,c)||(e.selectedAddressControl=c),u(c)}),s()(),a(80,"div",26)(81,"span"),h(82,"Address Type:"),s(),a(83,"dx-select-box",51),_("valueChange",function(c){return p(i),C(e.addressCode,c)||(e.addressCode=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAdressType(c))}),s()()(),a(84,"div",28)(85,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(86,"div",30)(87,"dx-data-grid",52),f("onSaving",function(c){return p(i),u(e.onAddressInfoSaving(c))}),b(88,"dxo-paging",32),a(89,"dxo-editing",33),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(90,"dxi-column",34)(91,"dxi-column",35),a(92,"dxi-column",53),b(93,"dxi-validation-rule",37)(94,"dxi-validation-rule",38),s(),b(95,"dxi-column",40),a(96,"dxi-column",41),S(97,o1,2,4,"span",42),s(),a(98,"dxi-column",43),S(99,a1,2,1,"div",39)(100,r1,2,5,"div",39),s(),a(101,"dxi-column",44),S(102,s1,4,1,"div",45)(103,l1,2,2,"div",46),s(),a(104,"dxi-column",47),S(105,d1,4,1,"div",45)(106,c1,2,2,"div",46),s(),a(107,"dxi-column",48),S(108,p1,4,1,"div",45)(109,u1,2,1,"div",49),s()()()()()(),a(110,"div",16)(111,"div",13)(112,"div",17)(113,"h2",18),h(114,"Email Information"),s(),a(115,"div",19)(116,"a",20),f("click",function(){return p(i),u(e.EmailInformation())}),A(),a(117,"svg",21),b(118,"path",22),s()()()(),G(),a(119,"div",23)(120,"div",24)(121,"div",25)(122,"div",26)(123,"span"),h(124,"Control Type:"),s(),a(125,"dx-select-box",50),f("onValueChanged",function(c){return p(i),u(e.onSelectEmailControl(c))}),_("valueChange",function(c){return p(i),C(e.selectedEmailControl,c)||(e.selectedEmailControl=c),u(c)}),s()(),a(126,"div",26)(127,"span"),h(128,"Email Type:"),s(),a(129,"dx-select-box",54),_("valueChange",function(c){return p(i),C(e.emailCode,c)||(e.emailCode=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEmailType(c))}),s()()(),a(130,"div",28)(131,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(132,"div",30)(133,"dx-data-grid",52),f("onSaving",function(c){return p(i),u(e.onEmailInfoSaving(c))}),b(134,"dxo-paging",32),a(135,"dxo-editing",33),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(136,"dxi-column",34)(137,"dxi-column",35),a(138,"dxi-column",53),b(139,"dxi-validation-rule",37)(140,"dxi-validation-rule",38),s(),b(141,"dxi-column",40),a(142,"dxi-column",41),S(143,m1,2,4,"span",42),s(),a(144,"dxi-column",43),S(145,g1,2,1,"div",39)(146,h1,2,5,"div",39),s(),a(147,"dxi-column",44),S(148,f1,4,1,"div",45)(149,C1,2,2,"div",46),s(),a(150,"dxi-column",47),S(151,_1,4,1,"div",45)(152,y1,2,2,"div",46),s(),a(153,"dxi-column",48),S(154,x1,4,1,"div",45)(155,v1,2,1,"div",49),s()()()()()(),a(156,"div",16)(157,"div",13)(158,"div",17)(159,"h2",18),h(160,"Phone Information"),s(),a(161,"div",19)(162,"a",20),f("
87click",function(){return p(i),u(e.PhoneInformation())}),A(),a(163,"svg",21),b(164,"path",22),s()()()(),G(),a(165,"div",23)(166,"div",24)(167,"div",25)(168,"div",26)(169,"span"),h(170,"Control Type:"),s(),a(171,"dx-select-box",50),f("onValueChanged",function(c){return p(i),u(e.onSelectPhoneControl(c))}),_("valueChange",function(c){return p(i),C(e.selectedPhoneControl,c)||(e.selectedPhoneControl=c),u(c)}),s()(),a(172,"div",26)(173,"span"),h(174,"Phone Type:"),s(),a(175,"dx-select-box",55),_("valueChange",function(c){return p(i),C(e.phoneCode,c)||(e.phoneCode=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPhoneType(c))}),s()()(),a(176,"div",28)(177,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(178,"div",30)(179,"dx-data-grid",52),f("onSaving",function(c){return p(i),u(e.onPhoneInfoSaving(c))}),b(180,"dxo-paging",32),a(181,"dxo-editing",33),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(182,"dxi-column",34)(183,"dxi-column",35),a(184,"dxi-column",53),b(185,"dxi-validation-rule",37)(186,"dxi-validation-rule",38),s(),b(187,"dxi-column",40),a(188,"dxi-column",41),S(189,b1,2,4,"span",42),s(),a(190,"dxi-column",43),S(191,w1,2,1,"div",39)(192,S1,2,5,"div",39),s(),a(193,"dxi-column",44),S(194,P1,4,1,"div",45)(195,M1,2,2,"div",46),s(),a(196,"dxi-column",47),S(197,V1,4,1,"div",45)(198,E1,2,2,"div",46),s(),a(199,"dxi-column",48),S(200,T1,4,1,"div",45)(201,D1,2,1,"div",49),s()()()()()(),a(202,"div",16)(203,"div",13)(204,"div",17)(205,"h2",18),h(206,"Demographics"),s(),a(207,"div",19)(208,"a",20),f("click",function(){return p(i),u(e.DemographicsInformation())}),A(),a(209,"svg",21),b(210,"path",22),s()()()(),G(),a(211,"div",23)(212,"div",24)(213,"div",25)(214,"div",26)(215,"span"),h(216,"Control Type:"),s(),a(217,"dx-select-box",56),f("onValueChanged",function(c){return p(i),u(e.onSelectDemographicsControl(c))}),_("valueChange",function(c){return p(i),C(e.selectedDemoControl,c)||(e.selectedDemoControl=c),u(c)}),s()()(),a(218,"div",28)(219,"a",57),f("click",function(){return p(i),u(e.DemographicsPopupEvent())}),A(),a(220,"svg",58),b(221,"circle",59)(222,"path",60),s(),h(223," Add Demographic "),s(),G(),a(224,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(225,"div",30)(226,"dx-data-grid",52),f("onSaving",function(c){return p(i),u(e.onDemographicsInfoSaving(c))}),b(227,"dxo-paging",32),a(228,"dxo-editing",33),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(229,"dxi-column",61)(230,"dxi-column",62),a(231,"dxi-column",63),b(232,"dxi-validation-rule",37)(233,"dxi-validation-rule",38),S(234,A1,4,2,"div",39),s(),b(235,"dxi-column",64),a(236,"dxi-column",41),S(237,L1,2,4,"span",42),s(),a(238,"dxi-column",43),S(239,k1,2,1,"div",39)(240,R1,2,5,"div",39),s(),a(241,"dxi-column",44),S(242,O1,4,1,"div",45)(243,G1,2,1,"div",49),s(),a(244,"dxi-column",47),S(245,B1,4,1,"div",45)(246,F1,2,1,"div",49),s(),a(247,"dxi-column",48),S(248,W1,4,1,"div",45)(249,N1,2,1,"div",49),s()()()()()(),S(250,$1,41,43,"div",65),s()()()()(),a(251,"div",66)(252,"div",67)(253,"div",68),S(254,eh,4,1,"h2",69)(255,th,4,1,"h2",69),s(),a(256,"div",70),S(257,nh,3,1,"div",71)(258,ah,3,1,"div",71),a(259,"div",72),S(260,rh,5,0,"a",73)(261,sh,5,0,"a",73),s()(),a(262,"div",74)(263,"a",75),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(264," Close "),s()()()(),a(265,"dx-popup",76),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(266,"div",77),S(267,lh,4,1,"h2",69)(268,dh,4,1,"h2",69),s(),a(269,"div",78)(270,"form",79)(271,"dx-validation-group",null,0)(273,"dx-form",80)(274,"dxi-item")(275,"div",81)(276,"div",82)(277,"dx-text-box",83),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(278,"dx-validator"),b(279,"dxi-validation-rule",84)(280,"dxi-validation-rule",85),s()()()()()()()()(),a(281,"div",86)(282,"dx-button",87),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(283,ch,1,0,"dx-button",88)(284,ph,1,0,"dx-button",89)(285,uh,1,0,"dx-button",90)(286,mh,1,0,"dx-button",88)(287,gh,
871,0,"dx-button",89)(288,hh,1,0,"dx-button",90)(289,fh,1,0,"dx-button",88)(290,Ch,1,0,"dx-button",89)(291,_h,1,0,"dx-button",90),s()(),a(292,"dx-popup",76),_("visibleChange",function(c){return p(i),C(e.addDemographicsPopup,c)||(e.addDemographicsPopup=c),u(c)}),a(293,"div",77)(294,"h2"),h(295,"Add Demographics"),s()(),a(296,"div",78)(297,"dx-validation-group",null,1)(299,"form",79)(300,"dx-form",80)(301,"dxi-item")(302,"div",81)(303,"div",91)(304,"div",10)(305,"dx-text-box",92),_("valueChange",function(c){return p(i),C(e.addDemographics.demographics,c)||(e.addDemographics.demographics=c),u(c)}),b(306,"dx-validator",93),s()()(),a(307,"div",10)(308,"dx-text-box",94),_("valueChange",function(c){return p(i),C(e.addDemographics.controlName,c)||(e.addDemographics.controlName=c),u(c)}),b(309,"dx-validator",93),s()(),a(310,"div",10)(311,"dx-select-box",95),_("valueChange",function(c){return p(i),C(e.addDemographics.controlType,c)||(e.addDemographics.controlType=c),u(c)}),b(312,"dx-validator",93),s()(),S(313,yh,2,6,"div",96)(314,xh,6,0,"div",97),s()()()()()(),a(315,"div",98)(316,"dx-button",87),f("click",function(){return p(i),u(e.closeDemographicsPopup())}),s(),a(317,"dx-button",99),f("onClick",function(c){return p(i),u(e.onFormDemoSubmit(c))}),s()()(),a(318,"dx-popup",76),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(319,"div",77)(320,"h2"),h(321,"Confirmation"),s()(),a(322,"div",78)(323,"p"),h(324,"Are you sure you want to delete "),a(325,"strong"),h(326),s(),h(327," ?"),s()(),a(328,"div",98)(329,"dx-button",100),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),S(330,vh,1,0,"dx-button",101)(331,bh,1,0,"dx-button",101)(332,wh,1,0,"dx-button",101),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(286,qg))("grouped",!0),o(5),l("ngClass",e.personalInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.personalControlType),x("value",e.selectedPersonalControl),l("inputAttr",I(287,Vn)),o(4),l("dataSource",e.profileControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncProfileValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.AddressInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("dataSource",e.addressControlType),x("value",e.selectedAddressControl),l("inputAttr",I(288,Vn)),o(4),l("showClearButton",!0)("dataSource",e.addressTypes)("inputAttr",I(289,Vn)),x("value",e.addressCode),o(4),l("dataSource",e.addressControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAddressValidation),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.EmailInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("dataSource",e.emailControlType),x("value",e.selectedEmailControl),l("inputAttr",I(290,Vn)),o(4),l("showClearButton",!0)("dataSource",e.emailTypes),x("value",e.emailCode),l("inputAttr",I(291,Vn)),o(4),l("dataSource",e.emailControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEmailValidation),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.PhoneInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("dataSource",e.phoneControlType),x("value",e.selectedPhoneControl),l("inputAttr",I(292,Vn)),o(4),l("showClearButton",!0)("dataSource",e.phoneTypes),x("value",e.phoneCode),l("inputAttr",I(293,Vn)),o(4),l("dataSource",e.phoneControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncPhoneValidation),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.DemographicsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.demoControlType),x("value",e.selectedDemoControl),l("inputAttr",I(294,Vn)),o(9),l("dataSource",e.demographicsTypes)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncDemographicValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngIf",!1),o(),l("ngClass",e.FilterActive?"show":"hide"),o(3),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(2),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(2),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(4),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(295,Ug)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(296,Ps)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isDemographicsAddValue&&!e.isEditLookupValue),o(),l("ngIf",!e.isDemographicsAddValue&&!e.isEditLookupValue),o(),l("ngIf",!e.isDemographicsAddValue&&e.isEditLookupValue),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&e.isEditDemoDetail),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.addDemographicsPopup),l("wrapperAttr",I(297,Hg)),o(8),l("formData",e.formData),o(5),l("labelMode",e.labelMode),x("value",e.addDemographics.demographics),l("inputAttr",I(298,jg)),o(),l("validationRules",e.LabelValidator),o(2),l("labelMode",e.labelMode),x("value",e.addDemographics.controlName),l("inputAttr",I(299,Ps)),o(),l("validationRules",e.ControlNameValidator),o(2),l("labelMode",e.labelMode)("items",e.ControlType),x("value",e.addDemographics.controlType),l("inputAttr",I(300,Ms))("showClearButton",!0),o(),l("validationRules",e.ControlTypeValidator),o(),l("ngIf",!1),o(),l("ngIf",e.addDemographics.controlType==="Selectbox"),o(4),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(301,zg)),o(8),R(e.deleteValue),o(4),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue),o(),l("ngIf",!e.isDemographicsAddValue))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();wn();var Sh=["demographicsGroup"],Ph=["addValueGroup"],Mh=()=>({"aria-label":"Entity"}),Wn=()=>({"aria-label":"Assign To"}),Vh=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Es=()=>({"aria-label":"ControlName"}),Eh=()=>({id:"elementId",class:"popup-outer w-700"}),Th=()=>({"aria-label":"LabelName"}),Ts=()=>({"aria-label":"ControlType"}),Dh=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"}),yo=()=>({"aria-label":"Data"}),Ih=()=>({"aria-label":"Tooltip"});function Ah(r,g){if(r&1){let t=y();a(0,"a",109),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",110),b(2,"path",111),s(),h(3," Manage "),s()}}function Lh(r,g){if(r&1&&(a(0,"div",106)(1,"span",107),h(2),s(),S(3,Ah,4,0,"a",108),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function kh(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Rh(r,g){if(r&1&&(a(0,"div",106),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function Oh(r,g){if(r&1){let t=y();a(0,"div",106)(1,"dx-select-box",112),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,yo))("grouped",!0)("searchEnabled",!0)}}function Gh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Required "),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalRequired,e)||(i.isAllPersonalRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalRequired)}}function Bh(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Fh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Visible"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalVisible,e)||(i.isAllPersonalVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalVisible)}}function Wh(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),l("value",t.data.isVisible)}}function Nh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Editable"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPersonalEditable,e)||(i.isAllPersonalEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPersonalEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPersonalEditable)}}function qh(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPersonalEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),l("value",t.data.isReadOnly)}}function Uh(r,g){if(r&1){let t=y();a(0,"a",109),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageDemographicsLabelClick(e.data))}),A(),a(1,"svg",110),b(2,"path",111),s(),h(3," Manage "),s()}}function Hh(r,g){if(r&1&&(a(0,"div",106)(1,"span"),h(2),s(),S(3,Uh,4,0,"a",108),s()),r&2){let t=g.$implicit;o(2),O(" ",t.data.demographics," "),o(),l("ngIf",t.data.controlType==="Selectbox")}}function jh(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function zh(r,g){if(r&1&&(a(0,"div",106),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function Zh(r,g){if(r&1){let t=y();a(0,"div",106)(1,"dx-select-box",112),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,yo))("grouped",!0)("searchEnabled",!0)}}function Qh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Required"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoRequired,e)||(i.isAllDemoRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoRequired)}}function Yh(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsRequireChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isRequired)}}function Kh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Visible"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoVisible,e)||(i.isAllDemoVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoVisible)}}function Jh(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsVisibleChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isVisible)}}function Xh(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Editable"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDemoEditable,e)||(i.isAllDemoEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDemographicsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDemoEditable)}}function $h(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDemographicsEditableChanged(e,i.data.demographicsTypeID))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function ef(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function tf(r,g){if(r&1&&(a(0,"div",106),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function nf(r,g){if(r&1){let t=y();a(0,"div",106)(1,"dx-select-box",112),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressHubSpotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,yo))("grouped",!0)("searchEnabled",!0)}}function of(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Required"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressRequired,e)||(i.isAllAddressRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressRequired)}}function af(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),l("value",t.data.isRequired)}}function rf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Visible"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressVisible,e)||(i.isAllAddressVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressVisible)}}function sf(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),l("value",t.data.isVisible)}}function lf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Editable"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAddressEditable,e)||(i.isAllAddressEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAddressEditable)}}function df(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),l("value",t.data.isReadOnly)}}function cf(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function pf(r,g){if(r&1&&(a(0,"div",106),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function uf(r,g){if(r&1){let t=y();a(0,"div",106)(1,"dx-select-box",112),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressPhoneValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,yo))("grouped",!0)("searchEnabled",!0)}}function mf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Required"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneRequired,e)||(i.isAllPhoneRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneRequired)}}function gf(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),l("value",t.data.isRequired)}}function hf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Visible"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneVisible,e)||(i.isAllPhoneVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneVisible)}}function ff(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),l("value",t.data.isVisible)}}function Cf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Editable"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPhoneEditable,e)||(i.isAllPhoneEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPhoneEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPhoneEditable)}}function _f(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",117),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPhoneEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),l("value",t.data.isReadOnly)}}function yf(r,g){if(r&1){let t=y();a(0,"a",109),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",110),b(2,"path",111),s(),h(3," Manage "),s()}}function xf(r,g){if(r&1&&(a(0,"div",106)(1,"span",107),h(2),s(),S(3,yf,4,0,"a",108),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function vf(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function bf(r,g){if(r&1&&(a(0,"div",106),h(1),s()),r&2){let t=g.$implicit;o(),O(" ",t.data.hubspotFieldDisplayName!=null&&t.data.hubspotFieldDisplayName!==""?t.data.hubspotFieldDisplayName:t.data.hubspotFieldName," ")}}function wf(r,g){if(r&1){let t=y();a(0,"div",106)(1,"dx-select-box",112),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAffiliationHubspotValueChanges(e,i.data))}),s()()}if(r&2){let t=m();o(),l("dataSource",t.hubspotDataSource)("inputAttr",I(4,yo))("grouped",!0)("searchEnabled",!0)}}function Sf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Required"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAffiliationsRequired,e)||(i.isAllAffiliationsRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAffiliationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAffiliationsRequired)}}function Pf(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAffiliationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Mf(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Visible"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAffiliationsVisible,e)||(i.isAllAffiliationsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAffiliationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAffiliationsVisible)}}function Vf(r,g){if(r&1){let t=y();a(0,"div",116)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAffiliationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Ef(r,g){if(r&1){let t=y();a(0,"div",113)(1,"span",114),h(2,"Editable"),s(),a(3,"dx-switch",115),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAffiliationsEditable,e)||(i.isAllAffiliationsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAffiliationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAffiliationsEditable)}}function Tf(r,g){if(r&1){let t=y();a(0,"div",118)(1,"dx-switch",115),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAffiliationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Df(r,g){if(r&1){let t=y();a(0,"div",119),b(1,"dx-button",120),a(2,"dx-button",121),f("onClick",function(){p(t);let e=m();return u(e.Reset())}),s(),b(3,"dx-button",122),s()}}function If(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Values for "),a(2,"span",123),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function Af(r,g){if(r&1&&(a(0,"h2"),h(1,"Manage Values for "),a(2,"span",123),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function Lf(r,g){if(r&1){let t=y();a(0,"div",126)(1,"span",127),h(2),s(),a(3,"div",128)(4,"a",129),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.EditDemographicValuePopupEvent(e))}),A(),a(5,"svg",130),b(6,"path",131),s()(),G(),a(7,"a",132),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.DeleteDemographicDetailEvent(e))}),A(),a(8,"svg",130),b(9,"path",133),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.description)}}function kf(r,g){if(r&1&&(a(0,"div",124)(1,"dx-scroll-view",15),S(2,Lf,10,1,"div",125),s()()),r&2){let t=m();o(2),l("ngForOf",t.addDemographics.demographicsDetails)}}function Rf(r,g){if(r&1){let t=y();a(0,"div",126)(1,"span",127),h(2),s(),a(3,"div",128)(4,"a",129),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",130),b(6,"path",131),s()(),G(),a(7,"a",132),f("click",function(){let e=p(t).$implicit,i=m(2);return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",130),b(9,"path",133),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function Of(r,g){if(r&1&&(a(0,"div",124)(1,"dx-scroll-view",15),S(2,Rf,10,1,"div",125),s()()),r&2){let t=m();o(2),l("ngForOf",t.LookUpTableValues)}}function Gf(r,g){if(r&1){let t=y();a(0,"a",51),f("click",function(){p(t);let e=m();return u(e.ValuePopupEvent())}),A(),a(1,"svg",52),b(2,"circle",53)(3,"path",54),s(),h(4," Add Value "),s()}}function Bf(r,g){if(r&1){let t=y();a(0,"a",51),f("click",function(){p(t);let e=m();return u(e.LookupValuePopupEvent())}
87),A(),a(1,"svg",52),b(2,"circle",53)(3,"path",54),s(),h(4," Add Value "),s()}}function Ff(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function Wf(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function Nf(r,g){if(r&1){let t=y();a(0,"dx-button",134),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function qf(r,g){if(r&1){let t=y();a(0,"dx-button",135),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function Uf(r,g){if(r&1){let t=y();a(0,"dx-button",103),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}function Hf(r,g){if(r&1){let t=y();a(0,"dx-button",134),f("onClick",function(e){p(t);let i=m();return u(i.addDemographicDetail(e,!0))}),s()}}function jf(r,g){if(r&1){let t=y();a(0,"dx-button",135),f("onClick",function(e){p(t);let i=m();return u(i.addDemographicDetail(e,!1))}),s()}}function zf(r,g){if(r&1){let t=y();a(0,"dx-button",103),f("onClick",function(){p(t);let e=m();return u(e.editDemographicDetail())}),s()}}function Zf(r,g){if(r&1){let t=y();a(0,"dx-button",134),f("onClick",function(e){p(t);let i=m();return u(i.manageAddDemographicDetail(e,!0))}),s()}}function Qf(r,g){if(r&1){let t=y();a(0,"dx-button",135),f("onClick",function(e){p(t);let i=m();return u(i.manageAddDemographicDetail(e,!1))}),s()}}function Yf(r,g){if(r&1){let t=y();a(0,"dx-button",103),f("onClick",function(){p(t);let e=m();return u(e.manageEditDemographicDetail())}),s()}}function Kf(r,g){if(r&1){let t=y();a(0,"div",10)(1,"dx-text-box",136),_("valueChange",function(e){p(t);let i=m();return C(i.addDemographics.controlTooltip,e)||(i.addDemographics.controlTooltip=e),u(e)}),s()()}if(r&2){let t=m();o(),l("labelMode",t.labelMode),x("value",t.addDemographics.controlTooltip),l("inputAttr",I(3,Ih))}}function Jf(r,g){if(r&1){let t=y();a(0,"div",10)(1,"dx-select-box",137),_("valueChange",function(e){p(t);let i=m();return C(i.addDemographics.controlDataType,e)||(i.addDemographics.controlDataType=e),u(e)}),s()()}if(r&2){let t=m();o(),l("labelMode",t.labelMode),x("value",t.addDemographics.controlDataType),l("items",t.ControlDataType)("inputAttr",I(5,Ts))("showClearButton",!0)}}function Xf(r,g){if(r&1){let t=y();a(0,"div",77)(1,"a",51),f("click",function(){p(t);let e=m();return u(e.DemographicsAddValuePopupEvent())}),A(),a(2,"svg",52),b(3,"circle",53)(4,"path",54),s(),h(5," Add Value "),s()()}}function $f(r,g){if(r&1){let t=y();a(0,"dx-button",138),f("onClick",function(){p(t);let e=m();return u(e.removeDemographicDetails(e.selectedDemographicDetail))}),s()}}function eC(r,g){if(r&1){let t=y();a(0,"dx-button",138),f("onClick",function(){p(t);let e=m();return u(e.removeManageDemographicDetails(e.selectedDemographicDetail))}),s()}}function tC(r,g){if(r&1){let t=y();a(0,"dx-button",138),f("onClick",function(){p(t);let e=m();return u(e.removeLookupValueDetails(e.selectedLookupTableValue))}),s()}}/localhost/.test(document.location.host)||void 0;var Ds=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V,E){super(),this.propertyService=n,this.utilityService=e,this.webStorageService=i,this.router=d,this.hubspotService=c,this.authenticationService=v,this.permissionService=V,this.propertyManagementCommonService=E,this.LabelValidator=[{type:"required",message:"Label name is required"}],this.ControlNameValidator=[{type:"required",message:"Control name is required"}],this.ControlTypeValidator=[{type:"required",message:"Control type is required"}],this.AddDemographicValueValidator=[{type:"required",message:"Demographics detail is required"}],this.AddValueValidator=[{type:"required",message:"Value is required"}],this.unsubscriber=new Ct,this.progress=new Ct,this.formData={},this.editRowKey=null,this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.personalInfoCollapseExpand=!1,this.dataSource=[],this.allDataSource=[],this.addresss=[],this.allAddresss=[],this.affiliations=[],this.allAffiliations=[],this.emails=[],this.phones=[],this.allPhones=[],this.demographics=[],this.allDemographicsTypes=[],this.addDemographics=new qi,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.DemographicsCollapseExpand=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.isEditMode=!1,this.countries=[],this.states=[],this.recordTypes=[],this.addressTypes=[],this.phoneTypes=[],this.hubspotModel=[],this.personalInformationControls=[],this.addressInformationControls=[],this.phoneInformationControls=[],this.demographicsInformationControls=[],this.affiliationsInformationControls=[],this.selectedPersonalInfoControl
87="All",this.selectedAddressInfoControl="All",this.selectedPhoneInfoControl="All",this.selectedDemoInfoControl="All",this.selectedAffiliationInfoControl="All",this.isAllDemoRequired=!1,this.isAllDemoVisible=!1,this.isAllDemoEditable=!1,this.isAllPhoneRequired=!1,this.isAllPhoneVisible=!1,this.isAllPhoneEditable=!1,this.isAllAddressEditable=!1,this.isAllAddressVisible=!1,this.isAllAddressRequired=!1,this.isAllPersonalEditable=!1,this.isAllPersonalVisible=!1,this.isAllPersonalRequired=!1,this.isAllAffiliationsEditable=!1,this.isAllAffiliationsVisible=!1,this.isAllAffiliationsRequired=!1,this.selectedDemographicDetail=new Vi,this.isEditDemoDetail=!1,this.isEditLookupValue=!1,this.isDemographicsAddValue=!1,this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.selectedControlId=0,this.demographicDetails=[],this.userToken=new Ki,this.ConstituentsCollapseExpand=!1,this.controlId=0,this.tableId=0,this.dataGridParamNames=["searchExpr","searchOperation","searchValue","select","filter","sort","EntityName","PageName","FieldType","FieldName","PageCategory"],this.hubspotFields=[],this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([T])=>({entitiesModel:T}))).subscribe(T=>{this.loading=!1,Object.keys(T).forEach(W=>this[W]=T[W].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(Vt=>Vt.entityType))].forEach(Vt=>{let ii=new ui;ii.category=Vt=="Entity"?"":Vt,ii.entities=this.entitiesModel.filter(mi=>mi.entityType==Vt),this.groupedEntites.push(ii)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(W){return W.key=W.category,W.items=W.entities,W}});let D=this.entitiesModel.find(W=>W.name==z.Company);D&&(this.entityID=D.entityID),this.fromPregroupedData.load()})},this.loadData=()=>{this.loading=!0,Yt([this.utilityService.GetCountries(),this.utilityService.GetStates(),this.utilityService.GetAllRecordType(),this.utilityService.GetAllAddressType(),this.utilityService.GetAllPhoneType(),this.hubspotService.GetCompanyHubspotProperties()]).pipe(Qt(([T,D,W,Vt,ii,mi])=>({countries:T,states:D,recordTypes:W,addressTypes:Vt,phoneTypes:ii,hubspotFields:mi}))).subscribe(T=>{this.loading=!1,Object.keys(T).forEach(D=>this[D]=T[D].responseModel),this.addressTypes.length>0&&(this.selectedAddress=this.addressTypes[0].code),this.phoneTypes.length>0&&(this.selectedPhone=this.phoneTypes[0].code),this.GetHubSpotField(),this.GetDataSource(),this.GetAddressInformation(),this.GetPhoneInformation(),this.GetDemographicsInformation(),this.GetAffiliationsInformation()})},this.asyncProfileValidation=T=>B(this,null,function*(){return!(this.dataSource.filter(W=>W.fieldCaption.replace(/ /g,"")==T.value.replace(/ /g,"")&&W.sourceColumnName!=T.data.sourceColumnName).length>0)}),this.asyncAddressValidation=T=>B(this,null,function*(){return!(this.addresss.filter(W=>W.fieldCaption.replace(/ /g,"")==T.value.replace(/ /g,"")&&W.sourceColumnName!=T.data.sourceColumnName).length>0)}),this.asyncPhoneValidation=T=>B(this,null,function*(){return!(this.phones.filter(W=>W.fieldCaption.replace(/ /g,"")==T.value.replace(/ /g,"")&&W.sourceColumnName!=T.data.sourceColumnName).length>0)}),this.asyncDemographicValidation=T=>B(this,null,function*(){return!(this.demographics.filter(W=>W.demographics.replace(/ /g,"")==T.value.replace(/ /g,"")&&W.demographicsTypeID!=T.data.demographicsTypeID).length>0)}),this.asyncAffiliationValidation=T=>B(this,null,function*(){return!(this.allAffiliations.filter(W=>W.fieldCaption.replace(/ /g,"")==T.value.replace(/ /g,"")&&W.sourceColumnName!=T.data.sourceColumnName).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadData(),this.loadEntitiesData(),this.customCallback=this.customCallback.bind(this),this.addDemographics.demographicsDetails=[],this.addDemographics=new qi,this.ControlType=["Datepicker","Numberbox","Selectbox","TextBox"],this.ControlDataType=["Money","Age","Date","Text","Number"]}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entity
87ID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}GetPersonalInformation(){let t=this,n=i=>i!=null&&i!=="";if(this.datasource1=new ki({key:"systemPageControlId",load(i){return B(this,null,function*(){let d=new Si;t.dataGridParamNames.forEach(c=>{n(i[c])?c==="filter"?d=d.set(c,JSON.stringify(i[c])):c==="EntityName"?d=d.set(c,"Company"):c==="PageName"?d=d.set(c,"Profile Information,Organization Information"):d=d.set(c,JSON.stringify(i[c])):c==="EntityName"?d=d.set(c,"Company"):c==="PageName"?d=d.set(c,"Profile Information,Organization Information"):d=d.set(c,"")});try{let c=yield wi(t.propertyService.GetAllSystemPageControls(d));return{data:c.responseModel.results,totalCount:c.responseModel.totalRecords,summary:c.summary,groupCount:c.groupCount}}catch{throw new Error("Data Loading Error")}})},update(i,d){return B(this,null,function*(){})}}),this.dataGrid!=null){let i=this.dataGrid.instance;i.clearSelection(),i.option("focusedRowIndex",-1)}}GetAddressInformation(){let t=e=>e!=null&&e!=="",n=new Si;if(this.dataGridParamNames.forEach(e=>{e==="EntityName"?n=n.set(e,"Company"):e==="PageName"?n=n.set(e,"Address Information"):n=n.set(e,"")}),this.loading=!0,this.propertyService.GetAllSystemPageControls(n).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{this.loading=!1,e&&e.isSuccess?e.responseModel!=null&&e.responseModel!=null&&(this.allAddresss=e.responseModel,this.allAddresss!=null&&this.allAddresss.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allAddresss.forEach(i=>{let d=this.hubspotFields.find(c=>i.hubspotFieldName!=null&&c.name.toLowerCase()==i.hubspotFieldName.toLowerCase());d&&(i.hubspotFieldDisplayName=d.label)}),this.filterAddressInformation()):(this.loading=!1,this.showErrorMessage(e.message))})},e=>{this.loading=!1,this.showErrorMessage(e.message)}),this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}GetPhoneInformation(){let t=new Si;if(this.dataGridParamNames.forEach(n=>{n==="EntityName"?t=t.set(n,"Company"):n==="PageName"?t=t.set(n,"Phone Information"):t=t.set(n,"")}),this.loading=!0,this.propertyService.GetAllSystemPageControls(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?n.responseModel!=null&&n.responseModel!=null&&(this.allPhones=n.responseModel,this.allPhones!=null&&this.allPhones.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allPhones.forEach(e=>{let i=this.hubspotFields.find(d=>e.hubspotFieldName!=null&&d.name.toLowerCase()==e.hubspotFieldName.toLowerCase());i&&(e.hubspotFieldDisplayName=i.label)}),this.filterPhoneInformation()):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}),this.dataGrid!=null){let n=this.dataGrid.instance;n.clearSelection(),n.option("focusedRowIndex",-1)}}GetDemographicsInformation(){if(this.loading=!0,this.utilityService.GetCompanyAllDemographicsType().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.demographics=t.responseModel,this.demographics.forEach(n=>{n.demographicControlName=n.demographics}),this.allDemographicsTypes=t.responseModel,this.allDemographicsTypes.forEach(n=>{n.demographicControlName=n.demographics}),this.allDemographicsTypes!=null&&this.allDemographicsTypes.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allDemographicsTypes.forEach(n=>{let e=this.hubspotFields.find(i=>n.hubspotFieldName!=null&&i.name.toLowerCase()==n.hubspotFieldName.toLowerCase());e&&(n.hubspotFieldDisplayName=e.label)}),this.filterDemoInformation()):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}),this.dataGrid!=null){let t=this.dataGrid.instance;t.clearSelection(),t.option("focusedRowIndex",-1)}}GetAffiliationsInformation(){let t=e=>e!=null&&e!=="",n=new Si;
87if(this.dataGridParamNames.forEach(e=>{e==="EntityName"?n=n.set(e,"Company"):e==="PageName"?n=n.set(e,"Affiliations"):n=n.set(e,"")}),this.loading=!0,this.propertyService.GetAllSystemPageControls(n).pipe(w(this.unsubscriber)).subscribe(e=>{this.processResult(e,()=>{this.loading=!1,e&&e.isSuccess?e.responseModel!=null&&e.responseModel!=null&&(this.allAffiliations=e.responseModel,this.allAffiliations!=null&&this.allAffiliations.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allAffiliations.forEach(i=>{let d=this.hubspotFields.find(c=>i.hubspotFieldName!=null&&c.name.toLowerCase()==i.hubspotFieldName.toLowerCase());d&&(i.hubspotFieldDisplayName=d.label)}),this.filterAffiliationsInformation()):(this.loading=!1,this.showErrorMessage(e.message))})},e=>{this.loading=!1,this.showErrorMessage(e.message)}),this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}GetDataSource(){let t=new Si;this.dataGridParamNames.forEach(n=>{n==="EntityName"?t=t.set(n,"Company"):n==="PageName"?t=t.set(n,"Profile Information,Organization Information"):t=t.set(n,"")}),this.personalInformationControls=[],this.loading=!0,this.propertyService.GetAllSystemPageControls(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?n.responseModel!=null&&n.responseModel!=null&&(this.allDataSource=n.responseModel,this.allDataSource!=null&&this.allDataSource.length>0&&this.hubspotFields!=null&&this.hubspotFields.length>0&&this.allDataSource.forEach(e=>{let i=this.hubspotFields.find(d=>e.hubspotFieldName!=null&&d.name.toLowerCase()==e.hubspotFieldName.toLowerCase());i&&(e.hubspotFieldDisplayName=i.label)}),this.filterPersonalInformation()):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}filterPersonalInformation(){this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!=""&&this.selectedPersonalInfoControl!="All"?this.dataSource=this.allDataSource.filter(i=>i.formControlType==this.selectedPersonalInfoControl):(this.dataSource=[],this.allDataSource.forEach(i=>{this.dataSource.push(i)})),this.allDataSource.forEach(i=>{this.personalInformationControls.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.personalInformationControls.push(i.formControlType)}),this.personalInformationControls.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.personalInformationControls.splice(0,0,"All"),this.isAllPersonalRequired=!1,this.dataSource.every(i=>i.isRequired==!0)&&(this.isAllPersonalRequired=!0),this.isAllPersonalEditable=!1,this.dataSource.every(i=>i.isReadOnly==!0)&&(this.isAllPersonalEditable=!0),this.isAllPersonalVisible=!1,this.dataSource.every(i=>i.isVisible==!0)&&(this.isAllPersonalVisible=!0)}filterAddressInformation(){this.addresss=this.allAddresss.filter(i=>i.pageCategory.toLowerCase()==this.selectedAddress.toLowerCase()),this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!=""&&this.selectedAddressInfoControl!="All"&&(this.addresss=this.addresss.filter(i=>i.formControlType==this.selectedAddressInfoControl)),this.addresss=this.addresss.sort((i,d)=>i.controlDisplayOrder<d.controlDisplayOrder?-1:1),this.allAddresss.forEach(i=>{this.addressInformationControls.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.addressInformationControls.push(i.formControlType)}),this.addressInformationControls.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.addressInformationControls.splice(0,0,"All"),this.isAllAddressRequired=!1,this.addresss.every(i=>i.isRequired==!0)&&(this.isAllAddressRequired=!0),this.isAllAddressEditable=!1,this.addresss.every(i=>i.isReadOnly==!0)&&(this.isAllAddressEditable=!0),this.isAllAddressVisible=!1,this.addresss.every(i=>i.isVisible==!0)&&(this.isAllAddressVisible=!0)}filterPhoneInformation(){this.phones=this.allPhones.filter(i=>i.pageCategory.toLowerCase()==this.selectedPhone.toLowerCase()),this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!=""&&this.selectedPhoneInfoControl!="All"&&(this.phones=this.phones.filter(i=>i.formControlType==this.selectedPhoneInfoControl)),this.phones=this.phones.sort((i,d)=>i.controlDisplayOrder<d.controlDisplayOrder?-1:1),this.allPhones.forEac
87h(i=>{this.phoneInformationControls.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.phoneInformationControls.push(i.formControlType)}),this.phoneInformationControls.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.phoneInformationControls.splice(0,0,"All"),this.isAllPhoneRequired=!1,this.phones.every(i=>i.isRequired==!0)&&(this.isAllPhoneRequired=!0),this.isAllPhoneEditable=!1,this.phones.every(i=>i.isReadOnly==!0)&&(this.isAllPhoneEditable=!0),this.isAllPhoneVisible=!1,this.phones.every(i=>i.isVisible==!0)&&(this.isAllPhoneVisible=!0)}filterDemoInformation(){this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!=""&&this.selectedDemoInfoControl!="All"?this.demographics=this.allDemographicsTypes.filter(i=>i.controlType==this.selectedDemoInfoControl):(this.demographics=[],this.allDemographicsTypes.forEach(i=>{this.demographics.push(i)})),this.allDemographicsTypes.forEach(i=>{this.demographicsInformationControls.find(d=>d.toLowerCase()==i.controlType.toLowerCase())==null&&this.demographicsInformationControls.push(i.controlType)}),this.demographicsInformationControls.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.demographicsInformationControls.splice(0,0,"All"),this.isAllDemoRequired=!1,this.demographics.every(i=>i.isRequired==!0)&&(this.isAllDemoRequired=!0),this.isAllDemoEditable=!1,this.demographics.every(i=>i.isReadOnly==!0)&&(this.isAllDemoEditable=!0),this.isAllDemoVisible=!1,this.demographics.every(i=>i.isVisible==!0)&&(this.isAllDemoVisible=!0)}filterAffiliationsInformation(){this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!=""&&this.selectedAffiliationInfoControl!="All"?this.affiliations=this.allAffiliations.filter(i=>i.formControlType==this.selectedAffiliationInfoControl):(this.affiliations=[],this.allAffiliations.forEach(i=>{this.affiliations.push(i)})),this.allAffiliations.forEach(i=>{this.affiliationsInformationControls.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.affiliationsInformationControls.push(i.formControlType)}),this.affiliationsInformationControls.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.affiliationsInformationControls.splice(0,0,"All"),this.isAllAffiliationsRequired=!1,this.affiliations.every(i=>i.isRequired==!0)&&(this.isAllAffiliationsRequired=!0),this.isAllAffiliationsEditable=!1,this.affiliations.every(i=>i.isReadOnly==!0)&&(this.isAllAffiliationsEditable=!0),this.isAllAffiliationsVisible=!1,this.affiliations.every(i=>i.isVisible==!0)&&(this.isAllAffiliationsVisible=!0)}ResetHubSpotField(){this.GetHubSpotField()}GetHubSpotField(){this.hubspotModel=[],this.loading=!0,this.hubspotService.GetCompanyHubspotProperties().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.hubspotModel=t.responseModel,this.hubspotDataSource=new ri({store:new kt({data:this.hubspotModel,key:"name"}),group:"groupName"}))})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onPersonalHubSpotValueChanges({value:t},n){let e=n.pageName;e==M.PropertyPageName.profileInformation.toString()?this.UpdateHubspotDetails(t,n,M.PropertyPageName.profileInformation.toString()):e==M.PropertyPageName.OrganizationInformation.toString()&&this.UpdateHubspotDetails(t,n,M.PropertyPageName.OrganizationInformation.toString())}onAddressHubSpotValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.addressInformation.toString())}onAddressPhoneValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.phoneInformation.toString())}onAffiliationHubspotValueChanges({value:t},n){this.UpdateHubspotDetails(t,n,M.PropertyPageName.Affiliations.toString())}UpdateHubspotDetails(t,n,e){if(t!=""){let i=new Gn;i.hubspotFieldName=t;let d=this.hubspotModel.filter(v=>v.name==t),c="";d.length>0&&(c=d[0].groupName),i.hubspotGroupName=c,i.systemPageControlId=n.systemPageControlId,i.systemPageId=n.systemPageId,i.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.Upd
87ateSystemPageControlHubSpotField(i).pipe(w(this.unsubscriber)).subscribe(v=>{this.processResult(v,()=>{if(this.loading=!1,v&&v.isSuccess){if(this.changes=[],this.dataGrid!=null){let V=this.dataGrid.instance;V.clearSelection(),V.option("focusedrowindex",-1)}e==M.PropertyPageName.profileInformation.toString()||e==M.PropertyPageName.OrganizationInformation.toString()?this.GetDataSource():e==M.PropertyPageName.addressInformation.toString()?this.GetAddressInformation():e==M.PropertyPageName.phoneInformation.toString()&&this.GetPhoneInformation(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(v.message)})},v=>{this.loading=!1,this.showErrorMessage(v.message)})}}onDemographicsHubSpotValueChanges({value:t},n){if(t!=""){let e=new Gn;e.hubspotFieldName=t;let i=this.hubspotModel.filter(c=>c.name==t),d="";i.length>0&&(d=i[0].groupName),e.modifiedByUserId=this.userToken.userId,e.hubspotGroupName=d,e.demographicsTypeID=n.demographicsTypeID,this.loading=!0,this.propertyService.UpdateDemographicsControlHubSpotField(e).pipe(w(this.unsubscriber)).subscribe(c=>{this.processResult(c,()=>{if(this.loading=!1,c&&c.isSuccess){if(this.changes=[],this.dataGrid!=null){let v=this.dataGrid.instance;v.clearSelection(),v.option("focusedrowindex",-1)}this.GetDemographicsInformation(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(c.message)})},c=>{this.loading=!1,this.showErrorMessage(c.message)})}}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onRequiredSwitchChanged(t,n){t&&(n=="Profile Information,Organization Information"?this.dataSource.forEach(e=>e.isRequired=t.value):n==="Address Information"?this.addresss.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedAddress.toLocaleLowerCase()).forEach(i=>i.isRequired=t.value):n==="Phone Information"&&this.phones.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedPhone.toLocaleLowerCase()).forEach(i=>i.isRequired=t.value))}onVisibleSwitchChanged(t,n){t&&(n==="Profile Information,Organization Information"?this.dataSource.forEach(e=>e.isVisible=t.value):n==="Address Information"?this.addresss.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedAddress.toLocaleLowerCase()).forEach(i=>i.isVisible=t.value):n==="Phone Information"&&this.phones.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedPhone.toLocaleLowerCase()).forEach(i=>i.isVisible=t.value))}onEditableSwitchChanged(t,n){t&&(n==="Profile Information,Organization Information"?this.dataSource.forEach(e=>e.isReadOnly=t.value):n==="Address Information"?this.addresss.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedAddress.toLocaleLowerCase()).forEach(i=>i.isReadOnly=t.value):n==="Phone Information"&&this.phones.filter(i=>i.pageCategory.toLocaleLowerCase()==this.selectedPhone.toLocaleLowerCase()).forEach(i=>i.isReadOnly=t.value))}onSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?n.key.pageName==="Profile Information,Organization Information"?this.dataSource.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.sourceColumnName!=n.key.sourceColumnName).length>0&&(e=!0):n.key.pageName==="Address Information"?this.addresss.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.sourceColumnName!=n.key.sourceColumnName).length>0&&(e=!0):n.key.pageName==="Phone Information"?this.phones.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.sourceColumnName!=n.key.sourceColumnName).length>0&&(e=!0):n.key.pageName==="Affiliations"&&this.affiliations.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.sourceColumnName!=n.key.sourceColumnName).length>0&&(e=!0):e=!0}e?n.key.pageName==="Profile Information,Organization Information"?this.GetDataSource():n.key.pageName==="Address Information"?this.GetAddressInformation():n.key.pageName==="Phone Information"?this.GetPhoneInformation():n.key.pageName==="Aff
87iliations"&&this.GetAffiliationsInformation():(t.cancel=!0,this.editRowKey=null,this.processSaving(n))}}processSaving(t){return B(this,null,function*(){let n=new oi;n.modifiedByUserId=this.userToken.userId,n.tenantSystemPageControls=[];let e=t.data,i=Object.keys(e),d=Object.values(e),c=t.key;c[i[0]]=d[0],n.tenantSystemPageControls.push(c),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(n).pipe(w(this.unsubscriber)).subscribe(v=>{this.processResult(v,()=>{if(this.loading=!1,v&&v.isSuccess){if(this.changes=[],this.dataGrid!=null){let V=this.dataGrid.instance;V.clearSelection(),V.option("focusedRowIndex",-1)}this.showSuccessMessage("System Page Control has been updated successfully"),this.Reset()}else this.loading=!1,this.showErrorMessage(v.message)})},v=>{this.loading=!1,this.showErrorMessage(v.message)})})}UpdateDemographicsControl(t){let n=t;if(n.changes.length>0){t.cancel=!0;let e=n.changes[0].key,i=n.changes[0].data,d=Object.keys(i),c=Object.values(i);if(e[d[0]]=c[0].toString().trim(),this.demographics.filter(V=>V.demographics.replace(/ /g,"")==c[0].toString().trim().replace(/ /g,"")&&V.demographicsTypeID!=e.demographicsTypeID).length>0){this.GetDemographicsInformation();return}else if(c[0].toString().trim().replace(/ /g,"")==""&&d[0].toString().trim()!="controlTooltip"){this.GetDemographicsInformation();return}this.loading=!0,this.utilityService.UpdateDemographics(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.changes=[],this.loading=!1,V&&V.isSuccess){if(this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedRowIndex",-1)}this.showSuccessMessage("System Page Control has been updated successfully"),this.GetDemographicsInformation()}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})}}UpdateSystemPageControl(t){this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(t).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{if(this.loading=!1,n&&n.isSuccess){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(n.message)})},n=>{this.loading=!1,this.showErrorMessage(n.message)})}onSwitchValueChanged(t,n){}Reset(){this.GetDataSource(),this.GetAddressInformation(),this.GetPhoneInformation(),this.GetDemographicsInformation(),this.GetAffiliationsInformation()}Save(){}deleteRecords(){this.selectedItemKeys.forEach(t=>{}),this.dataGrid.instance.refresh()}personalInformation(){this.personalInfoCollapseExpand=!this.personalInfoCollapseExpand}AddressInformation(){this.AddressInfoCollapseExpand=!this.AddressInfoCollapseExpand}EmailInformation(){this.EmailInfoCollapseExpand=!this.EmailInfoCollapseExpand}PhoneInformation(){this.PhoneInfoCollapseExpand=!this.PhoneInfoCollapseExpand}DemographicsInformation(){this.DemographicsCollapseExpand=!this.DemographicsCollapseExpand}AffiliationsInformation(){this.ConstituentsCollapseExpand=!this.ConstituentsCollapseExpand}DemographicsPopupEvent(){this.addDemographics.demographicsDetails=[],this.addDemographics=new qi,this.demographicsGroup.instance.reset(),this.addDemographicsPopup=!0}ValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues.length>0?this.LookUpTableValues[0].controlId:this.controlId,i.tableId=this.LookUpTableValues.length>0?this.LookUpTableValues[0].tableId:this.tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Company.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Company.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.addValuePopupPopup=!0,this.isEditMode=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}EditDemographicValuePopupEvent(t){this.selectedDemographicDetail=t,this.lookupValue=t.description,this.isEditDemoDetail=!0,this.addValuePopupPopup=!0,this.isEditMode=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}closeDeleteValuePopup(){this.selectedDemographicDetail=new Vi,this.selectedLookupTableValue=new _t,this.deletePopup=!1}closeAddValuePopup(){this.addValuePopupPopup=!1,this.isEditDemoDetail=!1,this.isEditLookupValue=!1,this.isEditMode=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.selectedDemographicDetail=new Vi}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.controlId=t.systemPageControlId,this.tableId=t.lookupReferenceSystemTableID,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageDemographicsLabelClick(t){this.AddValueHeader=t.demographics,this.GetManageValueLabelsList(t),this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}GetManageValueLabelsList(t){this.loading=!0,this.utilityService.GetAllDemographicDetailsByDemographicTypeId(t.demographicsTypeID).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.demographicDetails=n.responseModel,this.addDemographics=t,this.addDemographics.demographicsDetails=this.demographicDetails,this.isDemographicsAddValue=!0,this.isDemographicsManageValue=!0):this.showErrorMessage(n.message)},n=>{this.showErrorMessage(n.message)})}ManageLabelClickClose(){this.isDemographicsAddValue=!1,this.isDemographicsManageValue=!1,this.isEditDemoDetail=!1,this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}DeleteValuePopupEvent(){this.deletePopup=!0}customCallback(t){let n=this.lookupValue;return n&&this.isDemographicsAddValue?this.addDemographics.demographicsDetails!=null&&this.addDemographics.demographicsDetails.length>0?!this.addDemographics.demographicsDetails.find(i=>i.description.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.demographicsDetailID!=this.selectedDemographicDetail.demographicsDetailID):!0:n&&!this.isDemographicsAddValue&&this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}closeDemographicsPopup(){this.addDemographicsPopup=!1}DemographicsAddValuePopupEvent(){this.isDemographicsAddValue=!0,this.AddValueHeader=this.addDemographics.demographics,this.FilterActive=!0}manageAddDemographicDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new Vi;i.demographicsTypeID=this.addDemographics.demographicsTypeID,i.description=this.lookupValue,i.modifiedByUserId=this.userToken.userId,i.demographicsDetailID=0,this.loading=!0,this.utilityService.AddUpdateDemographicsDetails(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.lookupValue} successfully added to ${this.addDemographics.demographics}.`),this.lookupValue=null,this.addValueGroup.instance.reset(),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):this.showErrorMessage(d.message)},d=>{this.showErrorMessage(d.message)})}manageEditDemographicDetail(){if(!this.addValueGroup.instance.validate().isValid)return;let n=new Vi;n.demographicsTypeID=this.addDemographics.demographicsTypeID,n.description=this.lookupValue,n.modifiedByUserId=this.userToken.userId,n.demographicsDetailID=this.selectedDemographicDetail.demographicsDetailID,this.loading=!0,this.utilityService.AddUpdateDemographicsDetails(n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.lookupValue} successfully updated.`),this.lookupValue=null,this.isEditDemoDetail=!1,this.isEditMode=!1,this.addValuePopupPopup=!1):this.showErrorMessage(e.message)},e=>{this.showErrorMessage(e.message)})}
87removeManageDemographicDetails(t){let n=new Vi;n.demographicsTypeID=this.addDemographics.demographicsTypeID,n.description=this.lookupValue,n.modifiedByUserId=this.userToken.userId,n.isActive=!1,n.demographicsDetailID=this.selectedDemographicDetail.demographicsDetailID,this.loading=!0,this.utilityService.ActiveInactiveDemographicDetail(this.selectedDemographicDetail.demographicsDetailID,!1).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess?(this.GetManageValueLabelsList(this.addDemographics),this.showSuccessMessage(`Demographics details ${this.selectedDemographicDetail.description} successfully deleted.`),this.lookupValue=null,this.addValuePopupPopup=!1,this.deletePopup=!1,this.selectedDemographicDetail=new Vi):this.showErrorMessage(e.message)},e=>{this.showErrorMessage(e.message)})}addDemographicDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;if(this.addDemographics.demographicsDetails.filter(c=>c.description==this.lookupValue).length>0){this.showErrorMessage("Demographic detail already exists in the list");return}let d=new Vi;d.description=this.lookupValue,d.isActive=!0,this.addDemographics.demographicsDetails.push(d),this.ResetDemographicDetailRowno(),n?(this.lookupValue=null,this.addValueGroup.instance.reset()):this.closeAddValuePopup()}editDemographicDetail(){if(!this.addValueGroup.instance.validate().isValid)return;if(this.addDemographics.demographicsDetails.filter(i=>i.description==this.lookupValue&&i.rowno!=this.selectedDemographicDetail.rowno).length>0){this.showErrorMessage("Demographic detail already exists in the list");return}let e=this.addDemographics.demographicsDetails.find(i=>i.rowno==this.selectedDemographicDetail.rowno);e.description=this.lookupValue,this.isEditDemoDetail=!1,this.isEditMode=!1,this.selectedDemographicDetail=new Vi,this.addValueGroup.instance.reset(),this.closeAddValuePopup()}ResetDemographicDetailRowno(){let t=0;this.addDemographics.demographicsDetails.forEach(n=>{n.rowno=t+1,t=t+1})}DeleteDemographicDetailEvent(t){this.selectedDemographicDetail=t,this.deleteValue=t.description,this.deletePopup=!0}removeDemographicDetails(t){this.addDemographics.demographicsDetails=this.addDemographics.demographicsDetails.filter(n=>n.rowno!=this.selectedDemographicDetail.rowno),this.ResetDemographicDetailRowno(),this.selectedDemographicDetail=new Vi,this.deleteValue=null,this.deletePopup=!1}onFormDemoSubmit({validationGroup:t,event:n}
87){this.demographicsGroup.instance.validate().isValid&&(this.addDemographics.modifiedByUserId=this.userToken.userId,this.utilityService.AddCompanyDemographics(this.addDemographics).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(i=>{i.isSuccess?(this.closeDemographicsPopup(),this.GetDemographicsInformation(),this.showSuccessMessage("Demographic property added successfully")):this.showErrorMessage(i.message)},i=>{this.showErrorMessage(i.message)}))}onAllDemographicsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllDemoRequired=t.value;let n="";this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!="All"&&(n=this.selectedDemoInfoControl),this.utilityService.UpdateAllCompanyDemographicsRequireFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDemographicsInformation(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateRequireFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDemographicsInformation(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDemographicsVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;if(this.isAllDemoVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}let n="";this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!="All"&&(n=this.selectedDemoInfoControl),this.utilityService.UpdateAllCompanyDemographicsVisibleFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDemographicsInformation(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateVisibleFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDemographicsInformation(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDemographicsEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;if(this.isAllDemoEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}let n="";this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!=null&&this.selectedDemoInfoControl!="All"&&(n=this.selectedDemoInfoControl),this.utilityService.UpdateAllCompanyDemographicsEditableFieldControl(t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDemographicsInformation(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDemographicsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.utilityService.UpdateEditableFieldDemographicsControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.showSuccessMessage("Editable property is updated successfully"),this.GetDemographicsInformation())},e=>{this.showErrorMessage(e.message)})}onAllPhoneRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPhoneRequired=t.value;let n="";this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!="All"&&(n=this.selectedPhoneInfoControl),this.propertyService.Upd
87ateAllRequireFieldCompanyControl(M.PropertyPageName.phoneInformation.toString(),this.selectedPhone,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPhoneVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPhoneVisible=t.value;let n="";this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!="All"&&(n=this.selectedPhoneInfoControl),this.propertyService.UpdateAllVisibleFieldCompanyControl(M.PropertyPageName.phoneInformation.toString(),this.selectedPhone,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPhoneEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPhoneEditable=t.value;let n="";this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!=null&&this.selectedPhoneInfoControl!="All"&&(n=this.selectedPhoneInfoControl),this.propertyService.UpdateAllEditableFieldCompanyControl(M.PropertyPageName.phoneInformation.toString(),this.selectedPhone,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPhoneEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPhoneInformation(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAddressRequired=t.value;let n="";this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!="All"&&(n=this.selectedAddressInfoControl),this.propertyService.UpdateAllRequireFieldCompanyControl(M.PropertyPageName.addressInformation.toString(),this.selectedAddress,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAddressVisible=t.value;let n="";this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!="All"&&(n=this.selectedAddressInfoControl),this.propertyService.Upd
87ateAllVisibleFieldCompanyControl(M.PropertyPageName.addressInformation.toString(),this.selectedAddress,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAddressEditable=t.value;let n="";this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!=null&&this.selectedAddressInfoControl!="All"&&(n=this.selectedAddressInfoControl),this.propertyService.UpdateAllEditableFieldCompanyControl(M.PropertyPageName.addressInformation.toString(),this.selectedAddress,t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAddressInformation(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPersonalRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPersonalRequired=t.value;let n="";this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!="All"&&(n=this.selectedPersonalInfoControl),this.propertyService.UpdateAllRequireFieldCompanyControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPersonalVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPersonalVisible=t.value;let n="";this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!="All"&&(n=this.selectedPersonalInfoControl),this.propertyService.UpdateAllVisibleFieldCompanyControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPersonalEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPersonalEditable=t.value;let n="";this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!=null&&this.selectedPersonalInfoControl!="All"&&(n=this.selectedPersonalInfoControl),this.propertyService.Upd
87ateAllEditableFieldCompanyControl(M.PropertyPageName.personalInformation.toString(),L.Personal.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPersonalEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDataSource(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationsRequired=t.value;let n="";this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!="All"&&(n=this.selectedAffiliationInfoControl),this.propertyService.UpdateAllRequireFieldCompanyControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationVisibleChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationsVisible=t.value;let n="";this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!="All"&&(n=this.selectedAffiliationInfoControl),this.propertyService.UpdateAllVisibleFieldCompanyControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAffiliationEditableChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAffiliationsEditable=t.value;let n="";this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!=null&&this.selectedAffiliationInfoControl!="All"&&(n=this.selectedAffiliationInfoControl),this.propertyService.UpdateAllEditableFieldCompanyControl(M.PropertyPageName.Affiliations.toString(),L.Affiliations.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAffiliationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAffiliationsInformation(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Company.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0,this.isDemographicsAddValue=!1)},n=>{this.showErrorMessage(n.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(Kt),k(di),k(yt),k(St),k(kn),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-companies-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(Sh,5),U(Ph,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.demographicsGroup=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:332,vars:304,consts:[["addValueGroup",""],["demographicsGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Companies","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","Select",1,"select-box","entity-type",3,"onValueChanged","valueChange","showClearButton","items","inputAttr","value"],[1,"properties-filter__right"],["text","Sync with HubSpot","icon","sync","stylingMode","contained","type","normal",1,"btn","btn--sync",3,"onClick"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSaving","repaintChangesOnly","dataSource","showBorders"],[3,"enabled"],[3,"groupPaging"],["mode","cell","refreshMode","reshape",3,"editRowKeyChange","changesChange","allowUp
87dating","editRowKey","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","HubSpotMapping","caption","HubSpot Mapping","editCellTemplate","editHubspotNameManage","cellTemplate","hubspotNameManage",3,"width"],["dataField","isRequired","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","isVisible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","isReadOnly","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSaving","onSelectionChanged","dataSource","showBorders"],["mode","cell",3,"changesChange","allowUpdating","changes"],["dataField","controlName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","controlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","demographics","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["dataField","controlTooltip","caption","Tooltip",3,"width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["displayExpr","addressType","valueExpr","code","placeholder","Select",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","inputAttr","value"],["dataField","fieldCaption","caption","Label Name",3,"width"],["displayExpr","phoneType","valueExpr","code","placeholder","Select",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","inputAttr","value"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSaving","onSelectionChanged","dataSource","showBorders","allowColumnReordering","allowColumnResizing","columnAutoWidth"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","inputAttr","items","value"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","card-outer__button",4,"ngIf"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[4,"ngIf"],[1,"sidebar-outer__content"],["class","manage-values",4,"ngIf"],[1,"full-width","add-value-box"],["href","javascript:void(0)","class","add-btn",3,"click",4,"ngIf"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"full-width"],["label","Label Name",3,"valueChange","labelMode","value","inputAttr"],[3,"validationRules"],["label","Control Name",3,"valueChange","labelMode","value","inputAttr"],["class","dx-field",4,"ngIf"],["label","Control Type",1,"select-box",3,"valueChange","labelMode","value","items","inputAttr","showClearButton"],["class","full-width add-value-box",4,"ngIf"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],["valueExpr","name","displayExpr","label",3,"onValueChanged","dataSource","inputAttr","grouped","searchEnabled"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[2,"margin","0",3,"onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center"],[1,"card-outer__button"],["text","Save ad Draft","stylingMode","contained","type","normal","onclick","history.back()",1,"btn","btn--cancel"],["text","Reset","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"blue-color"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["label","Tooltip",3,"valueChange","labelMode","value","inputAttr"],["label","Control Data Type",1,"select-box",3,"valueChange","labelMode","value","items","inputAttr","showClearButton"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",2)(1,"div",3)(2,"ul",4)(3,"li",5)(4,"a",6),h(5,"Admin"),s()(),a(6,"li",5)(7,"a",6),h(8,"Property Management"),s()(),a(9,"li",5),h(10,"Companies Configuration"),s()()(),a(11,"div",7)(12,"div",8)(13,"h1",9),h(14,"Companies Configuration"),s(),a(15,"div",10)(16,"dx-select-box",11),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",12)(18,"form",13)(19,"div",14)(20,"dx-scroll-view",15)(21,"div",16)(22,"div",13)(23,"div",17)(24,"h2",18),h(25,"Company Information"),s(),a(26,"div",19)(27,"a",20),f("
87click",function(){return p(i),u(e.personalInformation())}),A(),a(28,"svg",21),b(29,"path",22),s()()()(),G(),a(30,"div",23)(31,"div",24)(32,"div",25)(33,"div",26)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",27),f("onValueChanged",function(){return p(i),u(e.filterPersonalInformation())}),_("valueChange",function(c){return p(i),C(e.selectedPersonalInfoControl,c)||(e.selectedPersonalInfoControl=c),u(c)}),s()()(),a(37,"div",28)(38,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(39,"div",30)(40,"dx-data-grid",31),f("onSaving",function(c){return p(i),u(e.onSaving(c))}),b(41,"dxo-paging",32)(42,"dxo-remote-operations",33),a(43,"dxo-editing",34),_("editRowKeyChange",function(c){return p(i),C(e.editRowKey,c)||(e.editRowKey=c),u(c)})("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(44,"dxi-column",35)(45,"dxi-column",36),a(46,"dxi-column",37),b(47,"dxi-validation-rule",38)(48,"dxi-validation-rule",39),S(49,Lh,4,3,"div",40),s(),b(50,"dxi-column",41),a(51,"dxi-column",42),S(52,kh,2,4,"span",43),s(),a(53,"dxi-column",44),S(54,Rh,2,1,"div",40)(55,Oh,2,5,"div",40),s(),a(56,"dxi-column",45),S(57,Gh,4,1,"div",46)(58,Bh,2,2,"div",47),s(),a(59,"dxi-column",48),S(60,Fh,4,1,"div",46)(61,Wh,2,2,"div",47),s(),a(62,"dxi-column",49),S(63,Nh,4,1,"div",46)(64,qh,2,1,"div",50),s()()()()()(),a(65,"div",16)(66,"div",13)(67,"div",17)(68,"h2",18),h(69,"Demographics"),s(),a(70,"div",19)(71,"a",20),f("click",function(){return p(i),u(e.DemographicsInformation())}),A(),a(72,"svg",21),b(73,"path",22),s()()()(),G(),a(74,"div",23)(75,"div",24)(76,"div",25)(77,"div",26)(78,"span"),h(79,"Control Type:"),s(),a(80,"dx-select-box",27),f("onValueChanged",function(){return p(i),u(e.filterDemoInformation())}),_("valueChange",function(c){return p(i),C(e.selectedDemoInfoControl,c)||(e.selectedDemoInfoControl=c),u(c)}),s()()(),a(81,"div",28)(82,"a",51),f("click",function(){return p(i),u(e.DemographicsPopupEvent())}),A(),a(83,"svg",52),b(84,"circle",53)(85,"path",54),s(),h(86," Add Demographic "),s(),G(),a(87,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(88,"div",30)(89,"dx-data-grid",55),f("onSaving",function(c){return p(i),u(e.UpdateDemographicsControl(c))})("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))}),b(90,"dxo-paging",32),a(91,"dxo-editing",56),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(92,"dxi-column",57)(93,"dxi-column",58),a(94,"dxi-column",59),b(95,"dxi-validation-rule",38)(96,"dxi-validation-rule",39),S(97,Hh,4,2,"div",40),s(),b(98,"dxi-column",60),a(99,"dxi-column",42),S(100,jh,2,4,"span",43),s(),a(101,"dxi-column",44),S(102,zh,2,1,"div",40)(103,Zh,2,5,"div",40),s(),a(104,"dxi-column",45),S(105,Qh,4,1,"div",46)(106,Yh,2,1,"div",50),s(),a(107,"dxi-column",61),S(108,Kh,4,1,"div",46)(109,Jh,2,1,"div",50),s(),a(110,"dxi-column",62),S(111,Xh,4,1,"div",46)(112,$h,2,1,"div",50),s()()()()()(),a(113,"div",16)(114,"div",13)(115,"div",17)(116,"h2",18),h(117,"Address Information"),s(),a(118,"div",19)(119,"a",20),f("click",function(){return p(i),u(e.AddressInformation())}),A(),a(120,"svg",21),b(121,"path",22),s()()()(),G(),a(122,"div",23)(123,"div",24)(124,"div",25)(125,"div",26)(126,"span"),h(127,"Control Type:"),s(),a(128,"dx-select-box",27),f("onValueChanged",function(){return p(i),u(e.filterAddressInformation())}),_("valueChange",function(c){return p(i),C(e.selectedAddressInfoControl,c)||(e.selectedAddressInfoControl=c),u(c)}),s()(),a(129,"div",26)(130,"span"),h(131,"Address Type:"),s(),a(132,"dx-select-box",63),_("valueChange",function(c){return p(i),C(e.selectedAddress,c)||(e.selectedAddress=c),u(c)}),f("onValueChanged",function(){return p(i),u(e.filterAddressInformation())}),s()()(),a(133,"div",28)(134,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(135,"div",30)(136,"dx-data-grid",55),f("onSaving",function(c){return p(i),u(e.onSaving(c))})("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))}),b(137,"dxo-paging",32)(138,"dxo-remote-operations",33),a(139,"dxo-editing",56),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(140,"dxi-column",35)(141,"dxi-column",36),a(142,"dxi-column",64),b(143,"dxi-validation-rule",38)(144,"dxi-validation-rule",39),s(),b(145,"dxi-column",41),a(146,"dxi-column",42),S(147,ef,2,4,"span",43),s(),a(148,"dxi-column",44),S(149,tf,2,1,"div",40)(150,nf,2,5,"div",40),s(),a(151,"dxi-column",45),S(1
8752,of,4,1,"div",46)(153,af,2,2,"div",47),s(),a(154,"dxi-column",48),S(155,rf,4,1,"div",46)(156,sf,2,2,"div",47),s(),a(157,"dxi-column",49),S(158,lf,4,1,"div",46)(159,df,2,1,"div",50),s()()()()()(),a(160,"div",16)(161,"div",13)(162,"div",17)(163,"h2",18),h(164,"Phone Information"),s(),a(165,"div",19)(166,"a",20),f("click",function(){return p(i),u(e.PhoneInformation())}),A(),a(167,"svg",21),b(168,"path",22),s()()()(),G(),a(169,"div",23)(170,"div",24)(171,"div",25)(172,"div",26)(173,"span"),h(174,"Control Type:"),s(),a(175,"dx-select-box",27),f("onValueChanged",function(){return p(i),u(e.filterPhoneInformation())}),_("valueChange",function(c){return p(i),C(e.selectedPhoneInfoControl,c)||(e.selectedPhoneInfoControl=c),u(c)}),s()(),a(176,"div",26)(177,"span"),h(178,"Phone Type:"),s(),a(179,"dx-select-box",65),_("valueChange",function(c){return p(i),C(e.selectedPhone,c)||(e.selectedPhone=c),u(c)}),f("onValueChanged",function(){return p(i),u(e.filterPhoneInformation())}),s()()(),a(180,"div",28)(181,"dx-button",29),f("onClick",function(){return p(i),u(e.ResetHubSpotField())}),s()()(),a(182,"div",30)(183,"dx-data-grid",66),f("onSaving",function(c){return p(i),u(e.onSaving(c))})("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))}),b(184,"dxo-paging",32)(185,"dxo-remote-operations",33),a(186,"dxo-editing",56),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(187,"dxi-column",35)(188,"dxi-column",36),a(189,"dxi-column",64),b(190,"dxi-validation-rule",38)(191,"dxi-validation-rule",39),s(),b(192,"dxi-column",41),a(193,"dxi-column",42),S(194,cf,2,4,"span",43),s(),a(195,"dxi-column",44),S(196,pf,2,1,"div",40)(197,uf,2,5,"div",40),s(),a(198,"dxi-column",45),S(199,mf,4,1,"div",46)(200,gf,2,2,"div",47),s(),a(201,"dxi-column",48),S(202,hf,4,1,"div",46)(203,ff,2,2,"div",47),s(),a(204,"dxi-column",49),S(205,Cf,4,1,"div",46)(206,_f,2,1,"div",50),s()()()()()(),a(207,"div",16)(208,"div",13)(209,"div",17)(210,"h2",18),h(211,"Affiliations Information"),s(),a(212,"div",19)(213,"a",20),f("click",function(){return p(i),u(e.AffiliationsInformation())}),A(),a(214,"svg",21),b(215,"path",22),s()()()(),G(),a(216,"div",23)(217,"div",24)(218,"div",25)(219,"div",26)(220,"span"),h(221,"Control Type:"),s(),a(222,"dx-select-box",67),_("valueChange",function(c){return p(i),C(e.selectedAffiliationInfoControl,c)||(e.selectedAffiliationInfoControl=c),u(c)}),f("onValueChanged",function(){return p(i),u(e.filterAffiliationsInformation())}),s()()()(),a(223,"div",30)(224,"dx-data-grid",68),f("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onSaving(c))}),b(225,"dxo-paging",32),a(226,"dxo-editing",56),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(227,"dxi-column",35)(228,"dxi-column",36),a(229,"dxi-column",37),b(230,"dxi-validation-rule",38)(231,"dxi-validation-rule",39),S(232,xf,4,3,"div",40),s(),b(233,"dxi-column",41),a(234,"dxi-column",42),S(235,vf,2,4,"span",43),s(),a(236,"dxi-column",44),S(237,bf,2,1,"div",40)(238,wf,2,5,"div",40),s(),a(239,"dxi-column",69),S(240,Sf,4,1,"div",46)(241,Pf,2,2,"div",47),s(),a(242,"dxi-column",61),S(243,Mf,4,1,"div",46)(244,Vf,2,2,"div",47),s(),a(245,"dxi-column",62),S(246,Ef,4,1,"div",46)(247,Tf,2,1,"div",50),s()()()()()()()(),S(248,Df,4,0,"div",70),s()()(),a(249,"div",71)(250,"div",72)(251,"div",73),S(252,If,4,1,"h2",74)(253,Af,4,1,"h2",74),s(),a(254,"div",75),S(255,kf,3,1,"div",76)(256,Of,3,1,"div",76),a(257,"div",77),S(258,Gf,5,0,"a",78)(259,Bf,5,0,"a",78),s()(),a(260,"div",79)(261,"a",80),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(262," Close "),s()()()(),a(263,"dx-popup",81),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(264,"div",82),S(265,Ff,4,1,"h2",74)(266,Wf,4,1,"h2",74),s(),a(267,"div",83)(268,"form",84)(269,"dx-validation-group",null,0)(271,"dx-form",85)(272,"dxi-item")(273,"div",86)(274,"div",87)(275,"dx-text-box",88),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}
87),a(276,"dx-validator"),b(277,"dxi-validation-rule",89)(278,"dxi-validation-rule",90),s()()()()()()()()(),a(279,"div",91)(280,"dx-button",92),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(281,Nf,1,0,"dx-button",93)(282,qf,1,0,"dx-button",94)(283,Uf,1,0,"dx-button",95)(284,Hf,1,0,"dx-button",93)(285,jf,1,0,"dx-button",94)(286,zf,1,0,"dx-button",95)(287,Zf,1,0,"dx-button",93)(288,Qf,1,0,"dx-button",94)(289,Yf,1,0,"dx-button",95),s()(),a(290,"dx-popup",81),_("visibleChange",function(c){return p(i),C(e.addDemographicsPopup,c)||(e.addDemographicsPopup=c),u(c)}),a(291,"div",82)(292,"h2"),h(293,"Add Demographics"),s()(),a(294,"div",83)(295,"dx-validation-group",null,1)(297,"form",84)(298,"dx-form",85)(299,"dxi-item")(300,"div",86)(301,"div",96)(302,"div",10)(303,"dx-text-box",97),_("valueChange",function(c){return p(i),C(e.addDemographics.demographics,c)||(e.addDemographics.demographics=c),u(c)}),b(304,"dx-validator",98),s()()(),a(305,"div",10)(306,"dx-text-box",99),_("valueChange",function(c){return p(i),C(e.addDemographics.controlName,c)||(e.addDemographics.controlName=c),u(c)}),b(307,"dx-validator",98),s()(),S(308,Kf,2,4,"div",100),a(309,"div",10)(310,"dx-select-box",101),_("valueChange",function(c){return p(i),C(e.addDemographics.controlType,c)||(e.addDemographics.controlType=c),u(c)}),b(311,"dx-validator",98),s()(),S(312,Jf,2,6,"div",100)(313,Xf,6,0,"div",102),s()()()()()(),a(314,"div",91)(315,"dx-button",92),f("click",function(){return p(i),u(e.closeDemographicsPopup())}),s(),a(316,"dx-button",103),f("onClick",function(c){return p(i),u(e.onFormDemoSubmit(c))}),s()()(),a(317,"dx-popup",81),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(318,"div",82)(319,"h2"),h(320,"Confirmation"),s()(),a(321,"div",83)(322,"p"),h(323,"Are you sure you want to delete "),a(324,"strong"),h(325),s(),h(326," ?"),s()(),a(327,"div",91)(328,"dx-button",104),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),S(329,$f,1,0,"dx-button",105)(330,eC,1,0,"dx-button",105)(331,tC,1,0,"dx-button",105),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(289,Mh))("grouped",!0),o(5),l("ngClass",e.personalInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!1)("items",e.personalInformationControls)("inputAttr",I(290,Wn)),x("value",e.selectedPersonalInfoControl),o(4),l("repaintChangesOnly",!0)("dataSource",e.dataSource)("showBorders",!0),o(),l("enabled",!1),o(),l("groupPaging",!0),o(),l("allowUpdating",!0),x("editRowKey",e.editRowKey)("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncProfileValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.DemographicsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!1)("items",e.demographicsInformationControls)("inputAttr",I(291,Wn)),x("value",e.selectedDemoInfoControl),o(9),l("dataSource",e.demographics)("showBorders",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncDemographicValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.AddressInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!1)("items",e.addressInformationControls)("inputAttr",I(292,Wn)),x("value",e.selectedAddressInfoControl),o(4),l("showClearButton",!1)("items",e.addressTypes)("inputAttr",I(293,Wn)),x("value",e.selectedAddress),o(4),l("dataSource",e.addresss)("showBorders",!0),o(),l("enabled",!1),o(),l("groupPaging",!0),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAddressValidation),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.PhoneInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!1)("items",e.phoneInformationControls)("inputAttr",I(294,Wn)),x("value",e.selectedPhoneInfoControl),o(4),l("showClearButton",!1)("items",e.phoneTypes)("inputAttr",I(295,Wn)),x("value",e.selectedPhone),o(4),l("dataSource",e.phones)("showBorders",!0)("allowColumnReordering",!0)("allowColumnResizing",!1)("columnAutoWidth",!0)("showBorders",!0),o(),l("enabled",!1),o(),l("groupPaging",!0),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncPhoneValidation),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.ConstituentsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(296,Wn))("items",e.affiliationsInformationControls),x("value",e.selectedAffiliationInfoControl),o(2),l("dataSource",e.affiliations)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAffiliationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("width",240),o(),l("dxTemplateOf","hubspotNameManage"),o(),l("dxTemplateOf","editHubspotNameManage"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngIf",!1),o(),l("ngClass",e.FilterActive?"show":"hide"),o(3),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(2),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(2),l("ngIf",e.isDemographicsAddValue),o(),l("ngIf",!e.isDemographicsAddValue),o(4),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(297,Vh)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(298,Es)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isDemographicsAddValue&&!e.isEditLookupValue),o(),l("ngIf",!e.isDemographicsAddValue&&!e.isEditLookupValue),o(),l("ngIf",!e.isDemographicsAddValue&&e.isEditLookupValue),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue&&e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&!e.isEditDemoDetail),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue&&e.isEditDemoDetail),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.addDemographicsPopup),l("wrapperAttr",I(299,Eh)),o(8),l("formData",e.formData),o(5),l("labelMode",e.labelMode),x("value",e.addDemographics.demographics),l("inputAttr",I(300,Th)),o(),l("validationRules",e.LabelValidator),o(2),l("labelMode",e.labelMode),x("value",e.addDemographics.controlName),l("inputAttr",I(301,Es)),o(),l("validationRules",e.ControlNameValidator),o(),l("ngIf",!1),o(2),l("labelMode",e.labelMode),x("value",e.addDemographics.controlType),l("items",e.ControlType)("inputAttr",I(302,Ts))("showClearButton",!0),o(),l("validationRules",e.ControlTypeValidator),o(),l("ngIf",!1),o(),l("ngIf",e.addDemographics.controlType==="Selectbox"),o(4),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(303,Dh)),o(8),R(e.deleteValue),o(4),l("ngIf",e.isDemographicsAddValue&&!e.isDemographicsManageValue),o(),l("ngIf",e.isDemographicsAddValue&&e.isDemographicsManageValue),o(),l("ngIf",!e.isDemographicsAddValue))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,Wi,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var Ko=class{constructor(){this.isCustomColumn=!0,this.isCanEdit=!0,this.hubspotFieldDisplayName=""}};var iC=["addValueGroup"],nC=()=>({"aria-label":"Entity"}),xo=()=>({"aria-label":"Assign To"}),oC=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),aC=()=>({"aria-label":"ControlName"}),rC=()=>({id:"elementId",class:"popup-outer add-value-popup delete-popup"}),sC=r=>({disabledDiv:r});function lC(r,g){if(r&1){let t=y();a(0,"a",83),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",84),b(2,"path",85),s(),h(3," Manage "),s()}}function dC(r,g){if(r&1&&(a(0,"div",80)(1,"span",81),h(2),s(),S(3,lC,4,0,"a",82),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function cC(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function pC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Required"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGroupRequired,e)||(i.isAllGroupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGroupRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGroupRequired)}}function uC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGroupRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function mC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Visible"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGroupVisible,e)||(i.isAllGroupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGroupVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGroupVisible)}}function gC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGroupVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function hC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Editable"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGroupEditable,e)||(i.isAllGroupEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGroupEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGroupEditable)}}function fC(r,g){if(r&1){let t=y();a(0,"div",90)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGroupEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function CC(r,g){if(r&1){let t=y();a(0,"a",83),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",84),b(2,"path",85),s(),h(3," Manage "),s()}}function _C(r,g){if(r&1&&(a(0,"div",80)(1,"span",81),h(2),s(),S(3,CC,4,0,"a",82),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function yC(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function xC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Required"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPositionsRequired,e)||(i.isAllPositionsRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPositionsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPositionsRequired)}}function vC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPositionsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function bC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Visible"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPositionsVisible,e)||(i.isAllPositionsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPositionsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPositionsVisible)}}function wC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPositionsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function SC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Editable"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPositionsEditable,e)||(i.isAllPositionsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPositionsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPositionsEditable)}}function PC(r,g){if(r&1){let t=y();a(0,"div",90)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPositionsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function MC(r,g){if(r&1){let t=y();a(0,"a",83),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",84),b(2,"path",85),s(),h(3," Manage "),s()}}function VC(r,g){if(r&1&&(a(0,"div",80)(1,"span",81),h(2),s(),S(3,MC,4,0,"a",82),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function EC(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function TC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Required"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllConstituentsRequired,e)||(i.isAllConstituentsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllConstituentsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllConstituentsRequired)}}function DC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onConstituentsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function IC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Visible"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllConstituentsVisible,e)||(i.isAllConstituentsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllConstituentsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllConstituentsVisible)}}function AC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onConstituentsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function LC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Editable"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllConstituentsEditable,e)||(i.isAllConstituentsEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllConstituentsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllConstituentsEditable)}}function kC(r,g){if(r&1){let t=y();a(0,"div",90)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onConstituentsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function RC(r,g){if(r&1){let t=y();a(0,"a",83),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",84),b(2,"path",85),s(),h(3," Manage "),s()}}function OC(r,g){if(r&1&&(a(0,"div",80)(1,"span",81),h(2),s(),S(3,RC,4,0,"a",82),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function GC(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function BC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Required"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCommunitySoftwareIntegrationRequired,e)||(i.isAllCommunitySoftwareIntegrationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCommunitySoftwareIntegrationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCommunitySoftwareIntegrationRequired)}}function FC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCommunitySoftwareIntegrationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function WC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Visible"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCommunitySoftwareIntegrationVisible,e)||(i.isAllCommunitySoftwareIntegrationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCommunitySoftwareIntegrationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCommunitySoftwareIntegrationVisible)}}function NC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCommunitySoftwareIntegrationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function qC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Editable"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCommunitySoftwareIntegrationEditable,e)||(i.isAllCommunitySoftwareIntegrationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCommunitySoftwareIntegrationlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCommunitySoftwareIntegrationEditable)}}function UC(r,g){if(r&1){let t=y();a(0,"div",90)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCommunitySoftwareIntegrationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function HC(r,g){if(r&1){let t=y();a(0,"a",83),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",84),b(2,"path",85),s(),h(3," Manage "),s()}}function jC(r,g){if(r&1&&(a(0,"div",80)(1,"span",81),h(2),s(),S(3,HC,4,0,"a",82),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function zC(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function ZC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Required"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitRequired,e)||(i.isAllProductBenefitRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitRequired)}}function QC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function YC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Visible"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitVisible,e)||(i.isAllProductBenefitVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitVisible)}}function KC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function JC(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2,"Editable"),s(),a(3,"dx-switch",88),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitEditable,e)||(i.isAllProductBenefitEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitEditable)}}function XC(r,g){if(r&1){let t=y();a(0,"div",89)(1,"dx-switch",88),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,sC,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function $C(r,g){if(r&1){let t=y();a(0,"div",91)(1,"span",92),h(2),s(),a(3,"div",93)(4,"a",94),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",95),b(6,"path",96),s()(),G(),a(7,"a",97),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",95),b(9,"path",98),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function e_(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.addPageHeader)}}function t_(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.addPageHeader)}}function i_(r,g){if(r&1){let t=y();a(0,"dx-button",99),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function n_(r,g){if(r&1){let t=y();a(0,"dx-button",100),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function o_(r,g){if(r&1){let t=y();a(0,"dx-button",101),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Is=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.propertyService=n,this.utilityService=e,this.webStorageService=i,this.authenticationService=d,this.permissionService=c,this.propertyManagementCommonService=v,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.GroupInfoCollapseExpand=!1,this.PositionsInfoCollapseExpand=!1,this.ConstituentsCollapseExpand=!1,this.CommunitySoftwareIntegration=!1,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.DemographicsCollapseExpand=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.allGroupControls=[],this.allPositionsControls=[],this.allConstituentsControl
87s=[],this.groupControls=[],this.positionsControls=[],this.constituentsControls=[],this.groupControlType=[],this.positionsControlType=[],this.constituentsControlType=[],this.selectedgroupControl="All",this.selectedpositionsControl="All",this.selectedconstituentsControl="All",this.changes=[],this.isAllGroupRequired=!1,this.isAllGroupVisible=!1,this.isAllGroupEditable=!1,this.isAllPositionsRequired=!1,this.isAllPositionsVisible=!1,this.isAllPositionsEditable=!1,this.isAllConstituentsRequired=!1,this.isAllConstituentsVisible=!1,this.isAllConstituentsEditable=!1,this.LookUpTableValues=[],this.selectedPageControl=new Ko,this.selectedLookupTableValue=new _t,this.isEditLookupValue=!1,this.isEditMode=!1,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.communitySoftwareIntegrationControls=[],this.communitySoftwareIntegrationControlsTypes=[],this.allCommunitySoftwareIntegrationControls=[],this.communitySoftwareIntegrationCode="",this.selectedCommunitySoftwareIntegrationControl="All",this.communitySoftwareIntegrationControlType=[],this.isAllCommunitySoftwareIntegrationRequired=!1,this.isAllCommunitySoftwareIntegrationVisible=!1,this.isAllCommunitySoftwareIntegrationEditable=!1,this.communitySoftwareIntegrationType=[],this.productBenefitControls=[],this.productBenefitControlsTypes=[],this.allProductBenefitControls=[],this.productBenefitCode="",this.selectedProductBenefitControl="All",this.productBenefitControlType=[],this.isAllProductBenefitRequired=!1,this.isAllProductBenefitVisible=!1,this.isAllProductBenefitEditable=!1,this.productBenefitType=[],this.productBenefitCollapseExpand=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([V])=>({entitiesModel:V}))).subscribe(V=>{this.loading=!1,Object.keys(V).forEach(T=>this[T]=V[T].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(D=>D.entityType))].forEach(D=>{let W=new ui;W.category=D=="Entity"?"":D,W.entities=this.entitiesModel.filter(Vt=>Vt.entityType==D),this.groupedEntites.push(W)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(T){return T.key=T.category,T.items=T.entities,T}});let E=this.entitiesModel.find(T=>T.name==z.Groups);E&&(this.entityID=E.entityID),this.fromPregroupedData.load()})},this.asyncGroupInformationValidation=V=>B(this,null,function*(){return!(this.allGroupControls.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.sourceColumnName!=V.data.sourceColumnName).length>0)}),this.asyncGroupPositionsValidation=V=>B(this,null,function*(){return!(this.allPositionsControls.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.sourceColumnName!=V.data.sourceColumnName).length>0)}),this.asyncGroupConstituentsValidation=V=>B(this,null,function*(){return!(this.allConstituentsControls.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.sourceColumnName!=V.data.sourceColumnName).length>0)}),this.asynctCommunitySoftwareIntegrationValidation=V=>B(this,null,function*(){return!(this.communitySoftwareIntegrationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductBenefitValidation=V=>B(this,null,function*(){return!(this.productBenefitControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData(),this.ControlType=["Datepicker","Numberbox","Selectbox","TextBox"],this.customCallback=this.customCallback.bind(this),this.GetGroupProperty(),this.GetPositionsProperty(),this.GetConstituentsProperty(),this.GetCommunitySoftwareIntegrationProperty(),this.GetProductBenefitProperty()}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entity
87ID))}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}productBenefitConfiguration(){this.productBenefitCollapseExpand=!this.productBenefitCollapseExpand}GetGroupProperty(){this.loading=!0,this.propertyService.GetGroupPageControlsByPageName(M.PropertyPageName.groupInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allGroupControls=t.responseModel,this.filterGroupProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterGroupProperty(){this.groupControls=this.allGroupControls,this.selectedgroupControl!=null&&this.selectedgroupControl!=null&&this.selectedgroupControl!="All"&&(this.groupControls=this.groupControls.filter(i=>i.formControlType==this.selectedgroupControl)),this.allGroupControls.forEach(i=>{this.groupControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.groupControlType.push(i.formControlType)}),this.groupControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.groupControlType.splice(0,0,"All"),this.isAllGroupRequired=!1,this.groupControls.every(i=>i.isRequired==!0)&&(this.isAllGroupRequired=!0),this.isAllGroupEditable=!1,this.groupControls.every(i=>i.isReadOnly==!0)&&(this.isAllGroupEditable=!0),this.isAllGroupVisible=!1,this.groupControls.every(i=>i.isVisible==!0)&&(this.isAllGroupVisible=!0)}GetPositionsProperty(){this.loading=!0,this.propertyService.GetGroupPageControlsByPageName(M.PropertyPageName.PositionsPermissionsInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPositionsControls=t.responseModel,this.filterPositionsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPositionsProperty(){this.positionsControls=this.allPositionsControls,this.selectedpositionsControl!=null&&this.selectedpositionsControl!=null&&this.selectedpositionsControl!="All"&&(this.positionsControls=this.positionsControls.filter(i=>i.formControlType==this.selectedpositionsControl)),this.allPositionsControls.forEach(i=>{this.positionsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.positionsControlType.push(i.formControlType)}),this.positionsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.positionsControlType.splice(0,0,"All"),this.isAllPositionsRequired=!1,this.positionsControls.every(i=>i.isRequired==!0)&&(this.isAllPositionsRequired=!0),this.isAllPositionsEditable=!1,this.positionsControls.every(i=>i.isReadOnly==!0)&&(this.isAllPositionsEditable=!0),this.isAllPositionsVisible=!1,this.positionsControls.every(i=>i.isVisible==!0)&&(this.isAllPositionsVisible=!0)}GetConstituentsProperty(){this.loading=!0,this.propertyService.GetGroupPageControlsByPageName(M.PropertyPageName.ConstituentsInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allConstituentsControls=t.responseModel,this.filterConstituentsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterConstituentsProperty(){this.constituentsControls=this.allConstituentsControls,this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!="All"&&(this.constituentsControls=this.constituentsControls.filter(i=>i.formControlType==this.selectedconstituentsControl)),this.allConstituentsControls.forEach(i=>{this.constituentsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.constituentsControlType.push(i.formControlType)}),this.constituentsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.constituentsControlType.splice(0,0,"All"),this.isAllConstituentsRequired=!1,this.constituentsControls.every(i=>i.isRequired==!0)&&(this.isAllConstituentsRequired=!0),this.isAllConstituentsEditable=!1,this.constituentsControls.every(i=>i.isReadOnly==!0)&&(this.isAllConstituentsEditable=!0),this.isAllConstituentsVisible=!1,this.constituentsControl
87s.every(i=>i.isVisible==!0)&&(this.isAllConstituentsVisible=!0)}onSelectGroupControl({value:t}){this.selectedgroupControl=t,this.filterGroupProperty()}onSelectPositionsControl({value:t}){this.selectedpositionsControl=t,this.filterPositionsProperty()}onSelectConstituentsControl({value:t}){this.selectedconstituentsControl=t,this.filterConstituentsProperty()}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onGroupInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.groupInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.allGroupControls.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetGroupProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.groupInformation.toString()))}}onPositionsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.PositionsPermissionsInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.allPositionsControls.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPositionsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.PositionsPermissionsInformation.toString()))}}onConstituentsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.ConstituentsInformation.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.allConstituentsControls.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetConstituentsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ConstituentsInformation.toString()))}}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0],e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.groupInformation.toString()?this.GetGroupProperty():n==M.PropertyPageName.PositionsPermissionsInformation.toString()?this.GetPositionsProperty():n==M.PropertyPageName.ConstituentsInformation.toString()?this.GetConstituentsProperty():n==M.PropertyPageName.CommunitySoftwareIntegration.toString()?this.GetCommunitySoftwareIntegrationProperty():n==M.PropertyPageName.Benefitsnformation.toString()&&this.GetProductBenefitProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onAllGroupRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllGroupRequired=t.value;let n="";this.selectedgroupControl!=null&&this.selectedgroupControl!=null&&this.selectedgroupControl!="All"&&(n=this.selectedgroupControl),this.propertyService.UpdateAllRequireFieldGroupControl(M.PropertyPageName.groupInformation.toString(),L.GroupInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGroupRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>0){if(this.groupControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update required property"),this.GetGroupProperty();return}
87this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllGroupVisibleChanged(t){if(this.isAllGroupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedgroupControl!=null&&this.selectedgroupControl!=null&&this.selectedgroupControl!="All"&&(n=this.selectedgroupControl),this.propertyService.UpdateAllVisibleFieldGroupControl(M.PropertyPageName.groupInformation.toString(),L.GroupInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGroupVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>0){if(this.groupControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update visible property"),this.GetGroupProperty();return}this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllGroupEditableChanged(t){if(this.isAllGroupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedgroupControl!=null&&this.selectedgroupControl!=null&&this.selectedgroupControl!="All"&&(n=this.selectedgroupControl),this.propertyService.UpdateAllEditableFieldGroupControl(M.PropertyPageName.groupInformation.toString(),L.GroupInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGroupEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGroupProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPositionsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPositionsRequired=t.value;let n="";this.selectedpositionsControl!=null&&this.selectedpositionsControl!=null&&this.selectedpositionsControl!="All"&&(n=this.selectedpositionsControl),this.propertyService.UpdateAllRequireFieldGroupControl(M.PropertyPageName.PositionsPermissionsInformation.toString(),L.PositionsPermissionsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPositionsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>0){if(this.positionsControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update required property"),this.GetPositionsProperty();return}this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllPositionsVisibleChanged(t){if(this.isAllPositionsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedpositionsControl!=null&&this.selectedpositionsControl!=null&&this.selectedpositionsControl!="All"&&(n=this.selectedpositionsControl),this.propertyService.Upd
87ateAllVisibleFieldGroupControl(M.PropertyPageName.PositionsPermissionsInformation.toString(),L.PositionsPermissionsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPositionsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>0){if(this.positionsControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update visible property"),this.GetPositionsProperty();return}this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllPositionsEditableChanged(t){if(this.isAllPositionsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedpositionsControl!=null&&this.selectedpositionsControl!=null&&this.selectedpositionsControl!="All"&&(n=this.selectedpositionsControl),this.propertyService.UpdateAllEditableFieldGroupControl(M.PropertyPageName.PositionsPermissionsInformation.toString(),L.PositionsPermissionsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPositionsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPositionsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllConstituentsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllConstituentsRequired=t.value;let n="";this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!="All"&&(n=this.selectedconstituentsControl),this.propertyService.UpdateAllRequireFieldGroupControl(M.PropertyPageName.ConstituentsInformation.toString(),L.ConstituentsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onConstituentsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>0){if(this.constituentsControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update required property"),this.GetConstituentsProperty();return}this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllConstituentsVisibleChanged(t){if(this.isAllConstituentsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!="All"&&(n=this.selectedconstituentsControl),this.propertyService.UpdateAllVisibleFieldGroupControl(M.PropertyPageName.ConstituentsInformation.toString(),L.ConstituentsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onConstituentsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(n>
870){if(this.constituentsControls.find(e=>e.systemPageControlId==n&&!e.isCanEdit)){this.showErrorMessage("You cannot update visible property"),this.GetConstituentsProperty();return}this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}}onAllConstituentsEditableChanged(t){if(this.isAllConstituentsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!=null&&this.selectedconstituentsControl!="All"&&(n=this.selectedconstituentsControl),this.propertyService.UpdateAllEditableFieldGroupControl(M.PropertyPageName.ConstituentsInformation.toString(),L.ConstituentsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onConstituentsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetConstituentsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}GroupInformation(){this.GroupInfoCollapseExpand=!this.GroupInfoCollapseExpand}PositionsInformation(){this.PositionsInfoCollapseExpand=!this.PositionsInfoCollapseExpand}ConstituentsInformation(){this.ConstituentsCollapseExpand=!this.ConstituentsCollapseExpand}CommunitySoftwareIntegrationInformation(){this.CommunitySoftwareIntegration=!this.CommunitySoftwareIntegration}ValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.isEditLookupValue=!1,this.deletePopup=!1,this.selectedLookupTableValue=new _t}ManageLabelClick(t){this.selectedPageControl=t,this.GetLookUpTableRecord(t.systemPageControlId),this.addPageHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}DeleteValuePopupEvent(){this.deletePopup=!0}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Groups.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0]?.controlId,i.tableId=this.LookUpTableValues[0]?.tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Groups.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedPageControl.systemPageControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Groups.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedPageControl.systemPageControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}closeDeleteValuePopup(){this.selectedLookupTableValue=new _t,this.deletePopup=!1}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedPageControl.systemPageControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}customCallback(t){let n=this.lookupValue;return n?!this.LookUpTableValues.find(i=>i.lookupValue.toLocaleLowerCase().trim()==n.toLocaleLowerCase().trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}onCommunitySoftwareIntegrationSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetCommunitySoftwareIntegrationProperty(){this.communitySoftwareIntegrationControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Groups.toString(),M.PropertyPageName.CommunitySoftwareIntegration.toString(),L.CommunitySoftwareIntegration.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allCommunitySoftwareIntegrationControls=t.responseModel,this.filterCommunitySoftwareIntegrationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterCommunitySoftwareIntegrationProperty(){this.communitySoftwareIntegrationControls=this.allCommunitySoftwareIntegrationControls,this.communitySoftwareIntegrationControlsTypes=this.communitySoftwareIntegrationControls,this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!="All"&&(this.communitySoftwareIntegrationControls=this.communitySoftwareIntegrationControls.filter(i=>i.formControlType==this.selectedCommunitySoftwareIntegrationControl)),this.allCommunitySoftwareIntegrationControls.forEach(i=>{this.communitySoftwareIntegrationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.communitySoftwareIntegrationControlType.push(i.formControlType)}),this.communitySoftwareIntegrationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.communitySoftwareIntegrationControlType.splice(0,0,"All"),this.isAllCommunitySoftwareIntegrationRequired=!1,this.communitySoftwareIntegrationControls.every(i=>i.isRequired==!0)&&(this.isAllCommunitySoftwareIntegrationRequired=!0),this.isAllCommunitySoftwareIntegrationEditable=!1,this.communitySoftwareIntegrationControls.every(i=>i.isReadOnly==!0)&&(this.isAllCommunitySoftwareIntegrationEditable=!0),this.isAllCommunitySoftwareIntegrationVisible=!1,this.communitySoftwareIntegrationControls.every(i=>i.isVisible==!0)&&(this.isAllCommunitySoftwareIntegrationVisible=!0)}onSelectCommunitySoftwareIntegrationType({value:t}){t==null&&(t=this.communitySoftwareIntegrationType.length>0?this.communitySoftwareIntegrationType[0].code:""),this.communitySoftwareIntegrationCode=t,this.filterCommunitySoftwareIntegrationProperty()}onSelectCommunitySoftwareIntegrationControl({value:t}
87){this.selectedCommunitySoftwareIntegrationControl=t,this.filterCommunitySoftwareIntegrationProperty()}onCommunitySoftwareIntegrationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.CommunitySoftwareIntegration.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.CommunitySoftwareIntegration.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.communitySoftwareIntegrationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetCommunitySoftwareIntegrationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.CommunitySoftwareIntegration.toString()))}}onAllCommunitySoftwareIntegrationlEditableChanged(t){if(this.isAllCommunitySoftwareIntegrationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!="All"&&(n=this.selectedCommunitySoftwareIntegrationControl),this.propertyService.UpdateAllEditableFieldControl(F.Groups.toString(),M.PropertyPageName.CommunitySoftwareIntegration.toString(),L.CommunitySoftwareIntegration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllCommunitySoftwareIntegrationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllCommunitySoftwareIntegrationRequired=t.value;let n="";this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!="All"&&(n=this.selectedCommunitySoftwareIntegrationControl),this.propertyService.UpdateAllRequiredFieldControl(F.Groups.toString(),M.PropertyPageName.CommunitySoftwareIntegration.toString(),L.CommunitySoftwareIntegration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllCommunitySoftwareIntegrationVisibleChanged(t){if(this.isAllCommunitySoftwareIntegrationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!=null&&this.selectedCommunitySoftwareIntegrationControl!="All"&&(n=this.selectedCommunitySoftwareIntegrationControl),this.propertyService.UpdateAllVisibleFieldControl(F.Groups.toString(),M.PropertyPageName.CommunitySoftwareIntegration.toString(),L.CommunitySoftwareIntegration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCommunitySoftwareIntegrationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCommunitySoftwareIntegrationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCommunitySoftwareIntegrationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCommunitySoftwareIntegrationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductBenefitProperty(){this.productBenefitControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Groups.toString(),M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductBenefitControls=t.responseModel,this.filterProductBenefitProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductBenefitProperty(){this.productBenefitControls=this.allProductBenefitControls,this.productBenefitControlsTypes=this.productBenefitControls,this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(this.productBenefitControls=this.productBenefitControls.filter(i=>i.formControlType==this.selectedProductBenefitControl)),this.allProductBenefitControls.forEach(i=>{this.productBenefitControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productBenefitControlType.push(i.formControlType)}),this.productBenefitControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productBenefitControlType.splice(0,0,"All"),this.isAllProductBenefitRequired=!1,this.productBenefitControls.every(i=>i.isRequired==!0)&&(this.isAllProductBenefitRequired=!0),this.isAllProductBenefitEditable=!1,this.productBenefitControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductBenefitEditable=!0),this.isAllProductBenefitVisible=!1,this.productBenefitControls.every(i=>i.isVisible==!0)&&(this.isAllProductBenefitVisible=!0)}onSelectProductBenefitType({value:t}){t==null&&(t=this.productBenefitType.length>0?this.productBenefitType[0].code:""),this.productBenefitCode=t,this.filterProductBenefitProperty()}onSelectProductBenefitControl({value:t}){this.selectedProductBenefitControl=t,this.filterProductBenefitProperty()}onProductBenefitInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Benefitsnformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Benefitsnformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productBenefitControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductBenefitProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Benefitsnformation.toString()))}}onAllProductBenefitlEditableChanged(t){if(this.isAllProductBenefitEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.UpdateAllEditableFieldControl(F.Groups.toString(),M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBenefitRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductBenefitRequired=t.value;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.Upd
87ateAllRequiredFieldControl(F.Groups.toString(),M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBenefitVisibleChanged(t){if(this.isAllProductBenefitVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.UpdateAllVisibleFieldControl(F.Groups.toString(),M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-groups-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(iC,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:265,vars:234,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Groups","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","inputAttr","items","value"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUp
87dating","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],["mode","cell",3,"allowUpdating"],["type","async","message","Label name is not unique..",3,"validationCallback"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Groups Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h2",8),h(14,"Groups Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Group Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.GroupInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedgroupControl,c)||(e.selectedgroupControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectGroupControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onGroupInfoSaving(c))}),b(39,"dxo-paging",29),a(40,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,dC,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,cC,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,pC,4,1,"div",41)(52,uC,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,mC,4,1,"div",41)(55,gC,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,hC,4,1,"div",41)(58,fC,2,1,"div",45),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Positions & Permissions Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.PositionsInformation())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedpositionsControl,c)||(e.selectedpositionsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPositionsControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPositionsInfoSaving(c))}),b(77,"dxo-paging",29),a(78,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,_C,4,3,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,yC,2,4,"span",39),s(),a(88,"dxi-column",40),S(89,xC,4,1,"div",41)(90,vC,2,2,"div",42),s(),a(91,"dxi-column",43),S(92,bC,4,1,"div",41)(93,wC,2,2,"div",42),s(),a(94,"dxi-column",44),S(95,SC,4,1,"div",41)(96,PC,2,1,"div",45),s()()()()()(),a(97,"div",15)(98,"div",12)(99,"div",16)(100,"h2",17),h(101,"Constituents Information"),s(),a(102,"div",18)(103,"a",19),f("click",function(){return p(i),u(e.ConstituentsInformation())}),A(),a(104,"svg",20),b(105,"path",21),s()()()(),G(),a(106,"div",22)(107,"div",23)(108,"div",24)(109,"div",25)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedconstituentsControl,c)||(e.selectedconstituentsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectConstituentsControl(c))}),s()()()(),a(113,"div",27)(114,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onConstituentsInfoSaving(c))}),b(115,"dxo-paging",29),a(116,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(117,"dxi-column",31)(118,"dxi-column",32),a(119,"dxi-column",33),b(120,"dxi-validation-rule",34)(121,"dxi-validation-rule",35),S(122,VC,4,3,"div",36),s(),b(123,"dxi-column",37),a(124,"dxi-column",38),S(125,EC,2,4,"span",39),s(),a(126,"dxi-column",40),S(127,TC,4,1,"div",41)(128,DC,2,2,"div",42),s(),a(129,"dxi-column",43),S(130,IC,4,1,"div",41)(131,AC,2,2,"div",42),s(),a(132,"dxi-column",44),S(133,LC,4,1,"div",41)(134,kC,2,1,"div",45),s()()()()()(),a(135,"div",15)(136,"div",12)(137,"div",16)(138,"h2",17),h(139,"Community Software Integration Information"),s(),a(140,"div",18)(141,"a",19),f("click",function(){return p(i),u(e.CommunitySoftwareIntegrationInformation())}),A(),a(142,"svg",20),b(143,"path",21),s()()()(),G(),a(144,"div",22)(145,"div",23)(146,"div",24)(147,"div",25)(148,"span"),h(149,"Control Type:"),s(),a(150,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedCommunitySoftwareIntegrationControl,c)||(e.selectedCommunitySoftwareIntegrationControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectCommunitySoftwareIntegrationControl(c))}),s()()()(),a(151,"div",27)(152,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onCommunitySoftwareIntegrationSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onCommunitySoftwareIntegrationInfoSaving(c))}),b(153,"dxo-paging",29),a(154,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(155,"dxi-column",31)(156,"dxi-column",32),a(157,"dxi-column",33),b(158,"dxi-validation-rule",34)(159,"dxi-validation-rule",35),S(160,OC,4,3,"div",36),s(),b(161,"dxi-column",37),a(162,"dxi-column",38),S(163,GC,2,4,"span",39),s(),a(164,"dxi-column",40),S(165,BC,4,1,"div",41)(166,FC,2,2,"div",42),s(),a(167,"dxi-column",43),S(168,WC,4,1,"div",41)(169,NC,2,2,"div",42),s(),a(170,"dxi-column",44),S(171,qC,4,1,"div",41)(172,UC,2,1,"div",45),s()()()()()(),a(173,"div",15)(174,"div",12)(175,"div",16)(176,"h2",17),h(177,"Benefits Information"),s(),a(178,"div",18)(179,"a",19),f("click",function(){return p(i),u(e.productBenefitConfiguration())}),A(),a(180,"svg",20),b(181,"path",21),s()()()(),G(),a(182,"div",22)(183,"div",23)(184,"div",24)(185,"div",25)(186,"span"),h(187,"Control Type:"),s(),a(188,"dx-select-box",46),_("valueChange",function(c){return p(i),C(e.selectedProductBenefitControl,c)||(e.selectedProductBenefitControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductBenefitControl(c))}),s()()()(),a(189,"div",27)(190,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductBenefitSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductBenefitInfoSaving(c))}),b(191,"dxo-paging",29)(192,"dxo-editing",47)(193,"dxi-column",31)(194,"dxi-column",32),a(195,"dxi-column",33),b(196,"dxi-validation-rule",34)(197,"dxi-validation-rule",48),S(198,jC,4,3,"div",36),s(),b(199,"dxi-column",37),a(200,"dxi-column",38),S(201,zC,2,4,"span",39),s(),a(202,"dxi-column",40),S(203,ZC,4,1,"div",41)(204,QC,2,2,"div",42),s(),a(205,"dxi-column",43),S(206,YC,4,1,"div",41)(207,KC,2,2,"div",42),s(),a(208,"dxi-column",44),S(209,JC,4,1,"div",41)(210,XC,2,4,"div",42),s()()()()()()()()()()(),a(211,"div",49)(212,"div",50)(213,"div",51)(214,"h2"),h(215,"Manage Values for "),a(216,"span"),h(217),s()()(),a(218,"div",52)(219,"div",53)(220,"dx-scroll-view",14),S(221,$C,10,1,"div",54),s(),a(222,"div",55)(223,"a",56),f("click",function(){return p(i),u(e.ValuePopupEvent())}),A(),a(224,"svg",57),b(225,"circle",58)(226,"path",59),s(),h(227," Add Value "),s()()()(),G(),a(228,"div",60)(229,"a",61),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(230," Close "),s()()()(),a(231,"dx-popup",62),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(232,"div",63),S(233,e_,4,1,"h2",64)(234,t_,4,1,"h2",64),s(),a(235,"div",65)(236,"form",66)(237,"dx-vali
87dation-group",null,0)(239,"dx-form",67)(240,"dxi-item")(241,"div",68)(242,"div",69)(243,"dx-text-box",70),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(244,"dx-validator"),b(245,"dxi-validation-rule",71)(246,"dxi-validation-rule",72),s()()()()()()()()(),a(247,"div",73)(248,"dx-button",74),f("click",function(){return p(i),u(e.closePopup())}),s(),S(249,i_,1,0,"dx-button",75)(250,n_,1,0,"dx-button",76)(251,o_,1,0,"dx-button",77),s()(),a(252,"dx-popup",62),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(253,"div",63)(254,"h2"),h(255,"Confirmation"),s()(),a(256,"div",65)(257,"p"),h(258,"Are you sure you want to delete "),a(259,"strong"),h(260),s(),h(261," ?"),s()(),a(262,"div",73)(263,"dx-button",78),f("onClick",function(){return p(i),u(e.closeDeleteValuePopup())}),s(),a(264,"dx-button",79),f("onClick",function(){return p(i),u(e.removeLookupValueDetails(e.selectedLookupTableValue))}),s()()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(225,nC))("grouped",!0),o(5),l("ngClass",e.GroupInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(226,xo))("items",e.groupControlType),x("value",e.selectedgroupControl),o(2),l("dataSource",e.groupControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncGroupInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.PositionsInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(227,xo))("items",e.positionsControlType),x("value",e.selectedpositionsControl),o(2),l("dataSource",e.positionsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncGroupPositionsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.ConstituentsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(228,xo))("items",e.constituentsControlType),x("value",e.selectedconstituentsControl),o(2),l("dataSource",e.constituentsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncGroupConstituentsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.CommunitySoftwareIntegration?"collapse":"expand"),o(15),l("showClearButton",!0)("inputAttr",I(229,xo)
87)("items",e.communitySoftwareIntegrationControlType),x("value",e.selectedCommunitySoftwareIntegrationControl),o(2),l("dataSource",e.communitySoftwareIntegrationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctCommunitySoftwareIntegrationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productBenefitCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productBenefitControlType),x("value",e.selectedProductBenefitControl),l("inputAttr",I(230,xo)),o(2),l("dataSource",e.productBenefitControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductBenefitValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.addPageHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(231,oC)),o(2),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(232,aC)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(233,rC)),o(8),R(e.deleteValue))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color);padding-right:1.5rem}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var a_=["addValueGroup"],r_=()=>({"aria-label":"Entity"}),Yi=()=>({"aria-label":"Assign To"}),s_=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),l_=()=>({"aria-label":"ControlName"}),d_=()=>({id:"elementId",class:"popup-outer delete-popup"});function c_(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function p_(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,c_,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function u_(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function m_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipInformationRequired,e)||(i.isAllMembershipInformationRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipInformationRequired)}}function g_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function h_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipInformationVisible,e)||(i.isAllMembershipInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipInformationVisible)}}function f_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function C_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipInformationEditable,e)||(i.isAllMembershipInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipInformationEditable)}}function __(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function y_(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function x_(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,y_,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function v_(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function b_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEligibilityRequired,e)||(i.isAllEligibilityRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEligibilityRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEligibilityRequired)}}function w_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEligibilityRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function S_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEligibilityVisible,e)||(i.isAllEligibilityVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEligibilityVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEligibilityVisible)}}function P_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEligibilityVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function M_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEligibilityEditable,e)||(i.isAllEligibilityEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEligibilitylEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEligibilityEditable)}}function V_(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEligibilityEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function E_(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function T_(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,E_,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function D_(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function I_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBenefitsRequired,e)||(i.isAllBenefitsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBenefitsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBenefitsRequired)}}function A_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBenefitsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function L_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBenefitsVisible,e)||(i.isAllBenefitsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBenefitsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBenefitsVisible)}}function k_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBenefitsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function R_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBenefitsEditable,e)||(i.isAllBenefitsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBenefitsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBenefitsEditable)}}function O_(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBenefitsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function G_(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function B_(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,G_,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function F_(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function W_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPricingRequired,e)||(i.isAllPricingRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPricingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPricingRequired)}}function N_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPricingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function q_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPricingVisible,e)||(i.isAllPricingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPricingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPricingVisible)}}function U_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPricingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function H_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPricingEditable,e)||(i.isAllPricingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPricingEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPricingEditable)}}function j_(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPricingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function z_(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Z_(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,z_,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Q_(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Y_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipLifeCycleRequired,e)||(i.isAllMembershipLifeCycleRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipLifeCycleRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipLifeCycleRequired)}}function K_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipLifeCycleRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function J_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipLifeCycleVisible,e)||(i.isAllMembershipLifeCycleVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipLifeCycleVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipLifeCycleVisible)}}function X_(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipLifeCycleVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function $_(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipLifeCycleEditable,e)||(i.isAllMembershipLifeCycleEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipLifeCycleEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipLifeCycleEditable)}}function ey(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipLifeCycleEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function ty(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function iy(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,ty,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function ny(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function oy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessRequired,e)||(i.isAllRenewalProcessRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessRequired)}}function ay(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function ry(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessVisible,e)||(i.isAllRenewalProcessVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessVisible)}}function sy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function ly(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessEditable,e)||(i.isAllRenewalProcessEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessEditable)}}function dy(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function cy(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function py(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,cy,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function uy(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function my(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessNotificationRequired,e)||(i.isAllRenewalProcessNotificationRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessNotificationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessNotificationRequired)}}function gy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessNotificationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function hy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessNotificationVisible,e)||(i.isAllRenewalProcessNotificationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessNotificationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessNotificationVisible)}}function fy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessNotificationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Cy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalProcessNotificationEditable,e)||(i.isAllRenewalProcessNotificationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalProcessNotificationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalProcessNotificationEditable)}}function _y(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalProcessNotificationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function yy(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function xy(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,yy,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function vy(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function by(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalNotificationTemplateRequired,e)||(i.isAllRenewalNotificationTemplateRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalNotificationTemplateRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalNotificationTemplateRequired)}}function wy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalNotificationTemplateRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Sy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalNotificationTemplateVisible,e)||(i.isAllRenewalNotificationTemplateVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalNotificationTemplateVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalNotificationTemplateVisible)}}function Py(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalNotificationTemplateVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function My(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRenewalNotificationTemplateEditable,e)||(i.isAllRenewalNotificationTemplateEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRenewalNotificationTemplateEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRenewalNotificationTemplateEditable)}}function Vy(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRenewalNotificationTemplateEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Ey(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Ty(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,Ey,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Dy(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Iy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGracePeriodConfigurationRequired,e)||(i.isAllGracePeriodConfigurationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGracePeriodConfigurationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGracePeriodConfigurationRequired)}}function Ay(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGracePeriodConfigurationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Ly(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGracePeriodConfigurationVisible,e)||(i.isAllGracePeriodConfigurationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGracePeriodConfigurationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGracePeriodConfigurationVisible)}}function ky(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGracePeriodConfigurationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Ry(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGracePeriodConfigurationEditable,e)||(i.isAllGracePeriodConfigurationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGracePeriodConfigurationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGracePeriodConfigurationEditable)}}function Oy(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGracePeriodConfigurationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Gy(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function By(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,Gy,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Fy(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Wy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipGraceStatusRequired,e)||(i.isAllMembershipGraceStatusRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipGraceStatusRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipGraceStatusRequired)}}function Ny(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipGraceStatusRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function qy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipGraceStatusVisible,e)||(i.isAllMembershipGraceStatusVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipGraceStatusVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipGraceStatusVisible)}}function Uy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipGraceStatusVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Hy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipGraceStatusEditable,e)||(i.isAllMembershipGraceStatusEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipGraceStatusEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipGraceStatusEditable)}}function jy(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipGraceStatusEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function zy(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Zy(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,zy,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Qy(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Yy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipCancellationPolicyRequired,e)||(i.isAllMembershipCancellationPolicyRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipCancellationPolicyRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipCancellationPolicyRequired)}}function Ky(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipCancellationPolicyRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Jy(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipCancellationPolicyVisible,e)||(i.isAllMembershipCancellationPolicyVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipCancellationPolicyVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipCancellationPolicyVisible)}}function Xy(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipCancellationPolicyVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function $y(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipCancellationPolicyEditable,e)||(i.isAllMembershipCancellationPolicyEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipCancellationPolicyEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipCancellationPolicyEditable)}}function e2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipCancellationPolicyEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function t2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function i2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,t2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function n2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function o2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionsRequired,e)||(i.isAllPromotionsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionsRequired)}}function a2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function r2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionsVisible,e)||(i.isAllPromotionsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionsVisible)}}function s2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function l2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionsEditable,e)||(i.isAllPromotionsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionsEditable)}}function d2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function c2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function p2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,c2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function u2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function m2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingRequired,e)||(i.isAllAccountingRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingRequired)}}function g2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function h2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingVisible,e)||(i.isAllAccountingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingVisible)}}function f2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function C2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingEditable,e)||(i.isAllAccountingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingEditable)}}function _2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function y2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function x2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,y2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function v2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function b2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductRequired,e)||(i.isAllAccountingSetupProductRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductRequired)}}function w2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function S2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductVisible,e)||(i.isAllAccountingSetupProductVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductVisible)}}function P2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function M2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductEditable,e)||(i.isAllAccountingSetupProductEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductEditable)}}function V2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function E2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function T2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,E2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function D2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function I2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipAccountingGLSetupRequired,e)||(i.isAllMembershipAccountingGLSetupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipAccountingGLSetupRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipAccountingGLSetupRequired)}}function A2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipAccountingGLSetupRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function L2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipAccountingGLSetupVisible,e)||(i.isAllMembershipAccountingGLSetupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipAccountingGLSetupVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipAccountingGLSetupVisible)}}function k2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipAccountingGLSetupVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function R2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllMembershipAccountingGLSetupEditable,e)||(i.isAllMembershipAccountingGLSetupEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllMembershipAccountingGLSetupEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllMembershipAccountingGLSetupEditable)}}function O2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onMembershipAccountingGLSetupEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function G2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function B2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,G2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function F2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function W2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyRequired,e)||(i.isAllRefundPolicyRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRefundPolicyRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyRequired)}}function N2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function q2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyVisible,e)||(i.isAllRefundPolicyVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRefundPolicyVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyVisible)}}function U2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function H2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyEditable,e)||(i.isAllRefundPolicyEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRefundPolicyEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyEditable)}}function j2(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function z2(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Z2(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,z2,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Q2(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Y2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTermsandConditionsRequired,e)||(i.isAllTermsandConditionsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTermsandConditionsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTermsandConditionsRequired)}}function K2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTermsandConditionsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function J2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTermsandConditionsVisible,e)||(i.isAllTermsandConditionsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTermsandConditionsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTermsandConditionsVisible)}}function X2(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTermsandConditionsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function $2(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTermsandConditionsEditable,e)||(i.isAllTermsandConditionsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTermsandConditionsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTermsandConditionsEditable)}}function ex(r,g){if(r&1){let t=y();a(0,"div",88)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTermsandConditionsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function tx(r,g){if(r&1){let t=y();a(0,"div",89)(1,"span",90),h(2),s(),a(3,"div",91)(4,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",93),b(6,"path",94),s()(),G(),a(7,"a",95),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",93),b(9,"path",96),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function ix(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function nx(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function ox(r,g){if(r&1){let t=y();a(0,"dx-button",97),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function ax(r,g){if(r&1){let t=y();a(0,"dx-button",98),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function rx(r,g){if(r&1){let t=y();a(0,"dx-button",99),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var As=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.memberInfoCollapseExpand=!1,this.MembershipLifeCycleCollapseExpand=!1,this.GracePeriodConfigurationCollapseExpand=!1,this.MembershipGraceStatusCollapseExpand=!1,this.MembershipCancellationPolicCollapseExpand=!1,this.PromotionCollapseExpand=!1,this.PromotionSeetingCollapseExpand=!1,this.RefundPolicyCollapseExpand=!1,this.TermsandConditionsCollapseExpand=!1,this.AccountingCollapseExpand=!1,this.AccountingSetupProductCollapseExpand=!1,this.MembershipAccountingGLSetupCollapseExpand=!1,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.LabelValidator=[{type:"required",message:"Label name is required"}],this.ControlNameValidator=[{type:"required",message:"Control name is required"}],this.ControlTypeValidator=[{type:"required",message:"Control type is required"}],this.isPermissionView=!1,this.changes=[],this.selectedControlId=0,this.eligibilityControls=[],this.eligibilityControlsTypes=[],this.allEligibilityControls=[],this.eligibilityCode="",this.selectedEligibilityControl="All",this.eligibilityControlType=[],this.isAllEligibilityRequired=!1,this.isAllEligibilityVisible=!1,this.isAllEligibilityEditable=!1,this.eligibilityType=[],this.benefitsControls=[],this.benefitsControlsTypes=[],this.allBenefitsControls=[],this.benefitsCode="",this.selectedBenefitsControl="All",this.benefitsControlType=[],this.isAllBenefitsRequired=!1,this.isAllBenefitsVisible=!1,this.isAllBenefitsEditable=!1,this.benefitsType=[],this.pricingControls=[],this.pricingControlsTypes=[],this.allPricingControls=[],this.pricingCode="",this.selectedPricingControl="All",this.pricingControlType=[],this.isAllPricingRequired=!1,this.isAllPricingVisible=!1,this.isAllPricingEditable=!1,this.pricingType=[],this.membershipLifeCycleControls=[],this.membershipLifeCycleControlsTypes=[],this.allMembershipLifeCycleControls=[],this.membershipLifeCycleCode="",this.selectedMembershipLifeCycleControl="All",this.membershipLifeCycleControlType=[],this.isAllMembershipLifeCycleRequired=!1,this.isAllMembershipLifeCycleVisible=!1,this.isAllMembershipLifeCycleEditable=!1,this.membershipLifeCycleType=[],this.gracePeriodConfigurationControls=[],this.gracePeriodConfigurationControlsTypes=[],this.allGracePeriodConfigurationControls=[],this.gracePeriodConfigurationCode="",this.selectedGracePeriodConfigurationControl
87="All",this.gracePeriodConfigurationControlType=[],this.isAllGracePeriodConfigurationRequired=!1,this.isAllGracePeriodConfigurationVisible=!1,this.isAllGracePeriodConfigurationEditable=!1,this.gracePeriodConfigurationType=[],this.membershipCancellationPolicyControls=[],this.membershipCancellationPolicyControlsTypes=[],this.allMembershipCancellationPolicyControls=[],this.membershipCancellationPolicyCode="",this.selectedMembershipCancellationPolicyControl="All",this.membershipCancellationPolicyControlType=[],this.isAllMembershipCancellationPolicyRequired=!1,this.isAllMembershipCancellationPolicyVisible=!1,this.isAllMembershipCancellationPolicyEditable=!1,this.membershipCancellationPolicyType=[],this.promotionsControls=[],this.promotionsControlsTypes=[],this.allPromotionsControls=[],this.promotionsCode="",this.selectedPromotionsControl="All",this.promotionsControlType=[],this.isAllPromotionsRequired=!1,this.isAllPromotionsVisible=!1,this.isAllPromotionsEditable=!1,this.promotionsType=[],this.membershipPromotionSettingsControls=[],this.membershipPromotionSettingsControlsTypes=[],this.allMembershipPromotionSettingsControls=[],this.membershipPromotionSettingsCode="",this.selectedMembershipPromotionSettingsControl="All",this.membershipPromotionSettingsControlType=[],this.isAllMembershipPromotionSettingsRequired=!1,this.isAllMembershipPromotionSettingsVisible=!1,this.isAllMembershipPromotionSettingsEditable=!1,this.membershipPromotionSettingsType=[],this.refundPolicyControls=[],this.refundPolicyControlsTypes=[],this.allRefundPolicyControls=[],this.refundPolicyPolicyCode="",this.selectedRefundPolicyControl="All",this.refundPolicyControlType=[],this.isAllRefundPolicyRequired=!1,this.isAllRefundPolicyVisible=!1,this.isAllRefundPolicyEditable=!1,this.refundPolicyType=[],this.termsandConditionsControls=[],this.termsandConditionsControlsTypes=[],this.allTermsandConditionsControls=[],this.termsandConditionsCode="",this.selectedTermsandConditionsControl="All",this.termsandConditionsControlType=[],this.isAllTermsandConditionsRequired=!1,this.isAllTermsandConditionsVisible=!1,this.isAllTermsandConditionsEditable=!1,this.termsandConditionsType=[],this.membershipInformationControls=[],this.membershipInformationControlsTypes=[],this.allMembershipInformationControls=[],this.membershipInformationCode="",this.selectedMembershipInformationControl="All",this.membershipInformationControlType=[],this.isAllMembershipInformationRequired=!1,this.isAllMembershipInformationVisible=!1,this.isAllMembershipInformationEditable=!1,this.membershipInformationType=[],this.membershipGraceStatusControls=[],this.membershipGraceStatusControlsTypes=[],this.allMembershipGraceStatusControls=[],this.membershipGraceStatusCode="",this.selectedMembershipGraceStatusControl="All",this.membershipGraceStatusControlType=[],this.isAllMembershipGraceStatusRequired=!1,this.isAllMembershipGraceStatusVisible=!1,this.isAllMembershipGraceStatusEditable=!1,this.membershipGraceStatusType=[],this.accountingControls=[],this.accountingControlsTypes=[],this.allAccountingControls=[],this.accountingStatusCode="",this.selectedAccountingControl="All",this.accountingControlType=[],this.isAllAccountingRequired=!1,this.isAllAccountingVisible=!1,this.isAllAccountingEditable=!1,this.accountingType=[],this.accountingSetupProductControls=[],this.accountingSetupProductControlsTypes=[],this.allAccountingSetupProductControls=[],this.accountingSetupProductStatusCode="",this.selectedAccountingSetupProductControl="All",this.accountingSetupProductControlType=[],this.isAllAccountingSetupProductRequired=!1,this.isAllAccountingSetupProductVisible=!1,this.isAllAccountingSetupProductEditable=!1,this.membershipAccountingGLSetupControls=[],this.membershipAccountingGLSetupControlsTypes=[],this.allMembershipAccountingGLSetupControls=[],this.membershipAccountingGLSetupStatusCode="",this.selectedMembershipAccountingGLSetupControl="All",this.membershipAccountingGLSetupControlType=[],this.isAllMembershipAccountingGLSetupRequired=!1,this.isAllMembershipAccountingGLSetupVisible=!1,this.isAllMembershipAccountingGLSetupEditable=!1,this.renewalProcessControls=[],this.renewalProcessControlsTypes=[],this.allRenewalProcessControls=[],this.renewalProcessCode="",this.selectedRenewalProcessControl
87="All",this.renewalProcessControlType=[],this.isAllRenewalProcessRequired=!1,this.isAllRenewalProcessVisible=!1,this.isAllRenewalProcessEditable=!1,this.renewalProcessType=[],this.RenewalProcessCollapseExpand=!1,this.renewalProcessNotificationControls=[],this.renewalProcessNotificationControlsTypes=[],this.allRenewalProcessNotificationControls=[],this.renewalProcessNotificationCode="",this.selectedRenewalProcessNotificationControl="All",this.renewalProcessNotificationControlType=[],this.isAllRenewalProcessNotificationRequired=!1,this.isAllRenewalProcessNotificationVisible=!1,this.isAllRenewalProcessNotificationEditable=!1,this.renewalProcessNotificationType=[],this.RenewalProcessNotificationCollapseExpand=!1,this.renewalNotificationTemplateControls=[],this.renewalNotificationTemplateControlsTypes=[],this.allRenewalNotificationTemplateControls=[],this.renewalNotificationTemplateCode="",this.selectedRenewalNotificationTemplateControl="All",this.renewalNotificationTemplateControlType=[],this.isAllRenewalNotificationTemplateRequired=!1,this.isAllRenewalNotificationTemplateVisible=!1,this.isAllRenewalNotificationTemplateEditable=!1,this.renewalNotificationTemplateType=[],this.RenewalNotificationTemplateCollapseExpand=!1,this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.isEditMode=!1,this.isEditLookupValue=!1,this.entitiesModel=[],this.groupedEntites=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.Memberships);T&&(this.entityID=T.entityID),this.fromPregroupedData.load()})},this.asyncEligibilityValidation=E=>B(this,null,function*(){return!(this.eligibilityControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.loadData=()=>{this.GetEligibilityProperty(),this.GetBenefitsInformationProperty(),this.GetPricingInformationProperty(),this.GetMembershipLifeCycleProperty(),this.GetGracePeriodConfigurationProperty(),this.GetMembershipGraceStatusProperty(),this.GetMembershipCancellationPolicyProperty(),this.GetPromotionsProperty(),this.GetMembershipPromotionSettingsProperty(),this.GetRefundPolicyProperty(),this.GetTermsandConditionsProperty(),this.GetMembershipInformationProperty(),this.GetAccountingProperty(),this.GetAccountingSetupProductProperty(),this.GetMembershipAccountingGLSetupProperty(),this.GetRenewalProcessProperty(),this.GetRenewalProcessNotificationProperty(),this.GetRenewalNotificationTemplateProperty()},this.asynctEligibilityValidation=E=>B(this,null,function*(){return!(this.eligibilityControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncBenefitsInformationValidation=E=>B(this,null,function*(){return!(this.benefitsControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncPricingInformationValidation=E=>B(this,null,function*(){return!(this.pricingControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipLifeCycleValidation=E=>B(this,null,function*(){return!(this.membershipLifeCycleControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncGracePeriodConfigurationValidation=E=>B(this,null,function*(){return!(this.gracePeriodConfigurationControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipGraceStatusValidation=E=>B(this,null,function*(){return!(this.membershipGraceStatusControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipCancellationPolicyValidation=E=>B(this,null,function*(){return!(this.membershipCancellationPolicyControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncPromotionsValidation=E=>B(this,null,function*(){return!(this.promotionsControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipPromotionSettingsValidation=E=>B(this,null,function*(){return!(this.membershipPromotionSettingsControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncRefundPolicyValidation=E=>B(this,null,function*(){return!(this.refundPolicyControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncTermsandConditionsValidation=E=>B(this,null,function*(){return!(this.termsandConditionsControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncAccountingValidation=E=>B(this,null,function*(){return!(this.accountingControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncAccountingSetupProductValidation=E=>B(this,null,function*(){return!(this.accountingSetupProductControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipAccountingGLSetupValidation=E=>B(this,null,function*(){return!(this.membershipAccountingGLSetupControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncRenewalProcessValidation=E=>B(this,null,function*(){return!(this.renewalProcessControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncRenewalProcessNotificationValidation=E=>B(this,null,function*(){return!(this.renewalProcessNotificationControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncRenewalNotificationTemplateValidation=E=>B(this,null,function*(){return!(this.renewalNotificationTemplateControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asyncMembershipInformationValidation=E=>B(this,null,function*(){return!(this.membershipInformationControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadData(),this.loadEntitiesData()}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entity
87ID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}memberInformation(){this.memberInfoCollapseExpand=!this.memberInfoCollapseExpand}EligibilityInformations(){this.EligibilityInfoCollapseExpand=!this.EligibilityInfoCollapseExpand}BenefitsInformation(){this.BenefitsInfoCollapseExpand=!this.BenefitsInfoCollapseExpand}PricingInformation(){this.PricingInfoCollapseExpand=!this.PricingInfoCollapseExpand}MembershipLifeCyclInformation(){this.MembershipLifeCycleCollapseExpand=!this.MembershipLifeCycleCollapseExpand}GracePeriodConfiguration(){this.GracePeriodConfigurationCollapseExpand=!this.GracePeriodConfigurationCollapseExpand}MembershipGraceStatus(){this.MembershipGraceStatusCollapseExpand=!this.MembershipGraceStatusCollapseExpand}MembershipCancellationPolic(){this.MembershipCancellationPolicCollapseExpand=!this.MembershipCancellationPolicCollapseExpand}PromotionsCollapseExpand(){this.PromotionCollapseExpand=!this.PromotionCollapseExpand}PromotionsSeetingCollapseExpand(){this.PromotionSeetingCollapseExpand=!this.PromotionSeetingCollapseExpand}RefundPolicysCollapseExpand(){this.RefundPolicyCollapseExpand=!this.RefundPolicyCollapseExpand}TermsandConditionCollapseExpand(){this.TermsandConditionsCollapseExpand=!this.TermsandConditionsCollapseExpand}AccountingsCollapseExpand(){this.AccountingCollapseExpand=!this.AccountingCollapseExpand}AccountingSetupProductsCollapseExpand(){this.AccountingSetupProductCollapseExpand=!this.AccountingSetupProductCollapseExpand}MembershipAccountingsGLSetupCollapseExpand(){this.MembershipAccountingGLSetupCollapseExpand=!this.MembershipAccountingGLSetupCollapseExpand}DemographicsPopupEvent(){this.addDemographicsPopup=!0}RenewalProcessNotification(){this.RenewalProcessNotificationCollapseExpand=!this.RenewalProcessNotificationCollapseExpand}RenewalNotificationTemplate(){this.RenewalNotificationTemplateCollapseExpand=!this.RenewalNotificationTemplateCollapseExpand}RenewalProcess(){this.RenewalProcessCollapseExpand=!this.RenewalProcessCollapseExpand}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}GetEligibilityProperty(){this.eligibilityControlsTypes=[],this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.EligibilityInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEligibilityControls=t.responseModel,this.filterEligibilityProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEligibilityProperty(){this.eligibilityControls=this.allEligibilityControls,this.eligibilityControlsTypes=this.eligibilityControls,this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!="All"&&(this.eligibilityControls=this.eligibilityControls.filter(i=>i.formControlType==this.selectedEligibilityControl)),this.allEligibilityControl
87s.forEach(i=>{this.eligibilityControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eligibilityControlType.push(i.formControlType)}),this.eligibilityControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eligibilityControlType.splice(0,0,"All"),this.isAllEligibilityRequired=!1,this.eligibilityControls.every(i=>i.isRequired==!0)&&(this.isAllEligibilityRequired=!0),this.isAllEligibilityEditable=!1,this.eligibilityControls.every(i=>i.isReadOnly==!0)&&(this.isAllEligibilityEditable=!0),this.isAllEligibilityVisible=!1,this.eligibilityControls.every(i=>i.isVisible==!0)&&(this.isAllEligibilityVisible=!0)}onSelectEligibilityType({value:t}){t==null&&(t=this.eligibilityType.length>0?this.eligibilityType[0].code:""),this.eligibilityCode=t,this.filterEligibilityProperty()}onSelectEligibilityControl({value:t}){this.selectedEligibilityControl=t,this.filterEligibilityProperty()}onEligibilityInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EligibilityInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EligibilityInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eligibilityControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEligibilityProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EligibilityInformation.toString()))}}onAllEligibilitylEditableChanged(t){if(this.isAllEligibilityEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!="All"&&(n=this.selectedEligibilityControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.EligibilityInformation.toString(),L.EligibilityInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEligibilityRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEligibilityRequired=t.value;let n="";this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!="All"&&(n=this.selectedEligibilityControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.EligibilityInformation.toString(),L.EligibilityInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEligibilityVisibleChanged(t){if(this.isAllEligibilityVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!=null&&this.selectedEligibilityControl!="All"&&(n=this.selectedEligibilityControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.EligibilityInformation.toString(),L.EligibilityInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEligibilityRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEligibilityVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEligibilityEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEligibilityProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetBenefitsInformationProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.Benefitsnformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allBenefitsControls=t.responseModel,this.filterBenefitsInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterBenefitsInformationProperty(){this.benefitsControls=this.allBenefitsControls,this.benefitsControlsTypes=this.benefitsControls,this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!="All"&&(this.benefitsControls=this.benefitsControls.filter(i=>i.formControlType==this.selectedBenefitsControl)),this.allBenefitsControls.forEach(i=>{this.benefitsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.benefitsControlType.push(i.formControlType)}),this.benefitsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.benefitsControlType.splice(0,0,"All"),this.isAllBenefitsRequired=!1,this.benefitsControls.every(i=>i.isRequired==!0)&&(this.isAllBenefitsRequired=!0),this.isAllBenefitsEditable=!1,this.benefitsControls.every(i=>i.isReadOnly==!0)&&(this.isAllBenefitsEditable=!0),this.isAllBenefitsVisible=!1,this.benefitsControls.every(i=>i.isVisible==!0)&&(this.isAllBenefitsVisible=!0)}onSelectBenefitsInformationType({value:t}){t==null&&(t=this.benefitsType.length>0?this.benefitsType[0].code:""),this.benefitsCode=t,this.filterBenefitsInformationProperty()}onSelectBenefitsInformationControl({value:t}){this.selectedBenefitsControl=t,this.filterBenefitsInformationProperty()}onBenefitsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Benefitsnformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Benefitsnformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.benefitsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEligibilityProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Benefitsnformation.toString()))}}onAllBenefitsEditableChanged(t){if(this.isAllBenefitsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!="All"&&(n=this.selectedBenefitsControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBenefitsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllBenefitsRequired=t.value;let n="";this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!="All"&&(n=this.selectedBenefitsControl),this.propertyService.Upd
87ateAllRequireFieldMemberShipsControl(M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBenefitsVisibleChanged(t){if(this.isAllBenefitsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!=null&&this.selectedBenefitsControl!="All"&&(n=this.selectedBenefitsControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.Benefitsnformation.toString(),L.BenefitsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBenefitsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBenefitsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBenefitsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitsInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetPricingInformationProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.Pricingformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPricingControls=t.responseModel,this.filterPricingInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPricingInformationProperty(){this.pricingControls=this.allPricingControls,this.pricingControlsTypes=this.pricingControls,this.selectedPricingControl!=null&&this.selectedPricingControl!=null&&this.selectedPricingControl!="All"&&(this.pricingControls=this.pricingControls.filter(i=>i.formControlType==this.selectedPricingControl)),this.allPricingControls.forEach(i=>{this.pricingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.pricingControlType.push(i.formControlType)}),this.pricingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.pricingControlType.splice(0,0,"All"),this.isAllPricingRequired=!1,this.pricingControls.every(i=>i.isRequired==!0)&&(this.isAllPricingRequired=!0),this.isAllPricingEditable=!1,this.pricingControls.every(i=>i.isReadOnly==!0)&&(this.isAllPricingEditable=!0),this.isAllPricingVisible=!1,this.pricingControls.every(i=>i.isVisible==!0)&&(this.isAllPricingVisible=!0)}onSelectPricingInformationType({value:t}){t==null&&(t=this.pricingType.length>0?this.pricingType[0].code:""),this.pricingCode=t,this.filterPricingInformationProperty()}onSelectPricingInformationControl({value:t}){this.onSelectPricingInformationControl=t,this.filterPricingInformationProperty()}onPricingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Pricingformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Pricingformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.pricingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPricingInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Pricingformation.toString()))}}onAllPricingEditableChanged(t){if(this.isAllPricingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPricingControl!=null&&this.selectedPricingControl!=null&&this.selectedPricingControl!="All"&&(n=this.selectedPricingControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.Pricingformation.toString(),L.PricingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPricingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPricingRequired=t.value;let n="";this.selectedPricingControl!=null&&this.selectedPricingControl!=null&&this.selectedPricingControl!="All"&&(n=this.selectedPricingControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.Pricingformation.toString(),L.PricingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPricingVisibleChanged(t){if(this.isAllPricingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPricingControl!=null&&this.selectedPricingControl!=null&&this.selectedPricingControl!="All"&&(n=this.selectedPricingControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.Pricingformation.toString(),L.PricingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPricingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPricingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPricingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPricingInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipLifeCycleProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipLifeCycle.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipLifeCycleControls=t.responseModel,this.filterMembershipLifeCycleProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipLifeCycleProperty(){this.membershipLifeCycleControls=this.allMembershipLifeCycleControls,this.membershipLifeCycleControlsTypes=this.membershipLifeCycleControls,this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!="All"&&(this.membershipLifeCycleControls=this.membershipLifeCycleControls.filter(i=>i.formControlType==this.selectedMembershipLifeCycleControl)),this.allMembershipLifeCycleControls.forEach(i=>{this.membershipLifeCycleControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipLifeCycleControlType.push(i.formControlType)}),this.membershipLifeCycleControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipLifeCycleControlType.splice(0,0,"All"),this.isAllMembershipLifeCycleRequired=!1,this.membershipLifeCycleControls.every(i=>i.isRequired==!0)&&(this.isAllMembershipLifeCycleRequired=!0),this.isAllMembershipLifeCycleEditable=!1,this.membershipLifeCycleControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipLifeCycleEditable=!0),this.isAllMembershipLifeCycleVisible=!1,this.membershipLifeCycleControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipLifeCycleVisible=!0)}onSelectMembershipLifeCycleType({value:t}){t==null&&(t=this.membershipLifeCycleType.length>0?this.membershipLifeCycleType[0].code:""),this.membershipLifeCycleCode=t,this.filterMembershipLifeCycleProperty()}onSelectMembershipLifeCycleControl({value:t}){this.selectedMembershipLifeCycleControl=t,this.filterMembershipLifeCycleProperty()}onMembershipLifeCycleInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipLifeCycle.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipLifeCycle.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipLifeCycleControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipLifeCycleProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipLifeCycle.toString()))}}onAllMembershipLifeCycleEditableChanged(t){if(this.isAllMembershipLifeCycleEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!="All"&&(n=this.selectedMembershipLifeCycleControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipLifeCycle.toString(),L.MembershipLifeCycle.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipLifeCycleRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipLifeCycleRequired=t.value;let n="";this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!="All"&&(n=this.selectedMembershipLifeCycleControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipLifeCycle.toString(),L.MembershipLifeCycle.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipLifeCycleVisibleChanged(t){if(this.isAllMembershipLifeCycleVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!=null&&this.selectedMembershipLifeCycleControl!="All"&&(n=this.selectedMembershipLifeCycleControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipLifeCycle.toString(),L.MembershipLifeCycle.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipLifeCycleRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipLifeCycleVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipLifeCycleEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipLifeCycleProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetGracePeriodConfigurationProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.GracePeriodConfiguration.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allGracePeriodConfigurationControls=t.responseModel,this.filterGracePeriodConfigurationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterGracePeriodConfigurationProperty(){this.gracePeriodConfigurationControls=this.allGracePeriodConfigurationControls,this.gracePeriodConfigurationControlsTypes=this.gracePeriodConfigurationControls,this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!="All"&&(this.gracePeriodConfigurationControls=this.gracePeriodConfigurationControls.filter(i=>i.formControlType==this.selectedGracePeriodConfigurationControl)),this.allGracePeriodConfigurationControls.forEac
87h(i=>{this.gracePeriodConfigurationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.gracePeriodConfigurationControlType.push(i.formControlType)}),this.gracePeriodConfigurationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.gracePeriodConfigurationControlType.splice(0,0,"All"),this.isAllGracePeriodConfigurationRequired=!1,this.gracePeriodConfigurationControls.every(i=>i.isRequired==!0)&&(this.isAllGracePeriodConfigurationRequired=!0),this.isAllGracePeriodConfigurationEditable=!1,this.gracePeriodConfigurationControls.every(i=>i.isReadOnly==!0)&&(this.isAllGracePeriodConfigurationEditable=!0),this.isAllGracePeriodConfigurationVisible=!1,this.gracePeriodConfigurationControls.every(i=>i.isVisible==!0)&&(this.isAllGracePeriodConfigurationVisible=!0)}onSelectGracePeriodConfigurationType({value:t}){t==null&&(t=this.gracePeriodConfigurationType.length>0?this.gracePeriodConfigurationType[0].code:""),this.gracePeriodConfigurationCode=t,this.filterGracePeriodConfigurationProperty()}onSelectGracePeriodConfigurationControl({value:t}){this.selectedGracePeriodConfigurationControl=t,this.filterGracePeriodConfigurationProperty()}onGracePeriodConfigurationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.GracePeriodConfiguration.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.GracePeriodConfiguration.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.gracePeriodConfigurationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetGracePeriodConfigurationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.GracePeriodConfiguration.toString()))}}onAllGracePeriodConfigurationEditableChanged(t){if(this.isAllGracePeriodConfigurationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!="All"&&(n=this.selectedGracePeriodConfigurationControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.GracePeriodConfiguration.toString(),L.GracePeriodConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGracePeriodConfigurationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllGracePeriodConfigurationRequired=t.value;let n="";this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!="All"&&(n=this.selectedGracePeriodConfigurationControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.GracePeriodConfiguration.toString(),L.GracePeriodConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGracePeriodConfigurationVisibleChanged(t){if(this.isAllGracePeriodConfigurationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!=null&&this.selectedGracePeriodConfigurationControl!="All"&&(n=this.selectedGracePeriodConfigurationControl),this.propertyService.Upd
87ateAllVisibleFieldMemberShipsControl(M.PropertyPageName.GracePeriodConfiguration.toString(),L.GracePeriodConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGracePeriodConfigurationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGracePeriodConfigurationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGracePeriodConfigurationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGracePeriodConfigurationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipGraceStatusProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipGraceStatus.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipGraceStatusControls=t.responseModel,this.filterMembershipGraceStatusProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipGraceStatusProperty(){this.membershipGraceStatusControls=this.allMembershipGraceStatusControls,this.membershipGraceStatusControlsTypes=this.membershipGraceStatusControls,this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!="All"&&(this.membershipGraceStatusControls=this.membershipGraceStatusControls.filter(i=>i.formControlType==this.selectedMembershipGraceStatusControl)),this.allMembershipGraceStatusControls.forEach(i=>{this.membershipGraceStatusControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipGraceStatusControlType.push(i.formControlType)}),this.membershipGraceStatusControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipGraceStatusControlType.splice(0,0,"All"),this.isAllMembershipGraceStatusRequired=!1,this.membershipGraceStatusControls.every(i=>i.isRequired==!0)&&(this.isAllMembershipGraceStatusRequired=!0),this.isAllMembershipGraceStatusEditable=!1,this.membershipGraceStatusControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipGraceStatusEditable=!0),this.isAllMembershipGraceStatusVisible=!1,this.membershipGraceStatusControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipGraceStatusVisible=!0)}onSelectMembershipGraceStatusControl({value:t}){this.selectedMembershipGraceStatusControl=t,this.filterMembershipGraceStatusProperty()}onMembershipGraceStatusInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipGraceStatus.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipGraceStatus.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipCancellationPolicyControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipGraceStatusProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipGraceStatus.toString()))}}onAllMembershipGraceStatusEditableChanged(t){if(this.isAllMembershipGraceStatusEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!="All"&&(n=this.selectedMembershipGraceStatusControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipGraceStatus.toString(),L.MembershipGraceStatus.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipGraceStatusRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipGraceStatusRequired=t.value;let n="";this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!="All"&&(n=this.selectedMembershipGraceStatusControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipGraceStatus.toString(),L.MembershipGraceStatus.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipGraceStatusVisibleChanged(t){if(this.isAllMembershipGraceStatusVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!=null&&this.selectedMembershipGraceStatusControl!="All"&&(n=this.selectedMembershipGraceStatusControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipGraceStatus.toString(),L.MembershipGraceStatus.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipGraceStatusRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipGraceStatusVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipGraceStatusEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipGraceStatusProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipCancellationPolicyProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipCancellationPolicy.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipCancellationPolicyControls=t.responseModel,this.filterMembershipCancellationPolicyProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipCancellationPolicyProperty(){this.membershipCancellationPolicyControls=this.allMembershipCancellationPolicyControls,this.membershipCancellationPolicyControlsTypes=this.membershipCancellationPolicyControls,this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!="All"&&(this.membershipCancellationPolicyControls=this.membershipCancellationPolicyControls.filter(i=>i.formControlType==this.selectedMembershipCancellationPolicyControl)),this.allMembershipCancellationPolicyControls.forEac
87h(i=>{this.membershipCancellationPolicyControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipCancellationPolicyControlType.push(i.formControlType)}),this.membershipCancellationPolicyControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipCancellationPolicyControlType.splice(0,0,"All"),this.isAllMembershipCancellationPolicyRequired=!1,this.membershipCancellationPolicyControls.every(i=>i.isRequired==!0)&&(this.isAllMembershipCancellationPolicyRequired=!0),this.isAllMembershipCancellationPolicyEditable=!1,this.membershipCancellationPolicyControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipCancellationPolicyEditable=!0),this.isAllMembershipCancellationPolicyVisible=!1,this.membershipCancellationPolicyControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipCancellationPolicyVisible=!0)}onSelectMembershipCancellationPolicyType({value:t}){t==null&&(t=this.membershipCancellationPolicyControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.membershipCancellationPolicyCode=t,this.filterMembershipCancellationPolicyProperty()}onSelectMembershipCancellationPolicyControl({value:t}){this.selectedMembershipCancellationPolicyControl=t,this.filterMembershipCancellationPolicyProperty()}onMembershipCancellationPolicyInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipCancellationPolicy.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipCancellationPolicy.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipCancellationPolicyControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipCancellationPolicyProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipCancellationPolicy.toString()))}}onAllMembershipCancellationPolicyEditableChanged(t){if(this.isAllMembershipCancellationPolicyEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!="All"&&(n=this.selectedMembershipCancellationPolicyControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipCancellationPolicy.toString(),L.MembershipCancellationPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipCancellationPolicyRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipCancellationPolicyRequired=t.value;let n="";this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!="All"&&(n=this.selectedMembershipCancellationPolicyControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipCancellationPolicy.toString(),L.MembershipCancellationPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipCancellationPolicyVisibleChanged(t){if(this.isAllMembershipCancellationPolicyVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!=null&&this.selectedMembershipCancellationPolicyControl!="All"&&(n=this.selectedMembershipCancellationPolicyControl),this.propertyService.Upd
87ateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipCancellationPolicy.toString(),L.MembershipCancellationPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipCancellationPolicyRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipCancellationPolicyVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipCancellationPolicyEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipCancellationPolicyProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetPromotionsProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.Promotions.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPromotionsControls=t.responseModel,this.filterPromotionsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPromotionsProperty(){this.promotionsControls=this.allPromotionsControls,this.promotionsControlsTypes=this.promotionsControls,this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!="All"&&(this.promotionsControls=this.promotionsControls.filter(i=>i.formControlType==this.selectedPromotionsControl)),this.allPromotionsControls.forEach(i=>{this.promotionsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.promotionsControlType.push(i.formControlType)}),this.promotionsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.promotionsControlType.splice(0,0,"All"),this.isAllPromotionsRequired=!1,this.promotionsControls.every(i=>i.isRequired==!0)&&(this.isAllPromotionsRequired=!0),this.isAllPromotionsEditable=!1,this.promotionsControls.every(i=>i.isReadOnly==!0)&&(this.isAllPromotionsEditable=!0),this.isAllPromotionsVisible=!1,this.promotionsControls.every(i=>i.isVisible==!0)&&(this.isAllPromotionsVisible=!0)}onSelectPromotionsType({value:t}){t==null&&(t=this.promotionsControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.promotionsCode=t,this.filterPromotionsProperty()}onSelectPromotionsControl({value:t}){this.selectedPromotionsControl=t,this.filterPromotionsProperty()}onPromotionsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Promotions.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Promotions.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.promotionsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPromotionsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Promotions.toString()))}}onAllPromotionsEditableChanged(t){if(this.isAllPromotionsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!="All"&&(n=this.selectedPromotionsControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.Promotions.toString(),L.Promotions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPromotionsRequired=t.value;let n="";this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!="All"&&(n=this.selectedPromotionsControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.Promotions.toString(),L.Promotions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionsVisibleChanged(t){if(this.isAllPromotionsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!=null&&this.selectedPromotionsControl!="All"&&(n=this.selectedPromotionsControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.Promotions.toString(),L.Promotions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipPromotionSettingsProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipPromotionSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipPromotionSettingsControls=t.responseModel,this.filterMembershipPromotionSettingsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipPromotionSettingsProperty(){this.membershipPromotionSettingsControls=this.allMembershipPromotionSettingsControls,this.membershipPromotionSettingsControlsTypes=this.membershipPromotionSettingsControls,this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!="All"&&(this.membershipPromotionSettingsControls=this.membershipPromotionSettingsControls.filter(i=>i.formControlType==this.selectedMembershipPromotionSettingsControl)),this.allMembershipPromotionSettingsControls.forEach(i=>{this.membershipPromotionSettingsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipPromotionSettingsControlType.push(i.formControlType)}),this.membershipPromotionSettingsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipPromotionSettingsControlType.splice(0,0,"All"),this.isAllMembershipPromotionSettingsRequired=!1,this.membershipPromotionSettingsControl
87s.every(i=>i.isRequired==!0)&&(this.isAllMembershipPromotionSettingsRequired=!0),this.isAllMembershipPromotionSettingsEditable=!1,this.membershipPromotionSettingsControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipPromotionSettingsEditable=!0),this.isAllMembershipPromotionSettingsVisible=!1,this.membershipPromotionSettingsControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipPromotionSettingsVisible=!0)}onSelectMembershipPromotionSettingsControl({value:t}){this.membershipPromotionSettingsControlsTypes=t,this.filterMembershipPromotionSettingsProperty()}onMembershipPromotionSettingsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipPromotionSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipPromotionSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipPromotionSettingsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipPromotionSettingsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipPromotionSettings.toString()))}}onAllMembershipPromotionSettingsEditableChanged(t){if(this.isAllMembershipPromotionSettingsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!="All"&&(n=this.selectedMembershipPromotionSettingsControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipPromotionSettings.toString(),L.MembershipPromotionSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipPromotionSettingsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipPromotionSettingsRequired=t.value;let n="";this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!="All"&&(n=this.selectedMembershipPromotionSettingsControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipPromotionSettings.toString(),L.MembershipPromotionSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipPromotionSettingsVisibleChanged(t){if(this.isAllMembershipPromotionSettingsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!=null&&this.selectedMembershipPromotionSettingsControl!="All"&&(n=this.selectedMembershipPromotionSettingsControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipPromotionSettings.toString(),L.MembershipPromotionSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipPromotionSettingsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipPromotionSettingsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipPromotionEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipPromotionSettingsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRefundPolicyProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.RefundPolicy.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRefundPolicyControls=t.responseModel,this.filterRefundPolicyProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRefundPolicyProperty(){this.refundPolicyControls=this.allRefundPolicyControls,this.refundPolicyControlsTypes=this.refundPolicyControls,this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(this.refundPolicyControls=this.refundPolicyControls.filter(i=>i.formControlType==this.selectedRefundPolicyControl)),this.allRefundPolicyControls.forEach(i=>{this.refundPolicyControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.refundPolicyControlType.push(i.formControlType)}),this.refundPolicyControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.refundPolicyControlType.splice(0,0,"All"),this.isAllRefundPolicyRequired=!1,this.refundPolicyControls.every(i=>i.isRequired==!0)&&(this.isAllRefundPolicyRequired=!0),this.isAllRefundPolicyEditable=!1,this.refundPolicyControls.every(i=>i.isReadOnly==!0)&&(this.isAllRefundPolicyEditable=!0),this.isAllRefundPolicyVisible=!1,this.refundPolicyControls.every(i=>i.isVisible==!0)&&(this.isAllRefundPolicyVisible=!0)}onSelectRefundPolicyType({value:t}){t==null&&(t=this.refundPolicyControlsTypes.length>0?this.refundPolicyType[0].code:""),this.refundPolicyPolicyCode=t,this.filterRefundPolicyProperty()}onSelectRefundPolicyControl({value:t}){this.refundPolicyControlsTypes=t,this.filterRefundPolicyProperty()}onRefundPolicyInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RefundPolicy.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RefundPolicy.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.refundPolicyControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRefundPolicyProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RefundPolicy.toString()))}}onAllRefundPolicyEditableChanged(t){if(this.isAllRefundPolicyEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRefundPolicyRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRefundPolicyRequired=t.value;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRefundPolicyVisibleChanged(t){if(this.isAllRefundPolicyVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetTermsandConditionsProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.TermsandConditions.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allTermsandConditionsControls=t.responseModel,this.filterTermsandConditionsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterTermsandConditionsProperty(){this.termsandConditionsControls=this.allTermsandConditionsControls,this.termsandConditionsControlsTypes=this.termsandConditionsControls,this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!="All"&&(this.termsandConditionsControls=this.termsandConditionsControls.filter(i=>i.formControlType==this.selectedTermsandConditionsControl)),this.allTermsandConditionsControls.forEach(i=>{this.termsandConditionsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.termsandConditionsControlType.push(i.formControlType)}),this.termsandConditionsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.termsandConditionsControlType.splice(0,0,"All"),this.isAllTermsandConditionsRequired=!1,this.termsandConditionsControls.every(i=>i.isRequired==!0)&&(this.isAllTermsandConditionsRequired=!0),this.isAllTermsandConditionsEditable=!1,this.termsandConditionsControls.every(i=>i.isReadOnly==!0)&&(this.isAllTermsandConditionsEditable=!0),this.isAllTermsandConditionsVisible=!1,this.termsandConditionsControls.every(i=>i.isVisible==!0)&&(this.isAllTermsandConditionsVisible=!0)}onSelectTermsandConditionsType({value:t}){t==null&&(t=this.termsandConditionsControlsTypes.length>0?this.termsandConditionsType[0].code:""),this.termsandConditionsCode=t,this.filterTermsandConditionsProperty()}onSelectTermsandConditionsControl({value:t}
87){this.selectedTermsandConditionsControl=t,this.filterTermsandConditionsProperty()}onTermsandConditionsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.TermsandConditions.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.TermsandConditions.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.termsandConditionsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetTermsandConditionsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.TermsandConditions.toString()))}}onAllTermsandConditionsEditableChanged(t){if(this.isAllTermsandConditionsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!="All"&&(n=this.selectedTermsandConditionsControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.TermsandConditions.toString(),L.TermsandConditions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllTermsandConditionsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllTermsandConditionsRequired=t.value;let n="";this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!="All"&&(n=this.selectedTermsandConditionsControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.TermsandConditions.toString(),L.TermsandConditions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllTermsandConditionsVisibleChanged(t){if(this.isAllTermsandConditionsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!=null&&this.selectedTermsandConditionsControl!="All"&&(n=this.selectedTermsandConditionsControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.TermsandConditions.toString(),L.TermsandConditions.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTermsandConditionsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTermsandConditionsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTermsandConditionsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTermsandConditionsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAccountingProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.Accounting.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingControls=t.responseModel,this.filterAccountingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingProperty(){this.accountingControls=this.allAccountingControls,this.accountingControlsTypes=this.accountingControls,this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(this.accountingControls=this.accountingControls.filter(i=>i.formControlType==this.selectedAccountingControl)),this.allAccountingControls.forEach(i=>{this.accountingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingControlType.push(i.formControlType)}),this.accountingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingControlType.splice(0,0,"All"),this.isAllAccountingRequired=!1,this.accountingControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingRequired=!0),this.isAllAccountingEditable=!1,this.accountingControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingEditable=!0),this.isAllAccountingVisible=!1,this.accountingControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingVisible=!0)}onSelectAccountingType({value:t}){t==null&&(t=this.accountingControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterAccountingProperty()}onSelectAccountingControl({value:t}){this.selectedAccountingControl=t,this.filterAccountingProperty()}onAccountingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Accounting.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Accounting.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Accounting.toString()))}}onAllAccountingEditableChanged(t){if(this.isAllAccountingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.Accounting.toString(),L.Accounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingRequired=t.value;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.Accounting.toString(),L.Accounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingVisibleChanged(t){if(this.isAllAccountingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.Upd
87ateAllVisibleFieldMemberShipsControl(M.PropertyPageName.Accounting.toString(),L.Accounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAccountingSetupProductProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.AccountingSetupProduct.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingSetupProductControls=t.responseModel,this.filterAccountingSetupProductProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingSetupProductProperty(){this.accountingSetupProductControls=this.allAccountingSetupProductControls,this.accountingSetupProductControlsTypes=this.accountingSetupProductControls,this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(this.accountingSetupProductControls=this.accountingSetupProductControls.filter(i=>i.formControlType==this.selectedAccountingSetupProductControl)),this.allAccountingSetupProductControls.forEach(i=>{this.accountingSetupProductControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingSetupProductControlType.push(i.formControlType)}),this.accountingSetupProductControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingSetupProductControlType.splice(0,0,"All"),this.isAllAccountingSetupProductRequired=!1,this.accountingSetupProductControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingSetupProductRequired=!0),this.isAllAccountingSetupProductEditable=!1,this.accountingSetupProductControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingSetupProductEditable=!0),this.isAllAccountingSetupProductVisible=!1,this.accountingSetupProductControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingSetupProductVisible=!0)}onSelectAccountingSetupProductType({value:t}){t==null&&(t=this.accountingSetupProductControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterAccountingSetupProductProperty()}onSelectAccountingSetupProductControl({value:t}){this.selectedAccountingSetupProductControl=t,this.filterAccountingSetupProductProperty()}onAccountingSetupProductInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingSetupProduct.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingSetupProduct.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingSetupProductControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingSetupProductProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.AccountingSetupProduct.toString()))}}onAllAccountingSetupProductEditableChanged(t){if(this.isAllAccountingSetupProductEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingSetupProductRequired=t.value;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductVisibleChanged(t){if(this.isAllAccountingSetupProductVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipAccountingGLSetupProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipAccountingGLSetup.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipAccountingGLSetupControls=t.responseModel,this.filterMembershipAccountingGLSetupProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipAccountingGLSetupProperty(){this.membershipAccountingGLSetupControls=this.allMembershipAccountingGLSetupControls,this.membershipAccountingGLSetupControlsTypes=this.membershipAccountingGLSetupControls,this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!="All"&&(this.membershipAccountingGLSetupControls=this.membershipAccountingGLSetupControls.filter(i=>i.formControlType==this.selectedMembershipAccountingGLSetupControl)),this.allMembershipAccountingGLSetupControls.forEac
87h(i=>{this.membershipAccountingGLSetupControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipAccountingGLSetupControlType.push(i.formControlType)}),this.membershipAccountingGLSetupControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipAccountingGLSetupControlType.splice(0,0,"All"),this.isAllMembershipAccountingGLSetupRequired=!1,this.membershipAccountingGLSetupControls.every(i=>i.isRequired==!0)&&(this.isAllMembershipAccountingGLSetupRequired=!0),this.isAllMembershipAccountingGLSetupEditable=!1,this.membershipAccountingGLSetupControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipAccountingGLSetupEditable=!0),this.isAllMembershipAccountingGLSetupVisible=!1,this.membershipAccountingGLSetupControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipAccountingGLSetupVisible=!0)}onSelectMembershipAccountingGLSetupType({value:t}){t==null&&(t=this.membershipAccountingGLSetupControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterMembershipAccountingGLSetupProperty()}onSelectMembershipAccountingGLSetupControl({value:t}){this.selectedMembershipAccountingGLSetupControl=t,this.filterMembershipAccountingGLSetupProperty()}onMembershipAccountingGLSetupInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipAccountingGLSetup.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipAccountingGLSetup.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipAccountingGLSetupControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipAccountingGLSetupProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipAccountingGLSetup.toString()))}}onAllMembershipAccountingGLSetupEditableChanged(t){if(this.isAllMembershipAccountingGLSetupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!="All"&&(n=this.selectedMembershipAccountingGLSetupControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipAccountingGLSetup.toString(),L.MembershipAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipAccountingGLSetupRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipAccountingGLSetupRequired=t.value;let n="";this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!="All"&&(n=this.selectedMembershipAccountingGLSetupControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipAccountingGLSetup.toString(),L.MembershipAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipAccountingGLSetupVisibleChanged(t){if(this.isAllMembershipAccountingGLSetupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!=null&&this.selectedMembershipAccountingGLSetupControl!="All"&&(n=this.selectedMembershipAccountingGLSetupControl),this.propertyService.Upd
87ateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipAccountingGLSetup.toString(),L.MembershipAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipAccountingGLSetupRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipAccountingGLSetupVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipAccountingGLSetupEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRenewalProcessProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.RenewalProcess.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRenewalProcessControls=t.responseModel,this.filterRenewalProcessProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRenewalProcessProperty(){this.renewalProcessControls=this.allRenewalProcessControls,this.renewalProcessControlsTypes=this.renewalProcessControls,this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!="All"&&(this.renewalProcessControls=this.renewalProcessControls.filter(i=>i.formControlType==this.selectedRenewalProcessControl)),this.allRenewalProcessControls.forEach(i=>{this.renewalProcessControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.renewalProcessControlType.push(i.formControlType)}),this.renewalProcessControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.renewalProcessControlType.splice(0,0,"All"),this.isAllRenewalProcessRequired=!1,this.renewalProcessControls.every(i=>i.isRequired==!0)&&(this.isAllRenewalProcessRequired=!0),this.isAllRenewalProcessEditable=!1,this.renewalProcessControls.every(i=>i.isReadOnly==!0)&&(this.isAllRenewalProcessEditable=!0),this.isAllRenewalProcessVisible=!1,this.renewalProcessControls.every(i=>i.isVisible==!0)&&(this.isAllRenewalProcessVisible=!0)}onSelectRenewalProcessType({value:t}){t==null&&(t=this.renewalProcessControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.renewalProcessCode=t,this.filterRenewalProcessProperty()}onSelectRenewalProcessControl({value:t}){this.selectedRenewalProcessControl=t,this.filterRenewalProcessProperty()}onRenewalProcessInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalProcess.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalProcess.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.renewalProcessControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRenewalProcessProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RenewalProcess.toString()))}}onAllRenewalProcessEditableChanged(t){if(this.isAllRenewalProcessEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!="All"&&(n=this.selectedRenewalProcessControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.RenewalProcess.toString(),L.RenewalProcess.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalProcessRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRenewalProcessRequired=t.value;let n="";this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!="All"&&(n=this.selectedRenewalProcessControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.RenewalProcess.toString(),L.RenewalProcess.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalProcessVisibleChanged(t){if(this.isAllRenewalProcessVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!=null&&this.selectedRenewalProcessControl!="All"&&(n=this.selectedRenewalProcessControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.RenewalProcess.toString(),L.RenewalProcess.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRenewalProcessNotificationProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.RenewalProcessNotification.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRenewalProcessNotificationControls=t.responseModel,this.filterRenewalProcessNotificationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRenewalProcessNotificationProperty(){this.renewalProcessNotificationControls=this.allRenewalProcessNotificationControls,this.renewalProcessNotificationControlsTypes=this.renewalProcessNotificationControls,this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!="All"&&(this.renewalProcessNotificationControls=this.renewalProcessNotificationControls.filter(i=>i.formControlType==this.selectedRenewalProcessNotificationControl)),this.allRenewalProcessNotificationControls.forEac
87h(i=>{this.renewalProcessNotificationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.renewalProcessNotificationControlType.push(i.formControlType)}),this.renewalProcessNotificationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.renewalProcessNotificationControlType.splice(0,0,"All"),this.isAllRenewalProcessNotificationRequired=!1,this.renewalProcessNotificationControls.every(i=>i.isRequired==!0)&&(this.isAllRenewalProcessNotificationRequired=!0),this.isAllRenewalProcessNotificationEditable=!1,this.renewalProcessNotificationControls.every(i=>i.isReadOnly==!0)&&(this.isAllRenewalProcessNotificationEditable=!0),this.isAllRenewalProcessNotificationVisible=!1,this.renewalProcessNotificationControls.every(i=>i.isVisible==!0)&&(this.isAllRenewalProcessNotificationVisible=!0)}onSelectRenewalProcessNotificationType({value:t}){t==null&&(t=this.renewalProcessNotificationControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.renewalProcessNotificationCode=t,this.filterRenewalProcessNotificationProperty()}onSelectRenewalProcessNotificationControl({value:t}){this.selectedRenewalProcessNotificationControl=t,this.filterRenewalProcessNotificationProperty()}onRenewalProcessNotificationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalProcessNotification.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalProcessNotification.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.renewalProcessNotificationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRenewalProcessNotificationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RenewalProcessNotification.toString()))}}onAllRenewalProcessNotificationEditableChanged(t){if(this.isAllRenewalProcessNotificationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!="All"&&(n=this.selectedRenewalProcessNotificationControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.RenewalProcessNotification.toString(),L.RenewalProcessNotification.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalProcessNotificationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRenewalProcessNotificationRequired=t.value;let n="";this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!="All"&&(n=this.selectedRenewalProcessNotificationControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.RenewalProcessNotification.toString(),L.RenewalProcessNotification.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalProcessNotificationVisibleChanged(t){if(this.isAllRenewalProcessNotificationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!=null&&this.selectedRenewalProcessNotificationControl!="All"&&(n=this.selectedRenewalProcessNotificationControl),this.propertyService.Upd
87ateAllVisibleFieldMemberShipsControl(M.PropertyPageName.RenewalProcessNotification.toString(),L.RenewalProcessNotification.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessNotificationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessNotificationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalProcessNotificationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalProcessNotificationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRenewalNotificationTemplateProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.RenewalNotificationTemplate.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRenewalNotificationTemplateControls=t.responseModel,this.filterRenewalNotificationTemplateProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRenewalNotificationTemplateProperty(){this.renewalNotificationTemplateControls=this.allRenewalNotificationTemplateControls,this.renewalNotificationTemplateControlsTypes=this.renewalNotificationTemplateControls,this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!="All"&&(this.renewalNotificationTemplateControls=this.renewalNotificationTemplateControls.filter(i=>i.formControlType==this.selectedRenewalNotificationTemplateControl)),this.allRenewalNotificationTemplateControls.forEach(i=>{this.renewalNotificationTemplateControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.renewalNotificationTemplateControlType.push(i.formControlType)}),this.renewalNotificationTemplateControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.renewalNotificationTemplateControlType.splice(0,0,"All"),this.isAllRenewalNotificationTemplateRequired=!1,this.renewalNotificationTemplateControls.every(i=>i.isRequired==!0)&&(this.isAllRenewalNotificationTemplateRequired=!0),this.isAllRenewalNotificationTemplateEditable=!1,this.renewalNotificationTemplateControls.every(i=>i.isReadOnly==!0)&&(this.isAllRenewalNotificationTemplateEditable=!0),this.isAllRenewalNotificationTemplateVisible=!1,this.renewalNotificationTemplateControls.every(i=>i.isVisible==!0)&&(this.isAllRenewalNotificationTemplateVisible=!0)}onSelectRenewalNotificationTemplateType({value:t}){t==null&&(t=this.renewalNotificationTemplateControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.renewalNotificationTemplateCode=t,this.filterRenewalNotificationTemplateProperty()}onSelectRenewalNotificationTemplateControl({value:t}){this.selectedRenewalNotificationTemplateControl=t,this.filterRenewalNotificationTemplateProperty()}onRenewalNotificationTemplateInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalNotificationTemplate.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RenewalNotificationTemplate.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.renewalNotificationTemplateControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRenewalNotificationTemplateProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RenewalNotificationTemplate.toString()))}}onAllRenewalNotificationTemplateEditableChanged(t){if(this.isAllRenewalNotificationTemplateEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!="All"&&(n=this.selectedRenewalNotificationTemplateControl),this.propertyService.Upd
87ateAllEditableFieldMemberShipsControl(M.PropertyPageName.RenewalNotificationTemplate.toString(),L.RenewalNotificationTemplate.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalNotificationTemplateRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRenewalNotificationTemplateRequired=t.value;let n="";this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!="All"&&(n=this.selectedRenewalNotificationTemplateControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.RenewalNotificationTemplate.toString(),L.RenewalNotificationTemplate.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRenewalNotificationTemplateVisibleChanged(t){if(this.isAllRenewalNotificationTemplateVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!=null&&this.selectedRenewalNotificationTemplateControl!="All"&&(n=this.selectedRenewalNotificationTemplateControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.RenewalNotificationTemplate.toString(),L.RenewalNotificationTemplate.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalNotificationTemplateRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalNotificationTemplateVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRenewalNotificationTemplateEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRenewalNotificationTemplateProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetMembershipInformationProperty(){this.loading=!0,this.propertyService.GetMemberShipsPageControlsByPageName(M.PropertyPageName.MembershipInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allMembershipInformationControls=t.responseModel,this.filterMembershipInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterMembershipInformationProperty(){this.membershipInformationControls=this.allMembershipInformationControls,this.membershipInformationControlsTypes=this.membershipInformationControls,this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!="All"&&(this.membershipInformationControls=this.membershipInformationControls.filter(i=>i.formControlType==this.selectedMembershipInformationControl)),this.allMembershipInformationControls.forEac
87h(i=>{this.membershipInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.membershipInformationControlType.push(i.formControlType)}),this.membershipInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.membershipInformationControlType.splice(0,0,"All"),this.isAllMembershipInformationRequired=!1,this.membershipInformationControls.every(i=>i.isRequired==!0)&&(this.isAllMembershipInformationRequired=!0),this.isAllMembershipInformationEditable=!1,this.membershipInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllMembershipInformationEditable=!0),this.isAllMembershipInformationVisible=!1,this.membershipInformationControls.every(i=>i.isVisible==!0)&&(this.isAllMembershipInformationVisible=!0)}onSelectMembershipInformationType({value:t}){t==null&&(t=this.membershipInformationControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.membershipInformationCode=t,this.filterMembershipInformationProperty()}onSelectMembershipInformationControl({value:t}){this.selectedMembershipInformationControl=t,this.filterMembershipInformationProperty()}onMembershipInformationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.MembershipInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.membershipInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetMembershipInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.MembershipInformation.toString()))}}onAllMembershipInformationEditableChanged(t){if(this.isAllMembershipInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!="All"&&(n=this.selectedMembershipInformationControl),this.propertyService.UpdateAllEditableFieldMemberShipsControl(M.PropertyPageName.MembershipInformation.toString(),L.MembershipInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllMembershipInformationRequired=t.value;let n="";this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!="All"&&(n=this.selectedMembershipInformationControl),this.propertyService.UpdateAllRequireFieldMemberShipsControl(M.PropertyPageName.MembershipInformation.toString(),L.MembershipInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllMembershipInformationVisibleChanged(t){if(this.isAllMembershipInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!=null&&this.selectedMembershipInformationControl!="All"&&(n=this.selectedMembershipInformationControl),this.propertyService.UpdateAllVisibleFieldMemberShipsControl(M.PropertyPageName.MembershipInformation.toString(),L.MembershipInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onMembershipInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetMembershipInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProfileSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onTeamandConditionSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.EligibilityInformation.toString()?this.GetEligibilityProperty():n==M.PropertyPageName.Benefitsnformation.toString()?this.GetBenefitsInformationProperty():n==M.PropertyPageName.profileInformation.toString()?this.GetPricingInformationProperty():n==M.PropertyPageName.MembershipLifeCycle.toString()?this.GetMembershipLifeCycleProperty():n==M.PropertyPageName.GracePeriodConfiguration.toString()?this.GetGracePeriodConfigurationProperty():n==M.PropertyPageName.MembershipGraceStatus.toString()?this.GetMembershipGraceStatusProperty():n==M.PropertyPageName.MembershipCancellationPolicy.toString()?this.GetMembershipCancellationPolicyProperty():n==M.PropertyPageName.Promotions.toString()?this.GetPromotionsProperty():n==M.PropertyPageName.MembershipPromotionSettings.toString()?this.GetMembershipPromotionSettingsProperty():n==M.PropertyPageName.RefundPolicy.toString()?this.GetRefundPolicyProperty():n==M.PropertyPageName.TermsandConditions.toString()?this.GetTermsandConditionsProperty():n==M.PropertyPageName.MembershipInformation.toString()?this.GetMembershipInformationProperty():n==M.PropertyPageName.Accounting.toString()?this.GetAccountingProperty():n==M.PropertyPageName.AccountingSetupProduct.toString()?this.GetAccountingSetupProductProperty():n==M.PropertyPageName.MembershipAccountingGLSetup.toString()&&this.GetMembershipAccountingGLSetupProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Contact.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-memberships-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(a_,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:721,vars:711,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Memberships","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],["mode","cell",3,"changesChange","allowUp
87dating","changes"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.45461 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.
87094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
vendor: 7,377 bytes, line 87
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Memberships Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Memberships Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Membership Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.memberInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedMembershipInformationControl,c)||(e.selectedMembershipInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectMembershipInformationControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onMembershipInformationInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,p_,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,u_,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,m_,4,1,"div",41)(52,g_,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,h_,4,1,"div",41)(55,f_,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,C_,4,1,"div",41)(58,__,2,1,"div",45),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Eligibility Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.EligibilityInformations())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEligibilityControl,c)||(e.selectedEligibilityControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEligibilityControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEligibilityInfoSaving(c))}),b(77,"dxo-paging",29)(78,"dxo-editing",30)(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,x_,4,3,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,v_,2,4,"span",39),s(),a(88,"dxi-column",40),S(89,b_,4,1,"div",41)(90,w_,2,2,"div",42),s(),a(91,"dxi-column",43),S(92,S_,4,1,"div",41)(93,P_,2,2,"div",42),s(),a(94,"dxi-column",44),S(95,M_,4,1,"div",41)(96,V_,2,1,"div",45),s()()()()()(),a(97,"div",15)(98,"div",12)(99,"div",16)(100,"h2",17),h(101,"Benefits Information"),s(),a(102,"div",18)(103,"a",19),f("click",function(){return p(i),u(e.BenefitsInformation())}),A(),a(104,"svg",20),b(105,"path",21),s()()()(),G(),a(106,"div",22)(107,"div",23)(108,"div",24)(109,"div",25)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedBenefitsControl,c)||(e.selectedBenefitsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectBenefitsInformationControl(c))}),s()()()(),a(113,"div",27)(114,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onBenefitsInfoSaving(c))}),b(115,"dxo-paging",29)(116,"dxo-editing",30)(117,"dxi-column",31)(118,"dxi-column",32),a(119,"dxi-column",33),b(120,"dxi-validation-rule",34)(121,"dxi-validation-rule",35),S(122,T_,4,3,"div",36),s(),b(123,"dxi-column",37),a(124,"dxi-column",38),S(125,D_,2,4,"span",39),s(),a(126,"dxi-column",40),S(127,I_,4,1,"div",41)(128,A_,2,2,"div",42),s(),a(129,"dxi-column",43),S(130,L_,4,1,"div",41)(131,k_,2,2,"div",42),s(),a(132,"dxi-column",44),S(133,R_,4,1,"div",41)(134,O_,2,1,"div",45),s()()()()()(),a(135,"div",15)(136,"div",12)(137,"div",16)(138,"h2",17),h(139,"Pricing Information"),s(),a(140,"div",18)(141,"a",19),f("click",function(){return p(i),u(e.PricingInformation())}),A(),a(142,"svg",20),b(143,"path",21),s()()()(),G(),a(144,"div",22)(145,"div",23)(146,"div",24)(147,"div",25)(148,"span"),h(149,"Control Type:"),s(),a(150,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPricingControl,c)||(e.selectedPricingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPricingInformationType(c))}),s()()()(),a(151,"div",27)(152,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPricingInfoSaving(c))}),b(153,"dxo-paging",29),a(154,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(155,"dxi-column",31)(156,"dxi-column",32),a(157,"dxi-column",33),b(158,"dxi-validation-rule",34)(159,"dxi-validation-rule",35),S(160,B_,4,3,"div",36),s(),b(161,"dxi-column",37),a(162,"dxi-column",38),S(163,F_,2,4,"span",39),s(),a(164,"dxi-column",40),S(165,W_,4,1,"div",41)(166,N_,2,2,"div",42),s(),a(167,"dxi-column",43),S(168,q_,4,1,"div",41)(169,U_,2,2,"div",42),s(),a(170,"dxi-column",44),S(171,H_,4,1,"div",41)(172,j_,2,1,"div",45),s()()()()()(),a(173,"div",15)(174,"div",12)(175,"div",16)(176,"h2",17),h(177,"Membership Life Cycle"),s(),a(178,"div",18)(179,"a",19),f("click",function(){return p(i),u(e.MembershipLifeCyclInformation())}),A(),a(180,"svg",20),b(181,"path",21),s()()()(),G(),a(182,"div",22)(183,"div",23)(184,"div",24)(185,"div",25)(186,"span"),h(187,"Control Type:"),s(),a(188,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedMembershipLifeCycleControl,c)||(e.selectedMembershipLifeCycleControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectMembershipLifeCycleControl(c))}),s()()()(),a(189,"div",27)(190,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onMembershipLifeCycleInfoSaving(c))}),b(191,"dxo-paging",29),a(192,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(193,"dxi-column",31)(194,"dxi-column",32),a(195,"dxi-column",33),b(196,"dxi-validation-rule",34)(197,"dxi-validation-rule",35),S(198,Z_,4,3,"div",36),s(),b(199,"dxi-column",37),a(200,"dxi-column",38),S(201,Q_,2,4,"span",39),s(),a(202,"dxi-column",40),S(203,Y_,4,1,"div",41)(204,K_,2,2,"div",42),s(),a(205,"dxi-column",43),S(206,J_,4,1,"div",41)(207,X_,2,2,"div",42),s(),a(208,"dxi-column",44),S(209,$_,4,1,"div",41)(210,ey,2,1,"div",45),s()()()()()(),a(211,"div",15)(212,"div",12)(213,"div",16)(214,"h2",17),h(215,"Renewal Process"),s(),a(216,"div",18)(217,"a",19),f("click",function(){return p(i),u(e.RenewalProcess())}),A(),a(218,"svg",20),b(219,"path",21),s()()()(),G(),a(220,"div",22)(221,"div",23)(222,"div",24)(223,"div",25)(224,"span"),h(225,"Control Type:"),s(),a(226,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRenewalProcessControl,c)||(e.selectedRenewalProcessControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRenewalProcessControl(c))}),s()()()(),a(227,"div",27)(228,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRenewalProcessInfoSaving(c))}),b(229,"dxo-paging",29),a(230,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(231,"dxi-column",31)(232,"dxi-column",32),a(233,"dxi-column",33),b(234,"dxi-validation-rule",34)(235,"dxi-validation-rule",35),S(236,iy,4,3,"div",36),s(),b(237,"dxi-column",37),a(238,"dxi-column",38),S(239,ny,2,4,"span",39),s(),a(240,"dxi-column",40),S(241,oy,4,1,"div",41)(242,ay,2,2,"div",42),s(),a(243,"dxi-column",43),S(244,ry,4,1,"div",41)(245,sy,2,2,"div",42),s(),a(246,"dxi-column",44),S(247,ly,4,1,"div",41)(248,dy,2,1,"div",45),s()()()()()(),a(249,"div",15)(250,"div",12)(251,"div",16)(252,"h2",17),h(253,"Renewal Process Notification"),s(),a(254,"div",18)(255,"a",19),f("click",function(){return p(i),u(e.RenewalProcessNotification())}),A(),a(256,"svg",20),b(257,"path",21),s()()()(),G(),a(258,"div",22)(259,"div",23)(260,"div",24)(261,"div",25)(262,"span"),h(263,"Control Type:"),s(),a(264,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRenewalProcessNotificationControl,c)||(e.selectedRenewalProcessNotificationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRenewalProcessNotificationControl(c))}),s()()()(),a(265,"div",27)(266,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRenewalProcessNotificationInfoSaving(c))}),b(267,"dxo-paging",29),a(268,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(269,"dxi-column",31)(270,"dxi-column",32),a(271,"dxi-column",33),b(272,"dxi-validation-rule",34)(273,"dxi-validation-rule",35),S(274,py,4,3,"div",36),s(),b(275,"dxi-column",37),a(276,"dxi-column",38),S(277,uy,2,4,"span",39),s(),a(278,"dxi-column",40),S(279,my,4,1,"div",41)(280,gy,2,2,"div",42),s(),a(281,"dxi-column",43),S(282,hy,4,1,"div",41)(283,fy,2,2,"div",42),s(),a(284,"dxi-column",44),S(285,Cy,4,1,"div",41)(286,_y,2,1,"div",45),s()()()()()(),a(287,"div",15)(288,"div",12)(289,"div",16)(290,"h2",17),h(291,"Renewal Notification Template"),s(),a(292,"div",18)(293,"a",19),f("click",function(){return p(i),u(e.RenewalNotificationTemplate())}),A(),a(294,"svg",20),b(295,"path",21),s()()()(),G(),a(296,"div",22)(297,"div",23)(298,"div",24)(299,"div",25)(300,"span"),h(301,"Control Type:"),s(),a(302,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRenewalNotificationTemplateControl,c)||(e.selectedRenewalNotificationTemplateControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRenewalNotificationTemplateControl(c))}),s()()()(),a(303,"div",27)(304,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRenewalNotificationTemplateInfoSaving(c))}),b(305,"dxo-paging",29),a(306,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(307,"dxi-column",31)(308,"dxi-column",32),a(309,"dxi-column",33),b(310,"dxi-validation-rule",34)(311,"dxi-validation-rule",35),S(312,xy,4,3,"div",36),s(),b(313,"dxi-column",37),a(314,"dxi-column",38),S(315,vy,2,4,"span",39),s(),a(316,"dxi-column",40),S(317,by,4,1,"div",41)(318,wy,2,2,"div",42),s(),a(319,"dxi-column",43),S(320,Sy,4,1,"div",41)(321,Py,2,2,"div",42),s(),a(322,"dxi-column",44),S(323,My,4,1,"div",41)(324,Vy,2,1,"div",45),s()()()()()(),a(325,"div",15)(326,"div",12)(327,"div",16)(328,"h2",17),h(329,"Grace Period Configuration"),s(),a(330,"div",18)(331,"a",19),f("click",function(){return p(i),u(e.GracePeriodConfiguration())}),A(),a(332,"svg",20),b(333,"path",21),s()()()(),G(),a(334,"div",22)(335,"div",23)(336,"div",24)(337,"div",25)(338,"span"),h(339,"Control Type:"),s(),a(340,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedGracePeriodConfigurationControl,c)||(e.selectedGracePeriodConfigurationControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectGracePeriodConfigurationControl(c))}),s()()()(),a(341,"div",27)(342,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onGracePeriodConfigurationInfoSaving(c))}),b(343,"dxo-paging",29),a(344,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(345,"dxi-column",31)(346,"dxi-column",32),a(347,"dxi-column",33),b(348,"dxi-validation-rule",34)(349,"dxi-validation-rule",35),S(350,Ty,4,3,"div",36),s(),b(351,"dxi-column",37),a(352,"dxi-column",38),S(353,Dy,2,4,"span",39),s(),a(354,"dxi-column",40),S(355,Iy,4,1,"div",41)(356,Ay,2,2,"div",42),s(),a(357,"dxi-column",43),S(358,Ly,4,1,"div",41)(359,ky,2,2,"div",42),s(),a(360,"dxi-column",44),S(361,Ry,4,1,"div",41)(362,Oy,2,1,"div",45),s()()()()()(),a(363,"div",15)(364,"div",12)(365,"div",16)(366,"h2",17),h(367,"Grace Status"),s(),a(368,"div",18)(369,"a",19),f("click",function(){return p(i),u(e.MembershipGraceStatus())}),A(),a(370,"svg",20),b(371,"path",21),s()()()(),G(),a(372,"div",22)(373,"div",23)(374,"div",24)(375,"div",25)(376,"span"),h(377,"Control Type:"),s(),a(378,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedMembershipGraceStatusControl,c)||(e.selectedMembershipGraceStatusControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectMembershipGraceStatusControl(c))}),s()()()(),a(379,"div",27)(380,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onMembershipGraceStatusInfoSaving(c))}),b(381,"dxo-paging",29),a(382,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(383,"dxi-column",31)(384,"dxi-column",32),a(385,"dxi-column",33),b(386,"dxi-validation-rule",34)(387,"dxi-validation-rule",35),S(388,By,4,3,"div",36),s(),b(389,"dxi-column",37),a(390,"dxi-column",38),S(391,Fy,2,4,"span",39),s(),a(392,"dxi-column",40),S(393,Wy,4,1,"div",41)(394,Ny,2,2,"div",42),s(),a(395,"dxi-column",43),S(396,qy,4,1,"div",41)(397,Uy,2,2,"div",42),s(),a(398,"dxi-column",44),S(399,Hy,4,1,"div",41)(400,jy,2,1,"div",45),s()()()()()(),a(401,"div",15)(402,"div",12)(403,"div",16)(404,"h2",17),h(405,"Membership Cancellation Policy"),s(),a(406,"div",18)(407,"a",19),f("click",function(){return p(i),u(e.MembershipCancellationPolic())}),A(),a(408,"svg",20),b(409,"path",21),s()()()(),G(),a(410,"div",22)(411,"div",23)(412,"div",24)(413,"div",25)(414,"span"),h(415,"Control Type:"),s(),a(416,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedMembershipCancellationPolicyControl,c)||(e.selectedMembershipCancellationPolicyControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectMembershipCancellationPolicyControl(c))}),s()()()(),a(417,"div",27)(418,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onMembershipCancellationPolicyInfoSaving(c))}),b(419,"dxo-paging",29),a(420,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(421,"dxi-column",31)(422,"dxi-column",32),a(423,"dxi-column",33),b(424,"dxi-validation-rule",34)(425,"dxi-validation-rule",35),S(426,Zy,4,3,"div",36),s(),b(427,"dxi-column",37),a(428,"dxi-column",38),S(429,Qy,2,4,"span",39),s(),a(430,"dxi-column",40),S(431,Yy,4,1,"div",41)(432,Ky,2,2,"div",42),s(),a(433,"dxi-column",43),S(434,Jy,4,1,"div",41)(435,Xy,2,2,"div",42),s(),a(436,"dxi-column",44),S(437,$y,4,1,"div",41)(438,e2,2,1,"div",45),s()()()()()(),a(439,"div",15)(440,"div",12)(441,"div",16)(442,"h2",17),h(443,"Promotion "),s(),a(444,"div",18)(445,"a",19),f("click",function(){return p(i),u(e.PromotionsCollapseExpand())}),A(),a(446,"svg",20),b(447,"path",21),s()()()(),G(),a(448,"div",22)(449,"div",23)(450,"div",24)(451,"div",25)(452,"span"),h(453,"Control Type:"),s(),a(454,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPromotionsControl,c)||(e.selectedPromotionsControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPromotionsControl(c))}),s()()()(),a(455,"div",27)(456,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPromotionsInfoSaving(c))}),b(457,"dxo-paging",29),a(458,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(459,"dxi-column",31)(460,"dxi-column",32),a(461,"dxi-column",33),b(462,"dxi-validation-rule",34)(463,"dxi-validation-rule",35),S(464,i2,4,3,"div",36),s(),b(465,"dxi-column",37),a(466,"dxi-column",38),S(467,n2,2,4,"span",39),s(),a(468,"dxi-column",40),S(469,o2,4,1,"div",41)(470,a2,2,2,"div",42),s(),a(471,"dxi-column",43),S(472,r2,4,1,"div",41)(473,s2,2,2,"div",42),s(),a(474,"dxi-column",44),S(475,l2,4,1,"div",41)(476,d2,2,1,"div",45),s()()()()()(),a(477,"div",15)(478,"div",12)(479,"div",16)(480,"h2",17),h(481," Accounting "),s(),a(482,"div",18)(483,"a",19),f("click",function(){return p(i),u(e.AccountingsCollapseExpand())}),A(),a(484,"svg",20),b(485,"path",21),s()()()(),G(),a(486,"div",22)(487,"div",23)(488,"div",24)(489,"div",25)(490,"span"),h(491,"Control Type:"),s(),a(492,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedAccountingControl,c)||(e.selectedAccountingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAccountingControl(c))}),s()()()(),a(493,"div",27)(494,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAccountingInfoSaving(c))}),b(495,"dxo-paging",29),a(496,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(497,"dxi-column",31)(498,"dxi-column",32),a(499,"dxi-column",33),b(500,"dxi-validation-rule",34)(501,"dxi-validation-rule",35),S(502,p2,4,3,"div",36),s(),b(503,"dxi-column",37),a(504,"dxi-column",38),S(505,u2,2,4,"span",39),s(),a(506,"dxi-column",40),S(507,m2,4,1,"div",41)(508,g2,2,2,"div",42),s(),a(509,"dxi-column",43),S(510,h2,4,1,"div",41)(511,f2,2,2,"div",42),s(),a(512,"dxi-column",44),S(513,C2,4,1,"div",41)(514,_2,2,1,"div",45),s()()()()()(),a(515,"div",15)(516,"div",12)(517,"div",16)(518,"h2",17),h(519,"Accounting Setup - Product "),s(),a(520,"div",18)(521,"a",19),f("click",function(){return p(i),u(e.AccountingSetupProductsCollapseExpand())}),A(),a(522,"svg",20),b(523,"path",21),s()()()(),G(),a(524,"div",22)(525,"div",23)(526,"div",24)(527,"div",25)(528,"span"),h(529,"Control Type:"),s(),a(530,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedAccountingSetupProductControl,c)||(e.selectedAccountingSetupProductControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAccountingSetupProductControl(c))}),s()()()(),a(531,"div",27)(532,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAccountingSetupProductInfoSaving(c))}),b(533,"dxo-paging",29),a(534,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(535,"dxi-column",31)(536,"dxi-column",32),a(537,"dxi-column",33),b(538,"dxi-validation-rule",34)(539,"dxi-validation-rule",35),S(540,x2,4,3,"div",36),s(),b(541,"dxi-column",37),a(542,"dxi-column",38),S(543,v2,2,4,"span",39),s(),a(544,"dxi-column",40),S(545,b2,4,1,"div",41)(546,w2,2,2,"div",42),s(),a(547,"dxi-column",43),S(548,S2,4,1,"div",41)(549,P2,2,2,"div",42),s(),a(550,"dxi-column",44),S(551,M2,4,1,"div",41)(552,V2,2,1,"div",45),s()()()()()(),a(553,"div",15)(554,"div",12)(555,"div",16)(556,"h2",17),h(557," G/L Accounts"),s(),a(558,"div",18)(559,"a",19),f("click",function(){return p(i),u(e.MembershipAccountingsGLSetupCollapseExpand())}),A(),a(560,"svg",20),b(561,"path",21),s()()()(),G(),a(562,"div",22)(563,"div",23)(564,"div",24)(565,"div",25)(566,"span"),h(567,"Control Type:"),s(),a(568,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedMembershipAccountingGLSetupControl,c)||(e.selectedMembershipAccountingGLSetupControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectMembershipAccountingGLSetupControl(c))}),s()()()(),a(569,"div",27)(570,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onMembershipAccountingGLSetupInfoSaving(c))}),b(571,"dxo-paging",29),a(572,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(573,"dxi-column",31)(574,"dxi-column",32),a(575,"dxi-column",33),b(576,"dxi-validation-rule",34)(577,"dxi-validation-rule",35),S(578,T2,4,3,"div",36),s(),b(579,"dxi-column",37),a(580,"dxi-column",38),S(581,D2,2,4,"span",39),s(),a(582,"dxi-column",40),S(583,I2,4,1,"div",41)(584,A2,2,2,"div",42),s(),a(585,"dxi-column",43),S(586,L2,4,1,"div",41)(587,k2,2,2,"div",42),s(),a(588,"dxi-column",44),S(589,R2,4,1,"div",41)(590,O2,2,1,"div",45),s()()()()()(),a(591,"div",15)(592,"div",12)(593,"div",16)(594,"h2",17),h(595,"Refund Policy "),s(),a(596,"div",18)(597,"a",19),f("click",function(){return p(i),u(e.RefundPolicysCollapseExpand())}),A(),a(598,"svg",20),b(599,"path",21),s()()()(),G(),a(600,"div",22)(601,"div",23)(602,"div",24)(603,"div",25)(604,"span"),h(605,"Control Type:"),s(),a(606,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRefundPolicyControl,c)||(e.selectedRefundPolicyControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRefundPolicyControl(c))}),s()()()(),a(607,"div",27)(608,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRefundPolicyInfoSaving(c))}),b(609,"dxo-paging",29),a(610,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(611,"dxi-column",31)(612,"dxi-column",32),a(613,"dxi-column",33),b(614,"dxi-validation-rule",34)(615,"dxi-validation-rule",35),S(616,B2,4,3,"div",36),s(),b(617,"dxi-column",37),a(618,"dxi-column",38),S(619,F2,2,4,"span",39),s(),a(620,"dxi-column",40),S(621,W2,4,1,"div",41)(622,N2,2,2,"div",42),s(),a(623,"dxi-column",43),S(624,q2,4,1,"div",41)(625,U2,2,2,"div",42),s(),a(626,"dxi-column",44),S(627,H2,4,1,"div",41)(628,j2,2,1,"div",45),s()()()()()(),a(629,"div",15)(630,"div",12)(631,"div",16)(632,"h2",17),h(633,"Terms & Conditions "),s(),a(634,"div",18)(635,"a",19),f("click",function(){return p(i),u(e.TermsandConditionCollapseExpand())}),A(),a(636,"svg",20),b(637,"path",21),s()()()(),G(),a(638,"div",22)(639,"div",23)(640,"div",24)(641,"div",25)(642,"span"),h(643,"Control Type:"),s(),a(644,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedTermsandConditionsControl,c)||(e.selectedTermsandConditionsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectTermsandConditionsControl(c))}),s()()()(),a(645,"div",27)(646,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onTeamandConditionSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onTermsandConditionsInfoSaving(c))}),b(647,"dxo-paging",29),a(648,"dxo-editing",46),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(649,"dxi-column",31)(650,"dxi-column",32),a(651,"dxi-column",33),b(652,"dxi-validation-rule",34)(653,"dxi-validation-rule",35),S(654,Z2,4,3,"div",36),s(),b(655,"dxi-column",37),a(656,"dxi-column",38),S(657,Q2,2,4,"span",39),s(),a(658,"dxi-column",40),S(659,Y2,4,1,"div",41)(660,K2,2,2,"div",42),s(),a(661,"dxi-column",43),S(662,J2,4,1,"div",41)(663,X2,2,2,"div",42),s(),a(664,"dxi-column",44),S(665,$2,4,1,"div",41)(666,ex,2,1,"div",45),s()()()()()()()()()()(),a(667,"div",47)(668,"div",48)(669,"div",49)(670,"h2"),h(671,"Manage Values for "),a(672,"span"),h(673),s()()(),a(674,"div",50)(675,"div",51)(676,"dx-scroll-view",14),S(677,tx,10,1,"div",52),s()(),a(678,"div",53)(679,"a",54),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(680,"svg",55),b(681,"circle",56)(682,"path",57),s(),h(683," Add Value "),s()()(),G(),a(684,"div",58)(685,"a",59),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(686," Close "),s()()()(),a(687,"dx-popup",60),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(688,"div",61),S(689,ix,4,1,"h2",62)(690,nx,4,1,"h2",62),s(),a(691,"div",63)(692,"form",64)(693,"dx-vali
87dation-group",null,0)(695,"dx-form",65)(696,"dxi-item")(697,"div",66)(698,"div",67)(699,"dx-text-box",68),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(700,"dx-validator"),b(701,"dxi-validation-rule",69)(702,"dxi-validation-rule",70),s()()()()()()()()(),a(703,"div",71)(704,"dx-button",72),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(705,ox,1,0,"dx-button",73)(706,ax,1,0,"dx-button",74)(707,rx,1,0,"dx-button",75),s()(),a(708,"dx-popup",60),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(709,"div",61)(710,"h2"),h(711,"Confirmation"),s()(),a(712,"div",63)(713,"p"),h(714,"Are you sure you want to delete "),a(715,"strong"),h(716,"Name"),s(),h(717," ?"),s()(),a(718,"div",71)(719,"dx-button",76),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(720,"dx-button",77),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(690,r_))("grouped",!0),o(5),l("ngClass",e.memberInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.membershipInformationControlType),x("value",e.selectedMembershipInformationControl),l("inputAttr",I(691,Yi)),o(2),l("dataSource",e.membershipInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncMembershipInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.EligibilityInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eligibilityControlType),x("value",e.selectedEligibilityControl),l("inputAttr",I(692,Yi)),o(2),l("dataSource",e.eligibilityControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctEligibilityValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.BenefitsInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.benefitsControlType),x("value",e.selectedBenefitsControl),l("inputAttr",I(693,Yi)),o(2),l("dataSource",e.benefitsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncBenefitsInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.PricingInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.pricingControlType),x("value",e.selectedPricingControl),l("inputAttr",I(694,Yi)),o(2),l("dataSource",e.pricingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncPricingInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.MembershipLifeCycleCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.membershipLifeCycleControlType),x("value",e.selectedMembershipLifeCycleControl),l("inputAttr",I(695,Yi)),o(2),l("dataSource",e.membershipLifeCycleControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncMembershipLifeCycleValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.RenewalProcessCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.renew
87alProcessControlType),x("value",e.selectedRenewalProcessControl),l("inputAttr",I(696,Yi)),o(2),l("dataSource",e.renewalProcessControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRenewalProcessValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.RenewalProcessNotificationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.renewalProcessNotificationControlType),x("value",e.selectedRenewalProcessNotificationControl),l("inputAttr",I(697,Yi)),o(2),l("dataSource",e.renewalProcessNotificationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRenewalProcessNotificationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.RenewalNotificationTemplateCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.renewalNotificationTemplateControlType),x("value",e.selectedRenewalNotificationTemplateControl),l("inputAttr",I(698,Yi)),o(2),l("dataSource",e.renewalNotificationTemplateControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRenewalNotificationTemplateValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.GracePeriodConfigurationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.gracePeriodConfigurationControlType),x("value",e.selectedGracePeriodConfigurationControl),l("inputAttr",I(699,Yi)),o(2),l("dataSource",e.gracePeriodConfigurationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncGracePeriodConfigurationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.MembershipGraceStatusCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.membershipGraceStatusControlType),x("value",e.selectedMembershipGraceStatusControl),l("inputAttr",I(700,Yi)),o(2),l("dataSource",e.membershipGraceStatusControl
87s)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncMembershipGraceStatusValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.MembershipCancellationPolicCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.membershipCancellationPolicyControlType),x("value",e.selectedMembershipCancellationPolicyControl),l("inputAttr",I(701,Yi)),o(2),l("dataSource",e.membershipCancellationPolicyControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncMembershipCancellationPolicyValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.PromotionCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.promotionsControlType),x("value",e.selectedPromotionsControl),l("inputAttr",I(702,Yi)),o(2),l("dataSource",e.promotionsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncPromotionsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.AccountingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingControlType),x("value",e.selectedAccountingControl),l("inputAttr",I(703,Yi)),o(2),l("dataSource",e.accountingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.AccountingSetupProductCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingSetupProductControlType),x("value",e.selectedAccountingSetupProductControl),l("inputAttr",I(704,Yi)),o(2),l("dataSource",e.accountingSetupProductControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingSetupProductValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.MembershipAccountingGLSetupCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.membershipAccountingGLSetupControlType),x("value",e.selectedMembershipAccountingGLSetupControl),l("inputAttr",I(705,Yi)),o(2),l("dataSource",e.allMembershipAccountingGLSetupControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncMembershipAccountingGLSetupValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.RefundPolicyCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.refundPolicyControlType),x("value",e.selectedRefundPolicyControl),l("inputAttr",I(706,Yi)),o(2),l("dataSource",e.refundPolicyControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRefundPolicyValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.TermsandConditionsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.termsandConditionsControlType),x("value",e.selectedTermsandConditionsControl),l("inputAttr",I(707,Yi)),o(2),l("dataSource",e.termsandConditionsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncTermsandConditionsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(708,s_)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(709,l_)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(710,d_)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var sx=["addValueGroup"],lx=()=>({"aria-label":"Entity"}),en=()=>({"aria-label":"Assign To"}),dx=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),cx=()=>({"aria-label":"ControlName"}),px=()=>({id:"elementId",class:"popup-outer delete-popup"});function ux(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s()()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," ")}}function mx(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function gx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventBasicInformationRequired,e)||(i.isAllEventBasicInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventBasicInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventBasicInformationRequired)}}function hx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventBasicInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function fx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventBasicInformationVisible,e)||(i.isAllEventBasicInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventBasicInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventBasicInformationVisible)}}function Cx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventBasicInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function _x(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventBasicInformationEditable,e)||(i.isAllEventBasicInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventBasicInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventBasicInformationEditable)}}function yx(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventBasicInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function xx(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s()()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," ")}}function vx(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function bx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",8
871),_("valueChange",function(e){p(t);let i=m();return C(i.isAllVenueInformationRequired,e)||(i.isAllVenueInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllVenueInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllVenueInformationRequired)}}function wx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onVenueInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Sx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllVenueInformationVisible,e)||(i.isAllVenueInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllVenueInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllVenueInformationVisible)}}function Px(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onVenueInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Mx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllVenueInformationEditable,e)||(i.isAllVenueInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllVenueInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllVenueInformationEditable)}}function Vx(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onVenueInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Ex(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function Tx(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,Ex,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Dx(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function Ix(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSessionManagementRequired,e)||(i.isAllSessionManagementRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSessionManagementRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSessionManagementRequired)}}function Ax(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSessionManagementRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Lx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSessionManagementVisible,e)||(i.isAllSessionManagementVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSessionManagementVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSessionManagementVisible)}}function kx(r,g){if(r&1){let t=y();
87a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSessionManagementVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Rx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSessionManagementEditable,e)||(i.isAllSessionManagementEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSessionManagementEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSessionManagementEditable)}}function Ox(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSessionManagementEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Gx(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function Bx(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,Gx,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Fx(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function Wx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationInformationRequired,e)||(i.isAllRegistrationInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationInformationRequired)}}function Nx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function qx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationInformationVisible,e)||(i.isAllRegistrationInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationInformationVisible)}}function Ux(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Hx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationInformationEditable,e)||(i.isAllRegistrationInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationInformationEditable)}}function jx(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function zx(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function Zx(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,zx,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Qx(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function Yx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",8
871),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationFormsRequired,e)||(i.isAllRegistrationFormsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationFormsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationFormsRequired)}}function Kx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationFormsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Jx(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationFormsVisible,e)||(i.isAllRegistrationFormsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationFormsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationFormsVisible)}}function Xx(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationFormsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function $x(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRegistrationFormsEditable,e)||(i.isAllRegistrationFormsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRegistrationFormsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRegistrationFormsEditable)}}function e3(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRegistrationFormsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function t3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function i3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,t3,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function n3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function o3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationCustomFieldsRequired,e)||(i.isAllEventRegistrationCustomFieldsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationCustomFieldsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationCustomFieldsRequired)}}function a3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationCustomFieldsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function r3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationCustomFieldsVisible,e)||(i.isAllEventRegistrationCustomFieldsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationCustomFieldsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationCustomFieldsVisible)}}function s3(r,g){if(r&1){let t=y();
87a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationCustomFieldsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function l3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationCustomFieldsEditable,e)||(i.isAllEventRegistrationCustomFieldsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationCustomFieldsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationCustomFieldsEditable)}}function d3(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationCustomFieldsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function c3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function p3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,c3,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function u3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function m3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventGeneralSettingsRequired,e)||(i.isAllEventGeneralSettingsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventGeneralSettingsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventGeneralSettingsRequired)}}function g3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventGeneralSettingsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function h3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventGeneralSettingsVisible,e)||(i.isAllEventGeneralSettingsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventGeneralSettingsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventGeneralSettingsVisible)}}function f3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventGeneralSettingsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function C3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventGeneralSettingsEditable,e)||(i.isAllEventGeneralSettingsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventGeneralSettingsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventGeneralSettingsEditable)}}function _3(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventGeneralSettingsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function y3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function x3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,y3,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function v3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function b3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",8
871),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationSettingsRequired,e)||(i.isAllEventRegistrationSettingsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationSettingsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationSettingsRequired)}}function w3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationSettingsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function S3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationSettingsVisible,e)||(i.isAllEventRegistrationSettingsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationSettingsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationSettingsVisible)}}function P3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationSettingsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function M3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventRegistrationSettingsEditable,e)||(i.isAllEventRegistrationSettingsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventRegistrationSettingsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventRegistrationSettingsEditable)}}function V3(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventRegistrationSettingsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function E3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function T3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,E3,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function D3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function I3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventCancellationSettingsRequired,e)||(i.isAllEventCancellationSettingsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventCancellationSettingsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventCancellationSettingsRequired)}}function A3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventCancellationSettingsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function L3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventCancellationSettingsVisible,e)||(i.isAllEventCancellationSettingsVisible=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventCancellationSettingsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventCancellationSettingsVisible)}}function k3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventCancellationSettingsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function R3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventCancellationSettingsEditable,e)||(i.isAllEventCancellationSettingsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventCancellationSettingsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventCancellationSettingsEditable)}}function O3(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventCancellationSettingsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function G3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function B3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,G3,4,0,"a",84),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function F3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function W3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventWaitListSettingsRequired,e)||(i.isAllEventWaitListSettingsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventWaitListSettingsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventWaitListSettingsRequired)}}function N3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventWaitListSettingsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function q3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventWaitListSettingsVisible,e)||(i.isAllEventWaitListSettingsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventWaitListSettingsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventWaitListSettingsVisible)}}function U3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventWaitListSettingsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function H3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventWaitListSettingsEditable,e)||(i.isAllEventWaitListSettingsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventWaitListSettingsEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventWaitListSettingsEditable)}}function j3(r,g){if(r&1){let t=y();
87a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventWaitListSettingsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function z3(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function Z3(r,g){if(r&1&&(xi(0),S(1,z3,4,0,"a",84),vi()),r&2){let t=m().$implicit;o(),l("ngIf",t.data.isLookupReference)}}function Q3(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,Z3,2,1,"ng-container",61),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Y3(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function K3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPriceInformationRequired,e)||(i.isAllPriceInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPriceInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPriceInformationRequired)}}function J3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPriceInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function X3(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPriceInformationVisible,e)||(i.isAllPriceInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPriceInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPriceInformationVisible)}}function $3(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPriceInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function ev(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPriceInformationEditable,e)||(i.isAllPriceInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPriceInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPriceInformationEditable)}}function tv(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPriceInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function iv(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function nv(r,g){if(r&1&&(xi(0),S(1,iv,4,0,"a",84),vi()),r&2){let t=m().$implicit;o(),l("ngIf",t.data.isLookupReference)}}function ov(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,nv,2,1,"ng-container",61),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function av(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function rv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",8
871),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingInformationRequired,e)||(i.isAllAccountingInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingInformationRequired)}}function sv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function lv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingInformationVisible,e)||(i.isAllAccountingInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingInformationVisible)}}function dv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function cv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingInformationEditable,e)||(i.isAllAccountingInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingInformationEditable)}}function pv(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function uv(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function mv(r,g){if(r&1&&(xi(0),S(1,uv,4,0,"a",84),vi()),r&2){let t=m().$implicit;o(),l("ngIf",t.data.isLookupReference)}}function gv(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,mv,2,1,"ng-container",61),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function hv(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function fv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductRequired,e)||(i.isAllAccountingSetupProductRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductRequired)}}function Cv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function _v(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductVisible,e)||(i.isAllAccountingSetupProductVisible=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductVisible)}}function yv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function xv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductEditable,e)||(i.isAllAccountingSetupProductEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductEditable)}}function vv(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function bv(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function wv(r,g){if(r&1&&(xi(0),S(1,bv,4,0,"a",84),vi()),r&2){let t=m().$implicit;o(),l("ngIf",t.data.isLookupReference)}}function Sv(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,wv,2,1,"ng-container",61),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Pv(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function Mv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventAccountingEntitySetupRequired,e)||(i.isAllEventAccountingEntitySetupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventAccountingEntitySetupRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventAccountingEntitySetupRequired)}}function Vv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventAccountingEntitySetupRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Ev(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventAccountingEntitySetupVisible,e)||(i.isAllEventAccountingEntitySetupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventAccountingEntitySetupVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventAccountingEntitySetupVisible)}}function Tv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventAccountingEntitySetupVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Dv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllEventAccountingEntitySetupEditable,e)||(i.isAllEventAccountingEntitySetupEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllEventAccountingEntitySetupEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllEventAccountingEntitySetupEditable)}}function Iv(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onEventAccountingEntitySetupEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function Av(r,g){if(r&1){let t=y();a(0,"a",85),f("click",function(){p(t);let e=m(2).$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",86),b(2,"path",87),s(),h(3," Manage "),s()}}function Lv(r,g){if(r&1&&(xi(0),S(1,Av,4,0,"a",84),vi()),r&2){let t=m().$implicit;o(),l("ngIf",t.data.isLookupReference)}}function kv(r,g){if(r&1&&(a(0,"div",77)(1,"span",78),h(2),s(),S(3,Lv,2,1,"ng-container",61),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Rv(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function Ov(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Required"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSponsorsInformationRequired,e)||(i.isAllSponsorsInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSponsorsInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSponsorsInformationRequired)}}function Gv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSponsorsInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Bv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Visible"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSponsorsInformationVisible,e)||(i.isAllSponsorsInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSponsorsInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSponsorsInformationVisible)}}function Fv(r,g){if(r&1){let t=y();a(0,"div",82)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSponsorsInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Wv(r,g){if(r&1){let t=y();a(0,"div",79)(1,"span",80),h(2,"Editable"),s(),a(3,"dx-switch",81),_("valueChange",function(e){p(t);let i=m();return C(i.isAllSponsorsInformationEditable,e)||(i.isAllSponsorsInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllSponsorsInformationEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllSponsorsInformationEditable)}}function Nv(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",81),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onSponsorsInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function qv(r,g){if(r&1){let t=y();a(0,"div",88)(1,"span",89),h(2),s(),a(3,"div",90)(4,"a",91),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",92),b(6,"path",93),s()(),G(),a(7,"a",94),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",92),b(9,"path",95),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function Uv(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function Hv(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function jv(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function zv(r,g){if(r&1){let t=y();a(0,"dx-button",97),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function Zv(r,g){if(r&1){let t=y();a(0,"dx-button",98),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Ls=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.propertyService=n,this.utilityService=e,this.webStorageService=i,this.authenticationService=d,this.permissionService=c,this.propertyManagementCommonService=v,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.eventBasicInformationCollapseExpand=!1,this.selectedItemKeys=[],this.isArchive=!1,this.isArchive1=!1,this.isArchive2=!1,this.isArchive3=!1,this.DemographicsCollapseExpand=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.affiliationControlType=[],this.demoControlType=[],this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.isEditMode=!1,this.isEditLookupValue=!1,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.LabelValidator=[{type:"required",message:"Label name is required"}],this.ControlNameValidator=[{type:"required",message:"Control name is required"}],this.ControlTypeValidator=[{type:"required",message:"Control type is required"}],this.selectedControlId=0,this.changes=[],this.eventBasicInformationControls=[],this.eventBasicInformationControlsTypes=[],this.allEventBasicInformationControls=[],this.eventBasicInformationStatusCode="",this.selectedEventBasicInformationControl
87="All",this.eventBasicInformationControlType=[],this.isAllEventBasicInformationRequired=!1,this.isAllEventBasicInformationVisible=!1,this.isAllEventBasicInformationEditable=!1,this.sessionManagementControls=[],this.sessionManagementControlsTypes=[],this.allSessionManagementControls=[],this.sessionManagementCode="",this.selectedSessionManagementControl="All",this.sessionManagementControlType=[],this.isAllSessionManagementRequired=!1,this.isAllSessionManagementVisible=!1,this.isAllSessionManagementEditable=!1,this.sessionCollapseExpand=!1,this.registrationInformationControls=[],this.registrationInformationControlsTypes=[],this.allRegistrationInformationControls=[],this.registrationInformationCode="",this.selectedRegistrationInformationControl="All",this.registrationInformationControlType=[],this.isAllRegistrationInformationRequired=!1,this.isAllRegistrationInformationVisible=!1,this.isAllRegistrationInformationEditable=!1,this.registrationInformationCollapseExpand=!1,this.registrationFormsControls=[],this.registrationFormsControlsTypes=[],this.allRegistrationFormsControls=[],this.registrationFormsCode="",this.selectedRegistrationFormsControl="All",this.registrationFormsControlType=[],this.isAllRegistrationFormsRequired=!1,this.isAllRegistrationFormsVisible=!1,this.isAllRegistrationFormsEditable=!1,this.eventRegistrationSettingsControls=[],this.eventRegistrationSettingsControlsTypes=[],this.allEventRegistrationSettingsControls=[],this.eventRegistrationSettingsFormsCode="",this.selectedEventRegistrationSettingsControl="All",this.eventRegistrationSettingsControlType=[],this.isAllEventRegistrationSettingsRequired=!1,this.isAllEventRegistrationSettingsVisible=!1,this.isAllEventRegistrationSettingsEditable=!1,this.eventGeneralSettingsControls=[],this.eventGeneralSettingsControlsTypes=[],this.allEventGeneralSettingsControls=[],this.eventGeneralSettingsCode="",this.selectedEventGeneralSettingsControl="All",this.eventGeneralSettingsControlType=[],this.isAllEventGeneralSettingsRequired=!1,this.isAllEventGeneralSettingsVisible=!1,this.isAllEventGeneralSettingsEditable=!1,this.eventCancellationSettingsControls=[],this.eventCancellationSettingsControlsTypes=[],this.allEventCancellationSettingsControls=[],this.eventCancellationSettingsCode="",this.selectedEventCancellationSettingsControl="All",this.eventCancellationSettingsControlType=[],this.isAllEventCancellationSettingsRequired=!1,this.isAllEventCancellationSettingsVisible=!1,this.isAllEventCancellationSettingsEditable=!1,this.eventWaitListSettingsControls=[],this.eventWaitListSettingsControlsTypes=[],this.allEventWaitListSettingsControls=[],this.eventWaitListSettingsCode="",this.selectedEventWaitListSettingsControl="All",this.eventWaitListSettingsControlType=[],this.isAllEventWaitListSettingsRequired=!1,this.isAllEventWaitListSettingsVisible=!1,this.isAllEventWaitListSettingsEditable=!1,this.registrationFormsCollapseExpand=!1,this.eventRegistrationSettingsCollapseExpand=!1,this.eventGeneralSettingsCollapseExpand=!1,this.eventCancellationSettingsCollapseExpand=!1,this.eventWaitListSettingsCollapseExpand=!1,this.priceInformationCollapseExpand=!1,this.accountingInformationCollapseExpand=!1,this.sponsorsInformationCollapseExpand=!1,this.venueInformationCollapseExpand=!1,this.accountingSetupProductCollapseExpand=!1,this.eventRegistrationCustomFieldsCollapseExpand=!1,this.eventSessionRegistrantAudienceMappingCollapseExpand=!1,this.eventAccountingEntitySetupCollapseExpand=!1,this.priceInformationControls=[],this.priceInformationControlsTypes=[],this.allPriceInformationControls=[],this.priceInformationStatusCode="",this.selectedPriceInformationControl="All",this.priceInformationControlType=[],this.isAllPriceInformationVisible=!1,this.isAllPriceInformationRequired=!1,this.isAllPriceInformationEditable=!1,this.accountingInformationControls=[],this.accountingInformationControlsTypes=[],this.allAccountingInformationControls=[],this.accountingInformationStatusCode="",this.selectedAccountingInformationControl="All",this.accountingInformationControlType=[],this.isAllAccountingInformationVisible=!1,this.isAllAccountingInformationRequired=!1,this.isAllAccountingInformationEditable=!1,this.sponsorsInformationControls=[],this.sponsorsInformationControlsTypes=[],this.allSponsorsInformationControls=[],this.sponsorsInformationStatusCode="",this.selectedSponsorsInformationControl
87="All",this.sponsorsInformationControlType=[],this.isAllSponsorsInformationRequired=!1,this.isAllSponsorsInformationVisible=!1,this.isAllSponsorsInformationEditable=!1,this.venueInformationControls=[],this.venueInformationControlsTypes=[],this.allVenueInformationControls=[],this.venueInformationStatusCode="",this.selectedVenueInformationControl="All",this.venueInformationControlType=[],this.isAllVenueInformationRequired=!1,this.isAllVenueInformationVisible=!1,this.isAllVenueInformationEditable=!1,this.accountingSetupProductControls=[],this.accountingSetupProductControlsTypes=[],this.allAccountingSetupProductControls=[],this.accountingSetupProductStatusCode="",this.selectedAccountingSetupProductControl="All",this.accountingSetupProductControlType=[],this.isAllAccountingSetupProductRequired=!1,this.isAllAccountingSetupProductVisible=!1,this.isAllAccountingSetupProductEditable=!1,this.eventRegistrationCustomFieldsControlsTypes=[],this.allEventRegistrationCustomFieldsControls=[],this.eventRegistrationCustomFieldsStatusCode="",this.selectedEventRegistrationCustomFieldsControl="All",this.eventRegistrationCustomFieldsControlType=[],this.isAllEventRegistrationCustomFieldsRequired=!1,this.isAllEventRegistrationCustomFieldsVisible=!1,this.isAllEventRegistrationCustomFieldsEditable=!1,this.eventRegistrationCustomFieldsControls=[],this.eventSessionRegistrantAudienceMappingControls=[],this.eventSessionRegistrantAudienceMappingControlsTypes=[],this.allEventSessionRegistrantAudienceMappingControls=[],this.eventSessionRegistrantAudienceMappingStatusCode="",this.selectedEventSessionRegistrantAudienceMappingControl="All",this.eventSessionRegistrantAudienceMappingControlType=[],this.isAllEventSessionRegistrantAudienceMappingRequired=!1,this.isAllEventSessionRegistrantAudienceMappingVisible=!1,this.isAllEventSessionRegistrantAudienceMappingEditable=!1,this.eventAccountingEntitySetupControls=[],this.eventAccountingEntitySetupControlsTypes=[],this.allEventAccountingEntitySetupControls=[],this.eventAccountingEntitySetupStatusCode="",this.selectedEventAccountingEntitySetupControl="All",this.eventAccountingEntitySetupControlType=[],this.isAllEventAccountingEntitySetupRequired=!1,this.isAllEventAccountingEntitySetupVisible=!1,this.isAllEventAccountingEntitySetupEditable=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([V])=>({entitiesModel:V}))).subscribe(V=>{this.loading=!1,Object.keys(V).forEach(T=>this[T]=V[T].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(D=>D.entityType))].forEach(D=>{let W=new ui;W.category=D=="Entity"?"":D,W.entities=this.entitiesModel.filter(Vt=>Vt.entityType==D),this.groupedEntites.push(W)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(T){return T.key=T.category,T.items=T.entities,T}});let E=this.entitiesModel.find(T=>T.name==z.Events);E&&(this.entityID=E.entityID),this.fromPregroupedData.load()})},this.asyncEventBasicInformationValidation=V=>B(this,null,function*(){return!(this.eventBasicInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncSessionManagementValidation=V=>B(this,null,function*(){return!(this.sessionManagementControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncRegistrationInformationValidation=V=>B(this,null,function*(){return!(this.registrationInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncRegistrationFormsValidation=V=>B(this,null,function*(){return!(this.registrationFormsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventRegistrationSettingsValidation=V=>B(this,null,function*(){return!(this.eventRegistrationSettingsControl
87sTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventGeneralSettingsValidation=V=>B(this,null,function*(){return!(this.eventGeneralSettingsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventCancellationSettingsValidation=V=>B(this,null,function*(){return!(this.eventCancellationSettingsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventWaitListSettingsValidation=V=>B(this,null,function*(){return!(this.eventWaitListSettingsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncPriceInformationValidation=V=>B(this,null,function*(){return!(this.priceInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncAccountingInformationValidation=V=>B(this,null,function*(){return!(this.accountingInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncSponsorsInformationValidation=V=>B(this,null,function*(){return!(this.sponsorsInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncVenueInformationValidation=V=>B(this,null,function*(){return!(this.venueInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncAccountingSetupProductValidation=V=>B(this,null,function*(){return!(this.accountingSetupProductControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventRegistrationCustomFieldsValidation=V=>B(this,null,function*(){return!(this.eventRegistrationCustomFieldsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventSessionRegistrantAudienceMappingValidation=V=>B(this,null,function*(){return!(this.eventSessionRegistrantAudienceMappingControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncEventAccountingEntitySetupValidation=V=>B(this,null,function*(){return!(this.eventAccountingEntitySetupControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.customCallback=this.customCallback.bind(this),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.ControlType=["Datepicker","Numberbox","Selectbox","TextBox"],this.ControlDataType=["Money","Age","Date","Text","Number"],this.loadData(),this.loadEntitiesData()}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}loadData(){this.GetEventBasicInformationProperty(),this.GetSessionManagementProperty(),this.GetRegistrationInformationProperty(),this.GetRegistrationFormsProperty(),this.GetEventRegistrationSettingsProperty(),this.GetEventGeneralSettingsProperty(),this.GetEventCancellationSettingsProperty(),this.GetEventWaitListSettingsProperty(),this.GetPriceInformationProperty(),this.GetAccountingInformationProperty(),this.GetSponsorsInformationProperty(),this.GetVenueInformationProperty(),this.GetAccountingSetupProductProperty(),this.GetEventRegistrationCustomFieldsProperty(),this.GetEventSessionRegistrantAudienceMappingProperty(),this.GetEventAccountingEntitySetupProperty()}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entity
87ID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}eventBasiclInformation(){this.eventBasicInformationCollapseExpand=!this.eventBasicInformationCollapseExpand}sessionInformation(){this.sessionCollapseExpand=!this.sessionCollapseExpand}registrationFormsInformation(){this.registrationFormsCollapseExpand=!this.registrationFormsCollapseExpand}registrationInformation(){this.registrationInformationCollapseExpand=!this.registrationInformationCollapseExpand}eventRegistrationSettingsInformation(){this.eventRegistrationSettingsCollapseExpand=!this.eventRegistrationSettingsCollapseExpand}eventGeneralSettingsInformation(){this.eventGeneralSettingsCollapseExpand=!this.eventGeneralSettingsCollapseExpand}eventCancellationSettingsInformation(){this.eventCancellationSettingsCollapseExpand=!this.eventCancellationSettingsCollapseExpand}eventWaitListSettingsInformation(){this.eventWaitListSettingsCollapseExpand=!this.eventWaitListSettingsCollapseExpand}priceInformation(){this.priceInformationCollapseExpand=!this.priceInformationCollapseExpand}accountingInformation(){this.accountingInformationCollapseExpand=!this.accountingInformationCollapseExpand}sponsorsInformation(){this.sponsorsInformationCollapseExpand=!this.sponsorsInformationCollapseExpand}venueInformation(){this.venueInformationCollapseExpand=!this.venueInformationCollapseExpand}accountingSetupProduct(){this.accountingSetupProductCollapseExpand=!this.accountingSetupProductCollapseExpand}eventRegistrationCustomFields(){this.eventRegistrationCustomFieldsCollapseExpand=!this.eventRegistrationCustomFieldsCollapseExpand}eventSessionRegistrantAudienceMapping(){this.eventSessionRegistrantAudienceMappingCollapseExpand=!this.eventSessionRegistrantAudienceMappingCollapseExpand}eventAccountingEntitySetup(){this.eventAccountingEntitySetupCollapseExpand=!this.eventAccountingEntitySetupCollapseExpand}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}GetEventBasicInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventBasicInformation.toString(),L.EventBasicInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventBasicInformationControls=t.responseModel,this.filterEventBasicInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventBasicInformationProperty(){this.eventBasicInformationControls=this.allEventBasicInformationControls,this.eventBasicInformationControlsTypes=this.eventBasicInformationControls,this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!="All"&&(this.eventBasicInformationControls=this.eventBasicInformationControls.filter(i=>i.formControlType==this.selectedEventBasicInformationControl)),this.allEventBasicInformationControls.forEach(i=>{this.eventBasicInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventBasicInformationControlType.push(i.formControlType)}),this.eventBasicInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventBasicInformationControlType.splice(0,0,"All"),this.isAllEventBasicInformationRequired=!1,this.eventBasicInformationControls.every(i=>i.isRequired==!0)&&(this.isAllEventBasicInformationRequired=!0),this.isAllEventBasicInformationEditable=!1,this.eventBasicInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventBasicInformationEditable=!0),this.isAllEventBasicInformationVisible=!1,this.eventBasicInformationControls.every(i=>i.isVisible==!0)&&(this.isAllEventBasicInformationVisible=!0)}onSelectEventBasicInformationControl({value:t}){this.eventBasicInformationControlsTypes=t,this.filterEventBasicInformationProperty()}onEventBasicInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventBasicInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventBasicInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventBasicInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventBasicInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventBasicInformation.toString()))}}onAllEventBasicInformationEditableChanged(t){if(this.isAllEventBasicInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!="All"&&(n=this.selectedEventBasicInformationControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.EventBasicInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventBasicInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventBasicInformationRequired=t.value;let n="";this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!="All"&&(n=this.selectedEventBasicInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.EventBasicInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventBasicInformationVisibleChanged(t){if(this.isAllEventBasicInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!=null&&this.selectedEventBasicInformationControl!="All"&&(n=this.selectedEventBasicInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.EventBasicInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventBasicInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventBasicInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventBasicInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventBasicInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetSessionManagementProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.SessionManagement.toString(),L.SessionManagement.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allSessionManagementControls=t.responseModel,this.filterSessionManagementProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterSessionManagementProperty(){this.sessionManagementControls=this.allSessionManagementControls,this.sessionManagementControlsTypes=this.sessionManagementControls,this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!="All"&&(this.sessionManagementControls=this.sessionManagementControls.filter(i=>i.formControlType==this.selectedSessionManagementControl)),this.allSessionManagementControls.forEac
87h(i=>{this.sessionManagementControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.sessionManagementControlType.push(i.formControlType)}),this.sessionManagementControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.sessionManagementControlType.splice(0,0,"All"),this.isAllSessionManagementRequired=!1,this.sessionManagementControls.every(i=>i.isRequired==!0)&&(this.isAllSessionManagementRequired=!0),this.isAllSessionManagementEditable=!1,this.sessionManagementControls.every(i=>i.isReadOnly==!0)&&(this.isAllSessionManagementEditable=!0),this.isAllSessionManagementVisible=!1,this.sessionManagementControls.every(i=>i.isVisible==!0)&&(this.isAllSessionManagementVisible=!0)}onSelectSessionManagementControl({value:t}){this.sessionManagementControlsTypes=t,this.filterSessionManagementProperty()}onSessionManagementSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.SessionManagement.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.SessionManagement.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.sessionManagementControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetSessionManagementProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.SessionManagement.toString()))}}onAllSessionManagementEditableChanged(t){if(this.isAllSessionManagementEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!="All"&&(n=this.selectedSessionManagementControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.SessionManagement.toString(),L.SessionManagement.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllSessionManagementRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllSessionManagementRequired=t.value;let n="";this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!="All"&&(n=this.selectedSessionManagementControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.SessionManagement.toString(),L.SessionManagement.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllSessionManagementVisibleChanged(t){if(this.isAllSessionManagementVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!=null&&this.selectedSessionManagementControl!="All"&&(n=this.selectedSessionManagementControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.SessionManagement.toString(),L.SessionManagement.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSessionManagementRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSessionManagementVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSessionManagementEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSessionManagementProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRegistrationInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.RegistrationInformation.toString(),L.RegistrationInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRegistrationInformationControls=t.responseModel,this.filterRegistrationInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRegistrationInformationProperty(){this.registrationInformationControls=this.allRegistrationInformationControls,this.registrationInformationControlsTypes=this.registrationInformationControls,this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!="All"&&(this.registrationInformationControls=this.registrationInformationControls.filter(i=>i.formControlType==this.selectedRegistrationInformationControl)),this.allRegistrationInformationControls.forEach(i=>{this.registrationInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.registrationInformationControlType.push(i.formControlType)}),this.registrationInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.registrationInformationControlType.splice(0,0,"All"),this.isAllRegistrationInformationRequired=!1,this.registrationInformationControls.every(i=>i.isRequired==!0)&&(this.isAllRegistrationInformationRequired=!0),this.isAllRegistrationInformationEditable=!1,this.registrationInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllRegistrationInformationEditable=!0),this.isAllRegistrationInformationVisible=!1,this.registrationInformationControls.every(i=>i.isVisible==!0)&&(this.isAllRegistrationInformationVisible=!0)}onSelectRegistrationInformationControl({value:t}){this.registrationInformationControlsTypes=t,this.filterRegistrationInformationProperty()}onRegistrationInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RegistrationInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RegistrationInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.registrationInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRegistrationInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RegistrationInformation.toString()))}}onAllRegistrationInformationEditableChanged(t){if(this.isAllRegistrationInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!="All"&&(n=this.selectedRegistrationInformationControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.RegistrationInformation.toString(),L.RegistrationInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRegistrationInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRegistrationInformationRequired=t.value;let n="";this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!="All"&&(n=this.selectedRegistrationInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.RegistrationInformation.toString(),L.RegistrationInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRegistrationInformationVisibleChanged(t){if(this.isAllRegistrationInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!=null&&this.selectedRegistrationInformationControl!="All"&&(n=this.selectedRegistrationInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.RegistrationInformation.toString(),L.RegistrationInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetRegistrationFormsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.RegistrationForms.toString(),L.RegistrationForms.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRegistrationFormsControls=t.responseModel,this.filterRegistrationFormsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRegistrationFormsProperty(){this.registrationFormsControls=this.allRegistrationFormsControls,this.registrationFormsControlsTypes=this.registrationFormsControls,this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!="All"&&(this.registrationFormsControl
87s=this.registrationFormsControls.filter(i=>i.formControlType==this.selectedRegistrationFormsControl)),this.allRegistrationFormsControls.forEach(i=>{this.registrationFormsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.registrationFormsControlType.push(i.formControlType)}),this.registrationFormsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.registrationFormsControlType.splice(0,0,"All"),this.isAllRegistrationFormsRequired=!1,this.registrationFormsControls.every(i=>i.isRequired==!0)&&(this.isAllRegistrationFormsRequired=!0),this.isAllRegistrationFormsEditable=!1,this.registrationFormsControls.every(i=>i.isReadOnly==!0)&&(this.isAllRegistrationFormsEditable=!0),this.isAllRegistrationFormsVisible=!1,this.registrationFormsControls.every(i=>i.isVisible==!0)&&(this.isAllRegistrationFormsVisible=!0)}onSelectRegistrationFormsControl({value:t}){this.registrationFormsControlsTypes=t,this.filterRegistrationFormsProperty()}onRegistrationFormsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RegistrationForms.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RegistrationForms.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.registrationFormsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRegistrationFormsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RegistrationForms.toString()))}}onAllRegistrationFormsEditableChanged(t){if(this.isAllRegistrationFormsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!="All"&&(n=this.selectedRegistrationFormsControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.RegistrationForms.toString(),L.RegistrationForms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRegistrationFormsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRegistrationFormsRequired=t.value;let n="";this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!="All"&&(n=this.selectedRegistrationFormsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.RegistrationForms.toString(),L.RegistrationForms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRegistrationFormsVisibleChanged(t){if(this.isAllRegistrationFormsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!=null&&this.selectedRegistrationFormsControl!="All"&&(n=this.selectedRegistrationFormsControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.RegistrationForms.toString(),L.RegistrationForms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationFormsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationFormsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRegistrationFormsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRegistrationFormsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventRegistrationSettingsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventSettings.toString(),L.EventRegistrationSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventRegistrationSettingsControls=t.responseModel,this.filterEventRegistrationSettingsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventRegistrationSettingsProperty(){this.eventRegistrationSettingsControls=this.allEventRegistrationSettingsControls,this.eventRegistrationSettingsControlsTypes=this.eventRegistrationSettingsControls,this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!="All"&&(this.eventRegistrationSettingsControls=this.eventRegistrationSettingsControls.filter(i=>i.formControlType==this.selectedEventRegistrationSettingsControl)),this.allEventRegistrationSettingsControls.forEach(i=>{this.eventRegistrationSettingsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventRegistrationSettingsControlType.push(i.formControlType)}),this.eventRegistrationSettingsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventRegistrationSettingsControlType.splice(0,0,"All"),this.isAllEventRegistrationSettingsRequired=!1,this.eventRegistrationSettingsControls.every(i=>i.isRequired==!0)&&(this.isAllEventRegistrationSettingsRequired=!0),this.isAllEventRegistrationSettingsEditable=!1,this.eventRegistrationSettingsControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventRegistrationSettingsEditable=!0),this.isAllEventRegistrationSettingsVisible=!1,this.eventRegistrationSettingsControls.every(i=>i.isVisible==!0)&&(this.isAllEventRegistrationSettingsVisible=!0)}onSelectEventRegistrationSettingsControl({value:t}){this.eventRegistrationSettingsControlsTypes=t,this.filterEventRegistrationSettingsProperty()}onEventRegistrationSettingsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventRegistrationSettingsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventRegistrationSettingsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventSettings.toString()))}}onAllEventRegistrationSettingsEditableChanged(t){if(this.isAllEventRegistrationSettingsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!="All"&&(n=this.selectedEventRegistrationSettingsControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventRegistrationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventRegistrationSettingsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventRegistrationSettingsRequired=t.value;let n="";this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!="All"&&(n=this.selectedEventRegistrationSettingsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventRegistrationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventRegistrationSettingsVisibleChanged(t){if(this.isAllEventRegistrationSettingsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!=null&&this.selectedEventRegistrationSettingsControl!="All"&&(n=this.selectedEventRegistrationSettingsControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventRegistrationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationSettingsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationSettingsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationSettingsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationSettingsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventGeneralSettingsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventSettings.toString(),L.EventGeneralSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventGeneralSettingsControls=t.responseModel,this.filterEventGeneralSettingsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventGeneralSettingsProperty(){this.eventGeneralSettingsControls=this.allEventGeneralSettingsControls,this.eventGeneralSettingsControlsTypes=this.eventGeneralSettingsControls,this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!="All"&&(this.eventGeneralSettingsControl
87s=this.eventGeneralSettingsControls.filter(i=>i.formControlType==this.selectedEventGeneralSettingsControl)),this.allEventGeneralSettingsControls.forEach(i=>{this.eventGeneralSettingsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventGeneralSettingsControlType.push(i.formControlType)}),this.eventGeneralSettingsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventGeneralSettingsControlType.splice(0,0,"All"),this.isAllEventGeneralSettingsRequired=!1,this.eventGeneralSettingsControls.every(i=>i.isRequired==!0)&&(this.isAllEventGeneralSettingsRequired=!0),this.isAllEventGeneralSettingsEditable=!1,this.eventGeneralSettingsControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventGeneralSettingsEditable=!0),this.isAllEventGeneralSettingsVisible=!1,this.eventGeneralSettingsControls.every(i=>i.isVisible==!0)&&(this.isAllEventGeneralSettingsVisible=!0)}onSelectEventGeneralSettingsControl({value:t}){this.eventGeneralSettingsControlsTypes=t,this.filterEventGeneralSettingsProperty()}onEventGeneralSettingsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventGeneralSettingsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventGeneralSettingsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventSettings.toString()))}}onAllEventGeneralSettingsEditableChanged(t){if(this.isAllEventGeneralSettingsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!="All"&&(n=this.selectedEventGeneralSettingsControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventGeneralSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventGeneralSettingsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventGeneralSettingsRequired=t.value;let n="";this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!="All"&&(n=this.selectedEventGeneralSettingsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventGeneralSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventGeneralSettingsVisibleChanged(t){if(this.isAllEventGeneralSettingsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!=null&&this.selectedEventGeneralSettingsControl!="All"&&(n=this.selectedEventGeneralSettingsControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventGeneralSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventGeneralSettingsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventGeneralSettingsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventGeneralSettingsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventGeneralSettingsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventCancellationSettingsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventSettings.toString(),L.EventCancellationSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventCancellationSettingsControls=t.responseModel,this.filterEventCancellationSettingsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventCancellationSettingsProperty(){this.eventCancellationSettingsControls=this.allEventCancellationSettingsControls,this.eventCancellationSettingsControlsTypes=this.eventCancellationSettingsControls,this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!="All"&&(this.eventCancellationSettingsControls=this.eventCancellationSettingsControls.filter(i=>i.formControlType==this.selectedEventCancellationSettingsControl)),this.allEventCancellationSettingsControls.forEach(i=>{this.eventCancellationSettingsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventCancellationSettingsControlType.push(i.formControlType)}),this.eventCancellationSettingsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventCancellationSettingsControlType.splice(0,0,"All"),this.isAllEventCancellationSettingsRequired=!1,this.eventCancellationSettingsControls.every(i=>i.isRequired==!0)&&(this.isAllEventCancellationSettingsRequired=!0),this.isAllEventCancellationSettingsEditable=!1,this.eventCancellationSettingsControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventCancellationSettingsEditable=!0),this.isAllEventCancellationSettingsVisible=!1,this.eventCancellationSettingsControls.every(i=>i.isVisible==!0)&&(this.isAllEventCancellationSettingsVisible=!0)}onSelectEventCancellationSettingsControl({value:t}){this.eventCancellationSettingsControlsTypes=t,this.filterEventCancellationSettingsProperty()}onEventCancellationSettingsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventCancellationSettingsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventCancellationSettingsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventSettings.toString()))}}onAllEventCancellationSettingsEditableChanged(t){if(this.isAllEventCancellationSettingsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!="All"&&(n=this.selectedEventCancellationSettingsControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventCancellationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventCancellationSettingsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventCancellationSettingsRequired=t.value;let n="";this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!="All"&&(n=this.selectedEventCancellationSettingsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventCancellationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventCancellationSettingsVisibleChanged(t){if(this.isAllEventCancellationSettingsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!=null&&this.selectedEventCancellationSettingsControl!="All"&&(n=this.selectedEventCancellationSettingsControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventCancellationSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventCancellationSettingsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventCancellationSettingsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventCancellationSettingsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventCancellationSettingsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventWaitListSettingsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventSettings.toString(),L.EventWaitListSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventWaitListSettingsControls=t.responseModel,this.filterEventWaitListSettingsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventWaitListSettingsProperty(){this.eventWaitListSettingsControls=this.allEventWaitListSettingsControls,this.eventWaitListSettingsControlsTypes=this.eventWaitListSettingsControls,this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!="All"&&(this.eventWaitListSettingsControl
87s=this.eventWaitListSettingsControls.filter(i=>i.formControlType==this.selectedEventWaitListSettingsControl)),this.allEventWaitListSettingsControls.forEach(i=>{this.eventWaitListSettingsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventWaitListSettingsControlType.push(i.formControlType)}),this.eventWaitListSettingsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventWaitListSettingsControlType.splice(0,0,"All"),this.isAllEventWaitListSettingsRequired=!1,this.eventWaitListSettingsControls.every(i=>i.isRequired==!0)&&(this.isAllEventWaitListSettingsRequired=!0),this.isAllEventWaitListSettingsEditable=!1,this.eventWaitListSettingsControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventWaitListSettingsEditable=!0),this.isAllEventWaitListSettingsVisible=!1,this.eventWaitListSettingsControls.every(i=>i.isVisible==!0)&&(this.isAllEventWaitListSettingsVisible=!0)}onSelectEventWaitListSettingsControl({value:t}){this.eventWaitListSettingsControlsTypes=t,this.filterEventWaitListSettingsProperty()}onEventWaitListSettingsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventWaitListSettingsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventWaitListSettingsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventSettings.toString()))}}onAllEventWaitListSettingsEditableChanged(t){if(this.isAllEventWaitListSettingsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!="All"&&(n=this.selectedEventWaitListSettingsControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventWaitListSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventWaitListSettingsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventWaitListSettingsRequired=t.value;let n="";this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!="All"&&(n=this.selectedEventWaitListSettingsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventWaitListSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventWaitListSettingsVisibleChanged(t){if(this.isAllEventWaitListSettingsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!=null&&this.selectedEventWaitListSettingsControl!="All"&&(n=this.selectedEventWaitListSettingsControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventSettings.toString(),L.EventWaitListSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventWaitListSettingsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventWaitListSettingsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventWaitListSettingsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetPriceInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.PriceInformation.toString(),L.PriceInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPriceInformationControls=t.responseModel,this.filterPriceInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPriceInformationProperty(){this.priceInformationControls=this.allPriceInformationControls,this.priceInformationControlsTypes=this.priceInformationControls,this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!="All"&&(this.priceInformationControls=this.priceInformationControls.filter(i=>i.formControlType==this.selectedPriceInformationControl)),this.allPriceInformationControls.forEach(i=>{this.priceInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.priceInformationControlType.push(i.formControlType)}),this.priceInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.priceInformationControlType.splice(0,0,"All"),this.isAllPriceInformationRequired=!1,this.priceInformationControls.every(i=>i.isRequired==!0)&&(this.isAllPriceInformationRequired=!0),this.isAllPriceInformationEditable=!1,this.priceInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllPriceInformationEditable=!0),this.isAllPriceInformationVisible=!1,this.priceInformationControls.every(i=>i.isVisible==!0)&&(this.isAllPriceInformationVisible=!0)}onSelectPriceInformationControl({value:t}){this.priceInformationControlsTypes=t,this.filterPriceInformationProperty()}onPriceInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.PriceInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.PriceInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.priceInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPriceInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.PriceInformation.toString()))}}onAllPriceInformationEditableChanged(t){if(this.isAllPriceInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!="All"&&(n=this.selectedPriceInformationControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.PriceInformation.toString(),L.PriceInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPriceInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPriceInformationRequired=t.value;let n="";this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!="All"&&(n=this.selectedPriceInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.PriceInformation.toString(),L.PriceInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPriceInformationVisibleChanged(t){if(this.isAllPriceInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!=null&&this.selectedPriceInformationControl!="All"&&(n=this.selectedPriceInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.PriceInformation.toString(),L.PriceInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPriceInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPriceInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPriceInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPriceInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAccountingInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.AccountingInformation.toString(),L.AccountingInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingInformationControls=t.responseModel,this.filterAccountingInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingInformationProperty(){this.accountingInformationControls=this.allAccountingInformationControls,this.accountingInformationControlsTypes=this.accountingInformationControls,this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!="All"&&(this.accountingInformationControls=this.accountingInformationControls.filter(i=>i.formControlType==this.selectedAccountingInformationControl)),this.allAccountingInformationControls.forEac
87h(i=>{this.accountingInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingInformationControlType.push(i.formControlType)}),this.accountingInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingInformationControlType.splice(0,0,"All"),this.isAllAccountingInformationRequired=!1,this.accountingInformationControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingInformationRequired=!0),this.isAllAccountingInformationEditable=!1,this.accountingInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingInformationEditable=!0),this.isAllAccountingInformationVisible=!1,this.accountingInformationControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingInformationVisible=!0)}onSelectAccountingInformationControl({value:t}){this.accountingInformationControlsTypes=t,this.filterAccountingInformationProperty()}onAccountingInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.AccountingInformation.toString()))}}onAllAccountingInformationEditableChanged(t){if(this.isAllAccountingInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!="All"&&(n=this.selectedAccountingInformationControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.AccountingInformation.toString(),L.AccountingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingInformationRequired=t.value;let n="";this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!="All"&&(n=this.selectedAccountingInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.AccountingInformation.toString(),L.AccountingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingInformationVisibleChanged(t){if(this.isAllAccountingInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!=null&&this.selectedAccountingInformationControl!="All"&&(n=this.selectedAccountingInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.AccountingInformation.toString(),L.AccountingInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetSponsorsInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.SponsorsInformation.toString(),L.SponsorsInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allSponsorsInformationControls=t.responseModel,this.filterSponsorsInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterSponsorsInformationProperty(){this.sponsorsInformationControls=this.allSponsorsInformationControls,this.sponsorsInformationControlsTypes=this.sponsorsInformationControls,this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!="All"&&(this.sponsorsInformationControls=this.sponsorsInformationControls.filter(i=>i.formControlType==this.selectedSponsorsInformationControl)),this.allSponsorsInformationControls.forEach(i=>{this.sponsorsInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.sponsorsInformationControlType.push(i.formControlType)}),this.sponsorsInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.sponsorsInformationControlType.splice(0,0,"All"),this.isAllSponsorsInformationRequired=!1,this.sponsorsInformationControls.every(i=>i.isRequired==!0)&&(this.isAllSponsorsInformationRequired=!0),this.isAllSponsorsInformationEditable=!1,this.sponsorsInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllSponsorsInformationEditable=!0),this.isAllSponsorsInformationVisible=!1,this.sponsorsInformationControls.every(i=>i.isVisible==!0)&&(this.isAllSponsorsInformationVisible=!0)}onSelectSponsorsInformationControl({value:t}){this.selectedSponsorsInformationControl=t,this.filterSponsorsInformationProperty()}onSponsorsInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.SponsorsInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.SponsorsInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.sponsorsInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetSponsorsInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.SponsorsInformation.toString()))}}onAllSponsorsInformationEditableChanged(t){if(this.isAllSponsorsInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!="All"&&(n=this.selectedSponsorsInformationControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.SponsorsInformation.toString(),L.SponsorsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllSponsorsInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllSponsorsInformationRequired=t.value;let n="";this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!="All"&&(n=this.selectedSponsorsInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.SponsorsInformation.toString(),L.SponsorsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllSponsorsInformationVisibleChanged(t){if(this.isAllSponsorsInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!=null&&this.selectedSponsorsInformationControl!="All"&&(n=this.selectedSponsorsInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.SponsorsInformation.toString(),L.SponsorsInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSponsorsInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSponsorsInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSponsorsInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetSponsorsInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetVenueInformationProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventBasicInformation.toString(),L.VenueInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allVenueInformationControls=t.responseModel,this.filterVenueInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterVenueInformationProperty(){this.venueInformationControls=this.allVenueInformationControls,this.venueInformationControlsTypes=this.venueInformationControls,this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!="All"&&(this.venueInformationControls=this.venueInformationControls.filter(i=>i.formControlType==this.selectedVenueInformationControl)),this.allVenueInformationControls.forEac
87h(i=>{this.venueInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.venueInformationControlType.push(i.formControlType)}),this.venueInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.venueInformationControlType.splice(0,0,"All"),this.isAllVenueInformationRequired=!1,this.venueInformationControls.every(i=>i.isRequired==!0)&&(this.isAllVenueInformationRequired=!0),this.isAllVenueInformationEditable=!1,this.venueInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllVenueInformationEditable=!0),this.isAllVenueInformationVisible=!1,this.venueInformationControls.every(i=>i.isVisible==!0)&&(this.isAllVenueInformationVisible=!0)}onSelectVenueInformationControl({value:t}){this.venueInformationControlsTypes=t,this.filterVenueInformationProperty()}onVenueInformationSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventBasicInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventBasicInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.venueInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetVenueInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventBasicInformation.toString()))}}onAllVenueInformationEditableChanged(t){if(this.isAllVenueInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!="All"&&(n=this.selectedVenueInformationControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.VenueInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllVenueInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllVenueInformationRequired=t.value;let n="";this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!="All"&&(n=this.selectedVenueInformationControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.VenueInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllVenueInformationVisibleChanged(t){if(this.isAllVenueInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!=null&&this.selectedVenueInformationControl!="All"&&(n=this.selectedVenueInformationControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventBasicInformation.toString(),L.VenueInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onVenueInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onVenueInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onVenueInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetVenueInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAccountingSetupProductProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingSetupProductControls=t.responseModel,this.filterAccountingSetupProductProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingSetupProductProperty(){this.accountingSetupProductControls=this.allAccountingSetupProductControls,this.accountingSetupProductControlsTypes=this.accountingSetupProductControls,this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(this.accountingSetupProductControls=this.accountingSetupProductControls.filter(i=>i.formControlType==this.selectedAccountingSetupProductControl)),this.allAccountingSetupProductControls.forEach(i=>{this.accountingSetupProductControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingSetupProductControlType.push(i.formControlType)}),this.accountingSetupProductControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingSetupProductControlType.splice(0,0,"All"),this.isAllAccountingSetupProductRequired=!1,this.accountingSetupProductControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingSetupProductRequired=!0),this.isAllAccountingSetupProductEditable=!1,this.accountingSetupProductControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingSetupProductEditable=!0),this.isAllAccountingSetupProductVisible=!1,this.accountingSetupProductControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingSetupProductVisible=!0)}onSelectAccountingSetupProductControl({value:t}){this.selectedAccountingSetupProductControl=t,this.filterAccountingSetupProductProperty()}onAccountingSetupProductSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingSetupProduct.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.AccountingSetupProduct.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingSetupProductControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingSetupProductProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.AccountingSetupProduct.toString()))}}onAllAccountingSetupProductEditableChanged(t){if(this.isAllAccountingSetupProductEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingSetupProductRequired=t.value;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductVisibleChanged(t){if(this.isAllAccountingSetupProductVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.AccountingSetupProduct.toString(),L.AccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventRegistrationCustomFieldsProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventRegistrationCustomFields.toString(),L.EventRegistrationCustomFields.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventRegistrationCustomFieldsControls=t.responseModel,this.filterEventRegistrationCustomFieldsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventRegistrationCustomFieldsProperty(){this.eventRegistrationCustomFieldsControls=this.allEventRegistrationCustomFieldsControls,this.eventRegistrationCustomFieldsControlsTypes=this.eventRegistrationCustomFieldsControls,this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!="All"&&(this.eventRegistrationCustomFieldsControls=this.eventRegistrationCustomFieldsControls.filter(i=>i.formControlType==this.selectedEventRegistrationCustomFieldsControl)),this.allEventRegistrationCustomFieldsControls.forEac
87h(i=>{this.eventRegistrationCustomFieldsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventRegistrationCustomFieldsControlType.push(i.formControlType)}),this.eventRegistrationCustomFieldsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventRegistrationCustomFieldsControlType.splice(0,0,"All"),this.isAllEventRegistrationCustomFieldsRequired=!1,this.eventRegistrationCustomFieldsControls.every(i=>i.isRequired==!0)&&(this.isAllEventRegistrationCustomFieldsRequired=!0),this.isAllEventRegistrationCustomFieldsEditable=!1,this.eventRegistrationCustomFieldsControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventRegistrationCustomFieldsEditable=!0),this.isAllEventRegistrationCustomFieldsVisible=!1,this.eventRegistrationCustomFieldsControls.every(i=>i.isVisible==!0)&&(this.isAllEventRegistrationCustomFieldsVisible=!0)}onSelectEventRegistrationCustomFieldsControl({value:t}){this.eventRegistrationCustomFieldsControlsTypes=t,this.filterEventRegistrationCustomFieldsProperty()}onEventRegistrationCustomFieldsSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventRegistrationCustomFields.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventRegistrationCustomFields.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventRegistrationCustomFieldsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventRegistrationCustomFieldsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventRegistrationCustomFields.toString()))}}onAllEventRegistrationCustomFieldsEditableChanged(t){if(this.isAllEventRegistrationCustomFieldsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!="All"&&(n=this.selectedEventRegistrationCustomFieldsControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.EventRegistrationCustomFields.toString(),L.EventRegistrationCustomFields.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventRegistrationCustomFieldsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventRegistrationCustomFieldsRequired=t.value;let n="";this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!="All"&&(n=this.selectedEventRegistrationCustomFieldsControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventRegistrationCustomFields.toString(),L.EventRegistrationCustomFields.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventRegistrationCustomFieldsVisibleChanged(t){if(this.isAllEventRegistrationCustomFieldsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!=null&&this.selectedEventRegistrationCustomFieldsControl!="All"&&(n=this.selectedEventRegistrationCustomFieldsControl),this.propertyService.Upd
87ateAllVisibleFieldEventControl(M.PropertyPageName.EventRegistrationCustomFields.toString(),L.EventRegistrationCustomFields.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationCustomFieldsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationCustomFieldsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventRegistrationCustomFieldsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventRegistrationCustomFieldsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventSessionRegistrantAudienceMappingProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString(),L.EventSessionRegistrantAudienceMapping.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventSessionRegistrantAudienceMappingControls=t.responseModel,this.filterEventSessionRegistrantAudienceMappingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventSessionRegistrantAudienceMappingProperty(){this.eventSessionRegistrantAudienceMappingControls=this.allEventSessionRegistrantAudienceMappingControls,this.eventSessionRegistrantAudienceMappingControlsTypes=this.eventSessionRegistrantAudienceMappingControls,this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!="All"&&(this.eventSessionRegistrantAudienceMappingControls=this.eventSessionRegistrantAudienceMappingControls.filter(i=>i.formControlType==this.selectedEventSessionRegistrantAudienceMappingControl)),this.allEventSessionRegistrantAudienceMappingControls.forEach(i=>{this.eventSessionRegistrantAudienceMappingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventSessionRegistrantAudienceMappingControlType.push(i.formControlType)}),this.eventSessionRegistrantAudienceMappingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventSessionRegistrantAudienceMappingControlType.splice(0,0,"All"),this.isAllEventSessionRegistrantAudienceMappingRequired=!1,this.eventSessionRegistrantAudienceMappingControls.every(i=>i.isRequired==!0)&&(this.isAllEventSessionRegistrantAudienceMappingRequired=!0),this.isAllEventSessionRegistrantAudienceMappingEditable=!1,this.eventSessionRegistrantAudienceMappingControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventSessionRegistrantAudienceMappingEditable=!0),this.isAllEventSessionRegistrantAudienceMappingVisible=!1,this.eventSessionRegistrantAudienceMappingControls.every(i=>i.isVisible==!0)&&(this.isAllEventSessionRegistrantAudienceMappingVisible=!0)}onSelectEventSessionRegistrantAudienceMappingControl({value:t}){this.selectedEventSessionRegistrantAudienceMappingControl=t,this.filterEventSessionRegistrantAudienceMappingProperty()}onEventSessionRegistrantAudienceMappingSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventSessionRegistrantAudienceMappingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventSessionRegistrantAudienceMappingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString()))}}onAllEventSessionRegistrantAudienceMappingEditableChanged(t){if(this.isAllEventSessionRegistrantAudienceMappingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!="All"&&(n=this.selectedEventSessionRegistrantAudienceMappingControl),this.propertyService.Upd
87ateAllEditableFieldEventControl(M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString(),L.EventSessionRegistrantAudienceMapping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventSessionRegistrantAudienceMappingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventSessionRegistrantAudienceMappingRequired=t.value;let n="";this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!="All"&&(n=this.selectedEventSessionRegistrantAudienceMappingControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString(),L.EventSessionRegistrantAudienceMapping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventSessionRegistrantAudienceMappingVisibleChanged(t){if(this.isAllEventSessionRegistrantAudienceMappingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!=null&&this.selectedEventSessionRegistrantAudienceMappingControl!="All"&&(n=this.selectedEventSessionRegistrantAudienceMappingControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventSessionRegistrantAudienceMapping.toString(),L.EventSessionRegistrantAudienceMapping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventSessionRegistrantAudienceMappingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventSessionRegistrantAudienceMappingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty,this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventSessionRegistrantAudienceMappingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventSessionRegistrantAudienceMappingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetEventAccountingEntitySetupProperty(){this.loading=!0,this.propertyService.GetEventPageControlsByPageName(M.PropertyPageName.EventAccountingEntitySetup.toString(),L.EventAccountingEntitySetup.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allEventAccountingEntitySetupControls=t.responseModel,this.filterEventAccountingEntitySetupProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterEventAccountingEntitySetupProperty(){this.eventAccountingEntitySetupControls=this.allEventAccountingEntitySetupControls,this.eventAccountingEntitySetupControlsTypes=this.eventAccountingEntitySetupControls,this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!="All"&&(this.eventAccountingEntitySetupControls=this.eventAccountingEntitySetupControls.filter(i=>i.formControlType==this.selectedEventAccountingEntitySetupControl)),this.allEventAccountingEntitySetupControls.forEac
87h(i=>{this.eventAccountingEntitySetupControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.eventAccountingEntitySetupControlType.push(i.formControlType)}),this.eventAccountingEntitySetupControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.eventAccountingEntitySetupControlType.splice(0,0,"All"),this.isAllEventAccountingEntitySetupRequired=!1,this.eventAccountingEntitySetupControls.every(i=>i.isRequired==!0)&&(this.isAllEventAccountingEntitySetupRequired=!0),this.isAllEventAccountingEntitySetupEditable=!1,this.eventAccountingEntitySetupControls.every(i=>i.isReadOnly==!0)&&(this.isAllEventAccountingEntitySetupEditable=!0),this.isAllEventAccountingEntitySetupVisible=!1,this.eventAccountingEntitySetupControls.every(i=>i.isVisible==!0)&&(this.isAllEventAccountingEntitySetupVisible=!0)}onSelectEventAccountingEntitySetupControl({value:t}){this.selectedEventAccountingEntitySetupControl=t,this.filterEventAccountingEntitySetupProperty()}onEventAccountingEntitySetupSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.EventAccountingEntitySetup.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.EventAccountingEntitySetup.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.eventAccountingEntitySetupControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetEventAccountingEntitySetupProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.EventAccountingEntitySetup.toString()))}}onAllEventAccountingEntitySetupEditableChanged(t){if(this.isAllEventAccountingEntitySetupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!="All"&&(n=this.selectedEventAccountingEntitySetupControl),this.propertyService.UpdateAllEditableFieldEventControl(M.PropertyPageName.EventAccountingEntitySetup.toString(),L.EventAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventAccountingEntitySetupRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllEventAccountingEntitySetupRequired=t.value;let n="";this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!="All"&&(n=this.selectedEventAccountingEntitySetupControl),this.propertyService.UpdateAllRequireFieldEventControl(M.PropertyPageName.EventAccountingEntitySetup.toString(),L.EventAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllEventAccountingEntitySetupVisibleChanged(t){if(this.isAllEventAccountingEntitySetupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!=null&&this.selectedEventAccountingEntitySetupControl!="All"&&(n=this.selectedEventAccountingEntitySetupControl),this.propertyService.UpdateAllVisibleFieldEventControl(M.PropertyPageName.EventAccountingEntitySetup.toString(),L.EventAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventAccountingEntitySetupRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventAccountingEntitySetupVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onEventAccountingEntitySetupEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetEventAccountingEntitySetupProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}DeleteValuePopupEvent(){this.deletePopup=!0}onProfileSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onTeamandConditionSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.EventBasicInformation.toString()?this.GetEventBasicInformationProperty():n==M.PropertyPageName.SessionManagement.toString()?this.GetSessionManagementProperty():n==M.PropertyPageName.RegistrationInformation.toString()?this.GetRegistrationInformationProperty():n==M.PropertyPageName.RegistrationForms.toString()?this.GetRegistrationFormsProperty():n==M.PropertyPageName.EventSettings.toString()&&this.GetEventRegistrationSettingsProperty(),this.GetEventGeneralSettingsProperty(),this.GetEventCancellationSettingsProperty(),this.GetEventWaitListSettingsProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Events.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Events.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Events.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-events-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(sx,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:645,vars:634,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Events","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUpdating","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Events Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Events Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Event Basic Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.eventBasiclInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventBasicInformationControl,c)||(e.selectedEventBasicInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventBasicInformationControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventBasicInformationSaving(c))}),b(39,"dxo-paging",29),a(40,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,ux,3,2,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,mx,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,gx,4,1,"div",41)(52,hx,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,fx,4,1,"div",41)(55,Cx,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,_x,4,1,"div",41)(58,yx,2,1,"div",45),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Venue Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.venueInformation())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedVenueInformationControl,c)||(e.selectedVenueInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectVenueInformationControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onVenueInformationSaving(c))}),b(77,"dxo-paging",29),a(78,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,xx,3,2,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,vx,2,4,"span",39),s(),a(88,"dxi-column",40),S(89,bx,4,1,"div",41)(90,wx,2,2,"div",42),s(),a(91,"dxi-column",43),S(92,Sx,4,1,"div",41)(93,Px,2,2,"div",42),s(),a(94,"dxi-column",44),S(95,Mx,4,1,"div",41)(96,Vx,2,1,"div",45),s()()()()()(),a(97,"div",15)(98,"div",12)(99,"div",16)(100,"h2",17),h(101,"Session Management"),s(),a(102,"div",18)(103,"a",19),f("click",function(){return p(i),u(e.sessionInformation())}),A(),a(104,"svg",20),b(105,"path",21),s()()()(),G(),a(106,"div",22)(107,"div",23)(108,"div",24)(109,"div",25)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedSessionManagementControl,c)||(e.selectedSessionManagementControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectSessionManagementControl(c))}),s()()()(),a(113,"div",27)(114,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onSessionManagementSaving(c))}),b(115,"dxo-paging",29),a(116,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(117,"dxi-column",31)(118,"dxi-column",32),a(119,"dxi-column",33),b(120,"dxi-validation-rule",34)(121,"dxi-validation-rule",35),S(122,Tx,4,3,"div",36),s(),b(123,"dxi-column",37),a(124,"dxi-column",38),S(125,Dx,2,4,"span",39),s(),a(126,"dxi-column",40),S(127,Ix,4,1,"div",41)(128,Ax,2,2,"div",42),s(),a(129,"dxi-column",43),S(130,Lx,4,1,"div",41)(131,kx,2,2,"div",42),s(),a(132,"dxi-column",44),S(133,Rx,4,1,"div",41)(134,Ox,2,1,"div",45),s()()()()()(),a(135,"div",15)(136,"div",12)(137,"div",16)(138,"h2",17),h(139,"Registration Information"),s(),a(140,"div",18)(141,"a",19),f("click",function(){return p(i),u(e.registrationInformation())}),A(),a(142,"svg",20),b(143,"path",21),s()()()(),G(),a(144,"div",22)(145,"div",23)(146,"div",24)(147,"div",25)(148,"span"),h(149,"Control Type:"),s(),a(150,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRegistrationInformationControl,c)||(e.selectedRegistrationInformationControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRegistrationInformationControl(c))}),s()()()(),a(151,"div",27)(152,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRegistrationInformationSaving(c))}),b(153,"dxo-paging",29),a(154,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(155,"dxi-column",31)(156,"dxi-column",32),a(157,"dxi-column",33),b(158,"dxi-validation-rule",34)(159,"dxi-validation-rule",35),S(160,Bx,4,3,"div",36),s(),b(161,"dxi-column",37),a(162,"dxi-column",38),S(163,Fx,2,4,"span",39),s(),a(164,"dxi-column",40),S(165,Wx,4,1,"div",41)(166,Nx,2,2,"div",42),s(),a(167,"dxi-column",43),S(168,qx,4,1,"div",41)(169,Ux,2,2,"div",42),s(),a(170,"dxi-column",44),S(171,Hx,4,1,"div",41)(172,jx,2,1,"div",45),s()()()()()(),a(173,"div",15)(174,"div",12)(175,"div",16)(176,"h2",17),h(177,"Registration Forms"),s(),a(178,"div",18)(179,"a",19),f("click",function(){return p(i),u(e.registrationFormsInformation())}),A(),a(180,"svg",20),b(181,"path",21),s()()()(),G(),a(182,"div",22)(183,"div",23)(184,"div",24)(185,"div",25)(186,"span"),h(187,"Control Type:"),s(),a(188,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRegistrationFormsControl,c)||(e.selectedRegistrationFormsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRegistrationFormsControl(c))}),s()()()(),a(189,"div",27)(190,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))}
vendor: 8,129 bytes, line 87
87)("onSaving",function(c){return p(i),u(e.onRegistrationFormsSaving(c))}),b(191,"dxo-paging",29),a(192,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(193,"dxi-column",31)(194,"dxi-column",32),a(195,"dxi-column",33),b(196,"dxi-validation-rule",34)(197,"dxi-validation-rule",35),S(198,Zx,4,3,"div",36),s(),b(199,"dxi-column",37),a(200,"dxi-column",38),S(201,Qx,2,4,"span",39),s(),a(202,"dxi-column",40),S(203,Yx,4,1,"div",41)(204,Kx,2,2,"div",42),s(),a(205,"dxi-column",43),S(206,Jx,4,1,"div",41)(207,Xx,2,2,"div",42),s(),a(208,"dxi-column",44),S(209,$x,4,1,"div",41)(210,e3,2,1,"div",45),s()()()()()(),a(211,"div",15)(212,"div",12)(213,"div",16)(214,"h2",17),h(215,"Event Registration Custom Fields"),s(),a(216,"div",18)(217,"a",19),f("click",function(){return p(i),u(e.eventRegistrationCustomFields())}),A(),a(218,"svg",20),b(219,"path",21),s()()()(),G(),a(220,"div",22)(221,"div",23)(222,"div",24)(223,"div",25)(224,"span"),h(225,"Control Type:"),s(),a(226,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventRegistrationCustomFieldsControl,c)||(e.selectedEventRegistrationCustomFieldsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventRegistrationCustomFieldsControl(c))}),s()()()(),a(227,"div",27)(228,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventRegistrationCustomFieldsSaving(c))}),b(229,"dxo-paging",29),a(230,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(231,"dxi-column",31)(232,"dxi-column",32),a(233,"dxi-column",33),b(234,"dxi-validation-rule",34)(235,"dxi-validation-rule",35),S(236,i3,4,3,"div",36),s(),b(237,"dxi-column",37),a(238,"dxi-column",38),S(239,n3,2,4,"span",39),s(),a(240,"dxi-column",40),S(241,o3,4,1,"div",41)(242,a3,2,2,"div",42),s(),a(243,"dxi-column",43),S(244,r3,4,1,"div",41)(245,s3,2,2,"div",42),s(),a(246,"dxi-column",44),S(247,l3,4,1,"div",41)(248,d3,2,1,"div",45),s()()()()()(),a(249,"div",15)(250,"div",12)(251,"div",16)(252,"h2",17),h(253,"Event General Settings"),s(),a(254,"div",18)(255,"a",19),f("click",function(){return p(i),u(e.eventGeneralSettingsInformation())}),A(),a(256,"svg",20),b(257,"path",21),s()()()(),G(),a(258,"div",22)(259,"div",23)(260,"div",24)(261,"div",25)(262,"span"),h(263,"Control Type:"),s(),a(264,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventGeneralSettingsControl,c)||(e.selectedEventGeneralSettingsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventGeneralSettingsControl(c))}),s()()()(),a(265,"div",27)(266,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventGeneralSettingsSaving(c))}),b(267,"dxo-paging",29),a(268,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(269,"dxi-column",31)(270,"dxi-column",32),a(271,"dxi-column",33),b(272,"dxi-validation-rule",34)(273,"dxi-validation-rule",35),S(274,p3,4,3,"div",36),s(),b(275,"dxi-column",37),a(276,"dxi-column",38),S(277,u3,2,4,"span",39),s(),a(278,"dxi-column",40),S(279,m3,4,1,"div",41)(280,g3,2,2,"div",42),s(),a(281,"dxi-column",43),S(282,h3,4,1,"div",41)(283,f3,2,2,"div",42),s(),a(284,"dxi-column",44),S(285,C3,4,1,"div",41)(286,_3,2,1,"div",45),s()()()()()(),a(287,"div",15)(288,"div",12)(289,"div",16)(290,"h2",17),h(291,"Event Registration Settings"),s(),a(292,"div",18)(293,"a",19),f("click",function(){return p(i),u(e.eventRegistrationSettingsInformation())}),A(),a(294,"svg",20),b(295,"path",21),s()()()(),G(),a(296,"div",22)(297,"div",23)(298,"div",24)(299,"div",25)(300,"span"),h(301,"Control Type:"),s(),a(302,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventRegistrationSettingsControl,c)||(e.selectedEventRegistrationSettingsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventRegistrationSettingsControl(c))}),s()()()(),a(303,"div",27)(304,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventRegistrationSettingsSaving(c))}),b(305,"dxo-paging",29),a(306,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(307,"dxi-column",31)(308,"dxi-column",32),a(309,"dxi-column",33),b(310,"dxi-validation-rule",34)(311,"dxi-validation-rule",35),S(312,x3,4,3,"div",36),s(),b(313,"dxi-column",37),a(314,"dxi-column",38),S(315,v3,2,4,"span",39),s(),a(316,"dxi-column",40),S(317,b3,4,1,"div",41)(318,w3,2,2,"div",42),s(),a(319,"dxi-column",43),S(320,S3,4,1,"div",41)(321,P3,2,2,"div",42),s(),a(322,"dxi-column",44),S(323,M3,4,1,"div",41)(324,V3,2,1,"div",45),s()()()()()(),a(325,"div",15)(326,"div",12)(327,"div",16)(328,"h2",17),h(329,"Event Cancellation Settings"),s(),a(330,"div",18)(331,"a",19),f("click",function(){return p(i),u(e.eventCancellationSettingsInformation())}),A(),a(332,"svg",20),b(333,"path",21),s()()()(),G(),a(334,"div",22)(335,"div",23)(336,"div",24)(337,"div",25)(338,"span"),h(339,"Control Type:"),s(),a(340,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventCancellationSettingsControl,c)||(e.selectedEventCancellationSettingsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventCancellationSettingsControl(c))}),s()()()(),a(341,"div",27)(342,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventCancellationSettingsSaving(c))}),b(343,"dxo-paging",29),a(344,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(345,"dxi-column",31)(346,"dxi-column",32),a(347,"dxi-column",33),b(348,"dxi-validation-rule",34)(349,"dxi-validation-rule",35),S(350,T3,4,3,"div",36),s(),b(351,"dxi-column",37),a(352,"dxi-column",38),S(353,D3,2,4,"span",39),s(),a(354,"dxi-column",40),S(355,I3,4,1,"div",41)(356,A3,2,2,"div",42),s(),a(357,"dxi-column",43),S(358,L3,4,1,"div",41)(359,k3,2,2,"div",42),s(),a(360,"dxi-column",44),S(361,R3,4,1,"div",41)(362,O3,2,1,"div",45),s()()()()()(),a(363,"div",15)(364,"div",12)(365,"div",16)(366,"h2",17),h(367,"Event WaitList Settings"),s(),a(368,"div",18)(369,"a",19),f("click",function(){return p(i),u(e.eventWaitListSettingsInformation())}),A(),a(370,"svg",20),b(371,"path",21),s()()()(),G(),a(372,"div",22)(373,"div",23)(374,"div",24)(375,"div",25)(376,"span"),h(377,"Control Type:"),s(),a(378,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventWaitListSettingsControl,c)||(e.selectedEventWaitListSettingsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventWaitListSettingsControl(c))}),s()()()(),a(379,"div",27)(380,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventWaitListSettingsSaving(c))}),b(381,"dxo-paging",29),a(382,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(383,"dxi-column",31)(384,"dxi-column",32),a(385,"dxi-column",33),b(386,"dxi-validation-rule",34)(387,"dxi-validation-rule",35),S(388,B3,4,3,"div",36),s(),b(389,"dxi-column",37),a(390,"dxi-column",38),S(391,F3,2,4,"span",39),s(),a(392,"dxi-column",40),S(393,W3,4,1,"div",41)(394,N3,2,2,"div",42),s(),a(395,"dxi-column",43),S(396,q3,4,1,"div",41)(397,U3,2,2,"div",42),s(),a(398,"dxi-column",44),S(399,H3,4,1,"div",41)(400,j3,2,1,"div",45),s()()()()()(),a(401,"div",15)(402,"div",12)(403,"div",16)(404,"h2",17),h(405,"Price Information"),s(),a(406,"div",18)(407,"a",19),f("click",function(){return p(i),u(e.priceInformation())}),A(),a(408,"svg",20),b(409,"path",21),s()()()(),G(),a(410,"div",22)(411,"div",23)(412,"div",24)(413,"div",25)(414,"span"),h(415,"Control Type:"),s(),a(416,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPriceInformationControl,c)||(e.selectedPriceInformationControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPriceInformationControl(c))}),s()()()(),a(417,"div",27)(418,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPriceInformationSaving(c))}),b(419,"dxo-paging",29),a(420,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(421,"dxi-column",31)(422,"dxi-column",32),a(423,"dxi-column",33),b(424,"dxi-validation-rule",34)(425,"dxi-validation-rule",35),S(426,Q3,4,3,"div",36),s(),b(427,"dxi-column",37),a(428,"dxi-column",38),S(429,Y3,2,4,"span",39),s(),a(430,"dxi-column",40),S(431,K3,4,1,"div",41)(432,J3,2,2,"div",42),s(),a(433,"dxi-column",43),S(434,X3,4,1,"div",41)(435,$3,2,2,"div",42),s(),a(436,"dxi-column",44),S(437,ev,4,1,"div",41)(438,tv,2,1,"div",45),s()()()()()(),a(439,"div",15)(440,"div",12)(441,"div",16)(442,"h2",17),h(443,"Accounting"),s(),a(444,"div",18)(445,"a",19),f("click",function(){return p(i),u(e.accountingInformation())}),A(),a(446,"svg",20),b(447,"path",21),s()()()(),G(),a(448,"div",22)(449,"div",23)(450,"div",24)(451,"div",25)(452,"span"),h(453,"Control Type:"),s(),a(454,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedAccountingInformationControl,c)||(e.selectedAccountingInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAccountingInformationControl(c))}),s()()()(),a(455,"div",27)(456,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAccountingInformationSaving(c))}),b(457,"dxo-paging",29),a(458,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(459,"dxi-column",31)(460,"dxi-column",32),a(461,"dxi-column",33),b(462,"dxi-validation-rule",34)(463,"dxi-validation-rule",35),S(464,ov,4,3,"div",36),s(),b(465,"dxi-column",37),a(466,"dxi-column",38),S(467,av,2,4,"span",39),s(),a(468,"dxi-column",40),S(469,rv,4,1,"div",41)(470,sv,2,2,"div",42),s(),a(471,"dxi-column",43),S(472,lv,4,1,"div",41)(473,dv,2,2,"div",42),s(),a(474,"dxi-column",44),S(475,cv,4,1,"div",41)(476,pv,2,1,"div",45),s()()()()()(),a(477,"div",15)(478,"div",12)(479,"div",16)(480,"h2",17),h(481,"Accounting Setup-Product"),s(),a(482,"div",18)(483,"a",19),f("click",function(){return p(i),u(e.accountingSetupProduct())}),A(),a(484,"svg",20),b(485,"path",21),s()()()(),G(),a(486,"div",22)(487,"div",23)(488,"div",24)(489,"div",25)(490,"span"),h(491,"Control Type:"),s(),a(492,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedAccountingSetupProductControl,c)||(e.selectedAccountingSetupProductControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAccountingSetupProductControl(c))}),s()()()(),a(493,"div",27)(494,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAccountingSetupProductSaving(c))}),b(495,"dxo-paging",29),a(496,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(497,"dxi-column",31)(498,"dxi-column",32),a(499,"dxi-column",33),b(500,"dxi-validation-rule",34)(501,"dxi-validation-rule",35),S(502,gv,4,3,"div",36),s(),b(503,"dxi-column",37),a(504,"dxi-column",38),S(505,hv,2,4,"span",39),s(),a(506,"dxi-column",40),S(507,fv,4,1,"div",41)(508,Cv,2,2,"div",42),s(),a(509,"dxi-column",43),S(510,_v,4,1,"div",41)(511,yv,2,2,"div",42),s(),a(512,"dxi-column",44),S(513,xv,4,1,"div",41)(514,vv,2,1,"div",45),s()()()()()(),a(515,"div",15)(516,"div",12)(517,"div",16)(518,"h2",17),h(519,"G/L Accounts"),s(),a(520,"div",18)(521,"a",19),f("click",function(){return p(i),u(e.eventAccountingEntitySetup())}),A(),a(522,"svg",20),b(523,"path",21),s()()()(),G(),a(524,"div",22)(525,"div",23)(526,"div",24)(527,"div",25)(528,"span"),h(529,"Control Type:"),s(),a(530,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedEventAccountingEntitySetupControl,c)||(e.selectedEventAccountingEntitySetupControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEventAccountingEntitySetupControl(c))}),s()()()(),a(531,"div",27)(532,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onEventAccountingEntitySetupSaving(c))}),b(533,"dxo-paging",29),a(534,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(535,"dxi-column",31)(536,"dxi-column",32),a(537,"dxi-column",33),b(538,"dxi-validation-rule",34)(539,"dxi-validation-rule",35),S(540,Sv,4,3,"div",36),s(),b(541,"dxi-column",37),a(542,"dxi-column",38),S(543,Pv,2,4,"span",39),s(),a(544,"dxi-column",40),S(545,Mv,4,1,"div",41)(546,Vv,2,2,"div",42),s(),a(547,"dxi-column",43),S(548,Ev,4,1,"div",41)(549,Tv,2,2,"div",42),s(),a(550,"dxi-column",44),S(551,Dv,4,1,"div",41)(552,Iv,2,1,"div",45),s()()()()()(),a(553,"div",15)(554,"div",12)(555,"div",16)(556,"h2",17),h(557,"Sponsors Information"),s(),a(558,"div",18)(559,"a",19),f("click",function(){return p(i),u(e.sponsorsInformation())}),A(),a(560,"svg",20),b(561,"path",21),s()()()(),G(),a(562,"div",22)(563,"div",23)(564,"div",24)(565,"div",25)(566,"span"),h(567,"Control Type:"),s(),a(568,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedSponsorsInformationControl,c)||(e.selectedSponsorsInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectSponsorsInformationControl(c))}),s()()()(),a(569,"div",27)(570,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProfileSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onSponsorsInformationSaving(c))}),b(571,"dxo-paging",29),a(572,"dxo-editing",30),_("changesChange",function(c){return p(i),C(e.changes,c)||(e.changes=c),u(c)}),s(),b(573,"dxi-column",31)(574,"dxi-column",32),a(575,"dxi-column",33),b(576,"dxi-validation-rule",34)(577,"dxi-validation-rule",35),S(578,kv,4,3,"div",36),s(),b(579,"dxi-column",37),a(580,"dxi-column",38),S(581,Rv,2,4,"span",39),s(),a(582,"dxi-column",40),S(583,Ov,4,1,"div",41)(584,Gv,2,2,"div",42),s(),a(585,"dxi-column",43),S(586,Bv,4,1,"div",41)(587,Fv,2,2,"div",42),s(),a(588,"dxi-column",44),S(589,Wv,4,1,"div",41)(590,Nv,2,1,"div",45),s()()()()()()()()()()(),a(591,"div",46)(592,"div",47)(593,"div",48)(594,"h2"),h(595,"Manage Values for "),a(596,"span"),h(597),s()()(),a(598,"div",49)(599,"div",50)(600,"dx-scroll-view",14),S(601,qv,10,1,"div",51),s()(),a(602,"div",52)(603,"a",53),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(604,"svg",54),b(605,"circle",55)(606,"path",56),s(),h(607," Add Value "),s()()(),G(),a(608,"div",57)(609,"a",58),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(610," Close "),s()()()(),a(611,"dx-popup",59),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(612,"div",60),S(613,Uv,4,1,"h2",61)(614,Hv,4,1,"h2",61),s(),a(615,"div",62)(616,"form",63)(617,"dx-validation-group",null,0)(619,"dx-form",64)(620,"dxi-item")(621,"div",65)(622,"div",66)(623,"dx-text-box",67),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(624,"dx-validator"),b(625,"dxi-validation-rule",68)(626,"dxi-validation-rule",69),s()()()()()()()()(),a(627,"div",70)(628,"dx-button",71),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(629,jv,1,0,"dx-button",72)(630,zv,1,0,"dx-button",73)(631,Zv,1,0,"dx-button",74),s()(),a(632,"dx-popup",59),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(633,"div",60)(634,"h2"),h(635,"Confirmation"),s()(),a(636,"div",62)(637,"p"),h(638,"Are you sure you want to delete "),a(639,"strong"),h(640,"Name"),s(),h(641," ?"),s()(),a(642,"div",70)(643,"dx-button",75),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(644,"dx-button",76),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(615,lx))("grouped",!0),o(5),l("ngClass",e.eventBasicInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventBasicInformationControlType),x("value",e.selectedEventBasicInformationControl),l("inputAttr",I(616,en)),o(2),l("dataSource",e.eventBasicInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventBasicInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.venueInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.venueInformationControlType),x("value",e.selectedVenueInformationControl),l("inputAttr",I(617,en)),o(2),l("dataSource",e.venueInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncVenueInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.sessionCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.sessionManagementControlType),x("value",e.selectedSessionManagementControl),l("inputAttr",I(618,en)),o(2),l("dataSource",e.sessionManagementControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncSessionManagementValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.registrationInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.registrationInformationControlType),x("value",e.selectedRegistrationInformationControl),l("inputAttr",I(619,en)),o(2),l("dataSource",e.registrationInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRegistrationInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.registrationFormsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.registrationFormsControlType),x("value",e.selectedRegistrationFormsControl),l("inputAttr",I(620,en)),o(2),l("dataSource",e.registrationFormsControl
87s)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncRegistrationFormsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventRegistrationCustomFieldsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventRegistrationCustomFieldsControlType),x("value",e.selectedEventRegistrationCustomFieldsControl),l("inputAttr",I(621,en)),o(2),l("dataSource",e.eventRegistrationCustomFieldsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventRegistrationCustomFieldsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventGeneralSettingsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventGeneralSettingsControlType),x("value",e.selectedEventGeneralSettingsControl),l("inputAttr",I(622,en)),o(2),l("dataSource",e.eventGeneralSettingsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventGeneralSettingsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventRegistrationSettingsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventRegistrationSettingsControlType),x("value",e.selectedEventRegistrationSettingsControl),l("inputAttr",I(623,en)),o(2),l("dataSource",e.eventRegistrationSettingsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventRegistrationSettingsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventCancellationSettingsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventCancellationSettingsControlType),x("value",e.selectedEventCancellationSettingsControl),l("inputAttr",I(624,en)),o(2),l("dataSource",e.eventCancellationSettingsControl
87s)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventCancellationSettingsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventWaitListSettingsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventWaitListSettingsControlType),x("value",e.selectedEventWaitListSettingsControl),l("inputAttr",I(625,en)),o(2),l("dataSource",e.eventWaitListSettingsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventWaitListSettingsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.priceInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.priceInformationControlType),x("value",e.selectedPriceInformationControl),l("inputAttr",I(626,en)),o(2),l("dataSource",e.priceInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncPriceInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.accountingInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingInformationControlType),x("value",e.selectedAccountingInformationControl),l("inputAttr",I(627,en)),o(2),l("dataSource",e.accountingInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.accountingSetupProductCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingSetupProductControlType),x("value",e.selectedAccountingSetupProductControl),l("inputAttr",I(628,en)),o(2),l("dataSource",e.accountingSetupProductControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingSetupProductValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.eventAccountingEntitySetupCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.eventAccountingEntitySetupControlType),x("value",e.selectedEventAccountingEntitySetupControl),l("inputAttr",I(629,en)),o(2),l("dataSource",e.eventAccountingEntitySetupControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncEventAccountingEntitySetupValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.sponsorsInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.sponsorsInformationControlType),x("value",e.selectedSponsorsInformationControl),l("inputAttr",I(630,en)),o(2),l("dataSource",e.sponsorsInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncSponsorsInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(631,dx)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(632,cx)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(633,px)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var Qv=["addValueGroup"],Yv=()=>({"aria-label":"Entity"}),Kv=()=>({"aria-label":"Assign To"}),Jv=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Xv=()=>({"aria-label":"ControlName"}),$v=()=>({id:"elementId",class:"popup-outer delete-popup"}),eb=r=>({disabledDiv:r});function tb(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function ib(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,tb,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function nb(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function ob(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllListRequired,e)||(i.isAllListRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllListRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllListRequired)}}function ab(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onListRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function rb(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllListVisible,e)||(i.isAllListVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllListVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllListVisible)}}function sb(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onListVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function lb(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllListEditable,e)||(i.isAllListEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllListlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllListEditable)}}function db(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onListEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,eb,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function cb(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function pb(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function ub(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function mb(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function gb(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function hb(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var ks=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.formData={},this.isPermissionView=!1,this.stylingMode="outlined",this.labelMode="floating",this.entitiesModel=[],this.groupedEntites=[],this.selectedItemKeys=[],this.listInfoCollapseExpand=!1,this.isEditMode=!1,this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.listControls=[],this.listControlsTypes=[],this.allListControls=[],this.listCode="",this.selectedListControl="All",this.listControlType=[],this.isAllListRequired=!1,this.isAllListVisible=!1,this.isAllListEditable=!1,this.listType=[],this.changes=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.List);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetListProperty()})},this.asyncEligibilityValidation=E=>B(this,null,function*(){return!(this.listControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctListValidation=E=>B(this,null,function*(){return!(this.listControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}listInformation(){this.listInfoCollapseExpand=!this.listInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onListSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetListProperty(){this.listControlsTypes=[],this.loading=!0,this.propertyService.GetListPageControlsByPageName(M.PropertyPageName.ListInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allListControls=t.responseModel,this.filterListProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterListProperty(){this.listControls=this.allListControls,this.listControlsTypes=this.listControls,this.selectedListControl!=null&&this.selectedListControl!=null&&this.selectedListControl!="All"&&(this.listControls=this.listControls.filter(i=>i.formControlType==this.selectedListControl)),this.allListControls.forEach(i=>{this.listControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.listControlType.push(i.formControlType)}),this.listControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.listControlType.splice(0,0,"All"),this.isAllListRequired=!1,this.listControls.every(i=>i.isRequired==!0)&&(this.isAllListRequired=!0),this.isAllListEditable=!1,this.listControls.every(i=>i.isReadOnly==!0)&&(this.isAllListEditable=!0),this.isAllListVisible=!1,this.listControls.every(i=>i.isVisible==!0)&&(this.isAllListVisible=!0)}onSelectListType({value:t}){t==null&&(t=this.listType.length>0?this.listType[0].code:""),this.listCode=t,this.filterListProperty()}onSelectListControl({value:t}){this.selectedListControl=t,this.filterListProperty()}onListInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ListInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ListInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.listControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetListProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ListInformation.toString()))}}onAllListlEditableChanged(t){if(this.isAllListEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedListControl!=null&&this.selectedListControl!=null&&this.selectedListControl!="All"&&(n=this.selectedListControl),this.propertyService.Upd
87ateAllEditableFieldListControl(M.PropertyPageName.ListInformation.toString(),L.ListInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllListRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllListRequired=t.value;let n="";this.selectedListControl!=null&&this.selectedListControl!=null&&this.selectedListControl!="All"&&(n=this.selectedListControl),this.propertyService.UpdateAllRequireFieldListControl(M.PropertyPageName.ListInformation.toString(),L.ListInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllListVisibleChanged(t){if(this.isAllListVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedListControl!=null&&this.selectedListControl!=null&&this.selectedListControl!="All"&&(n=this.selectedListControl),this.propertyService.UpdateAllVisibleFieldListControl(M.PropertyPageName.ListInformation.toString(),L.ListInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onListRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onListVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onListEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetListProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.ListInformation.toString()&&this.GetListProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-list-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(Qv,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Lists","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"List Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"List Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"List Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.listInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedListControl,c)||(e.selectedListControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectListControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onListSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onListInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,ib,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,nb,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,ob,4,1,"div",41)(52,ab,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,rb,4,1,"div",41)(55,sb,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,lb,4,1,"div",41)(58,db,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,cb,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,pb,4,1,"h2",60)(82,ub,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,mb,1,0,"dx-button",71)(98,gb,1,0,"dx-button",72)(99,hb,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(112,"dx-button",75),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,Yv))("grouped",!0),o(5),l("ngClass",e.listInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.listControlType),x("value",e.selectedListControl),l("inputAttr",I(69,Kv)),o(2),l("dataSource",e.listControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctListValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,Jv)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,Xv)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,$v)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var Rs=(()=>{class r extends wt{constructor(t,n,e,i){super(),this.webStorageService=t,this.activatedRoute=n,this.router=e,this.taxonomyService=i,this.unsubscriber=new Ct,this.stylingMode="outlined",this.labelMode="floating",this.productCategoryId=0,this.productCategoryInformation=new uo,this.systemPageControls=[],this.demographicsEligibilityListMappings=[],this.totalDemographicsEligiblity=0,this.totalDemographicsControl=0,this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.activatedRoute.params.pipe(w(this.unsubscriber)).subscribe(d=>{this.productCategoryId=d.id,this.productCategoryId>0&&this.GetProductCategoryDetails()})}RedirectToEdit(){this.router.navigate(["admin/client/setting/properties/demographics-category/manage-demographics-category/"+this.productCategoryId+"/view"])}GetProductCategoryDetails(){this.productCategoryId&&(this.loading=!0,this.taxonomyService.GetDemographicsCategoryDetails(Number(this.productCategoryId)).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{if(this.loading=!1,t&&t.isSuccess)if(t.responseModel!=null&&t.responseModel!=null){let n=t.responseModel;this.productCategoryInformation=JSON.parse(JSON.stringify(n.productCategoryInformation)),this.productCategoryInformation.categoryCode=this.productCategoryInformation.categoryName,n.systemPageControls!=null&&n.systemPageControls.length>0&&(this.systemPageControls=JSON.parse(JSON.stringify(n.systemPageControls))),this.ResetSystemPageControlRowNo(),this.BindSystemPageControl(),n.demographicsEligibilityListMappings!=null&&n.demographicsEligibilityListMappings.length>0&&(this.demographicsEligibilityListMappings=JSON.parse(JSON.stringify(n.demographicsEligibilityListMappings))),this.ResetEligibilityRowNo(),this.BindEligibility()}else this.loading=!1,this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}ResetEligibilityRowNo(){let t=1;
87this.demographicsEligibilityListMappings.forEach(n=>{n.rowno=t,t=t+1})}ResetSystemPageControlRowNo(){let t=1;this.systemPageControls.forEach(n=>{n.rowno=t,t=t+1})}BindEligibility(){let t=this.demographicsEligibilityListMappings.filter(n=>n.isActive);this.totalDemographicsEligiblity=t.length,this.eligibilityDataSource=new kt({key:"rowno",data:t})}BindSystemPageControl(){let t=this.systemPageControls.filter(n=>n.isActive);this.totalDemographicsControl=t.length,this.pageControlsDataSource=new kt({key:"rowno",data:t})}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(Li),k(St),k(mn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-view-demographics-configuration"]],standalone:!0,features:[xt,Q],decls:77,vars:16,consts:[[1,"view-wrapper","view-event-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],["href","javascript:void(0)","routerLink","/admin/client/setting/properties/demographics-category",1,"breadcrumbs__link"],["href","javascript:void(0)","routerLink","/admin/client/setting/properties/demographics-category",1,"back-icon"],["width","20","height","13","viewBox","0 0 20 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19 12.4421C16.7981 10.334 14.8429 9.13788 13.1338 8.85341C11.4252 8.56929 9.7984 8.52624 8.2531 8.72459V12.5L1 6.33941L8.2531 0.5V4.08835C11.1101 4.106 13.5388 4.91 15.5395 6.5C17.5398 8.09 18.6935 10.0707 19 12.4421Z","stroke","#5C5C5C","stroke-linejoin","round"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],["href","javascript:void(0)",1,"btn","btn--preview",3,"click"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.50078 3.43002L9.14728 3.0764L8.79366 3.4299L1.96185 10.2595L1.8715 10.3498L1.83555 10.4724L1.38882 11.9958L1.13254 12.8697L2.00744 12.6168L3.50034 12.1853L3.62398 12.1496L3.71501 12.0586L10.5695 5.20637L10.9231 4.85288L10.5696 4.49927L9.50078 3.43002ZM10.9545 1.26901L10.1062 2.1183H9.38246L10.5944 0.906775C10.5944 0.906757 10.5944 0.906739 10.5944 0.906721C10.855 0.646316 11.2085 0.5 11.577 0.5C11.9274 0.5 12.2642 0.632284 12.5205 0.869149L12.5588 0.907477L13.0932 1.44167C13.0932 1.44169 13.0932 1.4417 13.0932 1.44172C13.3537 1.70223 13.5 2.05545 13.5 2.42372C13.5 2.79199 13.3537 3.14523 13.0932 3.40573C13.0932 3.40575 13.0932 3.40576 13.0932 3.40577L3.89272 12.6039L0.826836 13.49C0.826796 13.49 0.826756 13.49 0.826717 13.49C0.78271 13.5027 0.736107 13.5033 0.691769 13.4918C0.647391 13.4804 0.606931 13.4572 0.574602 13.4248C0.542271 13.3923 0.519257 13.3519 0.507941 13.3075L0.0253218 13.4308L0.50794 13.3075C0.496643 13.2633 0.497414 13.2168 0.51017 13.173C0.510191 13.1729 0.510212 13.1728 0.510234 13.1728L1.41745 10.0807L9.24391 2.2568L9.95926 2.97191L11.0281 4.0404L11.3816 4.39378L11.7351 4.0404L12.7314 3.04445L12.7314 3.0444C12.896 2.8798 12.9885 2.65654 12.9885 2.42372C12.9885 2.1909 12.896 1.96764 12.7314 1.80304L12.7311 1.80274L12.1961 1.26869C12.1961 1.26862 12.196 1.26856 12.1959 1.26849C12.0313 1.10407 11.8081 1.01173 11.5755 1.01173C11.3427 1.01173 11.1195 1.10414 10.9548 1.26869L10.9545 1.26901Z","fill","#5C5C5C","stroke","#0F0F0F"],[1,"manage-content-outer"],[1,"scroll-outer"],[1,"manage-content-outer__contents"],[1,"event-information-outer","event-info-box"],[1,"card-outer"],[1,"card-header"],[1,"card-header__title"],[1,"card-content"],[1,"event-information-box"],[1,"event-information-box__first-info"],[1,"event-information-box__items"],[1,"table-block","create-contact-table"],["id","gridContainer",1,"table-outer","users-table",3,"dataSource","repaintChangesOnly"],["dataField","sourceColumnName","caption","Control Name","alignment","left",3,"fixed"],["dataField","formControlType","caption","Control Type","alignment","left",3,"fixed"],["dataField","fieldCaption","caption","Label Name","alignment","left",3,"fixed"],["dataField","formControlTooltip","caption","ToolTip","alignment","left",3,"fixed"],["id","gridContainer1",1,"table-outer","users-table",3,"dataSource","repaintChangesOnly"],["dataField","listName","caption","
87List Name","alignment","left",3,"fixed"],["dataField","listReturnType","caption","List Return Type","alignment","left",3,"fixed"],["dataField","listCategory","caption","List Category","alignment","left",3,"fixed"],["dataField","listStructure","caption","List Structure","alignment","left",3,"fixed"],["dataField","listType","caption","List Type","alignment","left",3,"fixed"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Property Management"),s()(),a(9,"li",3)(10,"a",4),h(11," Common Property"),s()(),a(12,"li",3)(13,"a",5),h(14," Demographics Category "),s()(),a(15,"li",3),h(16," View Demographics Category "),s()(),a(17,"a",6),A(),a(18,"svg",7),b(19,"path",8),s(),h(20," Back "),s()(),G(),a(21,"div",9)(22,"div",10)(23,"h1",11),h(24," Law "),s(),a(25,"a",12),f("click",function(){return e.RedirectToEdit()}),A(),a(26,"svg",13),b(27,"path",14),s(),h(28," Edit "),s()()(),G(),a(29,"div",15)(30,"dx-scroll-view",16)(31,"div",17)(32,"div",18)(33,"div",19)(34,"div",20)(35,"h2",21),h(36,"Category Information"),s()(),a(37,"div",22)(38,"div",23)(39,"ul",24)(40,"li",25)(41,"span"),h(42,"ID"),s(),h(43),s(),a(44,"li",25)(45,"span"),h(46,"Category Name"),s(),h(47),s(),a(48,"li",25)(49,"span"),h(50,"Parent / Sub-Category"),s(),h(51),s()()()()()(),a(52,"div",18)(53,"div",19)(54,"div",20)(55,"h2",21),h(56,"Property"),s()(),a(57,"div",22)(58,"div",26)(59,"dx-data-grid",27),b(60,"dxi-column",28)(61,"dxi-column",29)(62,"dxi-column",30)(63,"dxi-column",31),s()()()()(),a(64,"div",18)(65,"div",19)(66,"div",20)(67,"h2",21),h(68,"Display For"),s()(),a(69,"div",22)(70,"div",26)(71,"dx-data-grid",32),b(72,"dxi-column",33)(73,"dxi-column",34)(74,"dxi-column",35)(75,"dxi-column",36)(76,"dxi-column",37),s()()()()()()()()()),n&2&&(o(43),O(" ",e.productCategoryInformation==null?null:e.productCategoryInformation.productCategoryId," "),o(4),O(" ",e.productCategoryInformation==null?null:e.productCategoryInformation.categoryName," "),o(4),O(" ",e.productCategoryInformation==null?null:e.productCategoryInformation.parentSubCategoryNames," "),o(8),l("dataSource",e.pageControlsDataSource)("repaintChangesOnly",!0),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(8),l("dataSource",e.eligibilityDataSource)("repaintChangesOnly",!0),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1),o(),l("fixed",!1))},dependencies:[bt,Ai,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,N,Ot,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color);font:var(--h1-font)!important}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.title-breadcrumb[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-right:1.8rem}.card-outer[_ngcontent-%COMP%]{background-color:var(--white-color);border-radius:5px;padding:2rem 3rem;transition:.35s ease}.card-outer.collapse[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{margin-bottom:0}.card-outer.collapse[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:rotate(180deg)}.card-outer.collapse[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{display:none}.card-header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:1.5rem}.card-header__title[_ngcontent-%COMP%]{width:auto;color:var(--primary-color)!important}.card-header__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.card-header__edit-collapse[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.card-header__edit-collapse[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%]{margin-left:2.5rem}.card-header__edit-collapse[_ngcontent-%COMP%] .collapse[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transition:.35s ease}.event-information-outer[_ngcontent-%COMP%]{width:100%;margin-bottom:2rem}.event-information-box[_ngcontent-%COMP%]{width:100%}.event-information-box__first-info[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0 0 1.5rem;list-style:none;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:flex-start}.event-information-box__items[_ngcontent-%COMP%]{min-width:10%;margin:0 1.5rem 0 0;padding:0 1.5rem 0 0;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color);border-right:1px solid var(--border-lighter)}.event-information-box__items[_ngcontent-%COMP%]:last-child{margin:0;padding:0;border:none}.event-information-box__items[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:0;margin:0;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.event-information-box__secondary-info[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0 0 1.5rem;list-style:none;border-bottom:1px solid var(--border-lighter);-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:flex-start}.event-information-box__tags[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0 0 1.5rem;list-style:none;border-bottom:1px solid var(--border-lighter)}.event-information-box__tags[_ngcontent-%COMP%] .event-information-box__list[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:0;padding:1rem 0 0}.event-information-box__tags[_ngcontent-%COMP%] .event-information-box__list[_ngcontent-%COMP%] .event-information-box__items[_ngcontent-%COMP%]{width:auto;list-style:none;margin:0 1rem 0 0;padding:.2rem 2.5rem .2rem 1rem;background-color:var(--tags-bg-color);border-radius:10px;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;border:none;font:var(--font-weight-500) var(--font-14) var(--font-family);position:relative}.event-information-box__tags[_ngcontent-%COMP%] .event-information-box__list[_ngcontent-%COMP%] .event-information-box__items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:absolute;top:3px;right:5px;display:inline-block;width:16px;height:16px}.event-information-box__tags[_ngcontent-%COMP%] .event-information-box__list[_ngcontent-%COMP%] .event-information-box__items.tag[_ngcontent-%COMP%]{padding:.2rem 1rem;min-width:inherit}.event-information-box[_ngcontent-%COMP%] .labels[_ngcontent-%COMP%]{display:block;padding:0;margin:0 0 .3rem;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.event-information-box__description[_ngcontent-%COMP%]{width:100%;margin:0 0 1.5rem;padding:0;list-style:none}.event-information-box__description[_ngcontent-%COMP%]:last-child{margin-bottom:0}.event-information-box__description[_ngcontent-%COMP%] .columns-desc[_ngcontent-%COMP%]{width:100%;margin:0}.life-cycle[_ngcontent-%COMP%]{width:100%;margin:0 0 1.8rem;padding:0 0 1.8rem;list-style:none;border-bottom:1px solid var(--border-lighter)}.life-cycle.life-cycle-duration[_ngcontent-%COMP%] .life-cycle__schedule[_ngcontent-%COMP%]:last-child .event-information-box__first-info[_ngcontent-%COMP%]{margin:0;padding:0;border:none}.life-cycle.life-cycle-duration[_ngcontent-%COMP%] .life-cycle__schedule[_ngcontent-%COMP%] .event-information-box__items[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center}.life-cycle.life-cycle-duration[_ngcontent-%COMP%] .life-cycle__schedule[_ngcontent-%COMP%] .event-information-box__items[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.life-cycle.life-cycle-duration[_ngcontent-%COMP%] .life-cycle__schedule[_ngcontent-%COMP%] .event-information-box__items[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:.5rem}.life-cycle[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;max-width:100%}.life-cycle__title[_ngcontent-%COMP%]{width:100%;position:relative;margin:0 0 1.5rem;padding:0 0 1.5rem}.life-cycle__title[_ngcontent-%COMP%]:after{content:"";position:absolute;
87left:0;bottom:0;width:40px;height:2px;background-color:var(--yellow-color)}.life-cycle__schedule[_ngcontent-%COMP%]{width:100%;margin:0;max-width:30%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;row-gap:1rem}.life-cycle__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color);margin-right:2.4rem;padding-right:2.4rem}.life-cycle__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:last-child{border:none;margin-right:0;padding-right:0}.life-cycle__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}.life-cycle__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--tag-color);padding-left:.5rem}.box-border-bottom[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-lighter);margin:0 0 1.5rem;padding:0 0 1.5rem}.box-border-top[_ngcontent-%COMP%]{border-top:1px solid var(--border-lighter);margin:1.5rem 0 0!important;padding:1.5rem 0 0!important}.grace-duration[_ngcontent-%COMP%]{align-items:flex-start;row-gap:0;margin:0 0 1.5rem!important;padding:0 0 1.5rem!important}.cancellations-enabled[_ngcontent-%COMP%]{align-items:flex-start;row-gap:0}.view-eligibility-info[_ngcontent-%COMP%]{width:100%;margin:0;padding:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;max-width:33%;align-items:flex-start;align-content:flex-start}.view-eligibility-info.additional-fee[_ngcontent-%COMP%]{padding-top:2rem}.view-eligibility-info.full-width[_ngcontent-%COMP%]{width:100%;max-width:100%}.view-eligibility-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding:0 0 0rem}.view-eligibility-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:after{display:none}.view-eligibility-info__title[_ngcontent-%COMP%]{width:100%;position:relative;margin:0 0 1.5rem;padding:0 0 1.5rem}.view-eligibility-info__title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.view-eligibility-info__title[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;width:40px;height:2px;background-color:var(--yellow-color)}.view-eligibility-info__schedule[_ngcontent-%COMP%]{width:100%;margin:0;max-width:50%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;row-gap:1rem}.view-eligibility-info__schedule.full-width[_ngcontent-%COMP%]{max-width:100%}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;font:var(--font-weight-400) var(--font-14) var(--font-family);color:var(--body-color);margin-right:2.4rem;padding-right:2.4rem}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:last-child{border:none;margin-right:0;padding-right:0}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem;margin-top:.3rem}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--tag-color);padding-left:.5rem}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span.price[_ngcontent-%COMP%]{color:var(--body-color)}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--link-color)}.view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--link-hover-color)}.benefits-pricing-info-block[_ngcontent-%COMP%]{width:100%;margin:1.5rem 0 0;padding:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%]{width:auto;max-width:30%;border-right:1px solid var(--border-lighter);padding-right:3rem;margin-right:3rem}@media (max-width: 1440px){.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%]{max-width:36%}}
87.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%]:last-child{margin:0;padding:0;border:none}.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%]{border-bottom:none}.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;margin-right:0;padding-right:0;align-items:flex-start}.benefits-pricing-info-block[_ngcontent-%COMP%] .view-eligibility-info[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:var(--font-weight-600)}.view-grace-period[_ngcontent-%COMP%]{padding-bottom:.5rem}.view-grace-period[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{border-right:1px solid var(--border-lighter);margin-right:1.5rem;padding-right:1.5rem;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--tag-color)}.view-grace-period[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:last-child{border:none;margin:0;padding:0}.view-grace-period[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--font-weight-600) var(--font-14) var(--font-family);margin-right:.8rem;color:var(--body-color)}.view-accounting-box[_ngcontent-%COMP%] .view-grace-period[_ngcontent-%COMP%]{width:100%;margin-bottom:1.8rem;padding-bottom:1.8rem;border-bottom:1px solid var(--border-lighter)}.view-accounting-box[_ngcontent-%COMP%] .view-grace-period[_ngcontent-%COMP%]:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.promotions-membership-status[_ngcontent-%COMP%]{margin-bottom:1rem}.promotions-membership-status[_ngcontent-%COMP%]:last-child{margin:0}.membership-cancellation-policy[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%], .accounting-setup-product[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:inline-block;-webkit-flex-wrap:wrap;flex-wrap:wrap;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color);margin-right:2rem;padding-right:2rem;min-width:165px}.membership-cancellation-policy[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .accounting-setup-product[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{width:100%;display:block;padding:0;margin:0 0 .3rem;font:var(--font-weight-500) var(--font-13) var(--font-family);color:var(--drop-arrow-color)}.membership-cancellation-policy.product-setup[_ngcontent-%COMP%], .accounting-setup-product.product-setup[_ngcontent-%COMP%]{border:none!important;margin-bottom:.5rem!important}.policy-terms[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{color:var(--primary-color);font:var(--font-weight-500) var(--font-14) var(--font-family);border-right:1px solid var(--border-lighter)}.policy-terms[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.policy-terms[_ngcontent-%COMP%] .view-eligibility-info__schedule[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:last-child{margin:0;border:none}.price-structure-table-view[_ngcontent-%COMP%]{width:calc(100% - 2px);border-radius:5px;padding:2rem 2rem 1.5rem;background-repeat:no-repeat;background-position:0 0,0 0,100% 0,0 100%;background-size:1px 100%,100% 1px,1px 100%,100% 1px;background-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(90deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10
87px),repeating-linear-gradient(180deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px),repeating-linear-gradient(270deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px);border-image:repeating-linear-gradient(0deg,var(--input-focused-color),var(--input-focused-color) 5px,transparent 5px,transparent 10px);margin:0 1px;transition:.35s ease;margin-bottom:1.5rem}.price-structure-table-view.hide[_ngcontent-%COMP%]{display:none}.price-structure-table-view.show[_ngcontent-%COMP%]{display:block}.price-structure-table-view[_ngcontent-%COMP%] .price-structure-table-view[_ngcontent-%COMP%]{background-image:none;padding:0}.price-structure-table-view[_ngcontent-%COMP%] .eligibility-preview[_ngcontent-%COMP%]{width:100%;margin:0 0 1.2rem;padding:0;display:flex;justify-content:space-between;align-items:center}.price-structure-table-view[_ngcontent-%COMP%] .eligibility-preview[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:var(--h3-color)}.price-structure-table-view[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column2[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column3[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column4[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column5[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column6[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column7[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column8[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column9[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column10[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column11[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column12[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column13[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column14[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column15[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column16[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column17[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column18[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column19[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column20[_ngcontent-%COMP%]{width:230px;min-width:230px;margin:0;padding:0 2rem}.price-structure-table-view[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column2[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column3[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column4[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column5[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column6[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column7[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column8[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column9[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column10[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column11[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column12[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column13[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column14[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column15[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column16[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column17[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column18[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column19[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-table-column20[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;display:block;font:var(--font-weight-400) var(--font-12) var(--font-family);color:var(--label-text-color);padding-top:1rem;margin-bottom:-.6rem}.price-structure-table-view__header[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;border-bottom:1px solid var(--border-lighter);padding:0 0 1.2rem;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--thead-color)}.price-structure-table-view__header[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%]{padding-left:0;position:sticky;left:0;background-color:var(--white-color);z-index:9}.price-structure-table-view__body[_ngcontent-%COMP%]{width:100%}.price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-velue[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-lighter);padding:1.2rem 0}.price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column2[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column3[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column4[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column5[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column6[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column7[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column8[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column9[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column10[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column11[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column12[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column13[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column14[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column15[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column16[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column17[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column18[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column19[_ngcontent-%COMP%], .price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column20[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--body-color)}.price-structure-table-view[_ngcontent-%COMP%] .structure-label[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%]{position:sticky;left:0;background-color:var(--white-color);z-index:9}.price-structure-table-view[_ngcontent-%COMP%] .structure-velue[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-lighter);padding:0rem 0}.price-structure-table-view[_ngcontent-%COMP%] .structure-velue[_ngcontent-%COMP%] .structure-table-column1[_ngcontent-%COMP%]{padding:1em 0;display:flex;align-items:center;position:sticky;left:0;background-color:var(--white-color);z-index:9}.price-structure-table-view[_ngcontent-%COMP%] .structure-velue[_ngcontent-%COMP%]:last-child{border:none;padding-bottom:0}.price-structure-table-view[_ngcontent-%COMP%] .structure-velue[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{min-height:20px;padding-top:1rem;align-items:center;padding-bottom:1rem}.price-structure-table-view[_ngcontent-%COMP%] .number-block[_ngcontent-%COMP%]{width:100%;max-width:600px}.price-structure-table-view[_ngcontent-%COMP%] .number-block__flex-box[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.price-structure-table-view[_ngcontent-%COMP%] .column-boxs[_ngcontent-%COMP%]{width:100%;max-width:50%;margin-bottom:1rem}.price-structure-table-view[_ngcontent-%COMP%] .column-boxs[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-12) var(--font-family);color:var(--label-text-color);margin-bottom:.8rem}.price-structure-table-view[_ngcontent-%COMP%] .column-boxs[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--font-weight-600) var(--font-14) var(--font-family)}.price-structure-table-view[_ngcontent-%COMP%] .column-boxs[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;display:inline-block;font:var(--font-weight-400) var(--font-14) var(--font-family);color:var(--body-color)}.box.eligibility-box[_ngcontent-%COMP%]{position:relative;padding-left:0}.box.eligibility-box[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{display:none;position:absolute;
87left:0;top:0}.create-contact-table[_ngcontent-%COMP%]{margin-bottom:1.5rem}.audience-names[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{line-height:26px}.tag[_ngcontent-%COMP%]{font:var(--font-weight-500) var(--font-12) var(--font-family);color:var(--green-color);border:1px solid var(--green-color);padding:.2rem 1rem;border-radius:100px;display:inline-block}']})}}return r})();var fb=["TaxonomyTree"],Cb=()=>({"aria-label":"Entity"}),_b=()=>[15,30,50,100],yb=()=>({id:"elementId",class:"popup-outer delete-popup"}),xb=()=>[];function vb(r,g){r&1&&(a(0,"span",36),h(1,"\xA0"),s())}function bb(r,g){r&1&&(a(0,"span",37),b(1,"span"),s())}function wb(r,g){r&1&&(a(0,"span",38),b(1,"span"),s())}function Sb(r,g){r&1&&b(0,"span",39)}function Pb(r,g){if(r&1&&(a(0,"div")(1,"span"),S(2,vb,2,0,"span",32),s(),S(3,bb,2,0,"span",33)(4,wb,2,0,"span",34)(5,Sb,1,0,"span",35),h(6),s()),r&2){let t=g.$implicit;o(2),l("ngForOf",I(5,xb).constructor(t.row.node.level)),o(),l("ngIf",(t==null||t.row==null||t.row.node==null?null:t.row.node.hasChildren)&&t.row.isExpanded&&t.data.productType!==""),o(),l("ngIf",(t==null||t.row==null||t.row.node==null?null:t.row.node.hasChildren)&&!t.row.isExpanded&&t.data.productType!==""),o(),l("ngIf",t.data.productType===""),o(),O(" ",t.data.productCategory," ")}}function Mb(r,g){if(r&1&&b(0,"dx-drop-down-button",42),r&2){let t=m(2);l("showArrowIcon",!1)("useItemTextAsTitle",!1)("useSelectMode",!1)("items",t.actionMenu)}}function Vb(r,g){if(r&1&&(a(0,"div",40),S(1,Mb,1,4,"dx-drop-down-button",41),s()),r&2){let t=g.$implicit;o(),l("ngIf",t.data.isDemographics)}}var Os=(()=>{class r extends wt{constructor(t,n,e,i){super(),this.webStorageService=t,this.router=n,this.utilityService=e,this.taxonomyService=i,this.stylingMode="outlined",this.labelMode="floating",this.commonPropertiesType=[],this.demographicsData=[],this.unsubscriber=new Ct,this.actionMenu=[],this.demographicsCategoryId=0,this.deleteDemoCategoryPopup=!1,this.searchText="",this.productCategoryName="",this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.commonPropertiesType=this.commonPropertiesTypes,this.selectedValue="Demographics Category",this.actionMenu=[{value:"ViewCategory",text:"View",icon:"view",visible:!0,onClick:d=>{Number(this.demographicsCategoryId)>0&&this.router.navigate(["admin/client/setting/properties/demographics-category/view-demographics-category/"+this.demographicsCategoryId])}},{value:"EditCategory",text:"Edit",icon:"edit",visible:!0,onClick:d=>{Number(this.demographicsCategoryId)>0&&this.router.navigate(["admin/client/setting/properties/demographics-category/manage-demographics-category/"+this.demographicsCategoryId])}},{value:"DeleteCategory",text:"Remove",icon:"delete",onClick:d=>{this.deleteDemoCategoryPopup=!0}}],this.GetAllDemographicsCategoryRecords()}onValueChanged({value:t}){t=="Address Type"?this.router.navigate(["admin/client/setting/properties/address-configuration"]):t=="Email Address Type"?this.router.navigate(["admin/client/setting/properties/email-configuration"]):t=="Phone Type"?this.router.navigate(["admin/client/setting/properties/phone-configuration"]):t=="Demographics Category"?this.router.navigate(["admin/client/setting/properties/demographics-category"]):this.router.navigate(["admin/client/setting/properties/demographics-category"])}GetAllDemographicsCategoryRecords(){this.loading=!0,this.taxonomyService.GetDemographicsCategoryRecords().pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,this.demographicsData=[],t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.demographicsData=JSON.parse(JSON.stringify(t.responseModel)),this.taxonomyTree&&this.demographicsData&&this.demographicsData.forEach(n=>{n.productCategoryId&&(this.taxonomyTree.instance.isRowExpanded(n.productCategoryId)||this.taxonomyTree.instance.expandRow(n.productCategoryId))})):this.showErrorMessage(t.message)})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onTreeListRowClick(t){let n=t.data;n&&(this.demographicsCategoryId=n.productCategoryId,this.productCategoryName=n.productCategory)}
87closePopup(){this.deleteDemoCategoryPopup=!1}DeleteProductCategory(){this.taxonomyService.DeleteProductCategory(this.demographicsCategoryId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{t&&t.isSuccess?(this.showSuccessMessage("Demographic category has been deleted successfully"),this.deleteDemoCategoryPopup=!1,this.searchText=null,this.GetAllDemographicsCategoryRecords()):this.showErrorMessage(t.message)})},t=>{this.showErrorMessage(t.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(yt),k(St),k(di),k(mn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-demographics-configuration"]],viewQuery:function(n,e){if(n&1&&U(fb,5),n&2){let i;H(i=j())&&(e.taxonomyTree=i.first)}},standalone:!0,features:[xt,Q],decls:50,vars:35,consts:[["TaxonomyTree",""],[1,"view-wrapper","benefits-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],["text","Create","routerLink","/admin/client/setting/properties/demographics-category/manage-demographics-category","icon","plus","type","normal","stylingMode","contained",1,"btn","btn--primary"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Type","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","labelMode","dataSource","value","inputAttr"],[1,"manage-content-outer","benefit-table"],[1,"tree-table","table-full-height","group-tree-table-outer"],["id","demo-taxonomy-tree","keyExpr","productCategoryId","parentIdExpr","parentCategoryId","treeColumn","productCategory",1,"tree-table__table",3,"onRowClick","dataSource","autoExpandAll","showBorders","wordWrapEnabled"],["placeholder","Search by ID, Category & Sub Categories",3,"textChange","visible","width","text"],["name","searchPanel","location","before","locateInMenu","auto"],["mode","standard"],[3,"enabled"],[3,"pageSize","enabled"],["infoText","Page {0} of {1} ({2} Records)",3,"visible","showPageSizeSelector","showInfo","allowedPageSizes","showNavigationButtons"],["dataField","productCategoryId","caption","ID","alignment","left",3,"width"],["dataField","productCategory","cellTemplate","SubCategoryTemplate","caption","Category & Sub Categories",3,"width"],[4,"dxTemplate","dxTemplateOf"],["dataField","action","caption","Action","type","buttons","cellTemplate","EligibilityActionTemplate",3,"fixed","width"],["class","action-menu-btn",4,"dxTemplate","dxTemplateOf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["class","space-span",4,"ngFor","ngForOf"],["class","dx-treelist-empty-space dx-treelist-expanded",4,"ngIf"],["class","dx-treelist-empty-space dx-treelist-collapsed",4,"ngIf"],["class","dx-treelist-empty-space",4,"ngIf"],[1,"space-span"],[1,"dx-treelist-empty-space","dx-treelist-expanded"],[1,"dx-treelist-empty-space","dx-treelist-collapsed"],[1,"dx-treelist-empty-space"],[1,"action-menu-btn"],["icon","dot-icon","cssClass","TestingClass","class","overflow-menu","displayExpr","text","text","","stylingMode","text",3,"showArrowIcon","useItemTextAsTitle","useSelectMode","items",4,"ngIf"],["icon","dot-icon","cssClass","TestingClass","displayExpr","text","text","","stylingMode","text",1,"overflow-menu",3,"showArrowIcon","useItemTextAsTitle","useSelectMode","items"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4)(10,"a",5),h(11,"Common Property"),s()(),a(12,"li",4),h(13,"Demographics Category"),s()(),b(14,"dx-button",6),s(),a(15,"div",7)(16,"div",8)(17,"h1",9),h(18,"Demographics Category"),s(),a(19,"div",10)(20,"dx-select-box",11),_("valueChange",function(c){return p(i),C(e.selectedValue,c)||(e.selectedValue=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onValueChanged(c))}),s()()()(),a(21,"div",12)(22,"div",13)(23,"dx-tree-list",14,0),f("onRowClick",function(c){return p(i),u(e.onTreeListRowClick(c))}),a(25,"dxo-search-panel",15),_("textChange",function(c){return p(i),C(e.searchText,c)||(e.searchText=c),u(c)}),s(),a(26,"dxo-toolbar"),b(27,"dxi-item",16),s(),b(28,"dxo-scrolling",17)(29,"dxo-column-fixing",18)(30,"dxo-paging",19)(31,"dxo-pager",20)(32,"dxi-column",21),a(33,"dxi-column",22),S(34,Pb,7,6,"div",23),s(),a(35,"dxi-column",24),S(36,Vb,2,1,"div",25),s()()()()(),a(37,"dx-popup",26),_("visibleChange",function(c){return p(i),C(e.deleteDemoCategoryPopup,c)||(e.deleteDemoCategoryPopup=c),u(c)}),a(38,"div",27)(39,"h2"),h(40,"Confirmation"),s()(),a(41,"div",28)(42,"p"),h(43,'Are you sure you want to delete "'),a(44,"strong"),h(45),s(),h(46,'" ?'),s()(),a(47,"div",29)(48,"dx-button",30),f("onClick",function(){return p(i),u(e.closePopup())}),s(),a(49,"dx-button",31),f("onClick",function(){return p(i),u(e.DeleteProductCategory())}),s()()()}
87n&2&&(o(20),l("labelMode",e.labelMode)("dataSource",e.commonPropertiesType),x("value",e.selectedValue),l("inputAttr",I(32,Cb)),o(3),l("dataSource",e.demographicsData)("autoExpandAll",!0)("showBorders",!0)("wordWrapEnabled",!0),o(2),l("visible",!0)("width",300),x("text",e.searchText),o(4),l("enabled",!1),o(),l("pageSize",15)("enabled",!0),o(),l("visible",!0)("showPageSizeSelector",!0)("showInfo",!0)("allowedPageSizes",I(33,_b))("showNavigationButtons",!0),o(),l("width",200),ka("showExpandButtons",!1),o(),l("width",300),o(),l("dxTemplateOf","SubCategoryTemplate"),o(),l("fixed",!0)("width",150),o(),l("dxTemplateOf","EligibilityActionTemplate"),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deleteDemoCategoryPopup),l("wrapperAttr",I(34,yb)),o(8),R(e.productCategoryName))},dependencies:[bt,Ai,vt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Fi,Ot,ji,Nt,qn,zi,Ni,fe,Ce,_e,ye,xe,ve,be,yn,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,Je,Lt,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,cr,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:[".title-breadcrumb.max-width[_ngcontent-%COMP%]{max-width:1312px}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:110px;padding-left:1rem;padding-right:1.5rem}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%]{margin-left:-5px!important}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%] .dx-button-text[_ngcontent-%COMP%]{text-overflow:inherit}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0;color:var(--secondary-color);font-weight:var(--font-weight-500);white-space:nowrap}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 207px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}@media (max-width: 1440px){.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{height:calc(100vh - 176px)}}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:1rem 0 0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__item[_ngcontent-%COMP%]:last-child{border:none}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.table-outer[_ngcontent-%COMP%] .dx-treelist-container[_ngcontent-%COMP%]{background-color:var(--white-color);border-radius:5px;padding:2rem 2.5rem 1.5rem}.space-span[_ngcontent-%COMP%]{padding-left:40px}"]})}}return r})();var Eb=["addValueGroup"],Tb=()=>({"aria-label":"Entity"}),ya=()=>({"aria-label":"Assign To"}),Db=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Ib=()=>({"aria-label":"ControlName"}),Ab=()=>({id:"elementId",class:"popup-outer delete-popup"}),xa=r=>({disabledDiv:r});
87function Lb(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function kb(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,Lb,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Rb(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Ob(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllChartOfAccountRequired,e)||(i.isAllChartOfAccountRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllchartOfAccountsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllChartOfAccountRequired)}}function Gb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAllChartOfAccountRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Bb(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllChartOfAccountVisible,e)||(i.isAllChartOfAccountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllChartOfAccountVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllChartOfAccountVisible)}}function Fb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onChartOfAccountVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Wb(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTaxEditable,e)||(i.isAllTaxEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllChartOfAccountEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTaxEditable)}}function Nb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onChartOfAccountEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,xa,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function qb(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Ub(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,qb,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Hb(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function jb(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLOfAccountRequired,e)||(i.isAllGLOfAccountRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLOfAccountsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLOfAccountRequired)}}function zb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAllGLOfAccountRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Zb(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLOfAccountVisible,e)||(i.isAllGLOfAccountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLOfAccountVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLOfAccountVisible)}}function Qb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGLOfAccountVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Yb(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLEditable,e)||(i.isAllGLEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLOfAccountEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLEditable)}}function Kb(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGLOfAccountEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,xa,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function Jb(r,g){if(r&1){let t=y();a(0,"a",81),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",82),b(2,"path",83),s(),h(3," Manage "),s()}}function Xb(r,g){if(r&1&&(a(0,"div",78)(1,"span",79),h(2),s(),S(3,Jb,4,0,"a",80),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function $b(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function ew(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Required"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLAccountRequired,e)||(i.isAllGLAccountRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLAccountsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLAccountRequired)}}function tw(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAllGLAccountRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function iw(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Visible"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLAccountVisible,e)||(i.isAllGLAccountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLAccountVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLAccountVisible)}}function nw(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGLAccountVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function ow(r,g){if(r&1){let t=y();a(0,"div",84)(1,"span",85),h(2,"Editable"),s(),a(3,"dx-switch",86),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGLAccountsEditable,e)||(i.isAllGLAccountsEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGLAccountEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGLAccountsEditable)}}function aw(r,g){if(r&1){let t=y();a(0,"div",87)(1,"dx-switch",86),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGLAccountEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,xa,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function rw(r,g){if(r&1){let t=y();a(0,"div",88)(1,"span",89),h(2),s(),a(3,"div",90)(4,"a",91),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",92),b(6,"path",93),s()(),G(),a(7,"a",94),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",92),b(9,"path",95),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function sw(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function lw(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function dw(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function cw(r,g){if(r&1){let t=y();a(0,"dx-button",97),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function pw(r,g){if(r&1){let t=y();a(0,"dx-button",98),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Gs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.ChartAccountInfoCollapseExpand=!1,this.GlAccountInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.chartOfAccountControls=[],this.chartOfAccountControlsTypes=[],this.allChartOfAccountControls=[],this.taxCode="",this.selectedChartOfAccountControl="All",this.taxControlType=[],this.isAllChartOfAccountRequired=!1,this.isAllChartOfAccountVisible=!1,this.isAllTaxEditable=!1,this.taxType=[],this.selectedGLOfAccountControl="All",this.glControlType=[],this.GlOfAccountControls=[],this.glOfAccountControlsTypes=[],this.allGlAccountControls=[],this.isAllGLOfAccountRequired=!1,this.isAllGLOfAccountVisible=!1,this.isAllGLEditable=!1,this.GlInfoCollapseExpand=!1,this.selectedGLAccountControl="All",this.glofControlType=[],this.GlAccountControls=[],this.glAccountControlsTypes=[],this.allGlControls=[],this.isAllGLAccountRequired=!1,this.isAllGLAccountVisible=!1,this.isAllGLAccountsEditable=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.ChartOfAccounts);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetChartOfAccountProperty(),this.GetChartOfAccountForGLFormatProperty(),this.GetGLProperty()})},this.asynctTaxValidation=E=>B(this,null,function*(){return!(this.chartOfAccountControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctGLValidation=E=>B(this,null,function*(){return!(this.glOfAccountControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctGLAccountValidation=E=>B(this,null,function*(){return!(this.glAccountControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}chartOfAccountInformation(){this.ChartAccountInfoCollapseExpand=!this.ChartAccountInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.ChartOfAccounts.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}GetChartOfAccountProperty(){this.chartOfAccountControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ChartOfAccounts.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allChartOfAccountControls=t.responseModel,this.filterChartProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GetChartOfAccountForGLFormatProperty(){this.glOfAccountControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ChartOfAccounts.toString(),M.PropertyPageName.GLFormat.toString(),L.GLFormat.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allGlAccountControls=t.responseModel,this.filterGLProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onTaxSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterChartProperty(){this.chartOfAccountControls=this.allChartOfAccountControls,this.chartOfAccountControlsTypes=this.chartOfAccountControls,this.selectedChartOfAccountControl!=null&&this.selectedChartOfAccountControl!=null&&this.selectedChartOfAccountControl!="All"&&(this.chartOfAccountControls=this.chartOfAccountControls.filter(i=>i.formControlType==this.selectedChartOfAccountControl)),this.allChartOfAccountControls.forEac
87h(i=>{this.taxControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.taxControlType.push(i.formControlType)}),this.taxControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.taxControlType.splice(0,0,"All"),this.isAllChartOfAccountRequired=!1,this.chartOfAccountControls.every(i=>i.isRequired==!0)&&(this.isAllChartOfAccountRequired=!0),this.isAllTaxEditable=!1,this.chartOfAccountControls.every(i=>i.isReadOnly==!0)&&(this.isAllTaxEditable=!0),this.isAllChartOfAccountVisible=!1,this.chartOfAccountControls.every(i=>i.isVisible==!0)&&(this.isAllChartOfAccountVisible=!0)}onSelectTaxType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterChartProperty()}onSelectTaxControl({value:t}){this.selectedChartOfAccountControl=t,this.filterChartProperty()}onTaxInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.DefaultGLAccount.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.DefaultGLAccount.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.chartOfAccountControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetChartOfAccountProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.DefaultGLAccount.toString()))}}onAllChartOfAccountEditableChanged(t){if(this.isAllTaxEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllchartOfAccountsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllChartOfAccountRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllChartOfAccountVisibleChanged(t){if(this.isAllChartOfAccountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllChartOfAccountRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onChartOfAccountVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onChartOfAccountEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.DefaultGLAccount.toString()&&this.GetChartOfAccountProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}glOfAccountInformation(){this.GlAccountInfoCollapseExpand=!this.GlAccountInfoCollapseExpand}onGLSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterGLProperty(){this.GlOfAccountControls=this.allGlAccountControls,this.glOfAccountControlsTypes=this.GlOfAccountControls,this.selectedGLOfAccountControl!=null&&this.selectedGLOfAccountControl!=null&&this.selectedGLOfAccountControl!="All"&&(this.GlOfAccountControls=this.GlOfAccountControls.filter(i=>i.formControlType==this.selectedGLOfAccountControl)),this.allGlAccountControls.forEach(i=>{this.glControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.glControlType.push(i.formControlType)}),this.glControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.glControlType.splice(0,0,"All"),this.isAllGLOfAccountRequired=!1,this.GlOfAccountControls.every(i=>i.isRequired==!0)&&(this.isAllGLOfAccountRequired=!0),this.isAllGLEditable=!1,this.GlOfAccountControls.every(i=>i.isReadOnly==!0)&&(this.isAllGLEditable=!0),this.isAllGLOfAccountVisible=!1,this.GlOfAccountControls.every(i=>i.isVisible==!0)&&(this.isAllGLOfAccountVisible=!0)}processSavingForGl(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.GLFormat.toString()&&this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectGLType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterGLProperty()}onSelectGLControl({value:t}){this.selectedGLOfAccountControl=t,this.filterGLProperty()}onGLInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.GLFormat.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.GLFormat.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.glOfAccountControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetChartOfAccountForGLFormatProperty():(t.cancel=!0,t.promise=this.processSavingForGl(n,M.PropertyPageName.GLFormat.toString()))}}onAllGLOfAccountEditableChanged(t){if(this.isAllGLEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;
87this.propertyService.UpdateAllEditableFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.GLFormat.toString(),L.GLFormat.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLOfAccountsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllGLOfAccountRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.GLFormat.toString(),L.GLFormat.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLOfAccountVisibleChanged(t){if(this.isAllGLOfAccountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.GLFormat.toString(),L.GLFormat.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLOfAccountRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGLOfAccountVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGLOfAccountEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountForGLFormatProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetGLProperty(){this.glAccountControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ChartOfAccounts.toString(),M.PropertyPageName.Accounts.toString(),L.Accounts.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allGlControls=t.responseModel,this.filterGLAccountProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}glAccountInformation(){this.GlInfoCollapseExpand=!this.GlInfoCollapseExpand}onGLAccountSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterGLAccountProperty(){this.GlAccountControls=this.allGlControls,this.glAccountControlsTypes=this.GlAccountControls,this.selectedGLAccountControl!=null&&this.selectedGLAccountControl!=null&&this.selectedGLAccountControl!="All"&&(this.GlAccountControls=this.GlAccountControls.filter(i=>i.formControlType==this.selectedGLAccountControl)),this.allGlControls.forEach(i=>{this.glofControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.glofControlType.push(i.formControlType)}),this.glofControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.glofControlType.splice(0,0,"All"),this.isAllGLAccountRequired=!1,this.GlAccountControls.every(i=>i.isRequired==!0)&&(this.isAllGLAccountRequired=!0),this.isAllGLAccountsEditable=!1,this.GlAccountControls.every(i=>i.isReadOnly==!0)&&(this.isAllGLAccountsEditable=!0),this.isAllGLAccountVisible=!1,this.GlAccountControls.every(i=>i.isVisible==!0)&&(this.isAllGLAccountVisible=!0)}processSavingForGlAccount(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.Upd
87ateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.Accounts.toString()&&this.GetGLProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectGLAccountType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterGLAccountProperty()}onSelectGLAccountControl({value:t}){this.selectedGLAccountControl=t,this.filterGLAccountProperty()}onGLAccountInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Accounts.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Accounts.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.glAccountControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetGLProperty():(t.cancel=!0,t.promise=this.processSavingForGlAccount(n,M.PropertyPageName.Accounts.toString()))}}onAllGLAccountEditableChanged(t){if(this.isAllGLAccountsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.Accounts.toString(),L.Accounts.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLAccountsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllGLAccountRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.Accounts.toString(),L.Accounts.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLAccountVisibleChanged(t){if(this.isAllGLAccountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ChartOfAccounts.toString(),M.PropertyPageName.Accounts.toString(),L.Accounts.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGLAccountRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGLAccountVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGLAccountEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGLProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-chart-of-account-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(Eb,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:179,vars:151,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Chart Of Accounts","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate6",3,"fixed","allowEditing","width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate5",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate4",3,"fixed","allowEditing","width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate7",3,"fixed","allowEditing","width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate8",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate9",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),h(4,"Chart Of Account Configuration"),s(),a(5,"div",5)(6,"dx-select-box",6),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(7,"div",7)(8,"form",8)(9,"div",9)(10,"dx-scroll-view",10)(11,"div",11)(12,"div",8)(13,"div",12)(14,"h2",13),h(15,"Default GL Account Information"),s(),a(16,"div",14)(17,"a",15),f("click",function(){return p(i),u(e.chartOfAccountInformation())}),A(),a(18,"svg",16),b(19,"path",17),s()()()(),G(),a(20,"div",18)(21,"div",19)(22,"div",20)(23,"div",21)(24,"span"),h(25,"Control Type:"),s(),a(26,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedChartOfAccountControl,c)||(e.selectedChartOfAccountControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectTaxControl(c))}),s()()()(),a(27,"div",23)(28,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onTaxSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onTaxInfoSaving(c))}),b(29,"dxo-paging",25)(30,"dxo-editing",26)(31,"dxi-column",27)(32,"dxi-column",28),a(33,"dxi-column",29),b(34,"dxi-validation-rule",30)(35,"dxi-validation-rule",31),S(36,kb,4,3,"div",32),s(),b(37,"dxi-column",33),a(38,"dxi-column",34),S(39,Rb,2,4,"span",35),s(),a(40,"dxi-column",36),S(41,Ob,4,1,"div",37)(42,Gb,2,2,"div",38),s(),a(43,"dxi-column",39),S(44,Bb,4,1,"div",37)(45,Fb,2,2,"div",38),s(),a(46,"dxi-column",40),S(47,Wb,4,1,"div",37)(48,Nb,2,4,"div",38),s()()()()()(),a(49,"div",11)(50,"div",8)(51,"div",12)(52,"h2",13),h(53,"GL Format Information"),s(),a(54,"div",14)(55,"a",15),f("click",function(){return p(i),u(e.glOfAccountInformation())}),A(),a(56,"svg",16),b(57,"path",17),s()()()(),G(),a(58,"div",18)(59,"div",19)(60,"div",20)(61,"div",21)(62,"span"),h(63,"Control Type:"),s(),a(64,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedGLOfAccountControl,c)||(e.selectedGLOfAccountControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectGLControl(c))}),s()()()(),a(65,"div",23)(66,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onGLSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onGLInfoSaving(c))}),b(67,"dxo-paging",25)(68,"dxo-editing",26)(69,"dxi-column",27)(70,"dxi-column",28),a(71,"dxi-column",29),b(72,"dxi-validation-rule",30)(73,"dxi-validation-rule",31),S(74,Ub,4,3,"div",32),s(),b(75,"dxi-column",33),a(76,"dxi-column",34),S(77,Hb,2,4,"span",35),s(),a(78,"dxi-column",41),S(79,jb,4,1,"div",37)(80,zb,2,2,"div",38),s(),a(81,"dxi-column",42),S(82,Zb,4,1,"div",37)(83,Qb,2,2,"div",38),s(),a(84,"dxi-column",43),S(85,Yb,4,1,"div",37)(86,Kb,2,4,"div",38),s()()()()()(),a(87,"div",11)(88,"div",8)(89,"div",12)(90,"h2",13),h(91,"GL Account Information"),s(),a(92,"div",14)(93,"a",15),f("click",function(){return p(i),u(e.glAccountInformation())}),A(),a(94,"svg",16),b(95,"path",17),s()()()(),G(),a(96,"div",18)(97,"div",19)(98,"div",20)(99,"div",21)(100,"span"),h(101,"Control Type:"),s(),a(102,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedGLAccountControl,c)||(e.selectedGLAccountControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectGLAccountControl(c))}),s()()()(),a(103,"div",23)(104,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onGLAccountSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onGLAccountInfoSaving(c))}),b(105,"dxo-paging",25)(106,"dxo-editing",26)(107,"dxi-column",27)(108,"dxi-column",28),a(109,"dxi-column",29),b(110,"dxi-validation-rule",30)(111,"dxi-validation-rule",31),S(112,Xb,4,3,"div",32),s(),b(113,"dxi-column",33),a(114,"dxi-column",34),S(115,$b,2,4,"span",35),s(),a(116,"dxi-column",44),S(117,ew,4,1,"div",37)(118,tw,2,2,"div",38),s(),a(119,"dxi-column",45),S(120,iw,4,1,"div",37)(121,nw,2,2,"div",38),s(),a(122,"dxi-column",46),S(123,ow,4,1,"div",37)(124,aw,2,4,"div",38),s()()()()()()()()()()(),a(125,"div",47)(126,"div",48)(127,"div",49)(128,"h2"),h(129,"Manage Values for "),a(130,"span"),h(131),s()()(),a(132,"div",50)(133,"div",51)(134,"dx-scroll-view",10),S(135,rw,10,1,"div",52),s()(),a(136,"div",53)(137,"a",54),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}
87),A(),a(138,"svg",55),b(139,"circle",56)(140,"path",57),s(),h(141," Add Value "),s()()(),G(),a(142,"div",58)(143,"a",59),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(144," Close "),s()()()(),a(145,"dx-popup",60),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(146,"div",61),S(147,sw,4,1,"h2",62)(148,lw,4,1,"h2",62),s(),a(149,"div",63)(150,"form",64)(151,"dx-validation-group",null,0)(153,"dx-form",65)(154,"dxi-item")(155,"div",66)(156,"div",67)(157,"dx-text-box",68),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(158,"dx-validator"),b(159,"dxi-validation-rule",69)(160,"dxi-validation-rule",70),s()()()()()()()()(),a(161,"div",71)(162,"dx-button",72),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(163,dw,1,0,"dx-button",73)(164,cw,1,0,"dx-button",74)(165,pw,1,0,"dx-button",75),s()(),a(166,"dx-popup",60),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(167,"div",61)(168,"h2"),h(169,"Confirmation"),s()(),a(170,"div",63)(171,"p"),h(172,"Are you sure you want to delete "),a(173,"strong"),h(174,"Name"),s(),h(175," ?"),s()(),a(176,"div",71)(177,"dx-button",76),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(178,"dx-button",77),s()()}n&2&&(o(6),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(144,Tb))("grouped",!0),o(5),l("ngClass",e.ChartAccountInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.taxControlType),x("value",e.selectedChartOfAccountControl),l("inputAttr",I(145,ya)),o(2),l("dataSource",e.chartOfAccountControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctTaxValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.GlAccountInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.glControlType),x("value",e.selectedGLOfAccountControl),l("inputAttr",I(146,ya)),o(2),l("dataSource",e.GlOfAccountControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctGLValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate6"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate5"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate4"),o(),l("ngClass",e.GlInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.glofControlType),x("value",e.selectedGLAccountControl),l("inputAttr",I(147,ya)),o(2),l("dataSource",e.GlAccountControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctGLAccountValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate7"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate8"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate9"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(148,Db)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(149,Ib)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(150,Ab)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 175px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var uw=["addValueGroup"],mw=()=>({"aria-label":"Entity"}),vo=()=>({"aria-label":"Assign To"}),gw=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),hw=()=>({"aria-label":"ControlName"}),fw=()=>({id:"elementId",class:"popup-outer delete-popup"}),Jo=r=>({disabledDiv:r});function Cw(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",91),b(2,"path",92),s(),h(3," Manage "),s()}}function _w(r,g){if(r&1&&(a(0,"div",87)(1,"span",88),h(2),s(),S(3,Cw,4,0,"a",89),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function yw(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function xw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Required"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductAccountRequired,e)||(i.isAllProductAccountRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBasicRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductAccountRequired)}}function vw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBasicRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function bw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Visible"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllproductAccountVisible,e)||(i.isAllproductAccountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBasicVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllproductAccountVisible)}}function ww(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBasicVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Sw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Editable"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllproductAccountsEditable,e)||(i.isAllproductAccountsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBasicEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllproductAccountsEditable)}}function Pw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBasicEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Jo,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function Mw(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",91),b(2,"path",92),s(),h(3," Manage "),s()}}function Vw(r,g){if(r&1&&(a(0,"div",87)(1,"span",88),h(2),s(),S(3,Mw,4,0,"a",89),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Ew(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Tw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Required"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllChartOfAccountRequired,e)||(i.isAllChartOfAccountRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllchartOfAccountsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllChartOfAccountRequired)}}function Dw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAllChartOfAccountRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Iw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Visible"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllChartOfAccountVisible,e)||(i.isAllChartOfAccountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllChartOfAccountVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllChartOfAccountVisible)}}function Aw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onChartOfAccountVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Lw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Editable"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTaxEditable,e)||(i.isAllTaxEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllChartOfAccountEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTaxEditable)}}function kw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onChartOfAccountEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Jo,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function Rw(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",91),b(2,"path",92),s(),h(3," Manage "),s()}}function Ow(r,g){if(r&1&&(a(0,"div",87)(1,"span",88),h(2),s(),S(3,Rw,4,0,"a",89),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Gw(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Bw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Required"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGeneralSettingRequired,e)||(i.isAllGeneralSettingRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGeneralSettingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGeneralSettingRequired)}}function Fw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGeneralSettingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Ww(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Visible"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGeneralSettingVisible,e)||(i.isAllGeneralSettingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGeneralSettingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGeneralSettingVisible)}}function Nw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGeneralSettingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function qw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Editable"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllGeneralSettingEditable,e)||(i.isAllGeneralSettingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllGeneralSettingEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllGeneralSettingEditable)}}function Uw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onGeneralSettingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Jo,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function Hw(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",91),b(2,"path",92),s(),h(3," Manage "),s()}}function jw(r,g){if(r&1&&(a(0,"div",87)(1,"span",88),h(2),s(),S(3,Hw,4,0,"a",89),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function zw(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Zw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Required"),s(),a(3,"dx-switch",97),_("valueChange",function(e){p(t);let i=m();return C(i.isAllUnitRequired,e)||(i.isAllUnitRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllUnitRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllUnitRequired),l("ngClass",t.isAllUnitSystemProperty?"disabledDiv":"")}}function Qw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onUnitRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Yw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Visible"),s(),a(3,"dx-switch",97),_("valueChange",function(e){p(t);let i=m();return C(i.isAllUnitVisible,e)||(i.isAllUnitVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllUnitVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllUnitVisible),l("ngClass",t.isAllUnitSystemProperty?"disabledDiv":"")}}function Kw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onUnitVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Jw(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Editable"),s(),a(3,"dx-switch",97),_("valueChange",function(e){p(t);let i=m();return C(i.isAllUnitEditable,e)||(i.isAllUnitEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllUnitEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllUnitEditable),l("ngClass",t.isAllUnitSystemProperty?"disabledDiv":"")}}function Xw(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onUnitEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isReadOnly)}}function $w(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",91),b(2,"path",92),s(),h(3," Manage "),s()}}function e4(r,g){if(r&1&&(a(0,"div",87)(1,"span",88),h(2),s(),S(3,$w,4,0,"a",89),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function t4(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function i4(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Required"),s(),a(3,"dx-switch",97),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAttributeRequired,e)||(i.isAllAttributeRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAttributeRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAttributeRequired),l("ngClass",t.isAllAttributeSystemProperty?"disabledDiv":"")}}function n4(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAttributeRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function o4(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Visible"),s(),a(3,"dx-switch",97),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAttributeVisible,e)||(i.isAllAttributeVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAttributeVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAttributeVisible),l("ngClass",t.isAllAttributeSystemProperty?"disabledDiv":"")}}function a4(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAttributeVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function r4(r,g){if(r&1){let t=y();a(0,"div",93)(1,"span",94),h(2,"Editable"),s(),a(3,"dx-switch",95),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAttributeEditable,e)||(i.isAllAttributeEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAttributeEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAttributeEditable)}}function s4(r,g){if(r&1){let t=y();a(0,"div",96)(1,"dx-switch",95),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAttributeEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Jo,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function l4(r,g){r&1&&(A(),a(0,"svg",109),b(1,"path",110),s())}function d4(r,g){r&1&&(A(),a(0,"svg",111),b(1,"path",112),s())}function c4(r,g){if(r&1&&(a(0,"div",106),S(1,l4,2,0,"svg",107)(2,d4,2,0,"svg",108),s()),r&2){let t=m().$implicit;o(),l("ngIf",t.isInventory),o(),l("ngIf",!t.isInventory)}}function p4(r,g){if(r&1){let t=y();a(0,"a",113),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(1,"svg",114),b(2,"path",115),s()()}}function u4(r,g){if(r&1){let t=y();a(0,"a",116),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(1,"svg",114),b(2,"path",117),s()()}}function m4(r,g){if(r&1&&(a(0,"div",98)(1,"div",99)(2,"span",100),h(3),s()(),S(4,c4,3,2,"div",101),a(5,"div",102)(6,"div",103),S(7,p4,3,0,"a",104)(8,u4,3,0,"a",105),s()()()),r&2){let t=g.$implicit;o(3),R(t.lookupValue),o(),l("ngIf",!1),o(3),l("ngIf",!t.isSystemProperty),o(),l("ngIf",!t.isSystemProperty)}}function g4(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span",118),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function h4(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span",118),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function f4(r,g){if(r&1){let t=y();a(0,"dx-button",119),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function C4(r,g){if(r&1){let t=y();a(0,"dx-button",120),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function _4(r,g){if(r&1){let t=y();a(0,"dx-button",121),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Bs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.ChartAccountInfoCollapseExpand=!1,this.GeneralSettingInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.chartOfAccountControls=[],this.chartOfAccountControlsTypes=[],this.allChartOfAccountControls=[],this.taxCode="",this.selectedChartOfAccountControl="All",this.taxControlType=[],this.isAllChartOfAccountRequired=!1,this.isAllChartOfAccountVisible=!1,this.isAllTaxEditable=!1,this.taxType=[],this.selectedGeneralSettingControl="All",this.GeneralSettingControlType=[],this.GeneralSettingControls=[],this.GeneralSettingControlsTypes=[],this.allGeneralSettingControls=[],this.isAllGeneralSettingRequired=!1,this.isAllGeneralSettingVisible=!1,this.isAllGeneralSettingEditable=!1,this.BasicInfoCollapseExpand=!1,this.selectedBasicproductControl="All",this.basicProductofControlType=[],this.BasicProductControls=[],this.basicAccountControls=[],this.allbasicControls=[],this.isAllProductAccountRequired=!1,this.isAllproductAccountVisible=!1,this.isAllproductAccountsEditable=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.ProductSetting);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetChartOfAccountProperty(),this.GetGeneralSettingProperty(),this.GetBasicInformationProperty(),this.GetUnitProperty(),this.GetAttributeProperty()})},this.asynctTaxValidation=E=>B(this,null,function*(){return!(this.chartOfAccountControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctGeneralSettingValidation=E=>B(this,null,function*(){return!(this.GeneralSettingControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctBasicInformationValidation=E=>B(this,null,function*(){return!(this.basicAccountControls.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.selectedUnitControl="All",this.UnitControlType=[],this.UnitControls=[],this.UnitControlsTypes=[],this.allUnitControls=[],this.isAllUnitRequired=!1,this.isAllUnitVisible=!1,this.isAllUnitEditable=!1,this.UnitInfoCollapseExpand=!1,this.isAllUnitSystemProperty=!1,this.asynctUnitValidation=E=>B(this,null,function*(){return!(this.UnitControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.selectedAttributeControl="All",this.AttributeControlType=[],this.AttributeControls=[],this.AttributeControlsTypes=[],this.allAttributeControls=[],this.isAllAttributeRequired=!1,this.isAllAttributeVisible=!1,this.isAllAttributeEditable=!1,this.AttributeInfoCollapseExpand=!1,this.isAllAttributeSystemProperty=!1,this.asynctAttributeValidation=E=>B(this,null,function*(){return!(this.AttributeControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}chartOfAccountInformation(){this.ChartAccountInfoCollapseExpand=!this.ChartAccountInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.isInventory=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.event==null||t.value==null||(this.entityID=t.value,!(this.entityID==null||this.entityID==0)&&this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.ProductSetting.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}GetChartOfAccountProperty(){this.chartOfAccountControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ProductSettings.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allChartOfAccountControls=t.responseModel,this.filterChartProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}onTaxSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterChartProperty(){this.chartOfAccountControls=this.allChartOfAccountControls,this.chartOfAccountControlsTypes=this.chartOfAccountControls,this.selectedChartOfAccountControl!=null&&this.selectedChartOfAccountControl!=null&&this.selectedChartOfAccountControl!="All"&&(this.chartOfAccountControls=this.chartOfAccountControls.filter(i=>i.formControlType==this.selectedChartOfAccountControl)),this.allChartOfAccountControls.forEac
87h(i=>{this.taxControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.taxControlType.push(i.formControlType)}),this.taxControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.taxControlType.splice(0,0,"All"),this.isAllChartOfAccountRequired=!1,this.chartOfAccountControls.every(i=>i.isRequired==!0)&&(this.isAllChartOfAccountRequired=!0),this.isAllTaxEditable=!1,this.chartOfAccountControls.every(i=>i.isReadOnly==!0)&&(this.isAllTaxEditable=!0),this.isAllChartOfAccountVisible=!1,this.chartOfAccountControls.every(i=>i.isVisible==!0)&&(this.isAllChartOfAccountVisible=!0)}onSelectTaxType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterChartProperty()}onSelectTaxControl({value:t}){this.selectedChartOfAccountControl=t,this.filterChartProperty()}onTaxInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.DefaultGLAccount.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.DefaultGLAccount.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.chartOfAccountControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetChartOfAccountProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.DefaultGLAccount.toString()))}}onAllChartOfAccountEditableChanged(t){if(this.isAllTaxEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ProductSettings.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllchartOfAccountsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllChartOfAccountRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ProductSettings.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllChartOfAccountVisibleChanged(t){if(this.isAllChartOfAccountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ProductSettings.toString(),M.PropertyPageName.DefaultGLAccount.toString(),L.DefaultGLAccount.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllChartOfAccountRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onChartOfAccountVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onChartOfAccountEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetChartOfAccountProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.DefaultGLAccount.toString()&&this.GetChartOfAccountProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.isInventory=this.isInventory,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.isInventory=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.isInventory=this.isInventory,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isInventory=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isInventory=t.isInventory,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(t=>{t.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(t.message))},t=>{this.loading=!1,this.showErrorMessage(t.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}GetGeneralSettingProperty(){this.GeneralSettingControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ProductSettings.toString(),M.PropertyPageName.GeneralSettings.toString(),L.GeneralSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allGeneralSettingControls=t.responseModel,this.filterGeneralSettingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}GeneralSettingtInformation(){this.GeneralSettingInfoCollapseExpand=!this.GeneralSettingInfoCollapseExpand}onGeneralSettingSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterGeneralSettingProperty(){this.GeneralSettingControls=this.allGeneralSettingControls,this.GeneralSettingControlsTypes=this.GeneralSettingControls,this.selectedGeneralSettingControl!=null&&this.selectedGeneralSettingControl!=null&&this.selectedGeneralSettingControl!="All"&&(this.GeneralSettingControls=this.GeneralSettingControls.filter(i=>i.formControlType==this.selectedGeneralSettingControl)),this.allGeneralSettingControls.forEach(i=>{this.GeneralSettingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.GeneralSettingControlType.push(i.formControlType)}),this.GeneralSettingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.GeneralSettingControlType.splice(0,0,"All"),this.isAllGeneralSettingRequired=!1,this.GeneralSettingControls.every(i=>i.isRequired==!0)&&(this.isAllGeneralSettingRequired=!0),this.isAllGeneralSettingEditable=!1,this.GeneralSettingControls.every(i=>i.isReadOnly==!0)&&(this.isAllGeneralSettingEditable=!0),this.isAllGeneralSettingVisible=!1,this.GeneralSettingControls.every(i=>i.isVisible==!0)&&(this.isAllGeneralSettingVisible=!0)}processSavingForGeneralSetting(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.GeneralSettings.toString()&&this.GetGeneralSettingProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectGeneralSettingType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterGeneralSettingProperty()}onSelectGeneralSettingControl({value:t}){this.selectedGeneralSettingControl=t,this.filterGeneralSettingProperty()}onGeneralSettingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.GeneralSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.GeneralSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.GeneralSettingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetGeneralSettingProperty():(t.cancel=!0,t.promise=this.processSavingForGeneralSetting(n,M.PropertyPageName.GeneralSettings.toString()))}}onAllGeneralSettingEditableChanged(t){if(this.isAllGeneralSettingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;
87this.propertyService.UpdateAllEditableFieldControl(F.ProductSettings.toString(),M.PropertyPageName.GeneralSettings.toString(),L.GeneralSettings.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGeneralSettingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllGeneralSettingRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ProductSettings.toString(),M.PropertyPageName.GeneralSettings.toString(),L.GeneralSettings.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllGeneralSettingVisibleChanged(t){if(this.isAllGeneralSettingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ProductSettings.toString(),M.PropertyPageName.GeneralSettings.toString(),L.GeneralSettings.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGeneralSettingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGeneralSettingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onGeneralSettingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetGeneralSettingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetBasicInformationProperty(){this.basicAccountControls=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ProductSettings.toString(),M.PropertyPageName.BasicInformation.toString(),L.BasicInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allbasicControls=t.responseModel,this.filterBasicInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}BasicInformations(){this.BasicInfoCollapseExpand=!this.BasicInfoCollapseExpand}onBasicInformationSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterBasicInformationProperty(){this.BasicProductControls=this.allbasicControls,this.basicAccountControls=this.BasicProductControls,this.selectedBasicproductControl!=null&&this.selectedBasicproductControl!=null&&this.selectedBasicproductControl!="All"&&(this.BasicProductControls=this.BasicProductControls.filter(i=>i.formControlType==this.selectedBasicproductControl)),this.allbasicControls.forEach(i=>{this.basicProductofControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.basicProductofControlType.push(i.formControlType)}),this.basicProductofControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.basicProductofControlType.splice(0,0,"All"),this.isAllProductAccountRequired=!1,this.BasicProductControls.every(i=>i.isRequired==!0)&&(this.isAllProductAccountRequired=!0),this.isAllproductAccountsEditable=!1,this.BasicProductControls.every(i=>i.isReadOnly==!0)&&(this.isAllproductAccountsEditable=!0),this.isAllproductAccountVisible=!1,this.BasicProductControls.every(i=>i.isVisible==!0)&&(this.isAllproductAccountVisible=!0)}processSavingForBasicInformation(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.Upd
87ateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.BasicInformation.toString()&&this.GetBasicInformationProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectBasicType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterBasicInformationProperty()}onSelectBasicControl({value:t}){console.log(t,"value"),this.selectedBasicproductControl=t,this.filterBasicInformationProperty()}onBasicInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.BasicInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.BasicInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.basicAccountControls.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetBasicInformationProperty():(t.cancel=!0,t.promise=this.processSavingForBasicInformation(n,M.PropertyPageName.BasicInformation.toString()))}}onAllBasicEditableChanged(t){if(this.isAllproductAccountsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ProductSettings.toString(),M.PropertyPageName.BasicInformation.toString(),L.BasicInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBasicRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductAccountRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ProductSettings.toString(),M.PropertyPageName.BasicInformation.toString(),L.BasicInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBasicVisibleChanged(t){if(this.isAllproductAccountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ProductSettings.toString(),M.PropertyPageName.BasicInformation.toString(),L.BasicInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBasicRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBasicVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBasicEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBasicInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetUnitProperty(){this.UnitControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ProductSettings.toString(),M.PropertyPageName.UnitOfMeasureInformation.toString(),L.UnitOfMeasures.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allUnitControls=t.responseModel,this.filterUnitProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}UnitInformation(){this.UnitInfoCollapseExpand=!this.UnitInfoCollapseExpand}onUnitSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterUnitProperty(){this.UnitControls=this.allUnitControls,this.UnitControlsTypes=this.UnitControls,this.selectedUnitControl!=null&&this.selectedUnitControl!=null&&this.selectedUnitControl!="All"&&(this.UnitControls=this.UnitControls.filter(d=>d.formControlType==this.selectedUnitControl)),this.allUnitControls.forEach(d=>{this.UnitControlType.find(c=>c.toLowerCase()==d.formControlType.toLowerCase())==null&&this.UnitControlType.push(d.formControlType)}),this.UnitControlType.find(d=>d.toLowerCase()=="All".toLowerCase())==null&&this.UnitControlType.splice(0,0,"All"),this.isAllUnitRequired=!1,this.UnitControls.every(d=>d.isRequired==!0)&&(this.isAllUnitRequired=!0),this.isAllUnitEditable=!1,this.UnitControls.every(d=>d.isReadOnly==!0)&&(this.isAllUnitEditable=!0),this.isAllUnitVisible=!1,this.UnitControls.every(d=>d.isVisible==!0)&&(this.isAllUnitVisible=!0),this.isAllUnitSystemProperty=!1,this.UnitControls.every(d=>!d.isCanEdit)&&(this.isAllUnitSystemProperty=!0)}processSavingForUnit(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.UnitOfMeasureInformation.toString()&&this.GetUnitProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectUnitType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterUnitProperty()}onSelectUnitControl({value:t}){this.selectedUnitControl=t,this.filterUnitProperty()}onUnitInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.UnitOfMeasureInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.UnitOfMeasureInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.UnitControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetUnitProperty():(t.cancel=!0,t.promise=this.processSavingForUnit(n,M.PropertyPageName.UnitOfMeasureInformation.toString()))}}onAllUnitEditableChanged(t){if(this.isAllUnitEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ProductSettings.toString(),M.PropertyPageName.UnitOfMeasureInformation.toString(),L.UnitOfMeasures.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllUnitRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;
87this.isAllUnitRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ProductSettings.toString(),M.PropertyPageName.UnitOfMeasureInformation.toString(),L.UnitOfMeasures.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllUnitVisibleChanged(t){if(this.isAllUnitVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ProductSettings.toString(),M.PropertyPageName.UnitOfMeasureInformation.toString(),L.UnitOfMeasures.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onUnitRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onUnitVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onUnitEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetUnitProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAttributeProperty(){this.AttributeControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.ProductSettings.toString(),M.PropertyPageName.AttributeInformation.toString(),L.AttributeInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAttributeControls=t.responseModel,this.filterAttributeProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}AttributeInformation(){this.AttributeInfoCollapseExpand=!this.AttributeInfoCollapseExpand}onAttributeSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}filterAttributeProperty(){this.AttributeControls=this.allAttributeControls,this.AttributeControlsTypes=this.AttributeControls,this.selectedAttributeControl!=null&&this.selectedAttributeControl!=null&&this.selectedAttributeControl!="All"&&(this.AttributeControls=this.AttributeControls.filter(d=>d.formControlType==this.selectedAttributeControl)),this.allAttributeControls.forEach(d=>{this.AttributeControlType.find(c=>c.toLowerCase()==d.formControlType.toLowerCase())==null&&this.AttributeControlType.push(d.formControlType)}),this.AttributeControlType.find(d=>d.toLowerCase()=="All".toLowerCase())==null&&this.AttributeControlType.splice(0,0,"All"),this.isAllAttributeRequired=!1,this.AttributeControls.every(d=>d.isRequired==!0)&&(this.isAllAttributeRequired=!0),this.isAllAttributeEditable=!1,this.AttributeControls.every(d=>d.isReadOnly==!0)&&(this.isAllAttributeEditable=!0),this.isAllAttributeVisible=!1,this.AttributeControls.every(d=>d.isVisible==!0)&&(this.isAllAttributeVisible=!0),this.isAllAttributeSystemProperty=!1,this.AttributeControls.every(d=>!d.isCanEdit)&&(this.isAllAttributeSystemProperty=!0)}processSavingForAttribute(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.Upd
87ateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.AttributeInformation.toString()&&this.GetAttributeProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onSelectAttributeType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterAttributeProperty()}onSelectAttributeControl({value:t}){this.selectedAttributeControl=t,this.filterAttributeProperty()}onAttributeInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.AttributeInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.AttributeInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.AttributeControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAttributeProperty():(t.cancel=!0,t.promise=this.processSavingForAttribute(n,M.PropertyPageName.AttributeInformation.toString()))}}onAllAttributeEditableChanged(t){if(this.isAllAttributeEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldControl(F.ProductSettings.toString(),M.PropertyPageName.AttributeInformation.toString(),L.AttributeInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAttributeRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAttributeRequired=t.value,this.propertyService.UpdateAllRequiredFieldControl(F.ProductSettings.toString(),M.PropertyPageName.AttributeInformation.toString(),L.AttributeInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAttributeVisibleChanged(t){if(this.isAllAttributeVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldControl(F.ProductSettings.toString(),M.PropertyPageName.AttributeInformation.toString(),L.AttributeInformation.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAttributeRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAttributeVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAttributeEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAttributeProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-product-setting-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(uw,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:271,vars:231,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Product Settings","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate7",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate8",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate9",3,"fixed","allowEditing","width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate6",3,"fixed","allowEditing","width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate5",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate4",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],[1,"product-setting-table"],[1,"product-setting-list"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,""],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-field","full-width"],[1,"switch-btn"],[3,"valueChange","value"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[2,"margin","0",3,"valueChange","onValueChanged","value","ngClass"],[1,"manage-values__item"],[1,"product-name"],[1,"manage-values__label"],["class","product-status",4,"ngIf"],[1,"product-action"],[1,"manage-values__button"],["class","edit","href","javascript:void(0)",3,"click",4,"ngIf"],["class","delete","href","javascript:void(0)",3,"click",4,"ngIf"],[1,"product-status"],["width","16","height","13","viewBox","0 0 16 13","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["width","16","height","13","viewBox","0 0 16 13","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 8.50098C1 8.50098 2.5 8.50098 4.5 12.001C4.5 12.001 10.059 2.83398 15 1.00098","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11 1.00055L1 11.0005M1 1.00055L11 11.0005","stroke","#999999","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],[1,"property-add-value"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Product Setting Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Product Setting Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Product Category Basic Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.BasicInformations())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedBasicproductControl,c)||(e.selectedBasicproductControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectBasicControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onBasicInformationSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onBasicInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,_w,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,yw,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,xw,4,1,"div",41)(52,vw,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,bw,4,1,"div",41)(55,ww,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,Sw,4,1,"div",41)(58,Pw,2,4,"div",42),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Default GL Setup Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.chartOfAccountInformation())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedChartOfAccountControl,c)||(e.selectedChartOfAccountControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectTaxControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onTaxSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onTaxInfoSaving(c))}),b(77,"dxo-paging",29)(78,"dxo-editing",30)(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,Vw,4,3,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,Ew,2,4,"span",39),s(),a(88,"dxi-column",45),S(89,Tw,4,1,"div",41)(90,Dw,2,2,"div",42),s(),a(91,"dxi-column",46),S(92,Iw,4,1,"div",41)(93,Aw,2,2,"div",42),s(),a(94,"dxi-column",47),S(95,Lw,4,1,"div",41)(96,kw,2,4,"div",42),s()()()()()(),a(97,"div",15)(98,"div",12)(99,"div",16)(100,"h2",17),h(101,"General Setting Information"),s(),a(102,"div",18)(103,"a",19),f("click",function(){return p(i),u(e.GeneralSettingtInformation())}),A(),a(104,"svg",20),b(105,"path",21),s()()()(),G(),a(106,"div",22)(107,"div",23)(108,"div",24)(109,"div",25)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedGeneralSettingControl,c)||(e.selectedGeneralSettingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectGeneralSettingControl(c))}),s()()()(),a(113,"div",27)(114,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onGeneralSettingSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onGeneralSettingInfoSaving(c))}),b(115,"dxo-paging",29)(116,"dxo-editing",30)(117,"dxi-column",31)(118,"dxi-column",32),a(119,"dxi-column",33),b(120,"dxi-validation-rule",34)(121,"dxi-validation-rule",35),S(122,Ow,4,3,"div",36),s(),b(123,"dxi-column",37),a(124,"dxi-column",38),S(125,Gw,2,4,"span",39),s(),a(126,"dxi-column",48),S(127,Bw,4,1,"div",41)(128,Fw,2,2,"div",42),s(),a(129,"dxi-column",49),S(130,Ww,4,1,"div",41)(131,Nw,2,2,"div",42),s(),a(132,"dxi-column",50),S(133,qw,4,1,"div",41)(134,Uw,2,4,"div",42),s()()()()()(),a(135,"div",15)(136,"div",12)(137,"div",16)(138,"h2",17),h(139,"Unit of Measure Information"),s(),a(140,"div",18)(141,"a",19),f("click",function(){return p(i),u(e.UnitInformation())}),A(),a(142,"svg",20),b(143,"path",21),s()()()(),G(),a(144,"div",22)(145,"div",23)(146,"div",24)(147,"div",25)(148,"span"),h(149,"Control Type:"),s(),a(150,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedUnitControl,c)||(e.selectedUnitControl=c),u(c)}
87),f("onValueChanged",function(c){return p(i),u(e.onSelectUnitControl(c))}),s()()()(),a(151,"div",27)(152,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onUnitSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onUnitInfoSaving(c))}),b(153,"dxo-paging",29)(154,"dxo-editing",30)(155,"dxi-column",31)(156,"dxi-column",32),a(157,"dxi-column",33),b(158,"dxi-validation-rule",34)(159,"dxi-validation-rule",35),S(160,jw,4,3,"div",36),s(),b(161,"dxi-column",37),a(162,"dxi-column",38),S(163,zw,2,4,"span",39),s(),a(164,"dxi-column",48),S(165,Zw,4,2,"div",41)(166,Qw,2,2,"div",42),s(),a(167,"dxi-column",49),S(168,Yw,4,2,"div",41)(169,Kw,2,2,"div",42),s(),a(170,"dxi-column",50),S(171,Jw,4,2,"div",41)(172,Xw,2,2,"div",42),s()()()()()(),a(173,"div",15)(174,"div",12)(175,"div",16)(176,"h2",17),h(177,"Attribute Information"),s(),a(178,"div",18)(179,"a",19),f("click",function(){return p(i),u(e.AttributeInformation())}),A(),a(180,"svg",20),b(181,"path",21),s()()()(),G(),a(182,"div",22)(183,"div",23)(184,"div",24)(185,"div",25)(186,"span"),h(187,"Control Type:"),s(),a(188,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedAttributeControl,c)||(e.selectedAttributeControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAttributeControl(c))}),s()()()(),a(189,"div",27)(190,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onAttributeSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAttributeInfoSaving(c))}),b(191,"dxo-paging",29)(192,"dxo-editing",30)(193,"dxi-column",31)(194,"dxi-column",32),a(195,"dxi-column",33),b(196,"dxi-validation-rule",34)(197,"dxi-validation-rule",35),S(198,e4,4,3,"div",36),s(),b(199,"dxi-column",37),a(200,"dxi-column",38),S(201,t4,2,4,"span",39),s(),a(202,"dxi-column",48),S(203,i4,4,2,"div",41)(204,n4,2,2,"div",42),s(),a(205,"dxi-column",49),S(206,o4,4,2,"div",41)(207,a4,2,2,"div",42),s(),a(208,"dxi-column",50),S(209,r4,4,1,"div",41)(210,s4,2,4,"div",42),s()()()()()()()()()()(),a(211,"div",51)(212,"div",52)(213,"div",53)(214,"h2"),h(215,"Manage Values for "),a(216,"span"),h(217),s()()(),a(218,"div",54)(219,"div",55)(220,"dx-scroll-view",14)(221,"div",56)(222,"div",57),S(223,m4,9,4,"div",58),s()()()(),a(224,"div",59)(225,"a",60),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(226,"svg",61),b(227,"circle",62)(228,"path",63),s(),h(229," Add Value "),s()()(),G(),a(230,"div",64)(231,"a",65),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(232," Close "),s()()()(),a(233,"dx-popup",66),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(234,"div",67),S(235,g4,4,1,"h2",68)(236,h4,4,1,"h2",68),s(),a(237,"div",69)(238,"form",70)(239,"dx-validation-group",null,0)(241,"dx-form",71)(242,"dxi-item")(243,"div",72)(244,"div",73)(245,"dx-text-box",74),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(246,"dx-validator"),b(247,"dxi-validation-rule",75)(248,"dxi-validation-rule",76),s()()(),a(249,"div",77)(250,"div",78)(251,"dx-switch",79),_("valueChange",function(c){return p(i),C(e.isInventory,c)||(e.isInventory=c),u(c)}),s(),h(252,"Allow Inventory "),s()()()()()()()(),a(253,"div",80)(254,"dx-button",81),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(255,f4,1,0,"dx-button",82)(256,C4,1,0,"dx-button",83)(257,_4,1,0,"dx-button",84),s()(),a(258,"dx-popup",66),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(259,"div",67)(260,"h2"),h(261,"Confirmation"),s()(),a(262,"div",69)(263,"p"),h(264,"Are you sure you want to delete "),a(265,"strong"),h(266),s(),h(267," ?"),s()(),a(268,"div",80)(269,"dx-button",85),f("onClick",function(){return p(i),u(e.closePopup())}),s(),a(270,"dx-button",86),f("onClick",function(){return p(i),u(e.removeLookupValueDetails())}),s()()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(222,mw))("grouped",!0),o(5),l("ngClass",e.BasicInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.basicProductofControlType),x("value",e.selectedBasicproductControl),l("inputAttr",I(223,vo)),o(2),l("dataSource",e.BasicProductControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctBasicInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate7"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate8"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate9"),o(),l("ngClass",e.ChartAccountInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.taxControlType),x("value",e.selectedChartOfAccountControl),l("inputAttr",I(224,vo)),o(2),l("dataSource",e.chartOfAccountControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctTaxValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.GeneralSettingInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.GeneralSettingControlType),x("value",e.selectedGeneralSettingControl),l("inputAttr",I(225,vo)),o(2),l("dataSource",e.GeneralSettingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctGeneralSettingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate6"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate5"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate4"),o(),l("ngClass",e.UnitInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.UnitControlType),x("value",e.selectedUnitControl),l("inputAttr",I(226,vo)),o(2),l("dataSource",e.UnitControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctUnitValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate6"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate5"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate4"),o(),l("ngClass",e.AttributeInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.AttributeControlType),x("value",e.selectedAttributeControl),l("inputAttr",I(227,vo)),o(2),l("dataSource",e.AttributeControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctAttributeValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate6"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate5"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate4"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(6),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(228,gw)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(229,hw)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),x("value",e.isInventory),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(230,fw)),o(8),R(e.deleteValue))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}.inventory-available-table[_ngcontent-%COMP%]{width:100%}.inventory-is-available[_ngcontent-%COMP%]{display:flex;margin-left:1rem;height:15px;align-items:center}']})}}return r})();var y4=["addValueGroup"],x4=()=>({"aria-label":"Entity"}),v4=()=>({"aria-label":"Assign To"}),b4=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),w4=()=>({"aria-label":"ControlName"}),S4=()=>({id:"elementId",class:"popup-outer delete-popup"}),P4=r=>({disabledDiv:r});function M4(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function V4(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,M4,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function E4(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function T4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTaxRequired,e)||(i.isAllTaxRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTaxRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTaxRequired)}}function D4(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTaxRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function I4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTaxVisible,e)||(i.isAllTaxVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTaxVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTaxVisible)}}function A4(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTaxVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function L4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllTaxEditable,e)||(i.isAllTaxEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllTaxlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllTaxEditable)}}function k4(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onTaxEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,P4,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function R4(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function O4(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function G4(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function B4(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}
87function F4(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function W4(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Fs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.taxInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.taxControls=[],this.taxControlsTypes=[],this.allTaxControls=[],this.taxCode="",this.selectedTaxControl="All",this.taxControlType=[],this.isAllTaxRequired=!1,this.isAllTaxVisible=!1,this.isAllTaxEditable=!1,this.taxType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.Tax);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetTaxProperty()})},this.asynctTaxValidation=E=>B(this,null,function*(){return!(this.taxControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}taxInformation(){this.taxInfoCollapseExpand=!this.taxInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.event==null||t.value==null||(this.entityID=t.value,!(this.entityID==null||this.entityID==0)&&this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onTaxSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetTaxProperty(){this.taxControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Tax.toString(),M.PropertyPageName.TaxInformation.toString(),L.TaxInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allTaxControls=t.responseModel,this.filterTaxProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterTaxProperty(){this.taxControls=this.allTaxControls,this.taxControlsTypes=this.taxControls,this.selectedTaxControl!=null&&this.selectedTaxControl!=null&&this.selectedTaxControl!="All"&&(this.taxControls=this.taxControls.filter(i=>i.formControlType==this.selectedTaxControl)),this.allTaxControls.forEach(i=>{this.taxControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.taxControlType.push(i.formControlType)}),this.taxControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.taxControlType.splice(0,0,"All"),this.isAllTaxRequired=!1,this.taxControls.every(i=>i.isRequired==!0)&&(this.isAllTaxRequired=!0),this.isAllTaxEditable=!1,this.taxControls.every(i=>i.isReadOnly==!0)&&(this.isAllTaxEditable=!0),this.isAllTaxVisible=!1,this.taxControls.every(i=>i.isVisible==!0)&&(this.isAllTaxVisible=!0)}onSelectTaxType({value:t}){t==null&&(t=this.taxType.length>0?this.taxType[0].code:""),this.taxCode=t,this.filterTaxProperty()}onSelectTaxControl({value:t}){this.selectedTaxControl=t,this.filterTaxProperty()}onTaxInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.TaxInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.TaxInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";
87d.toString().trim().replace(/ /g,"")!=""?this.taxControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetTaxProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.TaxInformation.toString()))}}onAllTaxlEditableChanged(t){if(this.isAllTaxEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedTaxControl!=null&&this.selectedTaxControl!=null&&this.selectedTaxControl!="All"&&(n=this.selectedTaxControl),this.propertyService.UpdateAllEditableFieldControl(F.Tax.toString(),M.PropertyPageName.TaxInformation.toString(),L.TaxInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllTaxRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllTaxRequired=t.value;let n="";this.selectedTaxControl!=null&&this.selectedTaxControl!=null&&this.selectedTaxControl!="All"&&(n=this.selectedTaxControl),this.propertyService.UpdateAllRequiredFieldControl(F.Tax.toString(),M.PropertyPageName.TaxInformation.toString(),L.TaxInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllTaxVisibleChanged(t){if(this.isAllTaxVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedTaxControl!=null&&this.selectedTaxControl!=null&&this.selectedTaxControl!="All"&&(n=this.selectedTaxControl),this.propertyService.UpdateAllVisibleFieldControl(F.Tax.toString(),M.PropertyPageName.TaxInformation.toString(),L.TaxInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTaxRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTaxVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onTaxEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetTaxProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}
87n==M.PropertyPageName.TaxInformation.toString()&&this.GetTaxProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-tax-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(y4,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Tax Setup","displayExpr","name","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Tax Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Tax Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Tax Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.taxInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedTaxControl,c)||(e.selectedTaxControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectTaxControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onTaxSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onTaxInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,V4,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,E4,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,T4,4,1,"div",41)(52,D4,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,I4,4,1,"div",41)(55,A4,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,L4,4,1,"div",41)(58,k4,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,R4,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,O4,4,1,"h2",60)(82,G4,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,B4,1,0,"dx-button",71)(98,F4,1,0,"dx-button",72)(99,W4,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(112,"dx-button",75),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,x4))("grouped",!0),o(5),l("ngClass",e.taxInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.taxControlType),x("value",e.selectedTaxControl),l("inputAttr",I(69,v4)),o(2),l("dataSource",e.taxControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctTaxValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,b4)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,w4)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,S4)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var N4=["addValueGroup"],q4=()=>({"aria-label":"Entity"}),Ws=()=>({"aria-label":"Assign To"}),U4=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),H4=()=>({"aria-label":"ControlName"}),j4=()=>({id:"elementId",class:"popup-outer delete-popup"}),Ns=r=>({disabledDiv:r});function z4(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function Z4(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,z4,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Q4(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Y4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentRequired,e)||(i.isAllPaymentRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentRequired)}}function K4(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function J4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentVisible,e)||(i.isAllPaymentVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentVisible)}}function X4(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function $4(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentEditable,e)||(i.isAllPaymentEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentEditable)}}function e5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Ns,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function t5(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function i5(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,t5,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function n5(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function o5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentTermsRequired,e)||(i.isAllPaymentTermsRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentTermsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentTermsRequired)}}function a5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentTermsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function r5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentTermsVisible,e)||(i.isAllPaymentTermsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentTermsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentTermsVisible)}}function s5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentTermsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function l5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPaymentTermsEditable,e)||(i.isAllPaymentTermsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPaymentTermslEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPaymentTermsEditable)}}function d5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPaymentTermsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,Ns,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function c5(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function p5(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function u5(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function m5(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function g5(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function h5(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var qs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.paymentMethodInfoCollapseExpand=!1,this.paymentTermsInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.paymentControls=[],this.paymentControlsTypes=[],this.allPaymentControls=[],this.paymentCode="",this.selectedPaymentControl="All",this.paymentControlType=[],this.isAllPaymentRequired=!1,this.isAllPaymentVisible=!1,this.isAllPaymentEditable=!1,this.paymentType=[],this.paymentTermsControl
87s=[],this.paymentTermsControlsTypes=[],this.allPaymentTermsControls=[],this.paymentTermsCode="",this.selectedPaymentTermsControl="All",this.paymentTermsControlType=[],this.isAllPaymentTermsRequired=!1,this.isAllPaymentTermsVisible=!1,this.isAllPaymentTermsEditable=!1,this.paymentTermsType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.PaymentMethods);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetPaymentProperty(),this.GetPaymentTermsProperty()})},this.asynctPaymentValidation=E=>B(this,null,function*(){return!(this.paymentControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctPaymentTermsValidation=E=>B(this,null,function*(){return!(this.paymentTermsControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}paymentMethodInformation(){this.paymentMethodInfoCollapseExpand=!this.paymentMethodInfoCollapseExpand}paymentTermsInformation(){this.paymentTermsInfoCollapseExpand=!this.paymentTermsInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}onPaymentSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetPaymentProperty(){this.paymentControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.PaymentMethods.toString(),M.PropertyPageName.PaymentMethods.toString(),L.PaymentMethods.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPaymentControls=t.responseModel,this.filterPaymentProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPaymentProperty(){this.paymentControls=this.allPaymentControls,this.paymentControlsTypes=this.paymentControls,this.selectedPaymentControl!=null&&this.selectedPaymentControl!=null&&this.selectedPaymentControl!="All"&&(this.paymentControls=this.paymentControls.filter(i=>i.formControlType==this.selectedPaymentControl)),this.allPaymentControls.forEach(i=>{this.paymentControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.paymentControlType.push(i.formControlType)}),this.paymentControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.paymentControlType.splice(0,0,"All"),this.isAllPaymentRequired=!1,this.paymentControls.every(i=>i.isRequired==!0)&&(this.isAllPaymentRequired=!0),this.isAllPaymentEditable=!1,this.paymentControls.every(i=>i.isReadOnly==!0)&&(this.isAllPaymentEditable=!0),this.isAllPaymentVisible=!1,this.paymentControls.every(i=>i.isVisible==!0)&&(this.isAllPaymentVisible=!0)}onSelectPaymentType({value:t}){t==null&&(t=this.paymentType.length>0?this.paymentType[0].code:""),this.paymentCode=t,this.filterPaymentProperty()}onSelectPaymentControl({value:t}){this.selectedPaymentControl=t,this.filterPaymentProperty()}onPaymentInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.PaymentMethods.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.PaymentMethods.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.paymentControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPaymentProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.PaymentMethods.toString()))}}onAllPaymentlEditableChanged(t){if(this.isAllPaymentEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPaymentControl!=null&&this.selectedPaymentControl!=null&&this.selectedPaymentControl!="All"&&(n=this.selectedPaymentControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.PaymentMethods.toString(),M.PropertyPageName.PaymentMethods.toString(),L.PaymentMethods.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPaymentRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPaymentRequired=t.value;let n="";this.selectedPaymentControl!=null&&this.selectedPaymentControl!=null&&this.selectedPaymentControl!="All"&&(n=this.selectedPaymentControl),this.propertyService.UpdateAllRequiredFieldControl(F.PaymentMethods.toString(),M.PropertyPageName.PaymentMethods.toString(),L.PaymentMethods.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPaymentVisibleChanged(t){if(this.isAllPaymentVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPaymentControl!=null&&this.selectedPaymentControl!=null&&this.selectedPaymentControl!="All"&&(n=this.selectedPaymentControl),this.propertyService.UpdateAllVisibleFieldControl(F.PaymentMethods.toString(),M.PropertyPageName.PaymentMethods.toString(),L.PaymentMethods.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentTermsSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetPaymentTermsProperty(){this.paymentTermsControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.PaymentTerms.toString(),M.PropertyPageName.PaymentTerms.toString(),L.PaymentTerms.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPaymentTermsControls=t.responseModel,this.filterPaymentTermsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPaymentTermsProperty(){this.paymentTermsControls=this.allPaymentTermsControls,this.paymentTermsControlsTypes=this.paymentTermsControls,this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!="All"&&(this.paymentTermsControls=this.paymentTermsControls.filter(i=>i.formControlType==this.selectedPaymentTermsControl)),this.allPaymentTermsControls.forEach(i=>{this.paymentTermsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.paymentTermsControlType.push(i.formControlType)}),this.paymentTermsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.paymentTermsControlType.splice(0,0,"All"),this.isAllPaymentTermsRequired=!1,this.paymentTermsControl
87s.every(i=>i.isRequired==!0)&&(this.isAllPaymentTermsRequired=!0),this.isAllPaymentTermsEditable=!1,this.paymentTermsControls.every(i=>i.isReadOnly==!0)&&(this.isAllPaymentTermsEditable=!0),this.isAllPaymentTermsVisible=!1,this.paymentTermsControls.every(i=>i.isVisible==!0)&&(this.isAllPaymentTermsVisible=!0)}onSelectPaymentTermsType({value:t}){t==null&&(t=this.paymentTermsType.length>0?this.paymentTermsType[0].code:""),this.paymentTermsCode=t,this.filterPaymentTermsProperty()}onSelectPaymentTermsControl({value:t}){this.selectedPaymentTermsControl=t,this.filterPaymentTermsProperty()}onPaymentTermsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.PaymentTerms.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.PaymentTerms.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.paymentTermsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPaymentTermsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.PaymentTerms.toString()))}}onAllPaymentTermslEditableChanged(t){if(this.isAllPaymentTermsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!="All"&&(n=this.selectedPaymentTermsControl),this.propertyService.UpdateAllEditableFieldControl(F.PaymentTerms.toString(),M.PropertyPageName.PaymentTerms.toString(),L.PaymentTerms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPaymentTermsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPaymentTermsRequired=t.value;let n="";this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!="All"&&(n=this.selectedPaymentTermsControl),this.propertyService.UpdateAllRequiredFieldControl(F.PaymentTerms.toString(),M.PropertyPageName.PaymentTerms.toString(),L.PaymentTerms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPaymentTermsVisibleChanged(t){if(this.isAllPaymentTermsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!=null&&this.selectedPaymentTermsControl!="All"&&(n=this.selectedPaymentTermsControl),this.propertyService.UpdateAllVisibleFieldControl(F.PaymentTerms.toString(),M.PropertyPageName.PaymentTerms.toString(),L.PaymentTerms.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentTermsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentTermsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPaymentTermsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPaymentTermsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.PaymentMethods.toString()?this.GetPaymentProperty():n==M.PropertyPageName.PaymentTerms.toString()&&this.GetPaymentTermsProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-paymentmethods-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(N4,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:151,vars:112,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Payment Methods","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Payment Processing Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Payment Processing Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Payment Methods Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.paymentMethodInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPaymentControl,c)||(e.selectedPaymentControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPaymentControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onPaymentSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPaymentInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,Z4,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,Q4,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,Y4,4,1,"div",41)(52,K4,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,J4,4,1,"div",41)(55,X4,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,$4,4,1,"div",41)(58,e5,2,4,"div",42),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Payment Terms Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.paymentTermsInformation())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPaymentTermsControl,c)||(e.selectedPaymentTermsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPaymentTermsControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onPaymentTermsSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPaymentTermsInfoSaving(c))}),b(77,"dxo-paging",29)(78,"dxo-editing",30)(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,i5,4,3,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,n5,2,4,"span",39),s(),a(88,"dxi-column",40),S(89,o5,4,1,"div",41)(90,a5,2,2,"div",42),s(),a(91,"dxi-column",43),S(92,r5,4,1,"div",41)(93,s5,2,2,"div",42),s(),a(94,"dxi-column",44),S(95,l5,4,1,"div",41)(96,d5,2,4,"div",42),s()()()()()()()()()()(),a(97,"div",45)(98,"div",46)(99,"div",47)(100,"h2"),h(101,"Manage Values for "),a(102,"span"),h(103),s()()(),a(104,"div",48)(105,"div",49)(106,"dx-scroll-view",14),S(107,c5,10,1,"div",50),s()(),a(108,"div",51)(109,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(110,"svg",53),b(111,"circle",54)(112,"path",55),s(),h(113," Add Value "),s()()(),G(),a(114,"div",56)(115,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(116," Close "),s()()()(),a(117,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(118,"div",59),S(119,p5,4,1,"h2",60)(120,u5,4,1,"h2",60),s(),a(121,"div",61)(122,"form",62)(123,"dx-validation-group",null,0)(125,"dx-form",63)(126,"dxi-item")(127,"div",64)(128,"div",65)(129,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(130,"dx-validator"),b(131,"dxi-validation-rule",67)(132,"dxi-validation-rule",68),s()()()()()()()()(),a(133,"div",69)(134,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(135,m5,1,0,"dx-button",71)(136,g5,1,0,"dx-button",72)(137,h5,1,0,"dx-button",73),s()(),a(138,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(139,"div",59)(140,"h2"),h(141,"Confirmation"),s()(),a(142,"div",61)(143,"p"),h(144,"Are you sure you want to delete "),a(145,"strong"),h(146,"Name"),s(),h(147," ?"),s()(),a(148,"div",69)(149,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(150,"dx-button",75),s()()}
87n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(106,q4))("grouped",!0),o(5),l("ngClass",e.paymentMethodInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.paymentControlType),x("value",e.selectedPaymentControl),l("inputAttr",I(107,Ws)),o(2),l("dataSource",e.paymentControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctPaymentValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.paymentTermsInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.paymentTermsControlType),x("value",e.selectedPaymentTermsControl),l("inputAttr",I(108,Ws)),o(2),l("dataSource",e.paymentTermsControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctPaymentTermsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(109,U4)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(110,H4)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(111,j4)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;
87-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var Us=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=Z({type:r,selectors:[["app-paymentprocessing-configuration"]],standalone:!0,features:[Q],decls:2,vars:0,template:function(n,e){n&1&&(a(0,"p"),h(1,"paymentprocessing-configuration works!"),s())},dependencies:[bt,ie,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y]})}}return r})();var f5=["addValueGroup"],C5=()=>({"aria-label":"Entity"}),_5=()=>({"aria-label":"Assign To"}),y5=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),x5=()=>({"aria-label":"ControlName"}),v5=()=>({id:"elementId",class:"popup-outer delete-popup"}),b5=r=>({disabledDiv:r});function w5(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function S5(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,w5,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function P5(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function M5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCurrenciesRequired,e)||(i.isAllCurrenciesRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCurrenciesRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCurrenciesRequired)}}function V5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCurrenciesRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function E5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCurrenciesVisible,e)||(i.isAllCurrenciesVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCurrenciesVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCurrenciesVisible)}}function T5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCurrenciesVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function D5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllCurrenciesEditable,e)||(i.isAllCurrenciesEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllCurrencieslEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllCurrenciesEditable)}}function I5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onCurrenciesEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,b5,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function A5(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function L5(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function k5(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function R5(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function O5(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function G5(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Hs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={}
87,this.currenciesInfoCollapseExpand=!1,this.currenciesControls=[],this.currenciesControlsTypes=[],this.allCurrenciesControls=[],this.currenciesCode="",this.selectedCurrenciesControl="All",this.currenciesControlType=[],this.isAllCurrenciesRequired=!1,this.isAllCurrenciesVisible=!1,this.isAllCurrenciesEditable=!1,this.currenciesType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.Currencies);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetCurrenciesProperty()})},this.asynctCurrenciesValidation=E=>B(this,null,function*(){return!(this.currenciesControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}currenciesInformation(){this.currenciesInfoCollapseExpand=!this.currenciesInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}onCurrenciesSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetCurrenciesProperty(){this.currenciesControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Currencies.toString(),M.PropertyPageName.CurrenciesInformation.toString(),L.CurrenciesInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allCurrenciesControls=t.responseModel,this.filterCurrenciesProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterCurrenciesProperty(){this.currenciesControls=this.allCurrenciesControls,this.currenciesControlsTypes=this.currenciesControls,this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!="All"&&(this.currenciesControls=this.currenciesControls.filter(i=>i.formControlType==this.selectedCurrenciesControl)),this.allCurrenciesControls.forEach(i=>{this.currenciesControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.currenciesControlType.push(i.formControlType)}),this.currenciesControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.currenciesControlType.splice(0,0,"All"),this.isAllCurrenciesRequired=!1,this.currenciesControls.every(i=>i.isRequired==!0)&&(this.isAllCurrenciesRequired=!0),this.isAllCurrenciesEditable=!1,this.currenciesControls.every(i=>i.isReadOnly==!0)&&(this.isAllCurrenciesEditable=!0),this.isAllCurrenciesVisible=!1,this.currenciesControls.every(i=>i.isVisible==!0)&&(this.isAllCurrenciesVisible=!0)}onSelectCurrenciesType({value:t}){t==null&&(t=this.currenciesType.length>0?this.currenciesType[0].code:""),this.currenciesCode=t,this.filterCurrenciesProperty()}onSelectCurrenciesControl({value:t}){this.selectedCurrenciesControl=t,this.filterCurrenciesProperty()}onCurrenciesInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.CurrenciesInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.CurrenciesInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.currenciesControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetCurrenciesProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.CurrenciesInformation.toString()))}}onAllCurrencieslEditableChanged(t){if(this.isAllCurrenciesEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!="All"&&(n=this.selectedCurrenciesControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Currencies.toString(),M.PropertyPageName.CurrenciesInformation.toString(),L.CurrenciesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllCurrenciesRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllCurrenciesRequired=t.value;let n="";this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!="All"&&(n=this.selectedCurrenciesControl),this.propertyService.UpdateAllRequiredFieldControl(F.Currencies.toString(),M.PropertyPageName.CurrenciesInformation.toString(),L.CurrenciesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllCurrenciesVisibleChanged(t){if(this.isAllCurrenciesVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!=null&&this.selectedCurrenciesControl!="All"&&(n=this.selectedCurrenciesControl),this.propertyService.UpdateAllVisibleFieldControl(F.Currencies.toString(),M.PropertyPageName.CurrenciesInformation.toString(),L.CurrenciesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCurrenciesRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCurrenciesVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onCurrenciesEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetCurrenciesProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.CurrenciesInformation.toString()&&this.GetCurrenciesProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-currencies-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(f5,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Currencies","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUp
87dating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Currencies Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Currencies Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Currencies Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.currenciesInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedCurrenciesControl,c)||(e.selectedCurrenciesControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectCurrenciesControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onCurrenciesSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onCurrenciesInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,S5,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,P5,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,M5,4,1,"div",41)(52,V5,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,E5,4,1,"div",41)(55,T5,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,D5,4,1,"div",41)(58,I5,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,A5,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,L5,4,1,"h2",60)(82,k5,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,R5,1,0,"dx-button",71)(98,O5,1,0,"dx-button",72)(99,G5,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(112,"dx-button",75),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,C5))("grouped",!0),o(5),l("ngClass",e.currenciesInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.currenciesControlType),x("value",e.selectedCurrenciesControl),l("inputAttr",I(69,_5)),o(2),l("dataSource",e.currenciesControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctCurrenciesValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,y5)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,x5)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,v5)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var B5=["addValueGroup"],F5=()=>({"aria-label":"Entity"}),W5=()=>({"aria-label":"Assign To"}),N5=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),q5=()=>({"aria-label":"ControlName"}),U5=()=>({id:"elementId",class:"popup-outer delete-popup"}),H5=r=>({disabledDiv:r});function j5(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function z5(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,j5,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function Z5(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function Q5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionRequired,e)||(i.isAllPromotionRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionRequired)}}function Y5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function K5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionVisible,e)||(i.isAllPromotionVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionVisible)}}function J5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function X5(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllPromotionEditable,e)||(i.isAllPromotionEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllPromotionEditable)}}function $5(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,H5,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function e6(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function t6(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function i6(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function n6(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function o6(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function a6(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var js=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.taxInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.propmotionControls=[],this.promotionControlsTypes=[],this.allPromotionControls=[],this.promotionCode="",this.selectedPromotionControl
87="All",this.promotionControlType=[],this.isAllPromotionRequired=!1,this.isAllPromotionVisible=!1,this.isAllPromotionEditable=!1,this.promotionType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.Promotion);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetPromotionProperty()})},this.asynctPromotionValidation=E=>B(this,null,function*(){return!(this.promotionControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return!this.LookUpTableValues?.some(e=>e.lookupValue.trim()==n.trim()&&e.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId)}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.event==null||t.value==null||(this.entityID=t.value,!(this.entityID==null||this.entityID==0)&&this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Promotion.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onPromotionSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetPromotionProperty(){this.promotionControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Promotion.toString(),M.PropertyPageName.PromotionInformation.toString(),L.PromotionInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allPromotionControls=t.responseModel,this.filterPromotionProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPromotionProperty(){this.propmotionControls=this.allPromotionControls,this.promotionControlsTypes=this.propmotionControls,this.selectedPromotionControl!=null&&this.selectedPromotionControl!=null&&this.selectedPromotionControl!="All"&&(this.propmotionControls=this.propmotionControls.filter(i=>i.formControlType==this.selectedPromotionControl)),this.allPromotionControls.forEach(i=>{this.promotionControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.promotionControlType.push(i.formControlType)}),this.promotionControlType.find(i=>i.toLowerCase()=="all")==null&&this.promotionControlType.splice(0,0,"All"),this.isAllPromotionRequired=!1,this.propmotionControls.every(i=>i.isRequired==!0)&&(this.isAllPromotionRequired=!0),this.isAllPromotionEditable=!1,this.propmotionControls.every(i=>i.isReadOnly==!0)&&(this.isAllPromotionEditable=!0),this.isAllPromotionVisible=!1,this.propmotionControls.every(i=>i.isVisible==!0)&&(this.isAllPromotionVisible=!0)}onSelectPromotionType({value:t}){t==null&&(t=this.promotionType.length>0?this.promotionType[0].code:""),this.promotionCode=t,this.filterPromotionProperty()}onSelectPromotionControl({value:t}
87){this.selectedPromotionControl=t,this.filterPromotionProperty()}onPromotionInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.PromotionInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.PromotionInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.promotionControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPromotionProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.PromotionInformation.toString()))}}onAllPromotionlEditableChanged(t){if(this.isAllPromotionEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPromotionControl!=null&&this.selectedPromotionControl!=null&&this.selectedPromotionControl!="All"&&(n=this.selectedPromotionControl),this.propertyService.UpdateAllEditableFieldControl(F.Promotion.toString(),M.PropertyPageName.PromotionInformation.toString(),L.PromotionInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllPromotionRequired=t.value;let n="";this.selectedPromotionControl!=null&&this.selectedPromotionControl!=null&&this.selectedPromotionControl!="All"&&(n=this.selectedPromotionControl),this.propertyService.UpdateAllRequiredFieldControl(F.Promotion.toString(),M.PropertyPageName.PromotionInformation.toString(),L.PromotionInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionVisibleChanged(t){if(this.isAllPromotionVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedPromotionControl!=null&&this.selectedPromotionControl!=null&&this.selectedPromotionControl!="All"&&(n=this.selectedPromotionControl),this.propertyService.UpdateAllVisibleFieldControl(F.Promotion.toString(),M.PropertyPageName.PromotionInformation.toString(),L.PromotionInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}promotionInformation(){this.taxInfoCollapseExpand=!this.taxInfoCollapseExpand}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.PromotionInformation.toString()&&this.GetPromotionProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-promotion-configration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(B5,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Promotion","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Promotion Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Promotion Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Promotion Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.promotionInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedPromotionControl,c)||(e.selectedPromotionControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPromotionControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onPromotionSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPromotionInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,z5,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,Z5,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,Q5,4,1,"div",41)(52,Y5,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,K5,4,1,"div",41)(55,J5,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,X5,4,1,"div",41)(58,$5,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,e6,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,t6,4,1,"h2",60)(82,i6,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,n6,1,0,"dx-button",71)(98,o6,1,0,"dx-button",72)(99,a6,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(112,"dx-button",75),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,F5))("grouped",!0),o(5),l("ngClass",e.taxInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.promotionControlType),x("value",e.selectedPromotionControl),l("inputAttr",I(69,W5)),o(2),l("dataSource",e.propmotionControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctPromotionValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,N5)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,q5)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,U5)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var r6=["addValueGroup"],s6=()=>({"aria-label":"Entity"}),va=()=>({"aria-label":"Assign To"});function l6(r,g){if(r&1){let t=y();a(0,"a",48),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",49),b(2,"path",50),s(),h(3," Manage "),s()}}function d6(r,g){if(r&1&&(a(0,"div",45)(1,"span",46),h(2),s(),S(3,l6,4,0,"a",47),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function c6(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function p6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Required"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingRequired,e)||(i.isAllAccountingRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingRequired)}}function u6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function m6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Visible"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingVisible,e)||(i.isAllAccountingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingVisible)}}function g6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function h6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Editable"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingEditable,e)||(i.isAllAccountingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingEditable)}}function f6(r,g){if(r&1){let t=y();a(0,"div",55)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function C6(r,g){if(r&1){let t=y();a(0,"a",48),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",49),b(2,"path",50),s(),h(3," Manage "),s()}}function _6(r,g){if(r&1&&(a(0,"div",45)(1,"span",46),h(2),s(),S(3,C6,4,0,"a",47),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function y6(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function x6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Required"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductRequired,e)||(i.isAllAccountingSetupProductRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductRequired)}}function v6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function b6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Visible"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductVisible,e)||(i.isAllAccountingSetupProductVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductVisible)}}function w6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function S6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Editable"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllAccountingSetupProductEditable,e)||(i.isAllAccountingSetupProductEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetupProductEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllAccountingSetupProductEditable)}}function P6(r,g){if(r&1){let t=y();a(0,"div",55)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAccountingSetupProductEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function M6(r,g){if(r&1){let t=y();a(0,"a",48),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",49),b(2,"path",50),s(),h(3," Manage "),s()}}function V6(r,g){if(r&1&&(a(0,"div",45)(1,"span",46),h(2),s(),S(3,M6,4,0,"a",47),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function E6(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function T6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Required"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllFeesAccountingGLSetupRequired,e)||(i.isAllFeesAccountingGLSetupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllFeesAccountingGLSetupRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllFeesAccountingGLSetupRequired)}}function D6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onFeesAccountingGLSetupRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function I6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Visible"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllFeesAccountingGLSetupVisible,e)||(i.isAllFeesAccountingGLSetupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllFeesAccountingGLSetupVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllFeesAccountingGLSetupVisible)}}function A6(r,g){if(r&1){let t=y();a(0,"div",54)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onFeesAccountingGLSetupVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function L6(r,g){if(r&1){let t=y();a(0,"div",51)(1,"span",52),h(2,"Editable"),s(),a(3,"dx-switch",53),_("valueChange",function(e){p(t);let i=m();return C(i.isAllFeesAccountingGLSetupEditable,e)||(i.isAllFeesAccountingGLSetupEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllFeesAccountingGLSetupEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllFeesAccountingGLSetupEditable)}}function k6(r,g){if(r&1){let t=y();a(0,"div",55)(1,"dx-switch",53),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onFeesAccountingGLSetupEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}var zs=(()=>{class r extends wt{constructor(t,n,e,i){super(),this.router=t,this.propertyService=n,this.webStorageService=e,this.propertyManagementCommonService=i,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.AccountingCollapseExpand=!1,this.AccountingSetupProductCollapseExpand=!1,this.FeesAccountingGLSetupCollapseExpand=!1,this.accountingControls=[],this.accountingControlsTypes=[],this.allAccountingControls=[],this.accountingStatusCode="",this.selectedAccountingControl="All",this.accountingControlType=[],this.isAllAccountingRequired=!1,this.isAllAccountingVisible=!1,this.isAllAccountingEditable=!1,this.accountingType=[],this.accountingSetupProductControls=[],this.accountingSetupProductControlsTypes=[],this.allAccountingSetupProductControls=[],this.accountingSetupProductStatusCode="",this.selectedAccountingSetupProductControl="All",this.accountingSetupProductControlType=[],this.isAllAccountingSetupProductRequired=!1,this.isAllAccountingSetupProductVisible=!1,this.isAllAccountingSetupProductEditable=!1,this.feesAccountingGLSetupControls=[],this.feesAccountingGLSetupControlsTypes=[],this.allFeesAccountingGLSetupControls=[],this.feesAccountingGLSetupStatusCode="",this.selectedFeesAccountingGLSetupControl="All",this.feesAccountingGLSetupControlType=[],this.isAllFeesAccountingGLSetupRequired=!1,this.isAllFeesAccountingGLSetupVisible=!1,this.isAllFeesAccountingGLSetupEditable=!1,this.LookUpTableValues=[],this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.isEditMode=!1,this.isEditLookupValue=!1,this.selectedControlId=0,this.FilterActive=!1,this.addValuePopupPopup=!1,this.deletePopup=!1,this.entitiesModel=[],this.groupedEntites=[],this.changes=[],this.selectedItemKeys=[],this.gracePeriodConfigurationType=[],this.loadData=()=>{this.GetAccountingProperty(),this.GetAccountingSetupProductProperty(),this.GetFeesAccountingGLSetupProperty()},this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([d])=>({entitiesModel:d}))).subscribe(d=>{this.loading=!1,Object.keys(d).forEach(v=>this[v]=d[v].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(V=>V.entityType))].forEach(V=>{let E=new ui;E.category=V=="Entity"?"":V,E.entities=this.entitiesModel.filter(T=>T.entityType==V),this.groupedEntites.push(E)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(v){return v.key=v.category,v.items=v.entities,v}});let c=this.entitiesModel.find(v=>v.name==z.Fees);c&&(this.entityID=c.entityID),this.fromPregroupedData.load()})},this.asyncAccountingValidation=d=>B(this,null,function*(){return!(this.accountingControlsTypes.filter(v=>v.fieldCaption.replace(/ /g,"")==d.value.replace(/ /g,"")&&v.systemPageControlId!=d.data.systemPageControlId).length>0)}),this.asyncAccountingSetupProductValidation=d=>B(this,null,function*(){return!(this.accountingSetupProductControlsTypes.filter(v=>v.fieldCaption.replace(/ /g,"")==d.value.replace(/ /g,"")&&v.systemPageControlId!=d.data.systemPageControlId).length>0)}),this.asyncFeesAccountingGLSetupValidation=d=>B(this,null,function*(){return!(this.feesAccountingGLSetupControlsTypes.filter(v=>v.fieldCaption.replace(/ /g,"")==d.value.replace(/ /g,"")&&v.systemPageControlId!=d.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.loadData(),this.loadEntitiesData()}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entity
87ID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Contact.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}onProfileSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}AccountingsCollapseExpand(){this.AccountingCollapseExpand=!this.AccountingCollapseExpand}AccountingSetupProductsCollapseExpand(){this.AccountingSetupProductCollapseExpand=!this.AccountingSetupProductCollapseExpand}FeesAccountingsGLSetupCollapseExpand(){this.FeesAccountingGLSetupCollapseExpand=!this.FeesAccountingGLSetupCollapseExpand}GetAccountingProperty(){this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Fees.toString(),M.PropertyPageName.FeesInformation.toString(),L.FeesInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingControls=t.responseModel,this.filterAccountingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingProperty(){this.accountingControls=this.allAccountingControls,this.accountingControlsTypes=this.accountingControls,this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(this.accountingControls=this.accountingControls.filter(i=>i.formControlType==this.selectedAccountingControl)),this.allAccountingControls.forEach(i=>{this.accountingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingControlType.push(i.formControlType)}),this.accountingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingControlType.splice(0,0,"All"),this.isAllAccountingRequired=!1,this.accountingControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingRequired=!0),this.isAllAccountingEditable=!1,this.accountingControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingEditable=!0),this.isAllAccountingVisible=!1,this.accountingControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingVisible=!0)}onSelectAccountingType({value:t}){t==null&&(t=this.accountingControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterAccountingProperty()}onSelectAccountingControl({value:t}){this.selectedAccountingControl=t,this.filterAccountingProperty()}onAccountingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.FeesInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.FeesInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.FeesInformation.toString()))}}onAllAccountingEditableChanged(t){if(this.isAllAccountingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.UpdateAllEditableFieldControl(F.Fees.toString(),M.PropertyPageName.FeesInformation.toString(),L.FeesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingRequired=t.value;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.Upd
87ateAllRequiredFieldControl(F.Fees.toString(),M.PropertyPageName.FeesInformation.toString(),L.FeesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingVisibleChanged(t){if(this.isAllAccountingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingControl!=null&&this.selectedAccountingControl!=null&&this.selectedAccountingControl!="All"&&(n=this.selectedAccountingControl),this.propertyService.UpdateAllVisibleFieldControl(F.Fees.toString(),M.PropertyPageName.FeesInformation.toString(),L.FeesInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetAccountingSetupProductProperty(){this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Fees.toString(),M.PropertyPageName.FeeAccountingEntitySetup.toString(),L.FeeAccountingEntitySetup.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allAccountingSetupProductControls=t.responseModel,this.filterAccountingSetupProductProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterAccountingSetupProductProperty(){this.accountingSetupProductControls=this.allAccountingSetupProductControls,this.accountingSetupProductControlsTypes=this.accountingSetupProductControls,this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(this.accountingSetupProductControls=this.accountingSetupProductControls.filter(i=>i.formControlType==this.selectedAccountingSetupProductControl)),this.allAccountingSetupProductControls.forEach(i=>{this.accountingSetupProductControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.accountingSetupProductControlType.push(i.formControlType)}),this.accountingSetupProductControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.accountingSetupProductControlType.splice(0,0,"All"),this.isAllAccountingSetupProductRequired=!1,this.accountingSetupProductControls.every(i=>i.isRequired==!0)&&(this.isAllAccountingSetupProductRequired=!0),this.isAllAccountingSetupProductEditable=!1,this.accountingSetupProductControls.every(i=>i.isReadOnly==!0)&&(this.isAllAccountingSetupProductEditable=!0),this.isAllAccountingSetupProductVisible=!1,this.accountingSetupProductControls.every(i=>i.isVisible==!0)&&(this.isAllAccountingSetupProductVisible=!0)}onSelectAccountingSetupProductType({value:t}){t==null&&(t=this.accountingSetupProductControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterAccountingSetupProductProperty()}onSelectAccountingSetupProductControl({value:t}){this.selectedAccountingSetupProductControl=t,this.filterAccountingSetupProductProperty()}onAccountingSetupProductInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.FeeAccountingEntitySetup.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.FeeAccountingEntitySetup.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.accountingSetupProductControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetAccountingSetupProductProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.FeeAccountingGLSetup.toString()))}}onAllAccountingSetupProductEditableChanged(t){if(this.isAllAccountingSetupProductEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingEntitySetup.toString(),L.FeeAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllAccountingSetupProductRequired=t.value;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllRequiredFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingEntitySetup.toString(),L.FeeAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetupProductVisibleChanged(t){if(this.isAllAccountingSetupProductVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!=null&&this.selectedAccountingSetupProductControl!="All"&&(n=this.selectedAccountingSetupProductControl),this.propertyService.UpdateAllVisibleFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingEntitySetup.toString(),L.FeeAccountingEntitySetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAccountingSetupProductEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetAccountingSetupProductProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}GetFeesAccountingGLSetupProperty(){this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Fees.toString(),M.PropertyPageName.FeeAccountingGLSetup.toString(),L.FeeAccountingGLSetup.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allFeesAccountingGLSetupControls=t.responseModel,this.filterFeesAccountingGLSetupProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterFeesAccountingGLSetupProperty(){this.feesAccountingGLSetupControls=this.allFeesAccountingGLSetupControls,this.feesAccountingGLSetupControlsTypes=this.feesAccountingGLSetupControls,this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!="All"&&(this.feesAccountingGLSetupControls=this.feesAccountingGLSetupControls.filter(i=>i.formControlType==this.selectedFeesAccountingGLSetupControl)),this.allFeesAccountingGLSetupControls.forEac
87h(i=>{this.feesAccountingGLSetupControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.feesAccountingGLSetupControlType.push(i.formControlType)}),this.feesAccountingGLSetupControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.feesAccountingGLSetupControlType.splice(0,0,"All"),this.isAllFeesAccountingGLSetupRequired=!1,this.feesAccountingGLSetupControls.every(i=>i.isRequired==!0)&&(this.isAllFeesAccountingGLSetupRequired=!0),this.isAllFeesAccountingGLSetupEditable=!1,this.feesAccountingGLSetupControls.every(i=>i.isReadOnly==!0)&&(this.isAllFeesAccountingGLSetupEditable=!0),this.isAllFeesAccountingGLSetupVisible=!1,this.feesAccountingGLSetupControls.every(i=>i.isVisible==!0)&&(this.isAllFeesAccountingGLSetupVisible=!0)}onSelectFeesAccountingGLSetupType({value:t}){t==null&&(t=this.feesAccountingGLSetupControlsTypes.length>0?this.gracePeriodConfigurationType[0].code:""),this.filterFeesAccountingGLSetupProperty()}onSelectFeesAccountingGLSetupControl({value:t}){this.selectedFeesAccountingGLSetupControl=t,this.filterFeesAccountingGLSetupProperty()}onFeesAccountingGLSetupInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.FeeAccountingGLSetup.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.FeeAccountingGLSetup.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.feesAccountingGLSetupControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetFeesAccountingGLSetupProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.FeeAccountingGLSetup.toString()))}}onAllFeesAccountingGLSetupEditableChanged(t){if(this.isAllFeesAccountingGLSetupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!="All"&&(n=this.selectedFeesAccountingGLSetupControl),this.propertyService.UpdateAllEditableFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingGLSetup.toString(),L.FeeAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllFeesAccountingGLSetupRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllFeesAccountingGLSetupRequired=t.value;let n="";this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!="All"&&(n=this.selectedFeesAccountingGLSetupControl),this.propertyService.UpdateAllRequiredFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingGLSetup.toString(),L.FeeAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllFeesAccountingGLSetupVisibleChanged(t){if(this.isAllFeesAccountingGLSetupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!=null&&this.selectedFeesAccountingGLSetupControl!="All"&&(n=this.selectedFeesAccountingGLSetupControl),this.propertyService.UpdateAllVisibleFieldControl(F.Fees.toString(),M.PropertyPageName.FeeAccountingGLSetup.toString(),L.FeeAccountingGLSetup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onFeesAccountingGLSetupRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onFeesAccountingGLSetupVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onFeesAccountingGLSetupEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.FeesInformation.toString()?this.GetAccountingProperty():n==M.PropertyPageName.FeeAccountingEntitySetup.toString()?this.GetAccountingSetupProductProperty():n==M.PropertyPageName.FeeAccountingGLSetup.toString()&&this.GetFeesAccountingGLSetupProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Kt),k(yt),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-fee-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(r6,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[xt,Q],decls:135,vars:127,consts:[[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Fees","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUpdating","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","
87Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.45461 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.
87094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Admin"),s()(),a(6,"li",3)(7,"a",4),h(8,"Property Management"),s()(),a(9,"li",3),h(10,"Fees Configuration"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Fees Configuration"),s(),a(15,"div",8)(16,"dx-select-box",9),_("valueChange",function(d){return C(e.entityID,d)||(e.entityID=d),d}),f("onValueChanged",function(d){return e.onSelectEntity(d)}),s()()()(),a(17,"div",10)(18,"form",11)(19,"div",12)(20,"dx-scroll-view",13)(21,"div",14)(22,"div",11)(23,"div",15)(24,"h2",16),h(25," Fee Information "),s(),a(26,"div",17)(27,"a",18),f("click",function(){return e.AccountingsCollapseExpand()}),A(),a(28,"svg",19),b(29,"path",20),s()()()(),G(),a(30,"div",21)(31,"div",22)(32,"div",23)(33,"div",24)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",25),_("valueChange",function(d){return C(e.selectedAccountingControl,d)||(e.selectedAccountingControl=d),d}),f("onValueChanged",function(d){return e.onSelectAccountingControl(d)}),s()()()(),a(37,"div",26)(38,"dx-data-grid",27),f("onSelectionChanged",function(d){return e.onProfileSelectionChanged(d)})("onSaving",function(d){return e.onAccountingInfoSaving(d)}),b(39,"dxo-paging",28),a(40,"dxo-editing",29),_("changesChange",function(d){return C(e.changes,d)||(e.changes=d),d}),s(),b(41,"dxi-column",30)(42,"dxi-column",31),a(43,"dxi-column",32),b(44,"dxi-validation-rule",33)(45,"dxi-validation-rule",34),S(46,d6,4,3,"div",35),s(),b(47,"dxi-column",36),a(48,"dxi-column",37),S(49,c6,2,4,"span",38),s(),a(50,"dxi-column",39),S(51,p6,4,1,"div",40)(52,u6,2,2,"div",41),s(),a(53,"dxi-column",42),S(54,m6,4,1,"div",40)(55,g6,2,2,"div",41),s(),a(56,"dxi-column",43),S(57,h6,4,1,"div",40)(58,f6,2,1,"div",44),s()()()()()(),a(59,"div",14)(60,"div",11)(61,"div",15)(62,"h2",16),h(63,"Accounting Setup - Fee "),s(),a(64,"div",17)(65,"a",18),f("click",function(){return e.AccountingSetupProductsCollapseExpand()}),A(),a(66,"svg",19),b(67,"path",20),s()()()(),G(),a(68,"div",21)(69,"div",22)(70,"div",23)(71,"div",24)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",25),_("valueChange",function(d){return C(e.selectedAccountingSetupProductControl,d)||(e.selectedAccountingSetupProductControl=d),d}),f("onValueChanged",function(d){return e.onSelectAccountingSetupProductControl(d)}),s()()()(),a(75,"div",26)(76,"dx-data-grid",27),f("onSelectionChanged",function(d){return e.onProfileSelectionChanged(d)})("onSaving",function(d){return e.onAccountingSetupProductInfoSaving(d)}),b(77,"dxo-paging",28),a(78,"dxo-editing",29),_("changesChange",function(d){return C(e.changes,d)||(e.changes=d),d}),s(),b(79,"dxi-column",30)(80,"dxi-column",31),a(81,"dxi-column",32),b(82,"dxi-validation-rule",33)(83,"dxi-validation-rule",34),S(84,_6,4,3,"div",35),s(),b(85,"dxi-column",36),a(86,"dxi-column",37),S(87,y6,2,4,"span",38),s(),a(88,"dxi-column",39),S(89,x6,4,1,"div",40)(90,v6,2,2,"div",41),s(),a(91,"dxi-column",42),S(92,b6,4,1,"div",40)(93,w6,2,2,"div",41),s(),a(94,"dxi-column",43),S(95,S6,4,1,"div",40)(96,P6,2,1,"div",44),s()()()()()(),a(97,"div",14)(98,"div",11)(99,"div",15)(100,"h2",16),h(101," G/L Accounts"),s(),a(102,"div",17)(103,"a",18),f("click",function(){return e.FeesAccountingsGLSetupCollapseExpand()}),A(),a(104,"svg",19),b(105,"path",20),s()()()(),G(),a(106,"div",21)(107,"div",22)(108,"div",23)(109,"div",24)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",25),_("valueChange",function(d){return C(e.selectedFeesAccountingGLSetupControl,d)||(e.selectedFeesAccountingGLSetupControl
87=d),d}),f("onValueChanged",function(d){return e.onSelectFeesAccountingGLSetupControl(d)}),s()()()(),a(113,"div",26)(114,"dx-data-grid",27),f("onSelectionChanged",function(d){return e.onProfileSelectionChanged(d)})("onSaving",function(d){return e.onFeesAccountingGLSetupInfoSaving(d)}),b(115,"dxo-paging",28),a(116,"dxo-editing",29),_("changesChange",function(d){return C(e.changes,d)||(e.changes=d),d}),s(),b(117,"dxi-column",30)(118,"dxi-column",31),a(119,"dxi-column",32),b(120,"dxi-validation-rule",33)(121,"dxi-validation-rule",34),S(122,V6,4,3,"div",35),s(),b(123,"dxi-column",36),a(124,"dxi-column",37),S(125,E6,2,4,"span",38),s(),a(126,"dxi-column",39),S(127,T6,4,1,"div",40)(128,D6,2,2,"div",41),s(),a(129,"dxi-column",42),S(130,I6,4,1,"div",40)(131,A6,2,2,"div",41),s(),a(132,"dxi-column",43),S(133,L6,4,1,"div",40)(134,k6,2,1,"div",44),s()()()()()()()()()()()),n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(123,s6))("grouped",!0),o(5),l("ngClass",e.AccountingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingControlType),x("value",e.selectedAccountingControl),l("inputAttr",I(124,va)),o(2),l("dataSource",e.accountingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.AccountingSetupProductCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.accountingSetupProductControlType),x("value",e.selectedAccountingSetupProductControl),l("inputAttr",I(125,va)),o(2),l("dataSource",e.accountingSetupProductControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncAccountingSetupProductValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FeesAccountingGLSetupCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.feesAccountingGLSetupControlType),x("value",e.selectedFeesAccountingGLSetupControl),l("inputAttr",I(126,va)),o(2),l("dataSource",e.allFeesAccountingGLSetupControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncFeesAccountingGLSetupValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"))},dependencies:[bt,vt,Jt,Pt,ie,Rt,ne,oe,ae,re,se,le,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var R6=["addValueGroup"],O6=()=>({"aria-label":"Entity"}),G6=()=>({"aria-label":"Assign To"}),B6=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),F6=()=>({"aria-label":"ControlName"}),W6=()=>({id:"elementId",class:"popup-outer delete-popup"}),N6=r=>({disabledDiv:r});function q6(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function U6(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,q6,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function H6(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function j6(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllfiscalRequired,e)||(i.isAllfiscalRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllfiscalRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllfiscalRequired)}}function z6(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onfiscalRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Z6(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllfiscalVisible,e)||(i.isAllfiscalVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllfiscalVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllfiscalVisible)}}function Q6(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onfiscalVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Y6(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllfiscalEditable,e)||(i.isAllfiscalEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllfiscallEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllfiscalEditable)}}function K6(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onfiscalEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,N6,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function J6(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function X6(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function $6(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function eS(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function tS(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function iS(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}var Zs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.fiscalInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.fiscalControls=[],this.fiscalControlsTypes=[],this.allfiscalControls=[],this.fiscalCode="",this.selectedfiscalControl="All",this.fiscalControlType=[],this.isAllfiscalRequired=!1,this.isAllfiscalVisible=!1,this.isAllfiscalEditable=!1,this.fiscalType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.FiscalPeriod);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetfiscalProperty()})},this.asynctfiscalValidation=E=>B(this,null,function*(){return!(this.fiscalControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}fiscalInformation(){this.fiscalInfoCollapseExpand=!this.fiscalInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onfiscalSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetfiscalProperty(){this.fiscalControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.FiscalPeriod.toString(),M.PropertyPageName.FiscalPeriod.toString(),L.FiscalPeriod.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allfiscalControls=t.responseModel,this.filterfiscalProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterfiscalProperty(){this.fiscalControls=this.allfiscalControls,this.fiscalControlsTypes=this.fiscalControls,this.selectedfiscalControl!=null&&this.selectedfiscalControl!=null&&this.selectedfiscalControl!="All"&&(this.fiscalControls=this.fiscalControls.filter(i=>i.formControlType==this.selectedfiscalControl)),this.allfiscalControls.forEach(i=>{this.fiscalControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.fiscalControlType.push(i.formControlType)}),this.fiscalControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.fiscalControlType.splice(0,0,"All"),this.isAllfiscalRequired=!1,this.fiscalControls.every(i=>i.isRequired==!0)&&(this.isAllfiscalRequired=!0),this.isAllfiscalEditable=!1,this.fiscalControls.every(i=>i.isReadOnly==!0)&&(this.isAllfiscalEditable=!0),this.isAllfiscalVisible=!1,this.fiscalControls.every(i=>i.isVisible==!0)&&(this.isAllfiscalVisible=!0)}onSelectfiscalType({value:t}){t==null&&(t=this.fiscalType.length>0?this.fiscalType[0].code:""),this.fiscalCode=t,this.filterfiscalProperty()}onSelectfiscalControl({value:t}){this.selectedfiscalControl=t,this.filterfiscalProperty()}onfiscalInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.FiscalPeriod.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.FiscalPeriod.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.fiscalControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetfiscalProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.FiscalPeriod.toString()))}}onAllfiscallEditableChanged(t){if(this.isAllfiscalEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedfiscalControl!=null&&this.selectedfiscalControl!=null&&this.selectedfiscalControl!="All"&&(n=this.selectedfiscalControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.FiscalPeriod.toString(),M.PropertyPageName.FiscalPeriod.toString(),L.FiscalPeriod.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllfiscalRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllfiscalRequired=t.value;let n="";this.selectedfiscalControl!=null&&this.selectedfiscalControl!=null&&this.selectedfiscalControl!="All"&&(n=this.selectedfiscalControl),this.propertyService.UpdateAllRequiredFieldControl(F.FiscalPeriod.toString(),M.PropertyPageName.FiscalPeriod.toString(),L.FiscalPeriod.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllfiscalVisibleChanged(t){if(this.isAllfiscalVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedfiscalControl!=null&&this.selectedfiscalControl!=null&&this.selectedfiscalControl!="All"&&(n=this.selectedfiscalControl),this.propertyService.UpdateAllVisibleFieldControl(F.FiscalPeriod.toString(),M.PropertyPageName.FiscalPeriod.toString(),L.FiscalPeriod.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onfiscalRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onfiscalVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onfiscalEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetfiscalProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.FiscalPeriod.toString()&&this.GetfiscalProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-fiscal-period-configurations"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(R6,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Fiscal Periods","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Fiscal Periods Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Fiscal Periods Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Fiscal Periods Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.fiscalInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedfiscalControl,c)||(e.selectedfiscalControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectfiscalControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onfiscalSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onfiscalInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,U6,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,H6,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,j6,4,1,"div",41)(52,z6,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,Z6,4,1,"div",41)(55,Q6,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,Y6,4,1,"div",41)(58,K6,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,J6,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,X6,4,1,"h2",60)(82,$6,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,eS,1,0,"dx-button",71)(98,tS,1,0,"dx-button",72)(99,iS,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),a(112,"dx-button",75),f("onClick",function(){return p(i),u(e.removeLookupValueDetails(e.selectedLookupTableValue))}),s()()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,O6))("grouped",!0),o(5),l("ngClass",e.fiscalInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.fiscalControlType),x("value",e.selectedfiscalControl),l("inputAttr",I(69,G6)),o(2),l("dataSource",e.fiscalControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctfiscalValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,B6)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,F6)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,W6)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var nS=["addValueGroup"],oS=()=>({"aria-label":"Entity"}),aS=()=>({"aria-label":"Assign To"}),rS=()=>({id:"elementId",class:"popup-outer delete-popup"});function sS(r,g){if(r&1){let t=y();a(0,"a",51),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",52),b(2,"path",53),s(),h(3," Manage "),s()}}function lS(r,g){if(r&1&&(a(0,"div",48)(1,"span",49),h(2),s(),S(3,sS,4,0,"a",50),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function dS(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function cS(r,g){if(r&1){let t=y();a(0,"div",54)(1,"span",55),h(2,"Required"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbenefitRequired,e)||(i.isAllbenefitRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitRequireChanged(e))}),s()()}if(r&2){let t=m();l("ngClass",t.isAllbenefitRequiredDisabled?"disabledDiv":""),o(3),x("value",t.isAllbenefitRequired)}}function pS(r,g){if(r&1){let t=y();a(0,"div",57)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function uS(r,g){if(r&1){let t=y();a(0,"div",54)(1,"span",55),h(2,"Visible"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbenefitVisible,e)||(i.isAllbenefitVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitVisibleChanged(e))}),s()()}if(r&2){let t=m();l("ngClass",t.isAllbenefitVisibleDisabled?"disabledDiv":""),o(3),x("value",t.isAllbenefitVisible)}}function mS(r,g){if(r&1){let t=y();a(0,"div",57)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function gS(r,g){if(r&1){let t=y();a(0,"div",58)(1,"span",55),h(2,"Editable"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbenefitEditable,e)||(i.isAllbenefitEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbenefitEditable)}}function hS(r,g){if(r&1){let t=y();a(0,"div",59)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;o(),x("value",t.data.isReadOnly)}}function fS(r,g){if(r&1){let t=y();a(0,"a",51),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",52),b(2,"path",53),s(),h(3," Manage "),s()}}function CS(r,g){if(r&1&&(a(0,"div",48)(1,"span",49),h(2),s(),S(3,fS,4,0,"a",50),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function _S(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==0?"Yes":"No",""),o(),R(t.data.isCanEdit==0?"Yes":"No")}}function yS(r,g){if(r&1){let t=y();a(0,"div",58)(1,"span",55),h(2,"Required"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();
87return C(i.isAllbenefitItemRequired,e)||(i.isAllbenefitItemRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitItemRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbenefitItemRequired)}}function xS(r,g){if(r&1){let t=y();a(0,"div",57)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitItemRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function vS(r,g){if(r&1){let t=y();a(0,"div",58)(1,"span",55),h(2,"Visible"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbenefitItemVisible,e)||(i.isAllbenefitItemVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitItemVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbenefitItemVisible)}}function bS(r,g){if(r&1){let t=y();a(0,"div",57)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitItemVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function wS(r,g){if(r&1){let t=y();a(0,"div",58)(1,"span",55),h(2,"Editable"),s(),a(3,"dx-switch",56),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbenefitItemEditable,e)||(i.isAllbenefitItemEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbenefitItemEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbenefitItemEditable)}}function SS(r,g){if(r&1){let t=y();a(0,"div",57)(1,"dx-switch",56),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbenefitItemEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.sourceColumnName==="BenefitTypeAttributeMappingId"?"disabledDiv":""),o(),x("value",t.data.isReadOnly)}}/localhost/.test(document.location.host)||void 0;var Qs=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=t,this.propertyService=n,this.utilityService=e,this.webStorageService=i,this.authenticationService=d,this.permissionService=c,this.propertyManagementCommonService=v,this.unsubscriber=new Ct,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.selectedItemKeys=[],this.entitiesModel=[],this.FilterActive=!1,this.changes=[],this.selectedControlId=0,this.allBenefitsControls=[],this.BenefitsControlsTypes=[],this.benefitControls=[],this.isAllbenefitRequired=!1,this.isAllbenefitRequiredDisabled=!1,this.isAllbenefitVisible=!1,this.isAllbenefitEditable=!1,this.isAllbenefitVisibleDisabled=!1,this.isAllbenefitEditableDisabled=!1,this.allBenefitItemControls=[],this.BenefitsItemsControlsTypes=[],this.benefitItemControls=[],this.selectedBenefitItemControl="All",this.BenefitItemControlType=[],this.isAllbenefitItemRequired=!1,this.isAllbenefitItemVisible=!1,this.isAllbenefitItemEditable=!1,this.isPermissionView=!1,this.LookUpTableValues=[],this.groupedEntites=[],this.selectedLookupTableValue=new _t,this.isEditMode=!1,this.deletePopup=!1,this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([V])=>({entitiesModel:V}))).subscribe(V=>{this.loading=!1,Object.keys(V).forEach(T=>this[T]=V[T].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(D=>D.entityType))].forEach(D=>{let W=new ui;W.category=D=="Entity"?"":D,W.entities=this.entitiesModel.filter(Vt=>Vt.entityType==D),this.groupedEntites.push(W)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(T){return T.key=T.category,T.items=T.entities,T}});let E=this.entitiesModel.find(T=>T.name==z.Benefits);
87E&&(this.entityID=E.entityID),this.fromPregroupedData.load()})},this.asyncbenefitValidation=V=>B(this,null,function*(){return!(this.BenefitsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncbenefitItemValidation=V=>B(this,null,function*(){return!(this.BenefitsItemsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.customCallback=this.customCallback.bind(this),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.ControlType=["Datepicker","Numberbox","Selectbox","TextBox"],this.ControlDataType=["Money","Age","Date","Text","Number"],this.loadData(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}loadData(){this.GetBenefitProperty(),this.GetBenefitItemProperty()}GetBenefitProperty(){this.loading=!0,this.propertyService.GetBenefitPageControlsByPageCategory(L.Benefit.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allBenefitsControls=t.responseModel,this.filterBenefitProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterBenefitProperty(){this.benefitControls=this.allBenefitsControls,this.BenefitsControlsTypes=this.benefitControls,this.isAllbenefitRequired=!1,this.benefitControls.every(i=>i.isRequired==!0)&&(this.isAllbenefitRequired=!0),this.isAllbenefitRequiredDisabled=!0,this.isAllbenefitEditable=!1,this.benefitControls.every(i=>i.isReadOnly==!0)&&(this.isAllbenefitEditable=!0),this.benefitControls.filter(i=>i.isReadOnly==!1&&i.isCanEdit==!1).length==this.benefitControls.length?this.isAllbenefitEditableDisabled=!0:this.isAllbenefitEditableDisabled=!1,this.isAllbenefitVisible=!1,this.benefitControls.every(i=>i.isVisible==!0)&&(this.isAllbenefitVisible=!0),this.benefitControls.filter(i=>i.isVisible==!0&&i.isCanEdit==!1).length==this.benefitControls.length?this.isAllbenefitVisibleDisabled=!0:this.isAllbenefitVisibleDisabled=!1}GetBenefitItemProperty(){this.loading=!0,this.propertyService.GetBenefitPageControlsByPageCategory(L.BenefitItem.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allBenefitItemControls=t.responseModel,this.filterBenefitItemProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterBenefitItemProperty(){this.benefitItemControls=this.allBenefitItemControls,this.BenefitsItemsControlsTypes=this.benefitItemControls,this.selectedBenefitItemControl!=null&&this.selectedBenefitItemControl!=null&&this.selectedBenefitItemControl!="All"&&(this.benefitItemControls=this.benefitItemControls.filter(i=>i.formControlType==this.selectedBenefitItemControl)),this.allBenefitItemControls.forEach(i=>{this.BenefitItemControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.BenefitItemControlType.push(i.formControlType)}),this.BenefitItemControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.BenefitItemControlType.splice(0,0,"All"),this.isAllbenefitItemRequired=!1,this.benefitItemControls.every(i=>i.isRequired==!0)&&(this.isAllbenefitItemRequired=!0),this.isAllbenefitItemEditable=!1,this.benefitItemControls.every(i=>i.isReadOnly==!0)&&(this.isAllbenefitItemEditable=!0),this.isAllbenefitItemVisible=!1,this.benefitItemControls.every(i=>i.isVisible==!0)&&(this.isAllbenefitItemVisible=!0)}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}benefitBasiclInformation(){this.benefitCollapseExpand=!this.benefitCollapseExpand}BenefitItemInformation(){this.BenefitItemCollapseExpand=!this.BenefitItemCollapseExpand}onbenefitSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onbenefitItemSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}onbenefitSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageName.toLowerCase()==M.PropertyPageName.Benefit.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";
87d.toString().trim().replace(/ /g,"")!=""?this.BenefitsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetBenefitProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Benefit.toString()))}}onbenefitItemSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&n.key.pageCategory.toLowerCase()==M.PropertyPageName.BenefitItem.toString().toLowerCase()){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.BenefitsItemsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetBenefitItemProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.BenefitItem.toString()))}}processSaving(t,n){return B(this,null,function*(){let e=this,i=new oi;i.modifiedByUserId=e.userToken.userId,i.tenantSystemPageControls=[];let d=t.data,c=Object.keys(d),v=Object.values(d),V=t.key;V[c[0]]=v[0].toString().trim(),i.tenantSystemPageControls.push(V),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(i).pipe(w(this.unsubscriber)).subscribe(E=>{this.processResult(E,()=>{if(this.loading=!1,E&&E.isSuccess){if(this.changes=[],this.dataGrid!=null){let T=this.dataGrid.instance;T.clearSelection(),T.option("focusedrowindex",-1)}n==M.PropertyPageName.Benefit.toString()?this.GetBenefitProperty():n==M.PropertyPageName.BenefitItem.toString()&&this.GetBenefitItemProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(E.message)})},E=>{this.loading=!1,this.showErrorMessage(E.message)})})}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Benefits.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onAllbenefitRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllbenefitRequired=t.value,this.propertyService.UpdateAllRequireFieldBenefitControl(M.PropertyPageName.Benefit.toString(),L.Benefit.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbenefitVisibleChanged(t){if(this.isAllbenefitVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldBenefitControl(M.PropertyPageName.Benefit.toString(),L.Benefit.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbenefitEditableChanged(t){if(this.isAllbenefitEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldBenefitControl(M.PropertyPageName.Benefit.toString(),L.Benefit.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onSelectBenefitItemControl({value:t}){this.selectedBenefitItemControl=t,this.filterBenefitItemProperty()}onAllbenefitItemRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllbenefitItemRequired=t.value,this.propertyService.UpdateAllRequireFieldBenefitControl(M.PropertyPageName.BenefitItem.toString(),L.BenefitItem.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitItemRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbenefitItemVisibleChanged(t){if(this.isAllbenefitItemVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllVisibleFieldBenefitControl(M.PropertyPageName.BenefitItem.toString(),L.BenefitItem.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitItemVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbenefitItemEditableChanged(t){if(this.isAllbenefitItemEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.propertyService.UpdateAllEditableFieldBenefitControl(M.PropertyPageName.BenefitItem.toString(),L.BenefitItem.toString(),t.value,"").pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbenefitItemEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBenefitItemProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}
87closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}static{this.\u0275fac=function(n){return new(n||r)(k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-benefits-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(nS,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:94,vars:88,consts:[[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Benefits","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"changesChange","allowUpdating","changes"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique.",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",4,"dxTemplate","dxTemplateOf"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0",3,"ngClass"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[1,"toggle-btn",2,"justify-content","center"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),h(4,"Benefits Configuration"),s(),a(5,"div",4)(6,"dx-select-box",5),_("valueChange",function(d){return C(e.entityID,d)||(e.entityID=d),d}),f("onValueChanged",function(d){return e.onSelectEntity(d)}),s()()()(),a(7,"div",6)(8,"form",7)(9,"div",8)(10,"dx-scroll-view",9)(11,"div",10)(12,"div",7)(13,"div",11)(14,"h2",12),h(15,"Benefit Information"),s(),a(16,"div",13)(17,"a",14),f("click",function(){return e.benefitBasiclInformation()}),A(),a(18,"svg",15),b(19,"path",16),s()()()(),G(),a(20,"div",17)(21,"div",18)(22,"dx-data-grid",19),f("onSelectionChanged",function(d){return e.onbenefitSelectionChanged(d)})("onSaving",function(d){return e.onbenefitSaving(d)}),b(23,"dxo-paging",20),a(24,"dxo-editing",21),_("changesChange",function(d){return C(e.changes,d)||(e.changes=d),d}),s(),b(25,"dxi-column",22)(26,"dxi-column",23),a(27,"dxi-column",24),b(28,"dxi-validation-rule",25)(29,"dxi-validation-rule",26),S(30,lS,4,3,"div",27),s(),b(31,"dxi-column",28),a(32,"dxi-column",29),S(33,dS,2,4,"span",30),s(),a(34,"dxi-column",31),S(35,cS,4,2,"div",32)(36,pS,2,2,"div",33),s(),a(37,"dxi-column",34),S(38,uS,4,2,"div",32)(39,mS,2,2,"div",33),s(),a(40,"dxi-column",35),S(41,gS,4,1,"div",36)(42,hS,2,1,"div",37),s()()()()()(),a(43,"div",10)(44,"div",7)(45,"div",11)(46,"h2",12),h(47,"Benefit Item Information"),s(),a(48,"div",13)(49,"a",14),f("click",function(){return e.BenefitItemInformation()}),A(),a(50,"svg",15),b(51,"path",16),s()()()(),G(),a(52,"div",17)(53,"div",38)(54,"div",39)(55,"div",40)(56,"span"),h(57,"Control Type:"),s(),a(58,"dx-select-box",41),_("valueChange",function(d){return C(e.selectedBenefitItemControl,d)||(e.selectedBenefitItemControl=d),d}),f("onValueChanged",function(d){return e.onSelectBenefitItemControl(d)}),s()()()(),a(59,"div",18)(60,"dx-data-grid",19),f("onSelectionChanged",function(d){return e.onbenefitItemSelectionChanged(d)})("onSaving",function(d){return e.onbenefitItemSaving(d)}),b(61,"dxo-paging",20),a(62,"dxo-editing",21),_("changesChange",function(d){return C(e.changes,d)||(e.changes=d),d}),s(),b(63,"dxi-column",22)(64,"dxi-column",23),a(65,"dxi-column",24),b(66,"dxi-validation-rule",25)(67,"dxi-validation-rule",26),S(68,CS,4,3,"div",27),s(),b(69,"dxi-column",28),a(70,"dxi-column",29),S(71,_S,2,4,"span",30),s(),a(72,"dxi-column",31),S(73,yS,4,1,"div",36)(74,xS,2,2,"div",33),s(),a(75,"dxi-column",34),S(76,vS,4,1,"div",36)(77,bS,2,2,"div",33),s(),a(78,"dxi-column",35),S(79,wS,4,1,"div",36)(80,SS,2,2,"div",33),s()()()()()()()()()()(),a(81,"dx-popup",42),_("visibleChange",function(d){return C(e.deletePopup,d)||(e.deletePopup=d),d}),a(82,"div",43)(83,"h2"),h(84,"Confirmation"),s()(),a(85,"div",44)(86,"p"),h(87,"Are you sure you want to delete "),a(88,"strong"),h(89,"Name"),s(),h(90," ?"),s()(),a(91,"div",45)(92,"dx-button",46),f("onClick",function(){return e.closePopup()}),s(),b(93,"dx-button",47),s()()),n&2&&(o(6),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(85,oS))("grouped",!0),o(5),l("ngClass",e.benefitCollapseExpand?"collapse":"expand"),o(11),l("dataSource",e.benefitControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncbenefitValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.BenefitItemCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.BenefitItemControlType),x("value",e.selectedBenefitItemControl),l("inputAttr",I(86,aS)),o(2),l("dataSource",e.benefitItemControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),x("changes",e.changes),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncbenefitItemValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(87,rS)))},dependencies:[bt,vt,Jt,Pt,ie,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 175px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var PS=["addValueGroup"],MS=()=>({"aria-label":"Entity"}),VS=()=>({"aria-label":"Assign To"}),ES=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),TS=()=>({"aria-label":"ControlName"}),DS=()=>({id:"elementId",class:"popup-outer delete-popup"}),IS=r=>({disabledDiv:r});function AS(r,g){if(r&1){let t=y();a(0,"a",79),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",80),b(2,"path",81),s(),h(3," Manage "),s()}}function LS(r,g){if(r&1&&(a(0,"div",76)(1,"span",77),h(2),s(),S(3,AS,4,0,"a",78),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function kS(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function RS(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDiscountRequired,e)||(i.isAllDiscountRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDiscountRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDiscountRequired)}}function OS(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDiscountRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function GS(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDiscountVisible,e)||(i.isAllDiscountVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDiscountVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDiscountVisible)}}function BS(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDiscountVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function FS(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2,"Editable"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllDiscountEditable,e)||(i.isAllDiscountEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllDiscountlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllDiscountEditable)}}function WS(r,g){if(r&1){let t=y();a(0,"div",85)(1,"dx-switch",84),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onDiscountEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,IS,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function NS(r,g){if(r&1){let t=y();a(0,"div",86)(1,"span",87),h(2),s(),a(3,"div",88)(4,"a",89),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",90),b(6,"path",91),s()(),G(),a(7,"a",92),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",90),b(9,"path",93),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function qS(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function US(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function HS(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function jS(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function zS(r,g){if(r&1){let t=y();a(0,"dx-button",96),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}var Ys=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.discountInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.discountControls=[],this.discountControlsTypes=[],this.allDiscountControls=[],this.discountCode="",this.selectedDiscountControl="All",this.discountControlType=[],this.isAllDiscountRequired=!1,this.isAllDiscountVisible=!1,this.isAllDiscountEditable=!1,this.discountType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>
87{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}});let T=this.entitiesModel.find(D=>D.name==z.Discount);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetDiscountProperty()})},this.asynctDiscountValidation=E=>B(this,null,function*(){return!(this.discountControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}discountInformation(){this.discountInfoCollapseExpand=!this.discountInfoCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onDiscountSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetDiscountProperty(){this.discountControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Discount.toString(),M.PropertyPageName.Discount.toString(),L.Discount.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allDiscountControls=t.responseModel,this.filterDiscountProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterDiscountProperty(){this.discountControls=this.allDiscountControls,this.discountControlsTypes=this.discountControls,this.selectedDiscountControl!=null&&this.selectedDiscountControl!=null&&this.selectedDiscountControl!="All"&&(this.discountControls=this.discountControls.filter(i=>i.formControlType==this.selectedDiscountControl)),this.allDiscountControls.forEach(i=>{this.discountControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.discountControlType.push(i.formControlType)}),this.discountControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.discountControlType.splice(0,0,"All"),this.isAllDiscountRequired=!1,this.discountControls.every(i=>i.isRequired==!0)&&(this.isAllDiscountRequired=!0),this.isAllDiscountEditable=!1,this.discountControls.every(i=>i.isReadOnly==!0)&&(this.isAllDiscountEditable=!0),this.isAllDiscountVisible=!1,this.discountControls.every(i=>i.isVisible==!0)&&(this.isAllDiscountVisible=!0)}onSelectdiscountType({value:t}){t==null&&(t=this.discountType.length>0?this.discountType[0].code:""),this.discountCode=t,this.filterDiscountProperty()}onSelectDiscountControl({value:t}){this.selectedDiscountControl=t,this.filterDiscountProperty()}onDiscountInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Discount.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Discount.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.discountControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetDiscountProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.Discount.toString()))}}onAllDiscountlEditableChanged(t){if(this.isAllDiscountEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedDiscountControl!=null&&this.selectedDiscountControl!=null&&this.selectedDiscountControl!="All"&&(n=this.selectedDiscountControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Discount.toString(),M.PropertyPageName.Discount.toString(),L.Discount.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDiscountRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllDiscountRequired=t.value;let n="";this.selectedDiscountControl!=null&&this.selectedDiscountControl!=null&&this.selectedDiscountControl!="All"&&(n=this.selectedDiscountControl),this.propertyService.UpdateAllRequiredFieldControl(F.Discount.toString(),M.PropertyPageName.Discount.toString(),L.Discount.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllDiscountVisibleChanged(t){if(this.isAllDiscountVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedDiscountControl!=null&&this.selectedDiscountControl!=null&&this.selectedDiscountControl!="All"&&(n=this.selectedDiscountControl),this.propertyService.UpdateAllVisibleFieldControl(F.Discount.toString(),M.PropertyPageName.Discount.toString(),L.Discount.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDiscountRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDiscountVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onDiscountEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetDiscountProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.Discount.toString()&&this.GetDiscountProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-discount-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(PS,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:113,vars:73,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Discounts","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Discount Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Discount Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Discount Information"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.discountInformation())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedDiscountControl,c)||(e.selectedDiscountControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectDiscountControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onDiscountSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onDiscountInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,LS,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,kS,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,RS,4,1,"div",41)(52,OS,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,GS,4,1,"div",41)(55,BS,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,FS,4,1,"div",41)(58,WS,2,4,"div",42),s()()()()()()()()()()(),a(59,"div",45)(60,"div",46)(61,"div",47)(62,"h2"),h(63,"Manage Values for "),a(64,"span"),h(65),s()()(),a(66,"div",48)(67,"div",49)(68,"dx-scroll-view",14),S(69,NS,10,1,"div",50),s()(),a(70,"div",51)(71,"a",52),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(72,"svg",53),b(73,"circle",54)(74,"path",55),s(),h(75," Add Value "),s()()(),G(),a(76,"div",56)(77,"a",57),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(78," Close "),s()()()(),a(79,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(80,"div",59),S(81,qS,4,1,"h2",60)(82,US,4,1,"h2",60),s(),a(83,"div",61)(84,"form",62)(85,"dx-validation-group",null,0)(87,"dx-form",63)(88,"dxi-item")(89,"div",64)(90,"div",65)(91,"dx-text-box",66),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(92,"dx-validator"),b(93,"dxi-validation-rule",67)(94,"dxi-validation-rule",68),s()()()()()()()()(),a(95,"div",69)(96,"dx-button",70),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(97,HS,1,0,"dx-button",71)(98,jS,1,0,"dx-button",72)(99,zS,1,0,"dx-button",73),s()(),a(100,"dx-popup",58),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(101,"div",59)(102,"h2"),h(103,"Confirmation"),s()(),a(104,"div",61)(105,"p"),h(106,"Are you sure you want to delete "),a(107,"strong"),h(108,"Name"),s(),h(109," ?"),s()(),a(110,"div",69)(111,"dx-button",74),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(112,"dx-button",75),s()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(68,MS))("grouped",!0),o(5),l("ngClass",e.discountInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.discountControlType),x("value",e.selectedDiscountControl),l("inputAttr",I(69,VS)),o(2),l("dataSource",e.discountControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctDiscountValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(70,ES)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(71,TS)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(72,DS)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var ZS=["addValueGroup"],QS=()=>({"aria-label":"Entity"}),gn=()=>({"aria-label":"Assign To"}),YS=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),Ks=()=>({"aria-label":"ControlName"}),KS=()=>({id:"elementId",class:"popup-outer delete-popup"}),hn=r=>({disabledDiv:r});function JS(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function XS(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,JS,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function $S(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function e7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductConfigurationRequired,e)||(i.isAllProductConfigurationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductConfigurationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductConfigurationRequired)}}function t7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductConfigurationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function i7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductConfigurationVisible,e)||(i.isAllProductConfigurationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductConfigurationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductConfigurationVisible)}}function n7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductConfigurationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function o7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductConfigurationEditable,e)||(i.isAllProductConfigurationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductConfigurationlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductConfigurationEditable)}}function a7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductConfigurationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function r7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function s7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,r7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",t.data.isLookupReference)}}function l7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function d7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInformationRequired,e)||(i.isAllProductInformationRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInformationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInformationRequired)}}function c7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInformationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function p7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInformationVisible,e)||(i.isAllProductInformationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInformationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInformationVisible)}}function u7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInformationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function m7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInformationEditable,e)||(i.isAllProductInformationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInformationlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInformationEditable)}}function g7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInformationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isReadOnly)}}function h7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function f7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,h7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function C7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function _7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInventoryRequired,e)||(i.isAllProductInventoryRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInventoryRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInventoryRequired)}}function y7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInventoryRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function x7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInventoryVisible,e)||(i.isAllProductInventoryVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInventoryVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInventoryVisible)}}function v7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInventoryVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function b7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductInventoryEditable,e)||(i.isAllProductInventoryEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductInventorylEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductInventoryEditable)}}function w7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductInventoryEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function S7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function P7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,S7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function M7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function V7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductAccountingRequired,e)||(i.isAllProductAccountingRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductAccountingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductAccountingRequired)}}function E7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function T7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductAccountingVisible,e)||(i.isAllProductAccountingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductAccountingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductAccountingVisible)}}function D7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function I7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductAccountingEditable,e)||(i.isAllProductAccountingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductAccountinglEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductAccountingEditable)}}function A7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function L7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function k7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,L7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function R7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function O7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllproductAccountingsetupRequired,e)||(i.isAllproductAccountingsetupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetUpRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllproductAccountingsetupRequired)}}function G7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingSetUpRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function B7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllproductAccountingsetupVisible,e)||(i.isAllproductAccountingsetupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAccountingSetUpVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllproductAccountingsetupVisible)}}function F7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingSetUpVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function W7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllproductAccountingsetupEditable,e)||(i.isAllproductAccountingsetupEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductAccountingSetUpEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllproductAccountingsetupEditable)}}function N7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductAccountingSetUpEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function q7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function U7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,q7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function H7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function j7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductSettingRequired,e)||(i.isAllProductSettingRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductSettingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductSettingRequired)}}function z7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductSettingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Z7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductSettingVisible,e)||(i.isAllProductSettingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductSettingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductSettingVisible)}}function Q7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductSettingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Y7(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductSettingEditable,e)||(i.isAllProductSettingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductSettingEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductSettingEditable)}}function K7(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductSettingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function J7(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function X7(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,J7,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function $7(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function eP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductShippingRequired,e)||(i.isAllProductShippingRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductShippingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductShippingRequired)}}function tP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductShippingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function iP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductShippingVisible,e)||(i.isAllProductShippingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductShippingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductShippingVisible)}}function nP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductShippingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function oP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductShippingEditable,e)||(i.isAllProductShippingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductShippinglEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductShippingEditable)}}function aP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductShippingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function rP(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function sP(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,rP,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function lP(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function dP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductPricingGroupRequired,e)||(i.isAllProductPricingGroupRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductPricingGroupRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductPricingGroupRequired)}}function cP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductPricingGroupRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function pP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductPricingGroupVisible,e)||(i.isAllProductPricingGroupVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductPricingGroupVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductPricingGroupVisible)}}function uP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductPricingGroupVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function mP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductPricingGroupEditable,e)||(i.isAllProductPricingGroupEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductPricingGrouplEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductPricingGroupEditable)}}function gP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductPricingGroupEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function hP(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function fP(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,hP,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function CP(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function _P(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitRequired,e)||(i.isAllProductBenefitRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitRequired)}}function yP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function xP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitVisible,e)||(i.isAllProductBenefitVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitVisible)}}function vP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function bP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBenefitEditable,e)||(i.isAllProductBenefitEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBenefitlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBenefitEditable)}}function wP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBenefitEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function SP(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function PP(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,SP,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function MP(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function VP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductVariantsRequired,e)||(i.isAllProductVariantsRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductVariantsRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductVariantsRequired),l("disabled",!0)}}function EP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductVariantsRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function TP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductVariantsVisible,e)||(i.isAllProductVariantsVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductVariantsVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductVariantsVisible),l("disabled",!0)}}function DP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}
87),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductVariantsVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function IP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductVariantsEditable,e)||(i.isAllProductVariantsEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductVariantslEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductVariantsEditable)}}function AP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductVariantsEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function LP(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function kP(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,LP,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function RP(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function OP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBundlingRequired,e)||(i.isAllProductBundlingRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBundlingRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBundlingRequired),l("disabled",!0)}}function GP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBundlingRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function BP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",84),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBundlingVisible,e)||(i.isAllProductBundlingVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBundlingVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBundlingVisible),l("disabled",!0)}}function FP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBundlingVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function WP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllProductBundlingEditable,e)||(i.isAllProductBundlingEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBundlinglEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllProductBundlingEditable)}}function NP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onProductBundlingEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function qP(r,g){if(r&1){let t=y();a(0,"a",77),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",78),b(2,"path",79),s(),h(3," Manage "),s()}}function UP(r,g){if(r&1&&(a(0,"div",74)(1,"span",75),h(2),s(),S(3,qP,4,0,"a",76),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function HP(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function jP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Required"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyRequired,e)||(i.isAllRefundPolicyRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRefundPolicyRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyRequired)}}function zP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function ZP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Visible"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyVisible,e)||(i.isAllRefundPolicyVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllRefundPolicyVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyVisible)}}function QP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function YP(r,g){if(r&1){let t=y();a(0,"div",80)(1,"span",81),h(2,"Editable"),s(),a(3,"dx-switch",82),_("valueChange",function(e){p(t);let i=m();return C(i.isAllRefundPolicyEditable,e)||(i.isAllRefundPolicyEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllProductBundlinglEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllRefundPolicyEditable)}}function KP(r,g){if(r&1){let t=y();a(0,"div",83)(1,"dx-switch",82),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onRefundPolicyEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,hn,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function JP(r,g){if(r&1){let t=y();a(0,"a",90),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(1,"svg",91),b(2,"path",92),s()()}}function XP(r,g){if(r&1){let t=y();a(0,"a",93),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(1,"svg",91),b(2,"path",94),s()()}}function $P(r,g){if(r&1&&(a(0,"div",85)(1,"span",86),h(2),s(),a(3,"div",87),S(4,JP,3,0,"a",88)(5,XP,3,0,"a",89),s()()),r&2){let t=g.$implicit;o(2),R(t.lookupValue),o(2),l("ngIf",!t.isSystemProperty),o(),l("ngIf",!t.isSystemProperty&&(t==null?null:t.entity)!=="ProductConfiguration")}}function e8(r,g){if(r&1){let t=y();a(0,"div",95)(1,"a",96),f("click",function(){p(t);let e=m();return u(e.LookupValuePopupEvent())}),A(),a(2,"svg",97),b(3,"circle",98)(4,"path",99),s(),h(5," Add Value "),s()()}}function t8(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span",100),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function i8(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span",100),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function n8(r,g){if(r&1){let t=y();a(0,"div",61)(1,"dx-text-area",101),_("valueChange",function(e){p(t);let i=m();return C(i.lookupDescription,e)||(i.lookupDescription=e),u(e)}),a(2,"dx-validator"),b(3,"dxi-validation-rule",64),s()()()}if(r&2){let t=m();o(),l("labelMode",t.labelMode),x("value",t.lookupDescription),l("inputAttr",I(3,Ks))}}function o8(r,g){if(r&1){let t=y();a(0,"div",102)(1,"div",103)(2,"dx-switch",104),_("valueChange",function(e){p(t);let i=m();return C(i.isInventory,e)||(i.isInventory=e),u(e)}),s(),h(3,"Allow Inventory "),s()()}if(r&2){let t=m();o(2),x("value",t.isInventory)}}function a8(r,g){if(r&1){let t=y();a(0,"dx-button",105),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function r8(r,g){if(r&1){let t=y();a(0,"dx-button",106),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function s8(r,g){if(r&1){let t=y();a(0,"dx-button",107),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var Js=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=n,this.propertyService=e,this.webStorageService=i,this.authenticationService=d,this.permissionService=c,this.propertyManagementCommonService=v,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.taxInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={}
87,this.productConfigurationControls=[],this.productConfigurationControlsTypes=[],this.allproductConfigurationControls=[],this.productConfigurationCode="",this.selectedproductConfigurationControl="All",this.productConfigurationControlType=[],this.isAllProductConfigurationRequired=!1,this.isAllProductConfigurationVisible=!1,this.isAllProductConfigurationEditable=!1,this.productConfigurationType=[],this.productCollapseExpand=!1,this.productInformationControls=[],this.productInformationControlsTypes=[],this.allProductInformationControls=[],this.productInformationCode="",this.selectedproductInformationControl="All",this.productInformationControlType=[],this.isAllProductInformationRequired=!1,this.isAllProductInformationVisible=!1,this.isAllProductInformationEditable=!1,this.productInformationType=[],this.productInformationCollapseExpand=!1,this.productInventoryControls=[],this.productInventoryControlsTypes=[],this.allProductInventoryControls=[],this.productInventoryCode="",this.selectedProductInventoryControl="All",this.productInventoryControlType=[],this.isAllProductInventoryRequired=!1,this.isAllProductInventoryVisible=!1,this.isAllProductInventoryEditable=!1,this.productInventoryType=[],this.productInventoryCollapseExpand=!1,this.productAccountingControls=[],this.productAccountingControlsTypes=[],this.allProductAccountingControls=[],this.productAccountingCode="",this.selectedProductAccountingControl="All",this.productAccountingControlType=[],this.isAllProductAccountingRequired=!1,this.isAllProductAccountingVisible=!1,this.isAllProductAccountingEditable=!1,this.productAccountingType=[],this.productAccountingCollapseExpand=!1,this.productShippingControls=[],this.productShippingControlsTypes=[],this.allProductShippingControls=[],this.productShippingCode="",this.selectedProductShippingControl="All",this.productShippingControlType=[],this.isAllProductShippingRequired=!1,this.isAllProductShippingVisible=!1,this.isAllProductShippingEditable=!1,this.productShippingType=[],this.productShippingCollapseExpand=!1,this.productAccountingsetupProductControls=[],this.productAccountingsetupProductControlsTypes=[],this.allproductAccountingsetupControls=[],this.productAccountingSetUpCode="",this.selectedProductAccountingSetUpControl="All",this.productAccountingSetUpControlType=[],this.isAllproductAccountingsetupRequired=!1,this.isAllproductAccountingsetupVisible=!1,this.isAllproductAccountingsetupEditable=!1,this.productAccountingSetUpType=[],this.productAccountingSetUpCollapseExpand=!1,this.productPricingGroupControls=[],this.productPricingGroupControlsTypes=[],this.allProductPricingGroupControls=[],this.productPricingGroupCode="",this.selectedProductPricingGroupControl="All",this.productPricingGroupControlType=[],this.isAllProductPricingGroupRequired=!1,this.isAllProductPricingGroupVisible=!1,this.isAllProductPricingGroupEditable=!1,this.productPricingGroupType=[],this.productPricingGroupCollapseExpand=!1,this.productBenefitControls=[],this.productBenefitControlsTypes=[],this.allProductBenefitControls=[],this.productBenefitCode="",this.selectedProductBenefitControl="All",this.productBenefitControlType=[],this.isAllProductBenefitRequired=!1,this.isAllProductBenefitVisible=!1,this.isAllProductBenefitEditable=!1,this.productBenefitType=[],this.productBenefitCollapseExpand=!1,this.productVariantsControls=[],this.productVariantsControlsTypes=[],this.allProductVariantsControls=[],this.productVariantsCode="",this.selectedProductVariantsControl="All",this.productVariantsControlType=[],this.isAllProductVariantsRequired=!1,this.isAllProductVariantsVisible=!1,this.isAllProductVariantsEditable=!1,this.productVariantsType=[],this.productVariantsCollapseExpand=!1,this.productBundlingControls=[],this.productBundlingControlsTypes=[],this.allProductBundlingControls=[],this.productBundlingCode="",this.selectedProductBundlingControl="All",this.productBundlingControlType=[],this.isAllProductBundlingRequired=!1,this.isAllProductBundlingVisible=!1,this.isAllProductBundlingEditable=!1,this.productBundlingType=[],this.productBundlingCollapseExpand=!1,this.refundPolicyControls=[],this.refundPolicyControlsTypes=[],this.allRefundPolicyControls=[],this.refundPolicyCode="",this.selectedRefundPolicyControl
87="All",this.refundPolicyControlType=[],this.isAllRefundPolicyRequired=!1,this.isAllRefundPolicyVisible=!1,this.isAllRefundPolicyEditable=!1,this.refundPolicyType=[],this.refundPolicyCollapseExpand=!1,this.productSettingControls=[],this.productSettingControlsTypes=[],this.allProductSettingControls=[],this.productSettingCode="",this.selectedProductSettingControl="All",this.productSettingControlType=[],this.isAllProductSettingRequired=!1,this.isAllProductSettingVisible=!1,this.isAllProductSettingEditable=!1,this.productSettingType=[],this.productSettingCollapseExpand=!1,this.lookupDescription="",this.isConfigurationLookup=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([V])=>({entitiesModel:V}))).subscribe(V=>{this.loading=!1,Object.keys(V).forEach(T=>this[T]=V[T].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(D=>D.entityType))].forEach(D=>{let W=new ui;W.category=D=="Entity"?"":D,W.entities=this.entitiesModel.filter(Vt=>Vt.entityType==D),this.groupedEntites.push(W)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(T){return T.key=T.category,T.items=T.entities,T}});let E=this.entitiesModel.find(T=>T.name==z.Products);E&&(this.entityID=E.entityID),this.fromPregroupedData.load(),this.GetProductConfigurationProperty(),this.GetProductInformationProperty(),this.GetProductInventoryProperty(),this.GetProductAccountingProperty(),this.GetProductAccountingSetUpProperty(),this.GetProductShippingProperty(),this.GetProductPricingGroupProperty(),this.GetProductBenefitProperty(),this.GetProductVariantsProperty(),this.GetProductBundlingProperty(),this.GetRefundPolicyProperty(),this.GetProductSettingProperty()})},this.asynctProductConfigurationValidation=V=>B(this,null,function*(){return!(this.productConfigurationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductInformationValidation=V=>B(this,null,function*(){return!(this.productInformationControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductInventoryValidation=V=>B(this,null,function*(){return!(this.productInventoryControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductAccountingValidation=V=>B(this,null,function*(){return!(this.productAccountingControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductShippingValidation=V=>B(this,null,function*(){return!(this.productShippingControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductAccountingSetUpValidation=V=>B(this,null,function*(){return!(this.productAccountingsetupProductControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductPricingGroupValidation=V=>B(this,null,function*(){return!(this.productPricingGroupControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductBenefitValidation=V=>B(this,null,function*(){return!(this.productBenefitControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductVariantsValidation=V=>B(this,null,function*(){return!(this.productVariantsControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctProductBundlingValidation=V=>B(this,null,function*(){return!(this.productBundlingControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctRefundPolicyValidation=V=>B(this,null,function*(){return!(this.refundPolicyControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asyncProductSettingValidation=V=>B(this,null,function*(){return!(this.productSettingControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.n
87otAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}productConfiguration(){this.productCollapseExpand=!this.productCollapseExpand}productInformationConfiguration(){this.productInformationCollapseExpand=!this.productInformationCollapseExpand}productInventoryConfiguration(){this.productInventoryCollapseExpand=!this.productInventoryCollapseExpand}productAccountingConfiguration(){this.productAccountingCollapseExpand=!this.productAccountingCollapseExpand}productAccountingSetUpConfiguration(){this.productAccountingSetUpCollapseExpand=!this.productAccountingSetUpCollapseExpand}productShippingConfiguration(){this.productShippingCollapseExpand=!this.productShippingCollapseExpand}productPricingGroupConfiguration(){this.productPricingGroupCollapseExpand=!this.productPricingGroupCollapseExpand}productBenefitConfiguration(){this.productBenefitCollapseExpand=!this.productBenefitCollapseExpand}productVariantsConfiguration(){this.productVariantsCollapseExpand=!this.productVariantsCollapseExpand}productBundlingConfiguration(){this.productBundlingCollapseExpand=!this.productBundlingCollapseExpand}refundPolicyConfiguration(){this.refundPolicyCollapseExpand=!this.refundPolicyCollapseExpand}productSettingsConfiguration(){this.productSettingCollapseExpand=!this.productSettingCollapseExpand}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.isInventory=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.event==null||t.value==null||(this.entityID=t.value,!(this.entityID==null||this.entityID==0)&&this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.ProductConfiguration.toString()?this.GetProductConfigurationProperty():n==M.PropertyPageName.ProductInformation.toString()?this.GetProductInformationProperty():n==M.PropertyPageName.ProductInventory.toString()?this.GetProductInventoryProperty():n==M.PropertyPageName.ProductAccounting.toString()?this.GetProductAccountingProperty():n==M.PropertyPageName.ProductAccountingSetupProduct.toString()?this.GetProductAccountingSetUpProperty():n==M.PropertyPageName.ProductShipping.toString()?this.GetProductShippingProperty():n==M.PropertyPageName.ProductPricingGroup.toString()?this.GetProductPricingGroupProperty():n==M.PropertyPageName.ProductModel.toString()?this.GetProductBenefitProperty():n==M.PropertyPageName.ProductVariants.toString()?this.GetProductVariantsProperty():n==M.PropertyPageName.ProductBundling.toString()?this.GetProductBundlingProperty():n==M.PropertyPageName.RefundPolicy.toString()?this.GetRefundPolicyProperty():n==M.PropertyPageName.ProductSettings.toString()&&this.GetProductSettingProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.isInventory=this.isInventory,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.lookupValue=null,this.isInventory=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.isInventory=this.isInventory,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=this.isConfigurationLookup?z.ProductConfiguration.toString():z.Contact.toString(),this.selectedLookupTableValue.lookupValueDescription=this.lookupDescription,this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.lookupValue=null,this.isInventory=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isInventory=t.isInventory,this.selectedLookupTableValueId=t.lookupTableValueId,this.isEditLookupValue=!0,this.isEditMode=!0,this.lookupDescription=t.entity==z.ProductConfiguration.toString()?t.lookupValueDescription:"",this.isConfigurationLookup=t.entity==z.ProductConfiguration.toString(),this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0,this.selectedLookupTableValueId=t.lookupTableValueId}removeLookupValueDetails(){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.lookupTableValueId=this.selectedLookupTableValueId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(t=>{t.isSuccess?(this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(t.message))},t=>{this.loading=!1,this.showErrorMessage(t.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}onProductConfigurationSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductConfigurationProperty(){this.productConfigurationControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductConfiguration.toString(),L.ProductConfiguration.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allproductConfigurationControls=t.responseModel,this.filterProductConfigurationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductConfigurationProperty(){this.productConfigurationControls=this.allproductConfigurationControls,this.productConfigurationControlsTypes=this.productConfigurationControls,this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!="All"&&(this.productConfigurationControls=this.productConfigurationControls.filter(i=>i.formControlType==this.selectedproductConfigurationControl)),this.allproductConfigurationControls.forEach(i=>{this.productConfigurationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productConfigurationControlType.push(i.formControlType)}),this.productConfigurationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productConfigurationControlType.splice(0,0,"All"),this.isAllProductConfigurationRequired=!1,this.productConfigurationControls.every(i=>i.isRequired==!0)&&(this.isAllProductConfigurationRequired=!0),this.isAllProductConfigurationEditable=!1,this.productConfigurationControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductConfigurationEditable=!0),this.isAllProductConfigurationVisible=!1,this.productConfigurationControls.every(i=>i.isVisible==!0)&&(this.isAllProductConfigurationVisible=!0)}onSelectProductConfigurationType({value:t}
87){t==null&&(t=this.productConfigurationType.length>0?this.productConfigurationType[0].code:""),this.productConfigurationCode=t,this.filterProductConfigurationProperty()}onSelectProductConfigurationControl({value:t}){this.selectedproductConfigurationControl=t,this.filterProductConfigurationProperty()}onProductConfigurationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductConfiguration.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductConfiguration.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productConfigurationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductConfigurationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductConfiguration.toString()))}}onAllProductConfigurationlEditableChanged(t){if(this.isAllProductConfigurationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!="All"&&(n=this.selectedproductConfigurationControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductConfiguration.toString(),L.ProductConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductConfigurationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductConfigurationRequired=t.value;let n="";this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!="All"&&(n=this.selectedproductConfigurationControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductConfiguration.toString(),L.ProductConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductConfigurationVisibleChanged(t){if(this.isAllProductConfigurationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!=null&&this.selectedproductConfigurationControl!="All"&&(n=this.selectedproductConfigurationControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductConfiguration.toString(),L.ProductConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductConfigurationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductConfigurationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductConfigurationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductConfigurationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInformationSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductInformationProperty(){this.productInformationControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductInformation.toString(),L.ProductInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductInformationControls=t.responseModel,this.filterProductInformationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductInformationProperty(){this.productInformationControls=this.allProductInformationControls,this.productInformationControlsTypes=this.productInformationControls,this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!="All"&&(this.productInformationControls=this.productInformationControls.filter(i=>i.formControlType==this.selectedproductInformationControl)),this.allProductInformationControls.forEach(i=>{this.productInformationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productInformationControlType.push(i.formControlType)}),this.productInformationControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productInformationControlType.splice(0,0,"All"),this.isAllProductInformationRequired=!1,this.productInformationControls.every(i=>i.isRequired==!0)&&(this.isAllProductInformationRequired=!0),this.isAllProductInformationEditable=!1,this.productInformationControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductInformationEditable=!0),this.isAllProductInformationVisible=!1,this.productInformationControls.every(i=>i.isVisible==!0)&&(this.isAllProductInformationVisible=!0)}onSelectProductInformationType({value:t}){t==null&&(t=this.productInformationType.length>0?this.productInformationType[0].code:""),this.productInformationCode=t,this.filterProductInformationProperty()}onSelectProductInformationControl({value:t}){this.selectedproductInformationControl=t,this.filterProductInformationProperty()}onProductInformationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productInformationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductInformationProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductInformation.toString()))}}onAllProductInformationlEditableChanged(t){if(this.isAllProductInformationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!="All"&&(n=this.selectedproductInformationControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductInformation.toString(),L.ProductInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductInformationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductInformationRequired=t.value;let n="";this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!="All"&&(n=this.selectedproductInformationControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductInformation.toString(),L.ProductInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductInformationVisibleChanged(t){if(this.isAllProductInformationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!=null&&this.selectedproductInformationControl!="All"&&(n=this.selectedproductInformationControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductInformation.toString(),L.ProductInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInformationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInformationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInformationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInformationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInventorySelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductInventoryProperty(){this.productInventoryControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductInventory.toString(),L.ProductInventory.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductInventoryControls=t.responseModel,this.filterProductInventoryProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductInventoryProperty(){this.productInventoryControls=this.allProductInventoryControls,this.productInventoryControlsTypes=this.productInventoryControls,this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!="All"&&(this.productInventoryControl
87s=this.productInventoryControls.filter(i=>i.formControlType==this.selectedProductInventoryControl)),this.allProductInventoryControls.forEach(i=>{this.productInventoryControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productInventoryControlType.push(i.formControlType)}),this.productInventoryControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productInventoryControlType.splice(0,0,"All"),this.isAllProductInventoryRequired=!1,this.productInventoryControls.every(i=>i.isRequired==!0)&&(this.isAllProductInventoryRequired=!0),this.isAllProductInventoryEditable=!1,this.productInventoryControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductInventoryEditable=!0),this.isAllProductInventoryVisible=!1,this.productInventoryControls.every(i=>i.isVisible==!0)&&(this.isAllProductInventoryVisible=!0)}onSelectProductInventoryType({value:t}){t==null&&(t=this.productInventoryType.length>0?this.productInventoryType[0].code:""),this.productInventoryCode=t,this.filterProductInventoryProperty()}onSelectProductInventoryControl({value:t}){this.selectedProductInventoryControl=t,this.filterProductInventoryProperty()}onProductInventoryInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductInventory.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductInventory.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productInventoryControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductInventoryProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductInventory.toString()))}}onAllProductInventorylEditableChanged(t){if(this.isAllProductInventoryEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!="All"&&(n=this.selectedProductInventoryControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductInventory.toString(),L.ProductInventory.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductInventoryRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductInventoryRequired=t.value;let n="";this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!="All"&&(n=this.selectedProductInventoryControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductInventory.toString(),L.ProductInventory.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductInventoryVisibleChanged(t){if(this.isAllProductInventoryVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!=null&&this.selectedProductInventoryControl!="All"&&(n=this.selectedProductInventoryControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductInventory.toString(),L.ProductInventory.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInventoryRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInventoryVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductInventoryEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductInventoryProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductAccountingProperty(){this.productAccountingControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductAccounting.toString(),L.ProductAccounting.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductAccountingControls=t.responseModel,this.filterProductAccountingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductAccountingProperty(){this.productAccountingControls=this.allProductAccountingControls,this.productAccountingControlsTypes=this.productAccountingControls,this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!="All"&&(this.productAccountingControls=this.productAccountingControls.filter(i=>i.formControlType==this.selectedProductAccountingControl)),this.allProductAccountingControls.forEach(i=>{this.productAccountingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productAccountingControlType.push(i.formControlType)}),this.productAccountingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productAccountingControlType.splice(0,0,"All"),this.isAllProductAccountingRequired=!1,this.productAccountingControls.every(i=>i.isRequired==!0)&&(this.isAllProductAccountingRequired=!0),this.isAllProductAccountingEditable=!1,this.productAccountingControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductAccountingEditable=!0),this.isAllProductAccountingVisible=!1,this.productAccountingControls.every(i=>i.isVisible==!0)&&(this.isAllProductAccountingVisible=!0)}onSelectProductAccountingType({value:t}){t==null&&(t=this.productAccountingType.length>0?this.productAccountingType[0].code:""),this.productAccountingCode=t,this.filterProductAccountingProperty()}onSelectProductAccountingControl({value:t}){this.selectedProductAccountingControl=t,this.filterProductAccountingProperty()}onProductAccountingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductAccounting.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductAccounting.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productAccountingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductAccountingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductAccounting.toString()))}}onAllProductAccountinglEditableChanged(t){if(this.isAllProductAccountingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!="All"&&(n=this.selectedProductAccountingControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccounting.toString(),L.ProductAccounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductAccountingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductAccountingRequired=t.value;let n="";this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!="All"&&(n=this.selectedProductAccountingControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccounting.toString(),L.ProductAccounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductAccountingVisibleChanged(t){if(this.isAllProductAccountingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!=null&&this.selectedProductAccountingControl!="All"&&(n=this.selectedProductAccountingControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccounting.toString(),L.ProductAccounting.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductShippingSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductShippingProperty(){this.productShippingControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductShipping.toString(),L.ProductShipping.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductShippingControls=t.responseModel,this.filterProductShippingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductShippingProperty(){this.productShippingControls=this.allProductShippingControls,this.productShippingControlsTypes=this.productShippingControls,this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!="All"&&(this.productShippingControls=this.productShippingControls.filter(i=>i.formControlType==this.selectedProductShippingControl)),this.allProductShippingControls.forEac
87h(i=>{this.productShippingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productShippingControlType.push(i.formControlType)}),this.productShippingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productShippingControlType.splice(0,0,"All"),this.isAllProductShippingRequired=!1,this.productShippingControls.every(i=>i.isRequired==!0)&&(this.isAllProductShippingRequired=!0),this.isAllProductShippingEditable=!1,this.productShippingControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductShippingEditable=!0),this.isAllProductShippingVisible=!1,this.productShippingControls.every(i=>i.isVisible==!0)&&(this.isAllProductShippingVisible=!0)}onSelectProductShippingType({value:t}){t==null&&(t=this.productShippingType.length>0?this.productShippingType[0].code:""),this.productShippingCode=t,this.filterProductShippingProperty()}onSelectProductShippingControl({value:t}){this.selectedProductShippingControl=t,this.filterProductShippingProperty()}onProductShippingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductShipping.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductShipping.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productShippingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductShippingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductShipping.toString()))}}onAllProductShippinglEditableChanged(t){if(this.isAllProductShippingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!="All"&&(n=this.selectedProductShippingControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductShipping.toString(),L.ProductShipping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductShippingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductShippingRequired=t.value;let n="";this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!="All"&&(n=this.selectedProductShippingControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductShipping.toString(),L.ProductShipping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductShippingVisibleChanged(t){if(this.isAllProductShippingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!=null&&this.selectedProductShippingControl!="All"&&(n=this.selectedProductShippingControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductShipping.toString(),L.ProductShipping.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductShippingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductShippingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductShippingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductShippingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingSetUpSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductAccountingSetUpProperty(){this.productAccountingsetupProductControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductAccountingSetupProduct.toString(),L.ProductAccountingSetupProduct.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allproductAccountingsetupControls=t.responseModel,this.filterProductAccountingSetUpProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductAccountingSetUpProperty(){this.productAccountingsetupProductControls=this.allproductAccountingsetupControls,this.productAccountingsetupProductControlsTypes=this.productAccountingsetupProductControls,this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!="All"&&(this.productAccountingsetupProductControls=this.productAccountingsetupProductControls.filter(i=>i.formControlType==this.selectedProductAccountingSetUpControl)),this.allproductAccountingsetupControls.forEach(i=>{this.productAccountingSetUpControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productAccountingSetUpControlType.push(i.formControlType)}),this.productAccountingSetUpControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productAccountingSetUpControlType.splice(0,0,"All"),this.isAllproductAccountingsetupRequired=!1,this.productAccountingsetupProductControls.every(i=>i.isRequired==!0)&&(this.isAllproductAccountingsetupRequired=!0),this.isAllproductAccountingsetupEditable=!1,this.productAccountingsetupProductControls.every(i=>i.isReadOnly==!0)&&(this.isAllproductAccountingsetupEditable=!0),this.isAllproductAccountingsetupVisible=!1,this.productAccountingsetupProductControls.every(i=>i.isVisible==!0)&&(this.isAllproductAccountingsetupVisible=!0)}onSelectProductAccountingSetUpType({value:t}){t==null&&(t=this.productAccountingSetUpType.length>0?this.productAccountingSetUpType[0].code:""),this.productAccountingSetUpCode=t,this.filterProductAccountingSetUpProperty()}onSelectProductAccountingSetUpControl({value:t}){this.selectedProductAccountingSetUpControl=t,this.filterProductAccountingSetUpProperty()}onProductAccountingSetUpInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductAccountingSetupProduct.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductAccountingSetupProduct.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productAccountingsetupProductControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductAccountingSetUpProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductAccountingSetupProduct.toString()))}}onAllProductAccountingSetUpEditableChanged(t){if(this.isAllproductAccountingsetupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!="All"&&(n=this.selectedProductAccountingSetUpControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccountingSetupProduct.toString(),L.ProductAccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetUpRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllproductAccountingsetupRequired=t.value;let n="";this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!="All"&&(n=this.selectedProductAccountingSetUpControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccountingSetupProduct.toString(),L.ProductAccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAccountingSetUpVisibleChanged(t){if(this.isAllproductAccountingsetupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!=null&&this.selectedProductAccountingSetUpControl!="All"&&(n=this.selectedProductAccountingSetUpControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductAccountingSetupProduct.toString(),L.ProductAccountingSetupProduct.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingSetUpRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingSetUpVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductAccountingSetUpEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductAccountingSetUpProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductPricingGroupSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductPricingGroupProperty(){this.productPricingGroupControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductPricingGroup.toString(),L.ProductPricingGroup.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductPricingGroupControls=t.responseModel,this.filterProductPricingGroupProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductPricingGroupProperty(){this.productPricingGroupControls=this.allProductPricingGroupControls,this.productPricingGroupControlsTypes=this.productPricingGroupControls,this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!="All"&&(this.productPricingGroupControls=this.productPricingGroupControls.filter(i=>i.formControlType==this.selectedProductPricingGroupControl)),this.allProductPricingGroupControls.forEac
87h(i=>{this.productPricingGroupControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productPricingGroupControlType.push(i.formControlType)}),this.productPricingGroupControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productPricingGroupControlType.splice(0,0,"All"),this.isAllProductPricingGroupRequired=!1,this.productPricingGroupControls.every(i=>i.isRequired==!0)&&(this.isAllProductPricingGroupRequired=!0),this.isAllProductPricingGroupEditable=!1,this.productPricingGroupControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductPricingGroupEditable=!0),this.isAllProductPricingGroupVisible=!1,this.productPricingGroupControls.every(i=>i.isVisible==!0)&&(this.isAllProductPricingGroupVisible=!0)}onSelectProductPricingGroupType({value:t}){t==null&&(t=this.productPricingGroupType.length>0?this.productPricingGroupType[0].code:""),this.productPricingGroupCode=t,this.filterProductPricingGroupProperty()}onSelectProductPricingGroupControl({value:t}){this.selectedProductPricingGroupControl=t,this.filterProductPricingGroupProperty()}onProductPricingGroupInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductPricingGroup.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductPricingGroup.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productPricingGroupControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductPricingGroupProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductPricingGroup.toString()))}}onAllProductPricingGrouplEditableChanged(t){if(this.isAllProductPricingGroupEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!="All"&&(n=this.selectedProductPricingGroupControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductPricingGroup.toString(),L.ProductPricingGroup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductPricingGroupRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductPricingGroupRequired=t.value;let n="";this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!="All"&&(n=this.selectedProductPricingGroupControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductPricingGroup.toString(),L.ProductPricingGroup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductPricingGroupVisibleChanged(t){if(this.isAllProductPricingGroupVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!=null&&this.selectedProductPricingGroupControl!="All"&&(n=this.selectedProductPricingGroupControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductPricingGroup.toString(),L.ProductPricingGroup.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductPricingGroupRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductPricingGroupVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductPricingGroupEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductPricingGroupProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductBenefitProperty(){this.productBenefitControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductModel.toString(),L.ProductModel.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductBenefitControls=t.responseModel,this.filterProductBenefitProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductBenefitProperty(){this.productBenefitControls=this.allProductBenefitControls,this.productBenefitControlsTypes=this.productBenefitControls,this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(this.productBenefitControls=this.productBenefitControls.filter(i=>i.formControlType==this.selectedProductBenefitControl)),this.allProductBenefitControls.forEach(i=>{this.productBenefitControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productBenefitControlType.push(i.formControlType)}),this.productBenefitControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productBenefitControlType.splice(0,0,"All"),this.isAllProductBenefitRequired=!1,this.productBenefitControls.every(i=>i.isRequired==!0)&&(this.isAllProductBenefitRequired=!0),this.isAllProductBenefitEditable=!1,this.productBenefitControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductBenefitEditable=!0),this.isAllProductBenefitVisible=!1,this.productBenefitControls.every(i=>i.isVisible==!0)&&(this.isAllProductBenefitVisible=!0)}onSelectProductBenefitType({value:t}){t==null&&(t=this.productBenefitType.length>0?this.productBenefitType[0].code:""),this.productBenefitCode=t,this.filterProductBenefitProperty()}onSelectProductBenefitControl({value:t}){this.selectedProductBenefitControl=t,this.filterProductBenefitProperty()}onProductBenefitInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductModel.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductModel.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productBenefitControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductBenefitProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductModel.toString()))}}onAllProductBenefitlEditableChanged(t){if(this.isAllProductBenefitEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductModel.toString(),L.ProductModel.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBenefitRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductBenefitRequired=t.value;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductModel.toString(),L.ProductModel.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBenefitVisibleChanged(t){if(this.isAllProductBenefitVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!=null&&this.selectedProductBenefitControl!="All"&&(n=this.selectedProductBenefitControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductModel.toString(),L.ProductModel.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBenefitEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBenefitProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductVariantsSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductVariantsProperty(){this.productVariantsControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductVariants.toString(),L.ProductVariants.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductVariantsControls=t.responseModel,this.filterProductVariantsProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductVariantsProperty(){this.productVariantsControls=this.allProductVariantsControls,this.productVariantsControlsTypes=this.productVariantsControls,this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!="All"&&(this.productVariantsControls=this.productVariantsControls.filter(i=>i.formControlType==this.selectedProductVariantsControl)),this.allProductVariantsControl
87s.forEach(i=>{this.productVariantsControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productVariantsControlType.push(i.formControlType)}),this.productVariantsControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productVariantsControlType.splice(0,0,"All"),this.isAllProductVariantsRequired=!1,this.productVariantsControls.every(i=>i.isRequired==!0)&&(this.isAllProductVariantsRequired=!0),this.isAllProductVariantsEditable=!1,this.productVariantsControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductVariantsEditable=!0),this.isAllProductVariantsVisible=!1,this.productVariantsControls.every(i=>i.isVisible==!0)&&(this.isAllProductVariantsVisible=!0)}onSelectProductVariantsType({value:t}){t==null&&(t=this.productVariantsType.length>0?this.productVariantsType[0].code:""),this.productVariantsCode=t,this.filterProductVariantsProperty()}onSelectProductVariantsControl({value:t}){this.selectedProductVariantsControl=t,this.filterProductVariantsProperty()}onProductVariantsInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductVariants.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductVariants.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productVariantsControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductVariantsProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductVariants.toString()))}}onAllProductVariantslEditableChanged(t){if(this.isAllProductVariantsEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!="All"&&(n=this.selectedProductVariantsControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductVariants.toString(),L.ProductVariants.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductVariantsRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductVariantsRequired=t.value;let n="";this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!="All"&&(n=this.selectedProductVariantsControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductVariants.toString(),L.ProductVariants.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductVariantsVisibleChanged(t){if(this.isAllProductVariantsVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!=null&&this.selectedProductVariantsControl!="All"&&(n=this.selectedProductVariantsControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductVariants.toString(),L.ProductVariants.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductVariantsRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductVariantsVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductVariantsEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductVariantsProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBundlingSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductBundlingProperty(){this.productBundlingControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductBundling.toString(),L.ProductBundling.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductBundlingControls=t.responseModel,this.filterProductBundlingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductBundlingProperty(){this.productBundlingControls=this.allProductBundlingControls,this.productBundlingControlsTypes=this.productBundlingControls,this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!="All"&&(this.productBundlingControls=this.productBundlingControls.filter(i=>i.formControlType==this.selectedProductBundlingControl)),this.allProductBundlingControls.forEach(i=>{this.productBundlingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productBundlingControlType.push(i.formControlType)}),this.productBundlingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productBundlingControlType.splice(0,0,"All"),this.isAllProductBundlingRequired=!1,this.productBundlingControls.every(i=>i.isRequired==!0)&&(this.isAllProductBundlingRequired=!0),this.isAllProductBundlingEditable=!1,this.productBundlingControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductBundlingEditable=!0),this.isAllProductBundlingVisible=!1,this.productBundlingControls.every(i=>i.isVisible==!0)&&(this.isAllProductBundlingVisible=!0)}onSelectProductBundlingType({value:t}){t==null&&(t=this.productBundlingType.length>0?this.productBundlingType[0].code:""),this.productBundlingCode=t,this.filterProductBundlingProperty()}onSelectProductBundlingControl({value:t}){this.selectedProductBundlingControl=t,this.filterProductBundlingProperty()}onProductBundlingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductBundling.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductBundling.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productBundlingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductBundlingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductBundling.toString()))}}onAllProductBundlinglEditableChanged(t){if(this.isAllProductBundlingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!="All"&&(n=this.selectedProductBundlingControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductBundling.toString(),L.ProductBundling.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBundlingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductBundlingRequired=t.value;let n="";this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!="All"&&(n=this.selectedProductBundlingControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductBundling.toString(),L.ProductBundling.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductBundlingVisibleChanged(t){if(this.isAllProductBundlingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!=null&&this.selectedProductBundlingControl!="All"&&(n=this.selectedProductBundlingControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductBundling.toString(),L.ProductBundling.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBundlingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBundlingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductBundlingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductBundlingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicySelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetRefundPolicyProperty(){this.refundPolicyControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allRefundPolicyControls=t.responseModel,this.filterRefundPolicyProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterRefundPolicyProperty(){this.refundPolicyControls=this.allRefundPolicyControls,this.refundPolicyControlsTypes=this.refundPolicyControls,this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(this.refundPolicyControls=this.refundPolicyControls.filter(i=>i.formControlType==this.selectedRefundPolicyControl)),this.allRefundPolicyControls.forEac
87h(i=>{this.refundPolicyControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.refundPolicyControlType.push(i.formControlType)}),this.refundPolicyControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.refundPolicyControlType.splice(0,0,"All"),this.isAllRefundPolicyRequired=!1,this.refundPolicyControls.every(i=>i.isRequired==!0)&&(this.isAllRefundPolicyRequired=!0),this.isAllRefundPolicyEditable=!1,this.refundPolicyControls.every(i=>i.isReadOnly==!0)&&(this.isAllRefundPolicyEditable=!0),this.isAllRefundPolicyVisible=!1,this.refundPolicyControls.every(i=>i.isVisible==!0)&&(this.isAllRefundPolicyVisible=!0)}onSelectRefundPolicyType({value:t}){t==null&&(t=this.refundPolicyType.length>0?this.refundPolicyType[0].code:""),this.refundPolicyCode=t,this.filterRefundPolicyProperty()}onSelectRefundPolicyControl({value:t}){this.selectedRefundPolicyControl=t,this.filterRefundPolicyProperty()}onRefundPolicyInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.RefundPolicy.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.RefundPolicy.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.refundPolicyControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetRefundPolicyProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.RefundPolicy.toString()))}}onAllRefundPolicyEditableChanged(t){if(this.isAllRefundPolicyEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.UpdateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRefundPolicyRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllRefundPolicyRequired=t.value;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllRefundPolicyVisibleChanged(t){if(this.isAllRefundPolicyVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!=null&&this.selectedRefundPolicyControl!="All"&&(n=this.selectedRefundPolicyControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.RefundPolicy.toString(),L.RefundPolicy.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onRefundPolicyEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetRefundPolicyProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductSettingSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetProductSettingProperty(){this.productSettingControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Products.toString(),M.PropertyPageName.ProductSettings.toString(),L.ProductSettings.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allProductSettingControls=t.responseModel,this.filterProductSettingProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterProductSettingProperty(){this.productSettingControls=this.allProductSettingControls,this.productSettingControlsTypes=this.productSettingControls,this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!="All"&&(this.productSettingControls=this.productSettingControls.filter(i=>i.formControlType==this.selectedProductSettingControl)),this.allProductSettingControls.forEach(i=>{this.productSettingControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.productSettingControlType.push(i.formControlType)}),this.productSettingControlType.find(i=>i.toLowerCase()=="All".toLowerCase())==null&&this.productSettingControlType.splice(0,0,"All"),this.isAllProductSettingRequired=!1,this.productSettingControls.every(i=>i.isRequired==!0)&&(this.isAllProductSettingRequired=!0),this.isAllProductSettingEditable=!1,this.productSettingControls.every(i=>i.isReadOnly==!0)&&(this.isAllProductSettingEditable=!0),this.isAllProductSettingVisible=!1,this.productSettingControls.every(i=>i.isVisible==!0)&&(this.isAllProductSettingVisible=!0)}onSelectProductSettingType({value:t}){t==null&&(t=this.productSettingType.length>0?this.productSettingType[0].code:""),this.productSettingCode=t,this.filterProductSettingProperty()}onSelectProductSettingControl({value:t}){this.selectedProductSettingControl=t,this.filterProductSettingProperty()}onProductSettingInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.ProductSettings.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.ProductSettings.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.productSettingControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetProductSettingProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.ProductSettings.toString()))}}onAllProductSettingEditableChanged(t){if(this.isAllProductSettingEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!="All"&&(n=this.selectedProductSettingControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Products.toString(),M.PropertyPageName.ProductSettings.toString(),L.ProductSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductSettingRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllProductSettingRequired=t.value;let n="";this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!="All"&&(n=this.selectedProductSettingControl),this.propertyService.UpdateAllRequiredFieldControl(F.Products.toString(),M.PropertyPageName.ProductSettings.toString(),L.ProductSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllProductSettingVisibleChanged(t){if(this.isAllProductSettingVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!=null&&this.selectedProductSettingControl!="All"&&(n=this.selectedProductSettingControl),this.propertyService.UpdateAllVisibleFieldControl(F.Products.toString(),M.PropertyPageName.ProductSettings.toString(),L.ProductSettings.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductSettingRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductSettingVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onProductSettingEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetProductSettingProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-product-info-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(ZS,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:528,vars:506,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Products","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUp
87dating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],["class","full-width add-value-box",4,"ngIf"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,""],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],["class","dx-field full-width add-value-block",4,"ngIf"],["class","dx-field full-width",4,"ngIf"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[2,"margin","0",3,"valueChange","onValueChanged","value","disabled"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["class","edit","href","javascript:void(0)",3,"click",4,"ngIf"],["class","delete","href","javascript:void(0)",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"property-add-value"],["label","Description",3,"valueChange","labelMode","value","inputAttr"],[1,"dx-field","full-width"],[1,"switch-btn"],[3,"valueChange","value"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();
vendor: 9,958 bytes, line 87
87a(0,"div",1)(1,"div",2)(2,"ul",3)(3,"li",4)(4,"a",5),h(5,"Admin"),s()(),a(6,"li",4)(7,"a",5),h(8,"Property Management"),s()(),a(9,"li",4),h(10,"Product Configuration"),s()()(),a(11,"div",6)(12,"div",7)(13,"h1",8),h(14,"Product Configuration"),s(),a(15,"div",9)(16,"dx-select-box",10),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(17,"div",11)(18,"form",12)(19,"div",13)(20,"dx-scroll-view",14)(21,"div",15)(22,"div",12)(23,"div",16)(24,"h2",17),h(25,"Product Configuration"),s(),a(26,"div",18)(27,"a",19),f("click",function(){return p(i),u(e.productConfiguration())}),A(),a(28,"svg",20),b(29,"path",21),s()()()(),G(),a(30,"div",22)(31,"div",23)(32,"div",24)(33,"div",25)(34,"span"),h(35,"Control Type:"),s(),a(36,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedproductConfigurationControl,c)||(e.selectedproductConfigurationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductConfigurationControl(c))}),s()()()(),a(37,"div",27)(38,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductConfigurationSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductConfigurationInfoSaving(c))}),b(39,"dxo-paging",29)(40,"dxo-editing",30)(41,"dxi-column",31)(42,"dxi-column",32),a(43,"dxi-column",33),b(44,"dxi-validation-rule",34)(45,"dxi-validation-rule",35),S(46,XS,4,3,"div",36),s(),b(47,"dxi-column",37),a(48,"dxi-column",38),S(49,$S,2,4,"span",39),s(),a(50,"dxi-column",40),S(51,e7,4,1,"div",41)(52,t7,2,2,"div",42),s(),a(53,"dxi-column",43),S(54,i7,4,1,"div",41)(55,n7,2,2,"div",42),s(),a(56,"dxi-column",44),S(57,o7,4,1,"div",41)(58,a7,2,4,"div",42),s()()()()()(),a(59,"div",15)(60,"div",12)(61,"div",16)(62,"h2",17),h(63,"Product Information"),s(),a(64,"div",18)(65,"a",19),f("click",function(){return p(i),u(e.productInformationConfiguration())}),A(),a(66,"svg",20),b(67,"path",21),s()()()(),G(),a(68,"div",22)(69,"div",23)(70,"div",24)(71,"div",25)(72,"span"),h(73,"Control Type:"),s(),a(74,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedproductInformationControl,c)||(e.selectedproductInformationControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductInformationControl(c))}),s()()()(),a(75,"div",27)(76,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductInformationSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductInformationInfoSaving(c))}),b(77,"dxo-paging",29)(78,"dxo-editing",30)(79,"dxi-column",31)(80,"dxi-column",32),a(81,"dxi-column",33),b(82,"dxi-validation-rule",34)(83,"dxi-validation-rule",35),S(84,s7,4,3,"div",36),s(),b(85,"dxi-column",37),a(86,"dxi-column",38),S(87,l7,2,4,"span",39),s(),a(88,"dxi-column",40),S(89,d7,4,1,"div",41)(90,c7,2,2,"div",42),s(),a(91,"dxi-column",43),S(92,p7,4,1,"div",41)(93,u7,2,2,"div",42),s(),a(94,"dxi-column",44),S(95,m7,4,1,"div",41)(96,g7,2,2,"div",42),s()()()()()(),a(97,"div",15)(98,"div",12)(99,"div",16)(100,"h2",17),h(101,"Product Inventory"),s(),a(102,"div",18)(103,"a",19),f("click",function(){return p(i),u(e.productInventoryConfiguration())}),A(),a(104,"svg",20),b(105,"path",21),s()()()(),G(),a(106,"div",22)(107,"div",23)(108,"div",24)(109,"div",25)(110,"span"),h(111,"Control Type:"),s(),a(112,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductInventoryControl,c)||(e.selectedProductInventoryControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductInventoryControl(c))}),s()()()(),a(113,"div",27)(114,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductInventorySelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductInventoryInfoSaving(c))}),b(115,"dxo-paging",29)(116,"dxo-editing",30)(117,"dxi-column",31)(118,"dxi-column",32),a(119,"dxi-column",33),b(120,"dxi-validation-rule",34)(121,"dxi-validation-rule",35),S(122,f7,4,3,"div",36),s(),b(123,"dxi-column",37),a(124,"dxi-column",38),S(125,C7,2,4,"span",39),s(),a(126,"dxi-column",40),S(127,_7,4,1,"div",41)(128,y7,2,2,"div",42),s(),a(129,"dxi-column",43),S(130,x7,4,1,"div",41)(131,v7,2,2,"div",42),s(),a(132,"dxi-column",44),S(133,b7,4,1,"div",41)(134,w7,2,4,"div",42),s()()()()()(),a(135,"div",15)(136,"div",12)(137,"div",16)(138,"h2",17),h(139,"Product Accounting"),s(),a(140,"div",18)(141,"a",19),f("click",function(){return p(i),u(e.productAccountingConfiguration())}),A(),a(142,"svg",20),b(143,"path",21),s()()()(),G(),a(144,"div",22)(145,"div",23)(146,"div",24)(147,"div",25)(148,"span"),h(149,"Control Type:"),s(),a(150,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductAccountingControl,c)||(e.selectedProductAccountingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductAccountingControl(c))}),s()()()(),a(151,"div",27)(152,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductAccountingSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductAccountingInfoSaving(c))}),b(153,"dxo-paging",29)(154,"dxo-editing",30)(155,"dxi-column",31)(156,"dxi-column",32),a(157,"dxi-column",33),b(158,"dxi-validation-rule",34)(159,"dxi-validation-rule",35),S(160,P7,4,3,"div",36),s(),b(161,"dxi-column",37),a(162,"dxi-column",38),S(163,M7,2,4,"span",39),s(),a(164,"dxi-column",40),S(165,V7,4,1,"div",41)(166,E7,2,2,"div",42),s(),a(167,"dxi-column",43),S(168,T7,4,1,"div",41)(169,D7,2,2,"div",42),s(),a(170,"dxi-column",44),S(171,I7,4,1,"div",41)(172,A7,2,4,"div",42),s()()()()()(),a(173,"div",15)(174,"div",12)(175,"div",16)(176,"h2",17),h(177,"Product Accounting - Setup"),s(),a(178,"div",18)(179,"a",19),f("click",function(){return p(i),u(e.productAccountingSetUpConfiguration())}),A(),a(180,"svg",20),b(181,"path",21),s()()()(),G(),a(182,"div",22)(183,"div",23)(184,"div",24)(185,"div",25)(186,"span"),h(187,"Control Type:"),s(),a(188,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductAccountingSetUpControl,c)||(e.selectedProductAccountingSetUpControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductAccountingSetUpControl(c))}),s()()()(),a(189,"div",27)(190,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductAccountingSetUpSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductAccountingSetUpInfoSaving(c))}),b(191,"dxo-paging",29)(192,"dxo-editing",30)(193,"dxi-column",31)(194,"dxi-column",32),a(195,"dxi-column",33),b(196,"dxi-validation-rule",34)(197,"dxi-validation-rule",35),S(198,k7,4,3,"div",36),s(),b(199,"dxi-column",37),a(200,"dxi-column",38),S(201,R7,2,4,"span",39),s(),a(202,"dxi-column",40),S(203,O7,4,1,"div",41)(204,G7,2,2,"div",42),s(),a(205,"dxi-column",43),S(206,B7,4,1,"div",41)(207,F7,2,2,"div",42),s(),a(208,"dxi-column",44),S(209,W7,4,1,"div",41)(210,N7,2,4,"div",42),s()()()()()(),a(211,"div",15)(212,"div",12)(213,"div",16)(214,"h2",17),h(215,"Product Settings"),s(),a(216,"div",18)(217,"a",19),f("click",function(){return p(i),u(e.productSettingsConfiguration())}),A(),a(218,"svg",20),b(219,"path",21),s()()()(),G(),a(220,"div",22)(221,"div",23)(222,"div",24)(223,"div",25)(224,"span"),h(225,"Control Type:"),s(),a(226,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductSettingControl,c)||(e.selectedProductSettingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductSettingControl(c))}),s()()()(),a(227,"div",27)(228,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductSettingSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductSettingInfoSaving(c))}),b(229,"dxo-paging",29)(230,"dxo-editing",30)(231,"dxi-column",31)(232,"dxi-column",32),a(233,"dxi-column",33),b(234,"dxi-validation-rule",34)(235,"dxi-validation-rule",35),S(236,U7,4,3,"div",36),s(),b(237,"dxi-column",37),a(238,"dxi-column",38),S(239,H7,2,4,"span",39),s(),a(240,"dxi-column",40),S(241,j7,4,1,"div",41)(242,z7,2,2,"div",42),s(),a(243,"dxi-column",43),S(244,Z7,4,1,"div",41)(245,Q7,2,2,"div",42),s(),a(246,"dxi-column",44),S(247,Y7,4,1,"div",41)(248,K7,2,4,"div",42),s()()()()()(),a(249,"div",15)(250,"div",12)(251,"div",16)(252,"h2",17),h(253,"Product Shipping"),s(),a(254,"div",18)(255,"a",19),f("click",function(){return p(i),u(e.productShippingConfiguration())}),A(),a(256,"svg",20),b(257,"path",21),s()()()(),G(),a(258,"div",22)(259,"div",23)(260,"div",24)(261,"div",25)(262,"span"),h(263,"Control Type:"),s(),a(264,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductShippingControl,c)||(e.selectedProductShippingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductShippingControl(c))}),s()()()(),a(265,"div",27)(266,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductShippingSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductShippingInfoSaving(c))}),b(267,"dxo-paging",29)(268,"dxo-editing",30)(269,"dxi-column",31)(270,"dxi-column",32),a(271,"dxi-column",33),b(272,"dxi-validation-rule",34)(273,"dxi-validation-rule",35),S(274,X7,4,3,"div",36),s(),b(275,"dxi-column",37),a(276,"dxi-column",38),S(277,$7,2,4,"span",39),s(),a(278,"dxi-column",40),S(279,eP,4,1,"div",41)(280,tP,2,2,"div",42),s(),a(281,"dxi-column",43),S(282,iP,4,1,"div",41)(283,nP,2,2,"div",42),s(),a(284,"dxi-column",44),S(285,oP,4,1,"div",41)(286,aP,2,4,"div",42),s()()()()()(),a(287,"div",15)(288,"div",12)(289,"div",16)(290,"h2",17),h(291,"Product Pricing Group"),s(),a(292,"div",18)(293,"a",19),f("click",function(){return p(i),u(e.productPricingGroupConfiguration())}),A(),a(294,"svg",20),b(295,"path",21),s()()()(),G(),a(296,"div",22)(297,"div",23)(298,"div",24)(299,"div",25)(300,"span"),h(301,"Control Type:"),s(),a(302,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductPricingGroupControl,c)||(e.selectedProductPricingGroupControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductPricingGroupControl(c))}),s()()()(),a(303,"div",27)(304,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductPricingGroupSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductPricingGroupInfoSaving(c))}),b(305,"dxo-paging",29)(306,"dxo-editing",30)(307,"dxi-column",31)(308,"dxi-column",32),a(309,"dxi-column",33),b(310,"dxi-validation-rule",34)(311,"dxi-validation-rule",35),S(312,sP,4,3,"div",36),s(),b(313,"dxi-column",37),a(314,"dxi-column",38),S(315,lP,2,4,"span",39),s(),a(316,"dxi-column",40),S(317,dP,4,1,"div",41)(318,cP,2,2,"div",42),s(),a(319,"dxi-column",43),S(320,pP,4,1,"div",41)(321,uP,2,2,"div",42),s(),a(322,"dxi-column",44),S(323,mP,4,1,"div",41)(324,gP,2,4,"div",42),s()()()()()(),a(325,"div",15)(326,"div",12)(327,"div",16)(328,"h2",17),h(329,"Product Benefit"),s(),a(330,"div",18)(331,"a",19),f("click",function(){return p(i),u(e.productBenefitConfiguration())}),A(),a(332,"svg",20),b(333,"path",21),s()()()(),G(),a(334,"div",22)(335,"div",23)(336,"div",24)(337,"div",25)(338,"span"),h(339,"Control Type:"),s(),a(340,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductBenefitControl,c)||(e.selectedProductBenefitControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductBenefitControl(c))}),s()()()(),a(341,"div",27)(342,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductBenefitSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductBenefitInfoSaving(c))}),b(343,"dxo-paging",29)(344,"dxo-editing",30)(345,"dxi-column",31)(346,"dxi-column",32),a(347,"dxi-column",33),b(348,"dxi-validation-rule",34)(349,"dxi-validation-rule",35),S(350,fP,4,3,"div",36),s(),b(351,"dxi-column",37),a(352,"dxi-column",38),S(353,CP,2,4,"span",39),s(),a(354,"dxi-column",40),S(355,_P,4,1,"div",41)(356,yP,2,2,"div",42),s(),a(357,"dxi-column",43),S(358,xP,4,1,"div",41)(359,vP,2,2,"div",42),s(),a(360,"dxi-column",44),S(361,bP,4,1,"div",41)(362,wP,2,4,"div",42),s()()()()()(),a(363,"div",15)(364,"div",12)(365,"div",16)(366,"h2",17),h(367,"Product Variants"),s(),a(368,"div",18)(369,"a",19),f("click",function(){return p(i),u(e.productVariantsConfiguration())}),A(),a(370,"svg",20),b(371,"path",21),s()()()(),G(),a(372,"div",22)(373,"div",23)(374,"div",24)(375,"div",25)(376,"span"),h(377,"Control Type:"),s(),a(378,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductVariantsControl,c)||(e.selectedProductVariantsControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductVariantsControl(c))}),s()()()(),a(379,"div",27)(380,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductVariantsSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductVariantsInfoSaving(c))}),b(381,"dxo-paging",29)(382,"dxo-editing",30)(383,"dxi-column",31)(384,"dxi-column",32),a(385,"dxi-column",33),b(386,"dxi-validation-rule",34)(387,"dxi-validation-rule",35),S(388,PP,4,3,"div",36),s(),b(389,"dxi-column",37),a(390,"dxi-column",38),S(391,MP,2,4,"span",39),s(),a(392,"dxi-column",40),S(393,VP,4,2,"div",41)(394,EP,2,2,"div",42),s(),a(395,"dxi-column",43),S(396,TP,4,2,"div",41)(397,DP,2,2,"div",42),s(),a(398,"dxi-column",44),S(399,IP,4,1,"div",41)(400,AP,2,4,"div",42),s()()()()()(),a(401,"div",15)(402,"div",12)(403,"div",16)(404,"h2",17),h(405,"Product Bundling"),s(),a(406,"div",18)(407,"a",19),f("click",function(){return p(i),u(e.productBundlingConfiguration())}),A(),a(408,"svg",20),b(409,"path",21),s()()()(),G(),a(410,"div",22)(411,"div",23)(412,"div",24)(413,"div",25)(414,"span"),h(415,"Control Type:"),s(),a(416,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedProductBundlingControl,c)||(e.selectedProductBundlingControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectProductBundlingControl(c))}),s()()()(),a(417,"div",27)(418,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onProductBundlingSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onProductBundlingInfoSaving(c))}),b(419,"dxo-paging",29)(420,"dxo-editing",30)(421,"dxi-column",31)(422,"dxi-column",32),a(423,"dxi-column",33),b(424,"dxi-validation-rule",34)(425,"dxi-validation-rule",35),S(426,kP,4,3,"div",36),s(),b(427,"dxi-column",37),a(428,"dxi-column",38),S(429,RP,2,4,"span",39),s(),a(430,"dxi-column",40),S(431,OP,4,2,"div",41)(432,GP,2,2,"div",42),s(),a(433,"dxi-column",43),S(434,BP,4,2,"div",41)(435,FP,2,2,"div",42),s(),a(436,"dxi-column",44),S(437,WP,4,1,"div",41)(438,NP,2,4,"div",42),s()()()()()(),a(439,"div",15)(440,"div",12)(441,"div",16)(442,"h2",17),h(443,"Refund Policy"),s(),a(444,"div",18)(445,"a",19),f("click",function(){return p(i),u(e.refundPolicyConfiguration())}),A(),a(446,"svg",20),b(447,"path",21),s()()()(),G(),a(448,"div",22)(449,"div",23)(450,"div",24)(451,"div",25)(452,"span"),h(453,"Control Type:"),s(),a(454,"dx-select-box",26),_("valueChange",function(c){return p(i),C(e.selectedRefundPolicyControl,c)||(e.selectedRefundPolicyControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectRefundPolicyControl(c))}),s()()()(),a(455,"div",27)(456,"dx-data-grid",28),f("onSelectionChanged",function(c){return p(i),u(e.onRefundPolicySelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onRefundPolicyInfoSaving(c))}),b(457,"dxo-paging",29)(458,"dxo-editing",30)(459,"dxi-column",31)(460,"dxi-column",32),a(461,"dxi-column",33),b(462,"dxi-validation-rule",34)(463,"dxi-validation-rule",35),S(464,UP,4,3,"div",36),s(),b(465,"dxi-column",37),a(466,"dxi-column",38),S(467,HP,2,4,"span",39),s(),a(468,"dxi-column",40),S(469,jP,4,1,"div",41)(470,zP,2,2,"div",42),s(),a(471,"dxi-column",43),S(472,ZP,4,1,"div",41)(473,QP,2,2,"div",42),s(),a(474,"dxi-column",44),S(475,YP,4,1,"div",41)(476,KP,2,4,"div",42),s()()()()()()()()()()(),a(477,"div",45)(478,"div",46)(479,"div",47)(480,"h2"),h(481,"Manage Values for"),a(482,"span"),h(483),s()()(),a(484,"div",48)(485,"div",49)(486,"dx-scroll-view",14),S(487,$P,6,3,"div",50),s()(),S(488,e8,6,0,"div",51),s(),a(489,"div",52)(490,"a",53),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(491," Close "),s()()()(),a(492,"dx-popup",54),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(493,"div",55),S(494,t8,4,1,"h2",56)(495,i8,4,1,"h2",56),s(),a(496,"div",57)(497,"form",58)(498,"dx-validation-group",null,0)(500,"dx-form",59)(501,"dxi-item")(502,"div",60)(503,"div",61)(504,"dx-text-box",62),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(505,"dx-validator"),b(506,"dxi-validation-rule",63)(507,"dxi-validation-rule",64),s()()(),S(508,n8,4,4,"div",65)(509,o8,4,1,"div",66),s()()()()()(),a(510,"div",67)(511,"dx-button",68),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(512,a8,1,0,"dx-button",69)(513,r8,1,0,"dx-button",70)(514,s8,1,0,"dx-button",71),s()(),a(515,"dx-popup",54),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(516,"div",55)(517,"h2"),h(518,"Confirmation"),s()(),a(519,"div",57)(520,"p"),h(521,"Are you sure you want to delete "),a(522,"strong"),h(523),s(),h(524," ?"),s()(),a(525,"div",67)(526,"dx-button",72),f("onClick",function(){return p(i),u(e.closePopup())}),s(),a(527,"dx-button",73),f("onClick",function(){return p(i),u(e.removeLookupValueDetails())}),s()()()}n&2&&(o(16),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(490,QS))("grouped",!0),o(5),l("ngClass",e.productCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productConfigurationControlType),x("value",e.selectedproductConfigurationControl),l("inputAttr",I(491,gn)),o(2),l("dataSource",e.productConfigurationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductConfigurationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productInformationCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productInformationControlType),x("value",e.selectedproductInformationControl),l("inputAttr",I(492,gn)),o(2),l("dataSource",e.productInformationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductInformationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productInventoryCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productInventoryControlType),x("value",e.selectedProductInventoryControl),l("inputAttr",I(493,gn)),o(2),l("dataSource",e.productInventoryControl
87s)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductInventoryValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productAccountingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productAccountingControlType),x("value",e.selectedProductAccountingControl),l("inputAttr",I(494,gn)),o(2),l("dataSource",e.productAccountingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductAccountingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productAccountingSetUpCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productAccountingSetUpControlType),x("value",e.selectedProductAccountingSetUpControl),l("inputAttr",I(495,gn)),o(2),l("dataSource",e.productAccountingsetupProductControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductAccountingSetUpValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productSettingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productSettingControlType),x("value",e.selectedProductSettingControl),l("inputAttr",I(496,gn)),o(2),l("dataSource",e.productSettingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asyncProductSettingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productShippingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productShippingControlType),x("value",e.selectedProductShippingControl),l("inputAttr",I(497,gn)),o(2),l("dataSource",e.productShippingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductShippingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productPricingGroupCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productPricingGroupControlType),x("value",e.selectedProductPricingGroupControl),l("inputAttr",I(498,gn)),o(2),l("dataSource",e.productPricingGroupControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductPricingGroupValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productBenefitCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productBenefitControlType),x("value",e.selectedProductBenefitControl),l("inputAttr",I(499,gn)),o(2),l("dataSource",e.productBenefitControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductBenefitValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productVariantsCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productVariantsControlType),x("value",e.selectedProductVariantsControl),l("inputAttr",I(500,gn)),o(2),l("dataSource",e.productVariantsControl
87s)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductVariantsValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.productBundlingCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.productBundlingControlType),x("value",e.selectedProductBundlingControl),l("inputAttr",I(501,gn)),o(2),l("dataSource",e.productBundlingControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctProductBundlingValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.refundPolicyCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.refundPolicyControlType),x("value",e.selectedRefundPolicyControl),l("inputAttr",I(502,gn)),o(2),l("dataSource",e.refundPolicyControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctRefundPolicyValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),O(" ",e.AddValueHeader,""),o(4),l("ngForOf",e.LookUpTableValues),o(),l("ngIf",(e.LookUpTableValues[0]==null?null:e.LookUpTableValues[0].entity)!=="ProductConfiguration"),o(4),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(503,YS)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(504,Ks)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(2),l("ngIf",e.isConfigurationLookup),o(),l("ngIf",!e.isConfigurationLookup),o(3),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(505,KS)),o(8),R(e.deleteValue))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,lr,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var l8=["addValueGroup"],d8=()=>({"aria-label":"Entity"}),Xs=()=>({"aria-label":"Assign To"}),c8=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),p8=()=>({"aria-label":"ControlName"}),u8=()=>({id:"elementId",class:"popup-outer delete-popup"}),$s=r=>({disabledDiv:r});function m8(r,g){if(r&1){let t=y();a(0,"a",75),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",76),b(2,"path",77),s(),h(3," Manage "),s()}}function g8(r,g){if(r&1&&(a(0,"div",72)(1,"span",73),h(2),s(),S(3,m8,4,0,"a",74),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function h8(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function f8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Required"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbatchRequired,e)||(i.isAllbatchRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbatchRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbatchRequired)}}function C8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbatchRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function _8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Visible"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbatchVisible,e)||(i.isAllbatchVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbatchVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbatchVisible)}}function y8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbatchVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function x8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Editable"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllbatchEditable,e)||(i.isAllbatchEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllbatchlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllbatchEditable)}}function v8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onbatchEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,$s,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function b8(r,g){if(r&1){let t=y();a(0,"a",75),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",76),b(2,"path",77),s(),h(3," Manage "),s()}}function w8(r,g){if(r&1&&(a(0,"div",72)(1,"span",73),h(2),s(),S(3,b8,4,0,"a",74),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function S8(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function P8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Required"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBatchConfigurationRequired,e)||(i.isAllBatchConfigurationRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBatchConfigurationRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBatchConfigurationRequired)}}function M8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBatchConfigurationRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function V8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Visible"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBatchConfigurationVisible,e)||(i.isAllBatchConfigurationVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBatchConfigurationVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBatchConfigurationVisible)}}function E8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBatchConfigurationVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function T8(r,g){if(r&1){let t=y();a(0,"div",78)(1,"span",79),h(2,"Editable"),s(),a(3,"dx-switch",80),_("valueChange",function(e){p(t);let i=m();return C(i.isAllBatchConfigurationEditable,e)||(i.isAllBatchConfigurationEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllBatchConfigurationlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllBatchConfigurationEditable)}}function D8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"dx-switch",80),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onBatchConfigurationEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,$s,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function I8(r,g){if(r&1){let t=y();a(0,"div",82)(1,"span",83),h(2),s(),a(3,"div",84)(4,"a",85),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",86),b(6,"path",87),s()(),G(),a(7,"a",88),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",86),b(9,"path",89),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function A8(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function L8(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function k8(r,g){if(r&1){let t=y();a(0,"dx-button",90),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function R8(r,g){if(r&1){let t=y();a(0,"dx-button",91),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function O8(r,g){if(r&1){let t=y();a(0,"dx-button",92),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}var el=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v,V){super(),this.router=n,this.propertyService=e,this.utilityService=i,this.webStorageService=d,this.authenticationService=c,this.permissionService=v,this.propertyManagementCommonService=V,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.batchInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={}
87,this.taxInfoCollapseExpand=!1,this.batchControls=[],this.batchControlsTypes=[],this.allbatchControls=[],this.batchCode="",this.selectedbatchControl="All",this.batchControlType=[],this.isAllbatchRequired=!1,this.isAllbatchVisible=!1,this.isAllbatchEditable=!1,this.batchType=[],this.batchConfigurationControls=[],this.batchConfigurationControlsTypes=[],this.allBatchConfigurationControls=[],this.batchConfigurationCode="",this.selectedBatchConfigurationControl="All",this.batchConfigurationControlType=[],this.isAllBatchConfigurationRequired=!1,this.isAllBatchConfigurationVisible=!1,this.isAllBatchConfigurationEditable=!1,this.batchConfigurationType=[],this.batchCollapseExpand=!1,this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([E])=>({entitiesModel:E}))).subscribe(E=>{this.loading=!1,Object.keys(E).forEach(D=>this[D]=E[D].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(W=>W.entityType))].forEach(W=>{let Vt=new ui;Vt.category=W=="Entity"?"":W,Vt.entities=this.entitiesModel.filter(ii=>ii.entityType==W),this.groupedEntites.push(Vt)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(D){return D.key=D.category,D.items=D.entities,D}
87});let T=this.entitiesModel.find(D=>D.name==z.Batch);T&&(this.entityID=T.entityID),this.fromPregroupedData.load(),this.GetBatchConfigurationProperty(),this.GetbatchProperty()})},this.asynctbatchValidation=E=>B(this,null,function*(){return!(this.batchControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.asynctBatchConfigurationValidation=E=>B(this,null,function*(){return!(this.batchConfigurationControlsTypes.filter(D=>D.fieldCaption.replace(/ /g,"")==E.value.replace(/ /g,"")&&D.systemPageControlId!=E.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return this.LookUpTableValues!=null&&this.LookUpTableValues.length>0?!this.LookUpTableValues.find(i=>i.lookupValue.trim()==n.trim()&&i.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId):!0}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.value==null||t.value==null||t.value==0||(this.entityID=t.value,this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.List.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onbatchSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetbatchProperty(){this.batchControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Batch.toString(),M.PropertyPageName.Batch.toString(),L.Batch.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allbatchControls=t.responseModel,this.filterbatchProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterbatchProperty(){this.batchControls=this.allbatchControls,this.batchControlsTypes=this.batchControls,this.selectedbatchControl!=null&&this.selectedbatchControl!=null&&this.selectedbatchControl!="All"&&(this.batchControls=this.batchControls.filter(i=>i.formControlType==this.selectedbatchControl)),this.allbatchControls.forEach(i=>{this.batchControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.batchControlType.push(i.formControlType)}),this.batchControlType.find(i=>i.toLowerCase()=="all")==null&&this.batchControlType.splice(0,0,"All"),this.isAllbatchRequired=!1,this.batchControls.every(i=>i.isRequired==!0)&&(this.isAllbatchRequired=!0),this.isAllbatchEditable=!1,this.batchControls.every(i=>i.isReadOnly==!0)&&(this.isAllbatchEditable=!0),this.isAllbatchVisible=!1,this.batchControls.every(i=>i.isVisible==!0)&&(this.isAllbatchVisible=!0)}onSelectbatchType({value:t}){t==null&&(t=this.batchType.length>0?this.batchType[0].code:""),this.batchCode=t,this.filterbatchProperty()}onSelectbatchControl({value:t}){this.selectedbatchControl=t,this.filterbatchProperty()}onbatchInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.Batch.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.Batch.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";
87d.toString().trim().replace(/ /g,"")!=""?this.batchControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetbatchProperty():(t.cancel=!0,t.promise=this.processbatchSaving(n,M.PropertyPageName.Batch.toString()))}}onAllbatchlEditableChanged(t){if(this.isAllbatchEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedbatchControl!=null&&this.selectedbatchControl!=null&&this.selectedbatchControl!="All"&&(n=this.selectedbatchControl),this.propertyService.UpdateAllEditableFieldControl(F.Batch.toString(),M.PropertyPageName.Batch.toString(),L.Batch.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbatchRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllbatchRequired=t.value;let n="";this.selectedbatchControl!=null&&this.selectedbatchControl!=null&&this.selectedbatchControl!="All"&&(n=this.selectedbatchControl),this.propertyService.UpdateAllRequiredFieldControl(F.Batch.toString(),M.PropertyPageName.Batch.toString(),L.Batch.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllbatchVisibleChanged(t){if(this.isAllbatchVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedbatchControl!=null&&this.selectedbatchControl!=null&&this.selectedbatchControl!="All"&&(n=this.selectedbatchControl),this.propertyService.UpdateAllVisibleFieldControl(F.Batch.toString(),M.PropertyPageName.Batch.toString(),L.Batch.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbatchRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbatchVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onbatchEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetbatchProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}batchInformation(){this.taxInfoCollapseExpand=!this.taxInfoCollapseExpand}processbatchSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.Batch.toString()&&this.GetbatchProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}onBatchConfigurationSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetBatchConfigurationProperty(){this.batchConfigurationControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Batch.toString(),M.PropertyPageName.BatchConfiguration.toString(),L.BatchConfiguration.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allBatchConfigurationControls=t.responseModel,this.filterBatchConfigurationProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterBatchConfigurationProperty(){this.batchConfigurationControls=this.allBatchConfigurationControls,this.batchConfigurationControlsTypes=this.batchConfigurationControls,this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!="All"&&(this.batchConfigurationControls=this.batchConfigurationControls.filter(i=>i.formControlType==this.selectedBatchConfigurationControl)),this.allBatchConfigurationControls.forEac
87h(i=>{this.batchConfigurationControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.batchConfigurationControlType.push(i.formControlType)}),this.batchConfigurationControlType.find(i=>i.toLowerCase()=="all")==null&&this.batchConfigurationControlType.splice(0,0,"All"),this.isAllBatchConfigurationRequired=!1,this.batchConfigurationControls.every(i=>i.isRequired==!0)&&(this.isAllBatchConfigurationRequired=!0),this.isAllBatchConfigurationEditable=!1,this.batchConfigurationControls.every(i=>i.isReadOnly==!0)&&(this.isAllBatchConfigurationEditable=!0),this.isAllBatchConfigurationVisible=!1,this.batchConfigurationControls.every(i=>i.isVisible==!0)&&(this.isAllBatchConfigurationVisible=!0)}onSelectBatchConfigurationType({value:t}){t==null&&(t=this.batchConfigurationType.length>0?this.batchConfigurationType[0].code:""),this.batchConfigurationCode=t,this.filterBatchConfigurationProperty()}onSelectBatchConfigurationControl({value:t}){this.selectedBatchConfigurationControl=t,this.filterBatchConfigurationProperty()}onBatchConfigurationInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.BatchConfiguration.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.BatchConfiguration.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.batchConfigurationControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetBatchConfigurationProperty():(t.cancel=!0,t.promise=this.processBatchSaving(n,M.PropertyPageName.BatchConfiguration.toString()))}}onAllBatchConfigurationlEditableChanged(t){if(this.isAllBatchConfigurationEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!="All"&&(n=this.selectedBatchConfigurationControl),this.propertyService.UpdateAllEditableFieldControl(F.Batch.toString(),M.PropertyPageName.BatchConfiguration.toString(),L.BatchConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBatchConfigurationRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllBatchConfigurationRequired=t.value;let n="";this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!="All"&&(n=this.selectedBatchConfigurationControl),this.propertyService.UpdateAllRequiredFieldControl(F.Batch.toString(),M.PropertyPageName.BatchConfiguration.toString(),L.BatchConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllBatchConfigurationVisibleChanged(t){if(this.isAllBatchConfigurationVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!=null&&this.selectedBatchConfigurationControl!="All"&&(n=this.selectedBatchConfigurationControl),this.propertyService.UpdateAllVisibleFieldControl(F.Batch.toString(),M.PropertyPageName.BatchConfiguration.toString(),L.BatchConfiguration.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBatchConfigurationRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>
870&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBatchConfigurationVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onBatchConfigurationEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetBatchConfigurationProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}batchConfigurationInformation(){this.batchCollapseExpand=!this.batchCollapseExpand}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.Batch.toString()&&this.GetBatchConfigurationProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}processBatchSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.BatchConfiguration.toString()&&this.GetBatchConfigurationProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(di),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-batch-configutation"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(l8,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:141,vars:112,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Batches","displayExpr","displayEntityName","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUpdating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),h(4,"Batch Configuration"),s(),a(5,"div",5)(6,"dx-select-box",6),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(7,"div",7)(8,"form",8)(9,"div",9)(10,"dx-scroll-view",10)(11,"div",11)(12,"div",8)(13,"div",12)(14,"h2",13),h(15,"Batches Information"),s(),a(16,"div",14)(17,"a",15),f("click",function(){return p(i),u(e.batchInformation())}),A(),a(18,"svg",16),b(19,"path",17),s()()()(),G(),a(20,"div",18)(21,"div",19)(22,"div",20)(23,"div",21)(24,"span"),h(25,"Control Type:"),s(),a(26,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedbatchControl,c)||(e.selectedbatchControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectbatchControl(c))}),s()()()(),a(27,"div",23)(28,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onbatchSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onbatchInfoSaving(c))}),b(29,"dxo-paging",25)(30,"dxo-editing",26)(31,"dxi-column",27)(32,"dxi-column",28),a(33,"dxi-column",29),b(34,"dxi-validation-rule",30)(35,"dxi-validation-rule",31),S(36,g8,4,3,"div",32),s(),b(37,"dxi-column",33),a(38,"dxi-column",34),S(39,h8,2,4,"span",35),s(),a(40,"dxi-column",36),S(41,f8,4,1,"div",37)(42,C8,2,2,"div",38),s(),a(43,"dxi-column",39),S(44,_8,4,1,"div",37)(45,y8,2,2,"div",38),s(),a(46,"dxi-column",40),S(47,x8,4,1,"div",37)(48,v8,2,4,"div",38),s()()()()()(),a(49,"div",11)(50,"div",8)(51,"div",12)(52,"h2",13),h(53,"Batch Configuration Information"),s(),a(54,"div",14)(55,"a",15),f("click",function(){return p(i),u(e.batchConfigurationInformation())}),A(),a(56,"svg",16),b(57,"path",17),s()()()(),G(),a(58,"div",18)(59,"div",19)(60,"div",20)(61,"div",21)(62,"span"),h(63,"Control Type:"),s(),a(64,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedBatchConfigurationControl,c)||(e.selectedBatchConfigurationControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectBatchConfigurationControl(c))}),s()()()(),a(65,"div",23)(66,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onBatchConfigurationSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onBatchConfigurationInfoSaving(c))}),b(67,"dxo-paging",25)(68,"dxo-editing",26)(69,"dxi-column",27)(70,"dxi-column",28),a(71,"dxi-column",29),b(72,"dxi-validation-rule",30)(73,"dxi-validation-rule",31),S(74,w8,4,3,"div",32),s(),b(75,"dxi-column",33),a(76,"dxi-column",34),S(77,S8,2,4,"span",35),s(),a(78,"dxi-column",36),S(79,P8,4,1,"div",37)(80,M8,2,2,"div",38),s(),a(81,"dxi-column",39),S(82,V8,4,1,"div",37)(83,E8,2,2,"div",38),s(),a(84,"dxi-column",40),S(85,T8,4,1,"div",37)(86,D8,2,4,"div",38),s()()()()()()()()()()(),a(87,"div",41)(88,"div",42)(89,"div",43)(90,"h2"),h(91,"Manage Values for "),a(92,"span"),h(93),s()()(),a(94,"div",44)(95,"div",45)(96,"dx-scroll-view",10),S(97,I8,10,1,"div",46),s()(),a(98,"div",47)(99,"a",48),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(100,"svg",49),b(101,"circle",50)(102,"path",51),s(),h(103," Add Value "),s()()(),G(),a(104,"div",52)(105,"a",53),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(106," Close "),s()()()(),a(107,"dx-popup",54),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(108,"div",55),S(109,A8,4,1,"h2",56)(110,L8,4,1,"h2",56),s(),a(111,"div",57)(112,"form",58)(113,"dx-validation-group",null,0)(115,"dx-form",59)(116,"dxi-item")(117,"div",60)(118,"div",61)(119,"dx-text-box",62),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(120,"dx-validator"),b(121,"dxi-validation-rule",63)(122,"dxi-validation-rule",64),s()()()()()()()()(),a(123,"div",65)(124,"dx-button",66),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(125,k8,1,0,"dx-button",67)(126,R8,1,0,"dx-button",68)(127,O8,1,0,"dx-button",69),s()(),a(128,"dx-popup",54),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(129,"div",55)(130,"h2"),h(131,"Confirmation"),s()(),a(132,"div",57)(133,"p"),h(134,"Are you sure you want to delete "),a(135,"strong"),h(136,"Name"),s(),h(137," ?"),s()(),a(138,"div",65)(139,"dx-button",70),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(140,"dx-button",71),s()()}n&2&&(o(6),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(106,d8))("grouped",!0),o(5),l("ngClass",e.taxInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.batchControlType),x("value",e.selectedbatchControl),l("inputAttr",I(107,Xs)),o(2),l("dataSource",e.batchControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctbatchValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.batchCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.batchConfigurationControlType),x("value",e.selectedBatchConfigurationControl),l("inputAttr",I(108,Xs)),o(2),l("dataSource",e.batchConfigurationControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctBatchConfigurationValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(109,c8)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(110,p8)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(111,u8)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 210px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:0rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var G8=["addValueGroup"],B8=()=>({"aria-label":"Entity"}),ba=()=>({"aria-label":"Assign To"}),F8=()=>({id:"elementId",class:"popup-outer add-value-popup w-500"}),W8=()=>({"aria-label":"ControlName"}),N8=()=>({id:"elementId",class:"popup-outer delete-popup"}),wa=r=>({disabledDiv:r});function q8(r,g){if(r&1){let t=y();a(0,"a",78),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",79),b(2,"path",80),s(),h(3," Manage "),s()}}function U8(r,g){if(r&1&&(a(0,"div",75)(1,"span",76),h(2),s(),S(3,q8,4,0,"a",77),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function H8(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function j8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Required"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseRequired,e)||(i.isAllwarehouseRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseRequired)}}function z8(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function Z8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Visible"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseVisible,e)||(i.isAllwarehouseVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseVisible)}}function Q8(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function Y8(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Editable"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseEditable,e)||(i.isAllwarehouseEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllPromotionlEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseEditable)}}function K8(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onPromotionEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,wa,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function J8(r,g){if(r&1){let t=y();a(0,"a",78),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",79),b(2,"path",80),s(),h(3," Manage "),s()}}function X8(r,g){if(r&1&&(a(0,"div",75)(1,"span",76),h(2),s(),S(3,J8,4,0,"a",77),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function $8(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function e9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Required"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseAddressRequired,e)||(i.isAllwarehouseAddressRequired=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseAddressRequired)}}function t9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function i9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Visible"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseAddressVisible,e)||(i.isAllwarehouseAddressVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseAddressVisible)}}function n9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function o9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Editable"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllwarehouseAddressEditable,e)||(i.isAllwarehouseAddressEditable=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllAddressEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllwarehouseAddressEditable)}}function a9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onAddressEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,wa,!t.data.isCanEdit)),o(),x("value",t.data.isReadOnly)}}function r9(r,g){if(r&1){let t=y();a(0,"a",78),f("click",function(){p(t);let e=m().$implicit,i=m();return u(i.ManageLabelClick(e.data))}),A(),a(1,"svg",79),b(2,"path",80),s(),h(3," Manage "),s()}}function s9(r,g){if(r&1&&(a(0,"div",75)(1,"span",76),h(2),s(),S(3,r9,4,0,"a",77),s()),r&2){let t=g.$implicit;o(),q("title",t.data.fieldCaption),o(),O(" ",t.data.fieldCaption," "),o(),l("ngIf",!1)}}function l9(r,g){if(r&1&&(a(0,"span"),h(1),s()),r&2){let t=g.$implicit;ft("status ",t.data.isCanEdit==!1?"Yes":"No",""),o(),R(t.data.isCanEdit==!1?"Yes":"No")}}function d9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Required"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllinventoryRequired,e)||(i.isAllinventoryRequired=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllInventoryRequireChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllinventoryRequired)}}function c9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isRequired,e)||(i.data.isRequired=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onInventoryRequireChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isRequired)}}function p9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Visible"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllinventoryVisible,e)||(i.isAllinventoryVisible=e),u(e)}),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllInventoryVisibleChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllinventoryVisible)}}function u9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isVisible,e)||(i.data.isVisible=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onInventoryVisibleChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",t.data.isCanEdit?"":"disabledDiv"),o(),x("value",t.data.isVisible)}}function m9(r,g){if(r&1){let t=y();a(0,"div",81)(1,"span",82),h(2,"Editable"),s(),a(3,"dx-switch",83),_("valueChange",function(e){p(t);let i=m();return C(i.isAllinventoryEditable,e)||(i.isAllinventoryEditable=e),u(e)}
87),f("onValueChanged",function(e){p(t);let i=m();return u(i.onAllInventoryEditableChanged(e))}),s()()}if(r&2){let t=m();o(3),x("value",t.isAllinventoryEditable)}}function g9(r,g){if(r&1){let t=y();a(0,"div",84)(1,"dx-switch",83),_("valueChange",function(e){let i=p(t).$implicit;return C(i.data.isReadOnly,e)||(i.data.isReadOnly=e),u(e)}),f("onValueChanged",function(e){let i=p(t).$implicit,d=m();return u(d.onInventoryEditableChanged(e,i.data.systemPageControlId))}),s()()}if(r&2){let t=g.$implicit;l("ngClass",ai(2,wa,!t.data.isCanEdit&&t.data.sourceColumnName==="ListTypeId")),o(),x("value",t.data.isReadOnly)}}function h9(r,g){if(r&1){let t=y();a(0,"div",85)(1,"span",86),h(2),s(),a(3,"div",87)(4,"a",88),f("click",function(){let e=p(t).$implicit,i=m();return u(i.EditLookupValuePopupEvent(e))}),A(),a(5,"svg",89),b(6,"path",90),s()(),G(),a(7,"a",91),f("click",function(){let e=p(t).$implicit,i=m();return u(i.DeleteLookupValuePopupEvent(e))}),A(),a(8,"svg",89),b(9,"path",92),s()()()()}if(r&2){let t=g.$implicit;o(2),R(t.lookupValue)}}function f9(r,g){if(r&1&&(a(0,"h2"),h(1,"Add Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function C9(r,g){if(r&1&&(a(0,"h2"),h(1,"Edit Value for "),a(2,"span"),h(3),s()()),r&2){let t=m();o(3),R(t.AddValueHeader)}}function _9(r,g){if(r&1){let t=y();a(0,"dx-button",93),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!0))}),s()}}function y9(r,g){if(r&1){let t=y();a(0,"dx-button",94),f("onClick",function(e){p(t);let i=m();return u(i.addLookupValueDetail(e,!1))}),s()}}function x9(r,g){if(r&1){let t=y();a(0,"dx-button",95),f("onClick",function(){p(t);let e=m();return u(e.editLookupValueDetail())}),s()}}/localhost/.test(document.location.host)||void 0;var tl=(()=>{class r extends wt{constructor(t,n,e,i,d,c,v){super(),this.router=n,this.propertyService=e,this.webStorageService=i,this.authenticationService=d,this.permissionService=c,this.propertyManagementCommonService=v,this.unsubscriber=new Ct,this.isPermissionView=!1,this.entitiesModel=[],this.groupedEntites=[],this.isEditLookupValue=!1,this.selectedLookupTableValue=new _t,this.addUpdateLookupTableValues=[],this.addValuePopupPopup=!1,this.addDemographicsPopup=!1,this.FilterActive=!1,this.deletePopup=!1,this.selectedControlId=0,this.LookUpTableValues=[],this.taxInfoCollapseExpand=!1,this.addressInfoCollapseExpand=!1,this.inventoryInfoCollapseExpand=!1,this.isEditMode=!1,this.selectedItemKeys=[],this.changes=[],this.stylingMode="outlined",this.labelMode="floating",this.formData={},this.warehouseControls=[],this.warehouseControlsTypes=[],this.allwarehouseControls=[],this.warehouseCode="",this.selectedwarehouseControl="All",this.warehouseControlType=[],this.addressControlType=[],this.isAllwarehouseRequired=!1,this.isAllwarehouseVisible=!1,this.isAllwarehouseEditable=!1,this.warehouseType=[],this.warehouseAddressControls=[],this.warehouseAddressControlsTypes=[],this.allwarehouseAddressControls=[],this.warehouseAddressCode="",this.selectedwarehouseAddressControl="All",this.warehouseAddressControlType=[],this.isAllwarehouseAddressRequired=!1,this.isAllwarehouseAddressVisible=!1,this.isAllwarehouseAddressEditable=!1,this.warehouseAddressType=[],this.inventoryControls=[],this.inventoryControlsTypes=[],this.allinventoryControls=[],this.inventoryCode="",this.selectedinventoryControl="All",this.inventoryControlType=[],this.isAllinventoryRequired=!1,this.isAllinventoryVisible=!1,this.isAllinventoryEditable=!1,this.inventoryType=[],this.loadEntitiesData=()=>{this.loading=!0,Yt([this.propertyService.GetAllTenantEntities()]).pipe(Qt(([V])=>({entitiesModel:V}))).subscribe(V=>{this.loading=!1,Object.keys(V).forEach(T=>this[T]=V[T].responseModel),this.groupedEntites=[],this.entitiesModel&&[...new Set(this.entitiesModel.map(D=>D.entityType))].forEach(D=>{let W=new ui;W.category=D=="Entity"?"":D,W.entities=this.entitiesModel.filter(Vt=>Vt.entityType==D),this.groupedEntites.push(W)}),this.fromPregroupedData=new ri({store:new kt({data:this.groupedEntites,key:"entityID"}),map(T){return T.key=T.category,T.items=T.entities,T}});let E=this.entitiesModel.find(T=>T.name==z.Promotion);
87E&&(this.entityID=E.entityID),this.fromPregroupedData.load(),this.GetPromotionProperty(),this.GetWarehouseAddressProperty(),this.GetInventoryProperty()})},this.asynctPromotionValidation=V=>B(this,null,function*(){return!(this.warehouseControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctAddressValidation=V=>B(this,null,function*(){return!(this.warehouseAddressControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.asynctInventoryValidation=V=>B(this,null,function*(){return!(this.inventoryControlsTypes.filter(T=>T.fieldCaption.replace(/ /g,"")==V.value.replace(/ /g,"")&&T.systemPageControlId!=V.data.systemPageControlId).length>0)}),this.userToken=this.webStorageService.getCurrentUserToken(),this.userToken||this.router.navigate(["/login"]),this.getUserPermission(),this.loadEntitiesData()}getUserPermission(){this.isPermissionView=this.permissionService.getPermission(ei.Entities.toString(),ti.View.toString()),this.isPermissionView||this.authenticationService.notAuthorized()}onValueChanged(t){this.selectedConfigurationActions=t.value}onSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}customCallback(t){let n=this.lookupValue;return!this.LookUpTableValues?.some(e=>e.lookupValue.trim()==n.trim()&&e.lookupTableValueId!=this.selectedLookupTableValue.lookupTableValueId)}deleteRecords(){this.selectedItemKeys.forEach(t=>{this.dataSource.remove(t)}),this.dataGrid.instance.refresh()}closeAddValuePopup(){this.isEditLookupValue=!1,this.isEditMode=!1,this.addValuePopupPopup=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t}onSelectEntity(t){t.event==null||t.value==null||(this.entityID=t.value,!(this.entityID==null||this.entityID==0)&&this.propertyManagementCommonService.OnChangeEntity(this.entitiesModel,this.entityID))}ValuePopupEvent(){this.addValuePopupPopup=!0}closePopup(){this.addDemographicsPopup=!1,this.addValuePopupPopup=!1,this.deletePopup=!1}ManageLabelClick(t){this.selectedControlId=t.systemPageControlId,this.GetLookUpTableRecord(t.systemPageControlId),this.AddValueHeader=t.fieldCaption,this.FilterActive=!this.FilterActive,Dt("* => open",[Tt("0.5s")])}ManageLabelClickClose(){this.isEditMode=!1,this.FilterActive=!this.FilterActive,Dt("* => closed",[Tt("0.5s")])}GetLookUpTableRecord(t){t>0&&this.propertyService.GetLookUpTableRecord(t,z.Inventories.toString()).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess&&(this.LookUpTableValues=n.responseModel,this.isManageLookUp=!0)},n=>{this.showErrorMessage(n.message)})}onPromotionSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetPromotionProperty(){this.warehouseControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Inventories.toString(),M.PropertyPageName.WarehouseInformation.toString(),L.WarehouseInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allwarehouseControls=t.responseModel,this.filterPromotionProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterPromotionProperty(){this.warehouseControls=this.allwarehouseControls,this.warehouseControlsTypes=this.warehouseControls,this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!="All"&&(this.warehouseControls=this.warehouseControls.filter(i=>i.formControlType==this.selectedwarehouseControl)),this.allwarehouseControls.forEach(i=>{this.warehouseControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.warehouseControlType.push(i.formControlType)}),this.warehouseControlType.find(i=>i.toLowerCase()=="all")==null&&this.warehouseControlType.splice(0,0,"All"),this.isAllwarehouseRequired=!1,this.warehouseControls.every(i=>i.isRequired==!0)&&(this.isAllwarehouseRequired=!0),this.isAllwarehouseEditable=!1,this.warehouseControls.every(i=>i.isReadOnly==!0)&&(this.isAllwarehouseEditable=!0),this.isAllwarehouseVisible=!1,this.warehouseControls.every(i=>i.isVisible==!0)&&(this.isAllwarehouseVisible=!0)}onSelectPromotionType({value:t}){t==null&&(t=this.warehouseType.length>0?this.warehouseType[0].code:""),this.warehouseCode=t,this.filterPromotionProperty()}onSelectPromotionControl({value:t}){this.selectedwarehouseControl=t,this.filterPromotionProperty()}onPromotionInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.WarehouseInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.WarehouseInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.warehouseControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetPromotionProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.WarehouseInformation.toString()))}}onAllPromotionlEditableChanged(t){if(this.isAllwarehouseEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!="All"&&(n=this.selectedwarehouseControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseInformation.toString(),L.WarehouseInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllwarehouseRequired=t.value;let n="";this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!="All"&&(n=this.selectedwarehouseControl),this.propertyService.UpdateAllRequiredFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseInformation.toString(),L.WarehouseInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllPromotionVisibleChanged(t){if(this.isAllwarehouseVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!=null&&this.selectedwarehouseControl!="All"&&(n=this.selectedwarehouseControl),this.propertyService.UpdateAllVisibleFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseInformation.toString(),L.WarehouseInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onPromotionEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetPromotionProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}WarehouseInformation(){this.taxInfoCollapseExpand=!this.taxInfoCollapseExpand}processSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.WarehouseInformation.toString()?this.GetPromotionProperty():n==M.PropertyPageName.WarehouseAddressInformation.toString()?this.GetWarehouseAddressProperty():n==M.PropertyPageName.InventoryInformation.toString()&&this.GetInventoryProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}addLookupValueDetail(t,n){if(!this.addValueGroup.instance.validate().isValid)return;let i=new _t;i.lookupValue=this.lookupValue,i.lookupTableValueId=0,i.controlId=this.LookUpTableValues[0].controlId,i.tableId=this.LookUpTableValues[0].tableId,i.isActive=!0,i.modifiedByUserId=this.userToken.userId,i.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(i).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(d=>{d.isSuccess?(this.loading=!1,this.lookupValue=null,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value added successfully"),n||(this.addValueGroup.instance.reset(),this.addValuePopupPopup=!1)):(this.loading=!1,this.showErrorMessage(d.message))},d=>{this.loading=!1,this.showErrorMessage(d.message)})}editLookupValueDetail(){this.addValueGroup.instance.validate().isValid&&
87(this.selectedLookupTableValue.lookupValue=this.lookupValue,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.selectedLookupTableValue.entity=z.Contact.toString(),this.loading=!0,this.propertyService.AddUpdateLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.isEditLookupValue=!1,this.isEditMode=!1,this.addValueGroup.instance.reset(),this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value updated successfully"),this.addValuePopupPopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}EditLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.lookupValue=t.lookupValue,this.isEditLookupValue=!0,this.isEditMode=!0,this.addValuePopupPopup=!0}DeleteLookupValuePopupEvent(t){this.selectedLookupTableValue=t,this.deleteValue=t.lookupValue,this.deletePopup=!0}removeLookupValueDetails(t){this.selectedLookupTableValue.isActive=!1,this.selectedLookupTableValue.modifiedByUserId=this.userToken.userId,this.loading=!0,this.propertyService.ActiveInactiveLookUpTableRecord(this.selectedLookupTableValue).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(n=>{n.isSuccess?(this.loading=!1,this.lookupValue=null,this.selectedLookupTableValue=new _t,this.GetLookUpTableRecord(this.selectedControlId),this.showSuccessMessage("Label Value deleted successfully"),this.deletePopup=!1):(this.loading=!1,this.showErrorMessage(n.message))},n=>{this.loading=!1,this.showErrorMessage(n.message)})}LookupValuePopupEvent(){this.addValueGroup.instance.reset(),this.addValuePopupPopup=!0}onWarehouseAddressSelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}GetWarehouseAddressProperty(){this.warehouseAddressControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Inventories.toString(),M.PropertyPageName.WarehouseAddressInformation.toString(),L.WarehouseAddressInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allwarehouseAddressControls=t.responseModel,this.filterWarehouseAddressProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterWarehouseAddressProperty(){this.warehouseAddressControls=this.allwarehouseAddressControls,this.warehouseAddressControlsTypes=this.warehouseAddressControls,this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!="All"&&(this.warehouseAddressControls=this.warehouseAddressControls.filter(i=>i.formControlType==this.selectedwarehouseAddressControl)),this.allwarehouseAddressControls.forEach(i=>{this.warehouseAddressControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.warehouseAddressControlType.push(i.formControlType)}),this.warehouseAddressControlType.find(i=>i.toLowerCase()=="all")==null&&this.warehouseAddressControlType.splice(0,0,"All"),this.isAllwarehouseAddressRequired=!1,this.warehouseAddressControls.every(i=>i.isRequired==!0)&&(this.isAllwarehouseAddressRequired=!0),this.isAllwarehouseAddressEditable=!1,this.warehouseAddressControls.every(i=>i.isReadOnly==!0)&&(this.isAllwarehouseAddressEditable=!0),this.isAllwarehouseAddressVisible=!1,this.warehouseAddressControls.every(i=>i.isVisible==!0)&&(this.isAllwarehouseAddressVisible=!0)}onSelectAddressType({value:t}){t==null&&(t=this.warehouseAddressType.length>0?this.warehouseAddressType[0].code:""),this.warehouseAddressCode=t,this.filterWarehouseAddressProperty()}onSelectAddressControl({value:t}){this.selectedwarehouseAddressControl=t,this.filterWarehouseAddressProperty()}onAddressInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.WarehouseAddressInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.WarehouseAddressInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.warehouseAddressControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetWarehouseAddressProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.WarehouseAddressInformation.toString()))}}onAllAddressEditableChanged(t){if(this.isAllwarehouseAddressEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!="All"&&(n=this.selectedwarehouseAddressControl),this.propertyService.Upd
87ateAllEditableFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseAddressInformation.toString(),L.WarehouseAddressInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllwarehouseAddressRequired=t.value;let n="";this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!="All"&&(n=this.selectedwarehouseAddressControl),this.propertyService.UpdateAllRequiredFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseAddressInformation.toString(),L.WarehouseAddressInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllAddressVisibleChanged(t){if(this.isAllwarehouseAddressVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!=null&&this.selectedwarehouseAddressControl!="All"&&(n=this.selectedwarehouseAddressControl),this.propertyService.UpdateAllVisibleFieldControl(F.Inventories.toString(),M.PropertyPageName.WarehouseAddressInformation.toString(),L.WarehouseAddressInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAddressEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetWarehouseAddressProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}WarehouseAddressInformation(){this.addressInfoCollapseExpand=!this.addressInfoCollapseExpand}processAddressSaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.WarehouseAddressInformation.toString()&&this.GetWarehouseAddressProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}oninventorySelectionChanged({selectedRowKeys:t}){this.selectedItemKeys=t}
87GetInventoryProperty(){this.inventoryControlsTypes=[],this.loading=!0,this.propertyService.GetPageControlsByPageName(F.Inventories.toString(),M.PropertyPageName.InventoryInformation.toString(),L.InventoryInformation.toString()).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess&&(this.allinventoryControls=t.responseModel,this.filterinventoryProperty())})},t=>{this.loading=!1,this.showErrorMessage(t.message)})}filterinventoryProperty(){this.inventoryControls=this.allinventoryControls,this.inventoryControlsTypes=this.inventoryControls,this.selectedinventoryControl!=null&&this.selectedinventoryControl!=null&&this.selectedinventoryControl!="All"&&(this.inventoryControls=this.inventoryControls.filter(i=>i.formControlType==this.selectedinventoryControl)),this.allinventoryControls.forEach(i=>{this.inventoryControlType.find(d=>d.toLowerCase()==i.formControlType.toLowerCase())==null&&this.inventoryControlType.push(i.formControlType)}),this.inventoryControlType.find(i=>i.toLowerCase()=="all")==null&&this.inventoryControlType.splice(0,0,"All"),this.isAllinventoryRequired=!1,this.inventoryControls.every(i=>i.isRequired==!0)&&(this.isAllinventoryRequired=!0),this.isAllinventoryEditable=!1,this.inventoryControls.every(i=>i.isReadOnly==!0)&&(this.isAllinventoryEditable=!0),this.isAllinventoryVisible=!1,this.inventoryControls.every(i=>i.isVisible==!0)&&(this.isAllinventoryVisible=!0)}onSelectInventoryType({value:t}){t==null&&(t=this.inventoryType.length>0?this.inventoryType[0].code:""),this.inventoryCode=t,this.filterinventoryProperty()}onSelectInventoryControl({value:t}){this.selectedinventoryControl=t,this.filterinventoryProperty()}onInventoryInfoSaving(t){let n=t.changes[0];if(n&&n.key.pageName!=null&&(n.key.pageName.toLowerCase()==M.PropertyPageName.InventoryInformation.toString().toLowerCase()||n.key.pageName.toLowerCase()==M.PropertyPageName.InventoryInformation.toString().toLowerCase())){let e=!1;if((Object.keys(n.data).length>0?Object.keys(n.data).toString():"")!="formControlTooltip"){let d=Object.values(n.data).length>0?Object.values(n.data).toString():"";d.toString().trim().replace(/ /g,"")!=""?this.inventoryControlsTypes.filter(v=>v.fieldCaption.toLowerCase().replace(/ /g,"")==d.toString().toLowerCase().replace(/ /g,"")&&v.systemPageControlId!=n.key.systemPageControlId).length>0&&(e=!0):e=!0}e?this.GetInventoryProperty():(t.cancel=!0,t.promise=this.processSaving(n,M.PropertyPageName.InventoryInformation.toString()))}}onAllInventoryEditableChanged(t){if(this.isAllinventoryEditable=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedinventoryControl!=null&&this.selectedinventoryControl!=null&&this.selectedinventoryControl!="All"&&(n=this.selectedinventoryControl),this.propertyService.UpdateAllEditableFieldControl(F.Inventories.toString(),M.PropertyPageName.InventoryInformation.toString(),L.InventoryInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Editable properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllInventoryRequireChanged(t){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;this.isAllinventoryRequired=t.value;let n="";this.selectedinventoryControl!=null&&this.selectedinventoryControl!=null&&this.selectedinventoryControl!="All"&&(n=this.selectedinventoryControl),this.propertyService.UpdateAllRequiredFieldControl(F.Inventories.toString(),M.PropertyPageName.InventoryInformation.toString(),L.InventoryInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Required properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onAllInventoryVisibleChanged(t){if(this.isAllinventoryVisible=t.value,this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}if(t.event==null)return;let n="";this.selectedinventoryControl!=null&&this.selectedinventoryControl!=null&&this.selectedinventoryControl!="All"&&(n=this.selectedinventoryControl),this.propertyService.Upd
87ateAllVisibleFieldControl(F.Inventories.toString(),M.PropertyPageName.InventoryInformation.toString(),L.InventoryInformation.toString(),t.value,n).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Visible properties are updated successfully"))},e=>{this.showErrorMessage(e.message)})}onInventoryRequireChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateRequireFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Required property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onInventoryVisibleChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateVisibleFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Visible property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}onInventoryEditableChanged(t,n){if(this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}n>0&&this.propertyService.UpdateEditableFieldPageControl(n,t.value).pipe(w(this.unsubscriber),P(()=>{this.loading=!1})).subscribe(e=>{e.isSuccess&&(this.GetInventoryProperty(),this.showSuccessMessage("Editable property is updated successfully"))},e=>{this.showErrorMessage(e.message)})}InventoryInformation(){this.inventoryInfoCollapseExpand=!this.inventoryInfoCollapseExpand}processInventorySaving(t,n){return B(this,null,function*(){let e=new oi;e.modifiedByUserId=this.userToken.userId,e.tenantSystemPageControls=[];let i=t.data,d=Object.keys(i),c=Object.values(i),v=t.key;v[d[0]]=c[0].toString().trim(),e.tenantSystemPageControls.push(v),this.loading=!0,this.propertyService.UpdateTenantSystemPageControls(e).pipe(w(this.unsubscriber)).subscribe(V=>{this.processResult(V,()=>{if(this.loading=!1,V&&V.isSuccess){if(this.changes=[],this.dataGrid!=null){let E=this.dataGrid.instance;E.clearSelection(),E.option("focusedrowindex",-1)}n==M.PropertyPageName.InventoryInformation.toString()&&this.GetInventoryProperty(),this.showSuccessMessage("System Page Control has been updated successfully")}else this.loading=!1,this.showErrorMessage(V.message)})},V=>{this.loading=!1,this.showErrorMessage(V.message)})})}static{this.\u0275fac=function(n){return new(n||r)(k(At),k(St),k(Kt),k(yt),k(li),k(ci),k(_i))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-warehouse-configuration"]],viewQuery:function(n,e){if(n&1&&(U(N,5),U(G8,5)),n&2){let i;H(i=j())&&(e.dataGrid=i.first),H(i=j())&&(e.addValueGroup=i.first)}},standalone:!0,features:[Wt([At]),xt,Q],decls:179,vars:151,consts:[["addValueGroup",""],[1,"view-wrapper","manage-user-outer","manage-properties"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],[1,"dx-field"],["label","Inventory","displayExpr","name","valueExpr","entityID","placeholder","Select",1,"select-box",3,"valueChange","onValueChanged","showClearButton","labelMode","dataSource","value","inputAttr","grouped"],[1,"manage-content-outer"],[1,"card-outer"],[1,"card-outer__content"],[1,"scroll-outer"],[1,"accordion-block",3,"ngClass"],[1,"card-header"],[1,"card-header__title"],[1,"card-header__edit-collapse"],["href","javascript:void(0)",1,"collapse",3,"click"],["width","14","height","9","viewBox","0 0 14 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1 7.5L7 1.5L13 7.5","stroke","#024079","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"card-content"],[1,"properties-filter"],[1,"properties-filter__left"],[1,"dx-field","filters"],["placeholder","All",1,"select-box","entity-type",3,"valueChange","onValueChanged","showClearButton","items","value","inputAttr"],[1,"table-block"],["id","gridContainer","noDataText"," ",1,"table-outer","editable",3,"onSelectionChanged","onSaving","dataSource","showBorders","repaintChangesOnly"],[3,"enabled"],["mode","cell",3,"allowUp
87dating"],["dataField","sourceColumnName","caption","Control Name",3,"allowEditing","fixed","width"],["dataField","formControlType","caption","Control Type",3,"allowEditing","width"],["cssClass","onhover","dataField","fieldCaption","caption","Label Name","cellTemplate","LabelNameManage",3,"width"],["type","required","message","Label name is required"],["type","async","message","Label name is not unique..",3,"validationCallback"],["class","managesettings",4,"dxTemplate","dxTemplateOf"],["dataField","formControlTooltip","caption","Tooltip",3,"width"],["dataField","isCanEdit","caption","System Property","cellTemplate","statusTemplate",3,"allowEditing","fixed","width"],[3,"class",4,"dxTemplate","dxTemplateOf"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate1",3,"fixed","allowEditing","width"],["class","toggle-btn","style","justify-content: center; flex-wrap: wrap; margin: 0;padding: 0 0 7px 0;",4,"dxTemplate","dxTemplateOf"],["class","toggle-btn","style","justify-content: center;",3,"ngClass",4,"dxTemplate","dxTemplateOf"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate2",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate3",3,"fixed","allowEditing","width"],["dataField","Required","cssClass","shortingnone","caption","Required","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate1","cellTemplate","EditableBodyTemplate7",3,"fixed","allowEditing","width"],["dataField","Visible","cssClass","shortingnone","caption","Visible","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate2","cellTemplate","EditableBodyTemplate8",3,"fixed","allowEditing","width"],["dataField","Editable","cssClass","shortingnone","caption","Editable","type","buttons","alignment","center","headerCellTemplate","titleHeaderTemplate3","cellTemplate","EditableBodyTemplate9",3,"fixed","allowEditing","width"],[1,"sidebar-outer","manage-value-sidebar",3,"ngClass"],[1,"sidebar-outer__block"],[1,"sidebar-outer__header"],[1,"sidebar-outer__content"],[1,"manage-values"],["class","manage-values__item",4,"ngFor","ngForOf"],[1,"full-width","add-value-box"],["href","javascript:void(0)",1,"add-btn",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["cx","12","cy","12","r","12","fill","#219EBC"],["d","M11.9497 6.99996V16.8995M7 11.9497H16.8995","stroke","white","stroke-width","1.8","stroke-linecap","round","stroke-linejoin","round"],[1,"sidebar-outer__buttom"],["href","javascript:void(0);",1,"btn","btn--primary","close-filter",3,"click"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[4,"ngIf"],[1,"dx-popup-content-block"],[1,"form-outer"],["id","form",3,"formData"],[1,"group-info"],[1,"dx-field","full-width","add-value-block"],["label","Value",3,"valueChange","labelMode","value","inputAttr"],["type","custom","message","This Value already exists in the details.",3,"validationCallback","reevaluate"],["type","required","message","This value is required."],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"click"],["text","Save & Add Another","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save & Close","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","Save","class","btn btn--primary","stylingMode","contained","type","default",3,"onClick",4,"ngIf"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary"],[1,"managesettings"],[1,"label-name",3,"title"],["href","javascript:void(0)","class","manage-label",3,"click",4,"ngIf"],["href","javascript:void(0)",1,"manage-label",3,"click"],["width","20","height","20","viewBox","0 0 20 20","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.905 0.375C12.0505 0.375005 12.1923 0.421205 12.31 0.506948C12.4276 0.592692 12.5149 0.713553 12.5595 0.852125L13.3157 3.202C13.6334 3.35737 13.9372 3.532 14.2274 3.72862L16.6419 3.20888C16.7842 3.17848 16.9326 3.19406 17.0655 3.25336C17.1984 3.31267 17.3091 3.41264 17.3816 3.53888L19.2874 6.8375C19.3601 6.96366 19.391 7.10968 19.3754 7.2545C19.3598 7.39931 19.2987 7.53544 19.2007 7.64325L17.5439 9.472C17.568 9.82267 17.568 10.1746 17.5439 10.5252L19.2007 12.3567C19.2987 12.4646 19.3598 12.6007 19.3754 12.7455C19.391 12.8903 19.3601 13.0363 19.2874 13.1625L17.3816 16.4625C17.3089 16.5885 17.1982 16.6882 17.0652 16.7472C16.9323 16.8063 16.7841 16.8216 16.6419 16.7911L14.2274 16.2714C13.9386 16.4666 13.6334 16.6426 13.3171 16.798L12.5595 19.1479C12.5149 19.2864 12.4276 19.4073 12.31 19.4931C12.1923 19.5788 12.0505 19.625 11.905 19.625H8.09348C7.94793 19.625 7.80613 19.5788 7.68851 19.4931C7.57089 19.4073 7.48352 19.2864 7.43898 19.1479L6.68411 16.7994C6.36735 16.6444 6.06181 16.4676 5.76973 16.27L3.35661 16.7911C3.21425 16.8215 3.06591 16.8059 2.93297 16.7466C2.80003 16.6873 2.68935 16.5874 2.61686 16.4611L0.711108 13.1625C0.638336 13.0363 0.607512 12.8903 0.62308 12.7455C0.638649 12.6007 0.699806 12.4646 0.797733 12.3567L2.45461 10.5252C2.4306 10.1755 2.4306 9.8245 2.454
8761 9.47475L0.797733 7.64325C0.699806 7.53544 0.638649 7.39931 0.62308 7.2545C0.607512 7.10968 0.638336 6.96366 0.711108 6.8375L2.61686 3.5375C2.68955 3.41151 2.80032 3.31183 2.93324 3.25278C3.06617 3.19373 3.2144 3.17836 3.35661 3.20888L5.76973 3.73C6.06123 3.53338 6.36648 3.356 6.68411 3.20063L7.44036 0.852125C7.48475 0.713999 7.57171 0.593458 7.68878 0.507756C7.80584 0.422054 7.94702 0.375585 8.09211 0.375H11.9036H11.905ZM11.4017 1.75H8.59673L7.81573 4.17963L7.28911 4.43675C7.03022 4.56343 6.7803 4.70769 6.54111 4.8685L6.05436 5.1985L3.55736 4.6595L2.15486 7.0905L3.86673 8.98525L3.82548 9.56825C3.80572 9.85574 3.80572 10.1443 3.82548 10.4318L3.86673 11.0147L2.15211 12.9095L3.55598 15.3405L6.05298 14.8029L6.53973 15.1315C6.77892 15.2923 7.02884 15.4366 7.28773 15.5632L7.81436 15.8204L8.59673 18.25H11.4045L12.1882 15.819L12.7135 15.5632C12.9721 15.4369 13.2216 15.2926 13.4601 15.1315L13.9455 14.8029L16.4439 15.3405L17.8464 12.9095L16.1331 11.0147L16.1744 10.4318C16.1942 10.1438 16.1942 9.85483 16.1744 9.56687L16.1331 8.98388L17.8477 7.0905L16.4439 4.6595L13.9455 5.19575L13.4601 4.8685C13.2216 4.70739 12.9721 4.56313 12.7135 4.43675L12.1882 4.181L11.4031 1.75H11.4017ZM9.99923 5.875C11.0933 5.875 12.1425 6.3096 12.916 7.08318C13.6896 7.85677 14.1242 8.90598 14.1242 10C14.1242 11.094 13.6896 12.1432 12.916 12.9168C12.1425 13.6904 11.0933 14.125 9.99923 14.125C8.90522 14.125 7.85601 13.6904 7.08242 12.9168C6.30883 12.1432 5.87423 11.094 5.87423 10C5.87423 8.90598 6.30883 7.85677 7.08242 7.08318C7.85601 6.3096 8.90522 5.875 9.99923 5.875ZM9.99923 7.25C9.26989 7.25 8.57041 7.53973 8.05469 8.05546C7.53896 8.57118 7.24923 9.27065 7.24923 10C7.24923 10.7293 7.53896 11.4288 8.05469 11.9445C8.57041 12.4603 9.26989 12.75 9.99923 12.75C10.7286 12.75 11.4281 12.4603 11.9438 11.9445C12.4595 11.4288 12.7492 10.7293 12.7492 10C12.7492 9.27065 12.4595 8.57118 11.9438 8.05546C11.4281 7.53973 10.7286 7.25 9.99923 7.25Z","fill","#5C5C5C"],[1,"toggle-btn",2,"justify-content","center","flex-wrap","wrap","margin","0","padding","0 0 7px 0"],[2,"width","100%","padding-bottom","4px"],[2,"margin","0",3,"valueChange","onValueChanged","value"],[1,"toggle-btn",2,"justify-content","center",3,"ngClass"],[1,"manage-values__item"],[1,"manage-values__label"],[1,"manage-values__button"],["href","javascript:void(0)",1,"edit",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M16.9328 0.883653C16.3213 0.297172 15.6467 0 14.9265 0C13.8005 0 12.979 0.728045 12.7541 0.951064C12.4378 1.26453 1.64777 12.0669 1.64777 12.0669C1.57706 12.1381 1.526 12.2263 1.4996 12.3231C1.25627 13.223 0.0373541 17.2161 0.0252506 17.2562C-0.0373195 17.4607 0.0185147 17.6835 0.16923 17.8343C0.275547 17.9404 0.419566 18 0.569717 18C0.627814 18 0.686455 17.9913 0.74371 17.9725C0.784967 17.959 4.9034 16.6268 5.58118 16.4243C5.67061 16.3973 5.75211 16.3489 5.81862 16.2833C6.24691 15.8597 16.3106 5.90019 16.9786 5.20979C17.6696 4.49719 18.0128 3.7551 17.9996 3.00459C17.9859 2.26362 17.6269 1.55018 16.9328 0.883653ZM12.5754 2.74758C12.8614 2.81696 13.5358 3.0436 14.2246 3.73907C14.9206 4.44184 15.1089 5.24516 15.144 5.42801C12.9369 7.62535 7.85633 12.6559 5.85353 14.6387C5.66857 14.2075 5.36967 13.6882 4.88888 13.2034C4.30175 12.6113 3.7042 12.2768 3.24336 12.0886C5.22539 10.1047 10.4016 4.92216 12.5754 2.74758ZM2.4811 13.0368C2.78954 13.1188 3.43028 13.3567 4.08339 14.0157C4.58634 14.5232 4.82378 15.083 4.93043 15.4243C4.15019 15.6754 2.4418 16.2655 1.3562 16.6158C1.67784 15.5566 2.22118 13.907 2.4811 13.0368ZM16.1639 4.40699C16.1285 4.44313 16.0931 4.47917 16.0575 4.51513C15.8801 4.05784 15.5689 3.47025 15.03 2.92647C14.4794 2.37088 13.9208 2.0431 13.4732 1.84929C13.5114 1.81137 13.5408 1.78158 13.5523 1.77036C13.6166 1.70686 14.1996 1.14933 14.9262 1.14933C15.3444 1.14933 15.755 1.34033 16.1474 1.71671C16.6124 2.16303 16.8521 2.60345 16.86 3.02618C16.8675 3.45761 16.6334 3.92219 16.1639 4.40699Z","fill","#5C5C5C"],["href","javascript:void(0)",1,"delete",3,"click"],["d","M7.2 3.07317H10.8C10.8 2.60742 10.6104 2.16075 10.2728 1.83142C9.93523 1.50209 9.47739 1.31707 9 1.31707C8.52261 1.31707 8.06477 1.50209 7.72721 1.83142C7.38964 2.16075 7.2 2.60742 7.2 3.07317ZM5.85 3.07317C5.85 2.6696 5.93148 2.26997 6.08978 1.89712C6.24808 1.52427 6.48011 1.18548 6.77261 0.900111C7.06512 0.614741 7.41237 0.388373 7.79455 0.233931C8.17672 0.0794899 8.58634 0 9 0C9.41366 0 9.82328 0.0794899 10.2055 0.233931C10.5876 0.388373 10.9349 0.614741 11.2274 0.900111C11.5199 1.18548 11.7519 1.52427 11.9102 1.89712C12.0685 2.26997 12.15 2.6696 12.15 3.07317H17.325C17.504 3.07317 17.6757 3.14255 17.8023 3.26605C17.9289 3.38955 18 3.55705 18 3.73171C18 3.90636 17.9289 4.07386 17.8023 4.19736C17.6757 4.32086 17.504 4.39024 17.325 4.39024H16.137L15.084 15.0243C15.0032 15.8391 14.6142 16.5953 13.9929 17.1455C13.3716 17.6957 12.5625 18.0003 11.7234 18H6.2766C5.43768 18.0001 4.62879 17.6954 4.00765 17.1452C3.38652 16.5951 2.99766 15.839 2.9169 15.0243L1.863 4.39024H0.675C0.495979 4.39024 0.32429 4.32086 0.197703 4.19736C0.0711158 4.07386 0 3.90636 0 3.73171C0 3.55705 0.0711158 3.38955 0.197703 3.26605C0.32429 3.14255 0.495979 3.07317 0.675 3.07317H5.85ZM7.65 7.2439C7.65 7.06925 7.57888 6.90175 7.4523 6.77825C7.32571 6.65475 7.15402 6.58537 6.975 6.58537C6.79598 6.58537 6.62429 6.65475 6.4977 6.77825C6.37112 6.90175 6.3 7.06925 6.3 7.2439V13.8293C6.3 14.0039 6.37112 14.1714 6.4977 14.2949C6.62429 14.4184 6.79598 14.4878 6.975 14.4878C7.15402 14.4878 7.32571 14.4184 7.4523 14.2949C7.57888 14.1714 7.65 14.0039 7.65 13.8293V7.2439ZM11.025 6.58537C11.204 6.58537 11.3757 6.65475 11.5023 6.77825C11.6289 6.90175 11.7 7.06925 11.7 7.2439V13.8293C11.7 14.0039 11.6289 14.1714 11.5023 14.2949C11.3757 14.4184 11.204 14.4878 11.025 14.4878C10.846 14.4878 10.6743 14.4184 10.5477 14.2949C10.4211 14.1714 10.35 14.0039 10.35 13.8293V7.2439C10.35 7.06925 10.4211 6.90175 10.5477 6.77825C10.6743 6.65475 10.846 6.58537 11.025 6.58537ZM4.2606 14.8979C4.30914 15.3866 4.54252 15.8402 4.91523 16.1702C5.28794 16.5003 5.77327 16.683 6.2766 16.6829H11.7234C12.2267 16.683 12.7121 16.5003 13.0848 16.1702C13.4575 15.8402 13.6909 15.3866 13.7394 14.8979L14.7816 4.39024H3.2184L4.2606 14.8979Z","fill","#5C5C5C"],["text","Save & Add Another","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save & Close","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h1",4),h(4,"Warehouse Configuration"),s(),a(5,"div",5)(6,"dx-select-box",6),_("valueChange",function(c){return p(i),C(e.entityID,c)||(e.entityID=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectEntity(c))}),s()()()(),a(7,"div",7)(8,"form",8)(9,"div",9)(10,"dx-scroll-view",10)(11,"div",11)(12,"div",8)(13,"div",12)(14,"h2",13),h(15,"Warehouse Information"),s(),a(16,"div",14)(17,"a",15),f("click",function(){return p(i),u(e.WarehouseInformation())}),A(),a(18,"svg",16),b(19,"path",17),s()()()(),G(),a(20,"div",18)(21,"div",19)(22,"div",20)(23,"div",21)(24,"span"),h(25,"Control Type:"),s(),a(26,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedwarehouseControl,c)||(e.selectedwarehouseControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectPromotionControl(c))}),s()()()(),a(27,"div",23)(28,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onPromotionSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onPromotionInfoSaving(c))}),b(29,"dxo-paging",25)(30,"dxo-editing",26)(31,"dxi-column",27)(32,"dxi-column",28),a(33,"dxi-column",29),b(34,"dxi-validation-rule",30)(35,"dxi-validation-rule",31),S(36,U8,4,3,"div",32),s(),b(37,"dxi-column",33),a(38,"dxi-column",34),S(39,H8,2,4,"span",35),s(),a(40,"dxi-column",36),S(41,j8,4,1,"div",37)(42,z8,2,2,"div",38),s(),a(43,"dxi-column",39),S(44,Z8,4,1,"div",37)(45,Q8,2,2,"div",38),s(),a(46,"dxi-column",40),S(47,Y8,4,1,"div",37)(48,K8,2,4,"div",38),s()()()()()(),a(49,"div",11)(50,"div",8)(51,"div",12)(52,"h2",13),h(53,"Address Information"),s(),a(54,"div",14)(55,"a",15),f("click",function(){return p(i),u(e.WarehouseAddressInformation())}),A(),a(56,"svg",16),b(57,"path",17),s()()()(),G(),a(58,"div",18)(59,"div",19)(60,"div",20)(61,"div",21)(62,"span"),h(63,"Control Type:"),s(),a(64,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedwarehouseAddressControl,c)||(e.selectedwarehouseAddressControl
87=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectAddressControl(c))}),s()()()(),a(65,"div",23)(66,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.onWarehouseAddressSelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onAddressInfoSaving(c))}),b(67,"dxo-paging",25)(68,"dxo-editing",26)(69,"dxi-column",27)(70,"dxi-column",28),a(71,"dxi-column",29),b(72,"dxi-validation-rule",30)(73,"dxi-validation-rule",31),S(74,X8,4,3,"div",32),s(),b(75,"dxi-column",33),a(76,"dxi-column",34),S(77,$8,2,4,"span",35),s(),a(78,"dxi-column",41),S(79,e9,4,1,"div",37)(80,t9,2,2,"div",38),s(),a(81,"dxi-column",42),S(82,i9,4,1,"div",37)(83,n9,2,2,"div",38),s(),a(84,"dxi-column",43),S(85,o9,4,1,"div",37)(86,a9,2,4,"div",38),s()()()()()(),a(87,"div",11)(88,"div",8)(89,"div",12)(90,"h2",13),h(91,"Inventory Information"),s(),a(92,"div",14)(93,"a",15),f("click",function(){return p(i),u(e.InventoryInformation())}),A(),a(94,"svg",16),b(95,"path",17),s()()()(),G(),a(96,"div",18)(97,"div",19)(98,"div",20)(99,"div",21)(100,"span"),h(101,"Control Type:"),s(),a(102,"dx-select-box",22),_("valueChange",function(c){return p(i),C(e.selectedinventoryControl,c)||(e.selectedinventoryControl=c),u(c)}),f("onValueChanged",function(c){return p(i),u(e.onSelectInventoryControl(c))}),s()()()(),a(103,"div",23)(104,"dx-data-grid",24),f("onSelectionChanged",function(c){return p(i),u(e.oninventorySelectionChanged(c))})("onSaving",function(c){return p(i),u(e.onInventoryInfoSaving(c))}),b(105,"dxo-paging",25)(106,"dxo-editing",26)(107,"dxi-column",27)(108,"dxi-column",28),a(109,"dxi-column",29),b(110,"dxi-validation-rule",30)(111,"dxi-validation-rule",31),S(112,s9,4,3,"div",32),s(),b(113,"dxi-column",33),a(114,"dxi-column",34),S(115,l9,2,4,"span",35),s(),a(116,"dxi-column",36),S(117,d9,4,1,"div",37)(118,c9,2,2,"div",38),s(),a(119,"dxi-column",39),S(120,p9,4,1,"div",37)(121,u9,2,2,"div",38),s(),a(122,"dxi-column",40),S(123,m9,4,1,"div",37)(124,g9,2,4,"div",38),s()()()()()()()()()()(),a(125,"div",44)(126,"div",45)(127,"div",46)(128,"h2"),h(129,"Manage Values for "),a(130,"span"),h(131),s()()(),a(132,"div",47)(133,"div",48)(134,"dx-scroll-view",10),S(135,h9,10,1,"div",49),s()(),a(136,"div",50)(137,"a",51),f("click",function(){return p(i),u(e.LookupValuePopupEvent())}),A(),a(138,"svg",52),b(139,"circle",53)(140,"path",54),s(),h(141," Add Value "),s()()(),G(),a(142,"div",55)(143,"a",56),f("click",function(){return p(i),u(e.ManageLabelClickClose())}),h(144," Close "),s()()()(),a(145,"dx-popup",57),_("visibleChange",function(c){return p(i),C(e.addValuePopupPopup,c)||(e.addValuePopupPopup=c),u(c)}),a(146,"div",58),S(147,f9,4,1,"h2",59)(148,C9,4,1,"h2",59),s(),a(149,"div",60)(150,"form",61)(151,"dx-vali
87dation-group",null,0)(153,"dx-form",62)(154,"dxi-item")(155,"div",63)(156,"div",64)(157,"dx-text-box",65),_("valueChange",function(c){return p(i),C(e.lookupValue,c)||(e.lookupValue=c),u(c)}),a(158,"dx-validator"),b(159,"dxi-validation-rule",66)(160,"dxi-validation-rule",67),s()()()()()()()()(),a(161,"div",68)(162,"dx-button",69),f("click",function(){return p(i),u(e.closeAddValuePopup())}),s(),S(163,_9,1,0,"dx-button",70)(164,y9,1,0,"dx-button",71)(165,x9,1,0,"dx-button",72),s()(),a(166,"dx-popup",57),_("visibleChange",function(c){return p(i),C(e.deletePopup,c)||(e.deletePopup=c),u(c)}),a(167,"div",58)(168,"h2"),h(169,"Confirmation"),s()(),a(170,"div",60)(171,"p"),h(172,"Are you sure you want to delete "),a(173,"strong"),h(174,"Name"),s(),h(175," ?"),s()(),a(176,"div",68)(177,"dx-button",73),f("onClick",function(){return p(i),u(e.closePopup())}),s(),b(178,"dx-button",74),s()()}n&2&&(o(6),l("showClearButton",!0)("labelMode",e.labelMode)("dataSource",e.fromPregroupedData),x("value",e.entityID),l("inputAttr",I(144,B8))("grouped",!0),o(5),l("ngClass",e.taxInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.warehouseControlType),x("value",e.selectedwarehouseControl),l("inputAttr",I(145,ba)),o(2),l("dataSource",e.warehouseControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctPromotionValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.addressInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.warehouseAddressControlType),x("value",e.selectedwarehouseAddressControl),l("inputAttr",I(146,ba)),o(2),l("dataSource",e.warehouseAddressControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctAddressValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",240),o(),l("allowEditing",!1)("fixed",!1)("width",240),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate7"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate8"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate9"),o(),l("ngClass",e.inventoryInfoCollapseExpand?"collapse":"expand"),o(15),l("showClearButton",!0)("items",e.inventoryControlType),x("value",e.selectedinventoryControl),l("inputAttr",I(147,ba)),o(2),l("dataSource",e.inventoryControls)("showBorders",!0)("repaintChangesOnly",!0),o(),l("enabled",!1),o(),l("allowUpdating",!0),o(),l("allowEditing",!1)("fixed",!0)("width",240),o(),l("allowEditing",!1)("width",240),o(),l("width",240),o(2),l("validationCallback",e.asynctPromotionValidation),o(),l("dxTemplateOf","LabelNameManage"),o(),l("width",230),o(),l("allowEditing",!1)("fixed",!1)("width",200),o(),l("dxTemplateOf","statusTemplate"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate1"),o(),l("dxTemplateOf","EditableBodyTemplate1"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate2"),o(),l("dxTemplateOf","EditableBodyTemplate2"),o(),l("fixed",!0)("allowEditing",!1)("width",120),o(),l("dxTemplateOf","titleHeaderTemplate3"),o(),l("dxTemplateOf","EditableBodyTemplate3"),o(),l("ngClass",e.FilterActive?"show":"hide"),o(6),R(e.AddValueHeader),o(4),l("ngForOf",e.LookUpTableValues),o(10),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!0),x("visible",e.addValuePopupPopup),l("wrapperAttr",I(148,F8)),o(2),l("ngIf",!e.isEditMode),o(),l("ngIf",e.isEditMode),o(5),l("formData",e.formData),o(4),l("labelMode",e.labelMode),x("value",e.lookupValue),l("inputAttr",I(149,W8)),o(2),l("validationCallback",e.customCallback)("reevaluate",!0),o(4),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",!e.isEditLookupValue),o(),l("ngIf",e.isEditLookupValue),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(150,N8)))},dependencies:[bt,vt,Jt,Gt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Ot,Bt,Ci,Nt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,qt,Je,Lt,Xe,$e,et,tt,ni,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y],styles:['.title-breadcrumb[_ngcontent-%COMP%]{padding:1.5rem 3rem 0;margin-bottom:1.5rem}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{max-width:250px;margin:0}.title-breadcrumb__title-box[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%] .dx-texteditor.dx-editor-outlined[_ngcontent-%COMP%]{margin-top:0!important}.add-btn[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;align-items:center;margin:0 1.5rem 0 0;color:var(--secondary-color);font-weight:var(--font-weight-500)}.add-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem;margin-top:-2px}
87.manage-properties[_ngcontent-%COMP%] .top-filter[_ngcontent-%COMP%]{width:100%;background-color:var(--white-color);border-radius:4px;margin-bottom:2rem;padding:1.8rem 3rem}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%]{width:auto;max-width:max-content;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;margin:0}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:auto;font:var(--font-weight-500) var(--font-14) var(--font-family);color:var(--label-text-color)}.manage-properties[_ngcontent-%COMP%] .dx-field.filters[_ngcontent-%COMP%] .select-box[_ngcontent-%COMP%]{width:auto!important;border:none!important;min-width:inherit!important;height:auto;max-width:140px;margin-left:.8rem}.manage-properties[_ngcontent-%COMP%] .card-outer[_ngcontent-%COMP%]{width:100%;height:100%}.manage-properties[_ngcontent-%COMP%] .card-outer__content[_ngcontent-%COMP%]{width:100%;padding:0rem;height:calc(100vh - 175px);margin:0 auto;background:transparent;border-radius:0;width:calc(100% + 2.9rem)}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%]{max-width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:100%;margin:0 auto;margin-top:2rem;justify-content:flex-end}.manage-properties[_ngcontent-%COMP%] .card-outer__button[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin-left:1.5rem}.properties-filter[_ngcontent-%COMP%]{width:100%;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;margin:0px 0 1rem}.properties-filter__left[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{margin-right:3rem!important;position:relative}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:after{content:"";position:absolute;top:12px;right:-1.2rem;width:1px;height:15px;background-color:var(--border-color)}.properties-filter__left[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]:last-child:after{display:none}.properties-filter__right[_ngcontent-%COMP%]{margin:0;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.group-info[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;-webkit-justify-content:space-between}.group-info[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:1.5rem}.group-info[_ngcontent-%COMP%] .full-width.add-value-box[_ngcontent-%COMP%]{padding:2rem 0 0 52%}.group-info[_ngcontent-%COMP%] .full-width.add-value-block[_ngcontent-%COMP%]{max-width:100%!important}.group-info[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48%;margin:0}.managesettings[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;min-height:30px}.managesettings[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%]{width:auto;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center;color:var(--secondary-color);font-size:var(--font-14);font-weight:var(--font-weight-500);opacity:0;transition:.35s ease;margin-left:1rem}.managesettings[_ngcontent-%COMP%] .manage-label[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:.8rem}.managesettings[_ngcontent-%COMP%]:hover .manage-label[_ngcontent-%COMP%]{opacity:1}.sidebar-outer__header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--secondary-color)}.sidebar-outer__content[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 167px);padding:2rem 0}.sidebar-outer__buttom[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:flex-end}.sidebar-outer__buttom[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-align:center;-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:center;
87-webkit-justify-content:center}.manage-values[_ngcontent-%COMP%]{width:100%;margin:0;padding:0}.manage-values__item[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;-webkit-align-items:center;align-items:center;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid var(--border-color)}.manage-values__label[_ngcontent-%COMP%]{width:100%;padding:.8rem 1.5rem;border-left:2px solid var(--secondary-color)}.manage-values__button[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;-webkit-align-items:center;align-items:center}.manage-values__button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:20px;height:20px}.manage-values__button[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%]{margin-right:1.8rem}.manage-values[_ngcontent-%COMP%] .add-value-box[_ngcontent-%COMP%]{width:100%;padding-top:2rem}.disabledDiv[_ngcontent-%COMP%]{pointer-events:none;opacity:.4}']})}}return r})();var fn=class{constructor(){this.graceStatusId=0,this.isActive=!0,this.rowno=0}};var b9=["validationGroup"],w9=()=>({"aria-label":"Grace Status"}),il=(()=>{class r extends wt{constructor(t,n){super(),this.membershipService=t,this.webStorageService=n,this.visibleChange=new Bi,this.save=new Bi,this.searchText=null,this.isAddFromEvent=!1,this.isEditRefundPolicy=!1,this.graceStatusId=0,this.graceModel=new fn,this.graceModels=[],this.unsubscriber=new Ct,this.userToken=new Ki,this.formData={},this.stylingMode="outlined",this.labelMode="floating",this.userToken=n.getCurrentUserToken()}ngOnChanges(){this.isEditRefundPolicy&&this.graceStatusId>0&&this.GetGraceStatusById(),this.isEditRefundPolicy||setTimeout(()=>{this.validationGroup&&this.validationGroup.instance.reset()},0)}GetGraceStatusById(){this.graceStatusId==null||this.graceStatusId==null||(this.loading=!0,this.membershipService.GetGraceStatusById(this.graceStatusId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{this.loading=!1,t&&t.isSuccess?t.responseModel!=null&&t.responseModel!=null&&(this.loading=!1,this.graceModel=t.responseModel):(this.loading=!1,this.showErrorMessage(t.message))})},t=>{this.loading=!1,this.showErrorMessage(t.message)}))}close(){this.validationGroup&&this.validationGroup.instance.reset(),this.graceModel=new fn,this.visibleChange.emit(!1),this.isAddFromEvent=!1,this.isEditRefundPolicy=!1,this.graceStatusId=0,this.ngOnChanges()}
87onSubmit(){this.validationGroup.instance.validate().isValid&&(this.loading=!0,this.graceModels.forEach(n=>{n.modifiedByUserId=this.userToken.userId,n.graceStatusId=n.graceStatusId}),this.graceModel.modifiedByUserId=this.userToken.userId,this.isEditRefundPolicy||(this.graceModel.graceStatusId=0),this.membershipService.AddUpdateGraceStatus(this.graceModel).pipe(w(this.unsubscriber)).subscribe(n=>{this.processResult(n,()=>{this.loading=!1,n&&n.isSuccess?n.responseModel!=null&&n.responseModel!=null&&(this.loading=!1,this.showSuccessMessage(n.message),this.close()):(this.loading=!1,this.showErrorMessage(n.message))})},n=>{this.loading=!1,this.showErrorMessage(n.message)}))}static{this.\u0275fac=function(n){return new(n||r)(k(Wo),k(yt))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-membership-manage-grace-status"]],viewQuery:function(n,e){if(n&1&&U(b9,5),n&2){let i;H(i=j())&&(e.validationGroup=i.first)}},inputs:{searchText:"searchText",isAddFromEvent:"isAddFromEvent",isEditRefundPolicy:"isEditRefundPolicy",graceStatusId:"graceStatusId"},outputs:{visibleChange:"visibleChange",save:"save"},standalone:!0,features:[xt,on,Q],decls:15,vars:6,consts:[["validationGroup",""],[1,"dx-popup-content-block"],[1,"card-outer"],["id","form",3,"formData"],[1,"dx-field","full-width"],["label","Grace Status",3,"valueChange","labelMode","inputAttr","value"],["type","stringLength","message","Max character length is 255",3,"max"],["type","required","message","Grace status is required"],[1,"dx-popup-footer"],["text","Cancel","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Save","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"]],template:function(n,e){if(n&1){let i=y();a(0,"div",1)(1,"form",2)(2,"dx-validation-group",null,0)(4,"dx-form",3)(5,"dxi-item")(6,"div",4)(7,"div",4)(8,"dx-text-box",5),_("valueChange",function(c){return p(i),C(e.graceModel.graceStatusName,c)||(e.graceModel.graceStatusName=c),u(c)}),a(9,"dx-validator"),b(10,"dxi-validation-rule",6)(11,"dxi-validation-rule",7),s()()()(),a(12,"div",8)(13,"dx-button",9),f("onClick",function(){return p(i),u(e.close())}),s(),a(14,"dx-button",10),f("onClick",function(){return p(i),u(e.onSubmit())}),s()()()()()()()}n&2&&(o(4),l("formData",e.formData),o(4),l("labelMode",e.labelMode)("inputAttr",I(5,w9)),x("value",e.graceModel.graceStatusName),o(2),l("max",255))},dependencies:[vt,ie,Mt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,Bt,fe,Ce,_e,ye,xe,ve,be,we,Se,Pe,Me,It,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,Ft,st,lt,dt,ct,pt,mt,Ut,gt,ht,Ht,ut,J,te,ee,$,X,K,Y,Vo,Mo,Po,ir],styles:[".dx-popup-content-block[_ngcontent-%COMP%]{padding:0!important}.flex[_ngcontent-%COMP%]{-ms-display:flex;-webkit-display:flex;-moz-display:flex;display:flex;justify-content:space-between;-webkit-justify-content:space-between;align-items:flex-start}.flex[_ngcontent-%COMP%] .dx-field[_ngcontent-%COMP%]{width:100%;max-width:48.5%}.card-outer[_ngcontent-%COMP%]{padding-top:.5rem}.dx-popup-footer[_ngcontent-%COMP%]{padding-top:1.5rem}"]})}}return r})();wn();var S9=["validationGroup"],P9=()=>({id:"elementId",class:"popup-outer w-500 tooltip-wrapper"}),M9=()=>({id:"elementId",class:"popup-outer delete-popup"});function V9(r,g){if(r&1&&(xi(0),a(1,"div",28)(2,"a",29),h(3),s(),b(4,"br"),s(),vi()),r&2){let t=g.$implicit;o(2),q("title",t.data.graceStatusName),o(),R(t.data.graceStatusName)}}function E9(r,g){if(r&1){let t=y();a(0,"div",32)(1,"dx-drop-down-button",33),f("onItemClick",function(e){p(t);let i=m(2);return u(i.onItemClick(e))}),s()()}if(r&2){let t=m(2);o(),l("showArrowIcon",!1)("useItemTextAsTitle",!1)("useSelectMode",!1)("items",t.actionMenu)}}function T9(r,g){r&1&&(a(0,"dxi-column",30),S(1,E9,2,4,"div",31),s()),r&2&&(l("fixed",!0)("minWidth",80),o(),l("dxTemplateOf","cellTemplate"))}/localhost/.test(document.location.host)||void 0;var nl=(()=>{class r extends wt{constructor(t,n,e,i,d){super(),this.membershipService=n,this.utilityService=e,this.webStorageService=i,this._cdr=d,this.userToken=new Ki,this.unsubscriber=new Ct,this.formData={},this.gracePageHeaderTitle="Add",this.stylingMode="outlined",this.labelMode="floating",this.row=[{name:""}],this.deletePopup=!1,this.itemToDelete=null,this.licenseAttribute="Grace Status",this.graceModel=new fn,this.graceModels=[],this.isView=!1,this.selectedGraceStatus=new fn,this.isEditRefundPolicy=!1,this.showPageSizeSelector=!1,this.showPageNavigation=!1,this.isPagerVisible=!1,this.AddGraceStatusPopup=!1,this.userToken=i.getCurrentUserToken(),this.eligibilityRules=new kt({key:"ID",data:t.getEligibility()}),this.actionMenu=[{value:"ViewGraceStatus",text:"view Grace Status",icon:"view",visible:!1,onClick:c=>{}},{value:"EditGraceStatus",text:"Edit Grace Status",icon:"edit",visible:!0,onClick:c=>B(this,null,function*(){this.AddGraceStatusPopup=!0,this.EditGraceStatusvent()})},{value:"DeleteGraceStatus",text:"Delete Grace Status",icon:"delete",onClick:c=>B(this,null,function*(){this.deletePopup=!0})}],this.GetDataSource()}GraceStatusPopupEvent(){this.isEditRefundPolicy=!1,this.gracePageHeaderTitle="Add",this.AddGraceStatusPopup=!0}EditGraceStatusvent(){this.isEditRefundPolicy=!0,this.gracePageHeaderTitle="Edit",this.AddGraceStatusPopup=!0}GetDataSource(){let t=this,n=i=>i!=null&&i!=="";if(this.graceDataScource=new ki({key:"graceStatusId",load(i){return B(this,null,function*(){let d=new Si;
87t.dataGridParamNames.forEach(c=>{n(i[c])?d=d.set(c,JSON.stringify(i[c])):d=d.set(c,"")});try{let c=yield wi(t.membershipService.GetAllGraceStatusList(d));return t.totalRecordCount=c.responseModel!=null?c.responseModel.totalRecords:0,{data:c.responseModel.results,totalCount:c.responseModel.totalRecords,summary:c.summary,groupCount:c.groupCount}}catch{throw new Error("Data Loading Error")}})}}),this.dataGrid!=null){let i=this.dataGrid.instance;i.clearSelection(),i.option("focusedRowIndex",-1)}}getTotalCount(t){this.totalRecordCount=t.component.totalCount(),this.totalRecordCount>0&&(this.isPagerVisible=!0);let n=t.component.pageSize(),e=15;this.totalRecordCount<e?this.showPageSizeSelector=!1:this.showPageSizeSelector=e<=n&&this.totalRecordCount>=e,this.showPageNavigation=!(this.totalRecordCount<n)}onOptionChanged(t){let n=!1;if(n=t&&(t.name=="focusedRowIndex"||t.name=="focusedRowKey"),!n&&this.dataGrid!=null){let e=this.dataGrid.instance;e.clearSelection(),e.option("focusedRowIndex",-1)}}addNew(){this.graceModels.push({graceStatusName:"",graceStatusId:0,isActive:!0,modifiedByUserId:0,rowno:0}),this._cdr.detectChanges();let t=1;this.graceModels.forEach(n=>{n.rowno=t,t=t+1})}onItemClick(t){t.data&&(this.selectedGraceStatus=t.data,this.graceStatusId=t.data.graceStatusId),t.column.dataField==="graceStatusName"&&(this.selectedGraceStatus=t.data,this.graceStatusId=t.data.graceStatusId,this.EditGraceStatusvent())}deleteRow(t){if(this.itemToDelete=this.graceModels[t],this.itemToDelete.graceStatusId==0){let n=this.graceModels.indexOf(this.itemToDelete);n>-1&&this.graceModels.splice(n,1)}else this.deletePopup=!0,this.selectedGraceStatus.graceStatusName=this.itemToDelete.graceStatusName}checkGraceStatusRangeValue(t,n){if(t.value){let d=this.graceModels.filter(c=>c.rowno!=n&&c.isActive).filter(c=>c.graceStatusName&&c.graceStatusName.toLowerCase()==t.value.toLowerCase());if(d&&d.length>0){this.showErrorMessage(`${this.licenseAttribute} is already exists.`);let c=this.graceModels.find(v=>v.rowno==n);if(c){let v=t.element.querySelector(".dx-texteditor-input");t.component.option("value",null),c.graceStatusName=null,v.value=null,this._cdr.detectChanges()}}}}confirmDelete(){this.selectedGraceStatus.graceStatusId=this.selectedGraceStatus.graceStatusId,this.membershipService.DeleteGraceStatus(this.selectedGraceStatus.graceStatusId).pipe(w(this.unsubscriber)).subscribe(t=>{this.processResult(t,()=>{if(this.loading=!1,t&&t.isSuccess){let n=this.row.indexOf(this.itemToDelete);n>-1&&this.graceModels.splice(n,1),this.closePopup(),this.showSuccessMessage("Grace status has been deleted successfully"),this.GetDataSource(),this.deletePopup=!1,this.searchText=null,this.selectedGraceStatus=new fn}else this.showErrorMessage(t.message),this.loading=!1,this.deletePopup=!1,this.selectedGraceStatus=new fn})},t=>{this.loading=!1,this.deletePopup=!1,this.selectedGraceStatus=new fn,this.showErrorMessage(t.message)})}closePopup(){this.deletePopup=!1,this.itemToDelete=null,this.isEditRefundPolicy=!1,this.searchText=null,this.graceStatusId=null,this.GetDataSource(),this.AddGraceStatusPopup=!1}static{this.\u0275fac=function(n){return new(n||r)(k(Ro),k(Wo),k(di),k(yt),k(rn))}}static{this.\u0275cmp=Z({type:r,selectors:[["app-membership-grace-status"]],viewQuery:function(n,e){if(n&1&&(U(S9,5),U(N,5)),n&2){let i;H(i=j())&&(e.validationGroup=i.first),H(i=j())&&(e.dataGrid=i.first)}},standalone:!0,features:[Wt([Ro]),xt,Q],decls:48,vars:36,consts:[[1,"view-wrapper","benefits-outer"],[1,"breadcrumbs"],[1,"breadcrumbs__list"],[1,"breadcrumbs__item"],["href","javascript:void(0)",1,"breadcrumbs__link"],[1,"title-breadcrumb"],[1,"title-breadcrumb__title-box"],[1,"title-breadcrumb__title"],["text","Create","icon","plus","type","normal","stylingMode","contained",1,"btn","btn--primary",3,"click"],[1,"manage-content-outer"],[1,"table-block","without-breadcrumbs-fiter-table"],["id","gridContainer","noDataText","No records found.",1,"table-outer","users-table",3,"focusedRowKeyChange","onCellClick","onOptionChanged","onContentReady","dataSource","showBorders","allowColumnReordering","allowColumnResizing","focusedRowEnabled","columnAutoWidth","columnHidingEnabled","focusedRowIndex","focusedRowKey"],[3,"enabled"],[3,"groupPaging"],["placeholder","Search by Grace Status",3,"textChange","visible","text"],["name","searchPanel","location","before","locateInMenu","auto"],[3,"visible"],[3,"pageSize"],["dataField","graceStatusName","caption","Grace Status Name","cellTemplate","GraceStatus"],[4,"dxTemplate","dxTemplateOf"],["dataField","action","caption","Action","type","buttons","cellTemplate","cellTemplate",3,"fixed","minWidth",4,"ngIf"],["container",".dx-viewport",3,"visibleChange","showTitle","dragEnabled","hideOnOutsideClick","visible","wrapperAttr"],[1,"dx-popup-header"],[3,"visibleChange","graceStatusId","isAddFromEvent","searchText","isEditRefundPolicy"],[1,"dx-popup-content-block"],[1,"dx-popup-footer"],["text","No","stylingMode","contained","type","normal",1,"btn","btn--cancel",3,"onClick"],["text","Yes","stylingMode","contained","type","default",1,"btn","btn--primary",3,"onClick"],[1,"client-name"],["href","javascript:void(0);",1,"client-name",3,"title"],["dataField","action","caption","Action","type","buttons","cellTemplate","cellTemplate",3,"fixed","minWidth"],["class","action-menu-btn",4,"dxTemplate","dxTemplateOf"],[1,"action-menu-btn"],["icon","dot-icon","cssClass","TestingClass","displayExpr","text","stylingMode","text",1,"overflow-menu",3,"onItemClick","
87showArrowIcon","useItemTextAsTitle","useSelectMode","items"]],template:function(n,e){n&1&&(a(0,"div",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),h(5,"Product Settings"),s()(),a(6,"li",3)(7,"a",4),h(8,"Memberships"),s()(),a(9,"li",3),h(10,"Grace Status"),s()()(),a(11,"div",5)(12,"div",6)(13,"h1",7),h(14,"Grace Status"),s(),a(15,"dx-button",8),f("click",function(){return e.GraceStatusPopupEvent()}),s()()(),a(16,"div",9)(17,"div",10)(18,"dx-data-grid",11),_("focusedRowKeyChange",function(d){return C(e.graceStatusId,d)||(e.graceStatusId=d),d}),f("onCellClick",function(d){return e.onItemClick(d)})("onOptionChanged",function(d){return e.onOptionChanged(d)})("onContentReady",function(d){return e.getTotalCount(d)}),b(19,"dxo-column-chooser",12)(20,"dxo-column-fixing",12)(21,"dxo-remote-operations",13),a(22,"dxo-search-panel",14),_("textChange",function(d){return C(e.searchText,d)||(e.searchText=d),d}),s(),a(23,"dxo-toolbar"),b(24,"dxi-item",15),s(),b(25,"dxo-header-filter",16)(26,"dxo-paging",17),a(27,"dxi-column",18),S(28,V9,5,2,"ng-container",19),s(),S(29,T9,2,3,"dxi-column",20),s()()()(),a(30,"dx-popup",21),_("visibleChange",function(d){return C(e.AddGraceStatusPopup,d)||(e.AddGraceStatusPopup=d),d}),a(31,"div",22)(32,"h2"),h(33),s()(),a(34,"app-membership-manage-grace-status",23),f("visibleChange",function(){return e.closePopup()}),s()(),a(35,"dx-popup",21),_("visibleChange",function(d){return C(e.deletePopup,d)||(e.deletePopup=d),d}),a(36,"div",22)(37,"h2"),h(38,"Confirmation"),s()(),a(39,"div",24)(40,"p"),h(41,"Are you sure you want to delete "),a(42,"strong"),h(43),s(),h(44," ?"),s()(),a(45,"div",25)(46,"dx-button",26),f("onClick",function(){return e.closePopup()}),s(),a(47,"dx-button",27),f("onClick",function(){return e.confirmDelete()}),s()()()),n&2&&(o(18),l("dataSource",e.graceDataScource)("showBorders",!0)("allowColumnReordering",!1)("allowColumnResizing",!1)("focusedRowEnabled",!0)("columnAutoWidth",!0)("columnHidingEnabled",!1)("focusedRowIndex",0),x("focusedRowKey",e.graceStatusId),o(),l("enabled",!0),o(),l("enabled",!0),o(),l("groupPaging",!0),o(),l("visible",!0),x("text",e.searchText),o(3),l("visible",!1),o(),l("pageSize",15),o(2),l("dxTemplateOf","GraceStatus"),o(),l("ngIf",e.actionMenu.length>0),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.AddGraceStatusPopup),l("wrapperAttr",I(34,P9)),o(3),O("",e.gracePageHeaderTitle," Grace Status"),o(),l("graceStatusId",e.graceStatusId)("isAddFromEvent",!0)("searchText",e.searchText)("isEditRefundPolicy",e.isEditRefundPolicy),o(),l("showTitle",!1)("dragEnabled",!1)("hideOnOutsideClick",!1),x("visible",e.deletePopup),l("wrapperAttr",I(35,M9)),o(8),R(e.selectedGraceStatus.graceStatusName))},dependencies:[vt,Pt,ie,Mt,Rt,ne,oe,ae,re,se,le,Et,de,ce,pe,ue,me,ge,he,N,Tn,Fi,Ot,$a,Nt,Wi,zi,Ni,fe,Ce,_e,ye,xe,ve,be,yn,we,Se,Pe,Me,Ve,Ee,Te,De,Ie,Ae,Le,ke,Re,Oe,Ge,Be,Fe,We,Ne,qe,Ue,zt,He,je,ze,Ze,Qe,Ye,Ke,Je,Xe,$e,et,tt,it,nt,ot,at,rt,st,lt,dt,ct,pt,mt,gt,ht,ut,J,te,ee,$,X,K,Y,Vo,il],styles:[".mambership-refund-policy[_ngcontent-%COMP%] .table-block-with-header__header[_ngcontent-%COMP%]{padding:0}.mambership-refund-policy[_ngcontent-%COMP%] .table-outer[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.mambership-refund-policy[_ngcontent-%COMP%] .table-block-with-header[_ngcontent-%COMP%] .table-outer[_ngcontent-%COMP%]{height:calc(100vh - 246px)}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:110px;padding-left:1rem}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%]{margin-left:-5px!important}.title-breadcrumb[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] .dx-icon[_ngcontent-%COMP%] .dx-button-text[_ngcontent-%COMP%]{text-overflow:inherit}.dx-template-wrapper.dx-item-content.dx-toolbar-item-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.tag-list[_ngcontent-%COMP%]{margin:0;padding:0}.tag-list__name[_ngcontent-%COMP%]{margin:.3rem;padding:0 1.6rem;border:1px solid var(--green-color);border-radius:100px;color:var(--green-color);font:var(--font-weight-600) var(--font-13) var(--font-family);height:25px;display:inline-block;line-height:24px}.table-block-with-header__header[_ngcontent-%COMP%]{padding:0}.table-block-with-header[_ngcontent-%COMP%] .table-outer[_ngcontent-%COMP%]{margin-top:-10px;height:calc(100vh - 248px);padding-left:0;padding-right:0}"]})}}return r})();var PU=[{path:"user/permissions",component:Or},{path:"user/permissions/manage",component:qo},{path:"user/permissions/manage/:id",component:qo},{path:"user/permissions/manage/:id/:iscopied",component:qo},{path:"list-management/list",component:Wr},{path:"list-management/manage",component:ca},{path:"list-management/manage/:id/:mode/:type",component:ca},{path:"list-management/view-static/:id/:mode",component:zr},{path:"list-management/view-dynamic/:id",component:Zr},{path:"list-management/view-compound/:id/:mode",component:Qr},{path:"membershipsportal/permissions",component:Yr},{path:"membershipsportal/company-permissions",component:Kr},{path:"membershipsportal/Configuration",component:Xr},{path:"membershipsportal/styleandtheme",component:es},{path:"smtp-configuration",component:ts},{path:"quickbooks-configurations",component:is},{path:"hubspot-configuration",component:ns},{path:"hubspot-property",component:ga},{path:"hubspot-property/:type",component:ga},{path:"hubspot-property/manage",component:ma},{path:"hubspot-property/manage/:mode/:type",component:ma},{path:"payment-gateway-configuration",component:ps},{path:"hubspot-token-configuration",component:Dr},{path:"hubspot-oidc-configuration",component:us},{path:"hubspot-settings",component:hs},{path:"manage-properties",component:fs},{path:"manage-property",component:_o},{path:"properties/address-configuration",component:xs},{path:"properties/email-configuration",component:bs},{path:"properties/phone-configuration",component:Ss},{path:"properties/contacts-configuration",component:Vs},{path:"properties/companies-configuration",component:Ds},{path:"properties/groups-configuration",component:Is},{path:"properties/memberships-configuration",component:As},{path:"properties/events-configuration",component:Ls},{path:"properties/list-configuration",component:ks},{path:"properties/demographics-category",component:Os},{path:"properties/demographics-category/manage-demographics-category",component:_o},{path:"properties/demographics-category/manage-demographics-category/:id",component:_o},{path:"properties/demographics-category/manage-demographics-category/:id/:mode",component:_o},{path:"properties/demographics-category/view-demographics-category/:id",component:Rs},{path:"properties/chart-configuration",component:Gs},{path:"properties/productsetting-configuration",component:Bs},{path:"properties/tax-configuration",component:Fs},{path:"properties/paymentmethods-configuration",component:qs},{path:"properties/paymentprocessing-configuration",component:Us},{path:"properties/currencies-configuration",component:Hs},{path:"properties/promotion-configuration",component:js},{path:"properties/fee-configuration",component:zs},{path:"properties/fiscalperiod-configurations",component:Zs},{path:"properties/benefits-configuration",component:Qs},{path:"properties/discount-configuration",component:Ys},{path:"properties/product-configuration",component:Js},{path:"properties/batches-configuration",component:el},{path:"properties/warehouse-configuration",component:tl},{path:"report-designer",loadChildren:()=>import("./chunk-BI4NDMYI.js").then(r=>r.reportDesignerRoutes)},{path:"memberships/graceperiod",component:nl},{path:"memberships/refundpolicy",component:Cr},{path:"memberships/termsandconditions",component:_r}];
87export{PU as settingsRoutes};
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.