PageSourceSearch

https://portal.connectitude.com/chunk-BOVKO45M.js

js connectitude.com collected 2026-10-09 00:46:39 UTC 29,933 bytes, 1 lines download raw bytes

1import{a as Ne}from"./chunk-ZTD23PBD.js";import{a as Fe}from"./chunk-NDTT6BEL.js";import{a as ke,b as Pe,c as Le,f as We}from"./chunk-6HI2MAIX.js";import{b as Me}from"./chunk-MO2RR7TP.js";import"./chunk-COWJI24W.js";import"./chunk-JNGOQXAX.js";import"./chunk-QUO35HPS.js";import{a as Ve}from"./chunk-M64YV4OX.js";import{a as ye}from"./chunk-MKFEBY4F.js";import"./chunk-7JHN7XG3.js";import{a as Be,b as Ie}from"./chunk-K2HEGJHQ.js";import"./chunk-3UCSSPI2.js";import{a as Ee,b as Se}from"./chunk-NH5BK2T6.js";import"./chunk-VONRSAJ5.js";import"./chunk-2RQJBM5X.js";import"./chunk-FMOTONE6.js";import"./chunk-TXCIU2PH.js";import"./chunk-YUCAGTR4.js";import"./chunk-2CS452E5.js";import"./chunk-4GGAZ5M2.js";import{a as be}from"./chunk-P6JEWZX4.js";import{b as Te}from"./chunk-YOJDP4HK.js";import"./chunk-KH34PTA5.js";import"./chunk-MJB7SLQZ.js";import{a as we}from"./chunk-SKHPQALQ.js";import"./chunk-E4XD2XFU.js";import{c as fe}from"./chunk-IZNRGGD6.js";import{b as xe}from"./chunk-BCZTSESL.js";import"./chunk-VS2SLEYE.js";import"./chunk-SYDQSJXL.js";import{a as Ce}from"./chunk-G6OZ5BRD.js";import{b as ge,t as ve}from"./chunk-UTECAP6L.js";import"./chunk-NU5GVY46.js";import"./chunk-2G5B7FHC.js";import"./chunk-ARN6ZGQU.js";import"./chunk-BBDODYV7.js";import"./chunk-KSWMFKTE.js";import"./chunk-KVE5KOIP.js";import"./chunk-3UNPQ52G.js";import{a as ue}from"./chunk-ZRIBZUSX.js";import"./chunk-TWFLNXY4.js";import{c as F}from"./chunk-6O4GA5BI.js";import{B as pe,G as _e,b as re,c as oe,g as ae,h as de,j as le,l as se,m as ce,z as me}from"./chunk-ECACBPJA.js";import"./chunk-CNFALJTP.js";import"./chunk-2SS26424.js";import"./chunk-PSYH56KS.js";import"./chunk-SMS6XRSB.js";import{d as he}from"./chunk-CYRHN7DD.js";import"./chunk-XM66TPM7.js";import"./chunk-VPN5A5BF.js";import"./chunk-WRXUS7NH.js";import{j as $,l as ee,m as te,q as ie,u as ne}from"./chunk-7YXYERQX.js";import"./chunk-Q64ZI3JX.js";import{E as k,Eb as z,Ed as Z,Hc as P,Ic as K,Jc as Q,Ka as R,Kb as w,L as H,Mc as p,Nc as g,Oc as L,Sc as x,Tc as C,Uc as f,_b as q,ac as G,ba as M,bd as X,cd as W,dc as Y,ec as J,fc as s,gc as d,hc as a,ic as S,ka as U,kd as _,ld as h,m as j,mb as o,mc as B,nc as I,oa as A,rc as b,t as O,va as c,vc as v,wa as m,xb as y,xc as l}from"./chunk-IR4VVOA2.js";import"./chunk-C6BZFLMK.js";import{a as D,i as T}from"./chunk-66YHNWRR.js";var N=(function(r){return r[r.InvitationTemplateType=0]="InvitationTemplateType",r[r.RegistrationTemplateType=1]="RegistrationTemplateType",r})(N||{});var De=(()=>{class r{constructor(e){this.apiService=e}getTemplateFromId(e){return T(this,null,function*(){if(!e)return null;let i=new Map;return i.set("nodeId",e),yield this.apiService.getAsync("emailtemplate",i)})}saveTemplate(e){return T(this,null,function*(){return e?yield this.apiService.postAsync("emailtemplate",e):null})}static{this.\u0275fac=function(i){return new(i||r)(A(ue))}}static{this.\u0275prov=U({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Ge=r=>({color:r}),je=(r,u)=>({"pi-sun":r,"pi-moon":u}),Ye=(r,u)=>u.id;function Je(r,u){r&1&&S(0,"spinner")}function Ke(r,u){if(r&1){let e=b();B(0),d(1,"div",11)(2,"div",12),p(3),_(4,"translate"),a(),d(5,"div",13)(6,"input",14),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.brand.documentationUrl,t)||(n.brand.documentationUrl=t),m(t)}),a()()(),d(7,"div",11)(8,"div",12),p(9),_(10,"translate"),a(),d(11,"div",13)(12,"input",14),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.brand.privacyPolicyUrl,t)||(n.brand.privacyPolicyUrl=t),m(t)}),a()()(),d(13,"div",11)(14,"div",12),p(15),_(16,"translate"),a(),d(17,"div",13)(18,"input",14),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.brand.emailSenderAddress,t)||(n.brand.emailSenderAddress=t),m(t)}),a()()(),I()}if(r&2){let e=l(3);o(3),g(h(4,9,"Label_DocumentationUrl")),o(3),s("readonly",!e.isEditing),x("ngModel",e.brand.documentationUrl),o(3),g(h(10,11,"Label_PrivacyPolicyUrl")),o(3),s("readonly",!e.isEditing),x("ngModel",e.brand.privacyPolicyUrl),o(3),g(h(16,13,"Label_EmailSenderAddress")),o(3),s("readonly",!e.isEditing),x("ngModel",e.brand.emailSenderAddress)}}function Qe(r,u){if(r&1){let e=b();d(0,"div",5)(1,"div",9)(2,"h5"),p(3),_(4,"translate"),a()(),d(5,"div",10)(6,"div",11)(7,"div",12),p(8),_(9,"translate"),a(),d(10,"div",13)(11,"input",14),f("ngModelChange",function(t){c(e);let n=l(2);return C(n.brandDomain,t)||(n.brandDomain=t),m(t)}),a()()(),d(12,"div",11)(13,"div",12),p(14),_(15,"translate"),a(),d(16,"div",13)(17,"input",14),f("ngModelChange",function(t){c(e);let n=l(2);return C(n.currentNode.name,t)||(n.currentNode.name=t),m(t)}
1),a()()(),d(18,"div",11)(19,"div",12),p(20),_(21,"translate"),a(),d(22,"div",13)(23,"input",14),f("ngModelChange",function(t){c(e);let n=l(2);return C(n.brand.browserTitle,t)||(n.brand.browserTitle=t),m(t)}),a()()(),w(24,Ke,19,15,"ng-container",1),a()()}if(r&2){let e=l(2);o(3),g(h(4,11,"Label_Info")),o(5),g(h(9,13,"Label_Domain")),o(3),s("readonly",!0),x("ngModel",e.brandDomain),o(3),g(h(15,15,"Label_Name")),o(3),s("readonly",!0),x("ngModel",e.currentNode.name),o(3),g(h(21,17,"Label_Title")),o(3),s("readonly",!e.isEditing),x("ngModel",e.brand.browserTitle),o(),s("ngIf",e.isSuperUser)}}function Xe(r,u){if(r&1){let e=b();d(0,"div",15)(1,"div"),S(2,"i",16),_(3,"translate"),a(),d(4,"div",17),p(5),_(6,"translate"),a(),d(7,"switch",18),v("filterSwitch",function(t){c(e);let n=l(2);return m(n.onTogglePreviewBrand(t))}),a()()}if(r&2){let e=l(2);o(2),s("pTooltip",h(3,3,"Tooltip_EnablePreview")),o(3),g(h(6,5,"Label_Preview")),o(2),s("switchValue",e.previewBrand)}}function Ze(r,u){if(r&1&&S(0,"span",48),r&2){let e=l().$implicit;s("ngStyle",X(2,Ge,e.isEnabled?"orange":"inherit"))("ngClass",W(4,je,e.name==="light",e.name==="dark"))}}function $e(r,u){if(r&1){let e=b();B(0),d(1,"div",44)(2,"p-checkbox",45),f("ngModelChange",function(t){let n=c(e).$implicit;return C(n.isEnabled,t)||(n.isEnabled=t),m(t)}),v("onChange",function(t){let n=c(e).$implicit,V=l(3);return m(V.onEnabledChanged(t,n))}),a(),d(3,"label",46),p(4),_(5,"titlecase"),w(6,Ze,1,7,"span",47),a()(),I()}if(r&2){let e=u.$implicit,i=l(3);o(2),s("binary",!0)("disabled",!i.isEditing||i.checkboxDisabled&&e.isEnabled),x("ngModel",e.isEnabled),o(),Q("disabled-theme",!e.isEnabled),o(),L(" ",h(5,7,e.name)," "),o(2),s("ngIf",e.name==="light"||e.name==="dark")}}function et(r,u){if(r&1&&(d(0,"p-tab",49),S(1,"i",50),d(2,"span"),p(3),a()()),r&2){let e=l().$implicit;s("value",e.id),o(),s("ngClass",W(3,je,e.name==="light",e.name==="dark")),o(2),g(e.name)}}function tt(r,u){if(r&1&&q(0,et,4,6,"p-tab",49),r&2){let e=u.$implicit;G(e.isEnabled?0:-1)}}function it(r,u){if(r&1){let e=b();B(0),d(1,"div",27),p(2),_(3,"translate"),a(),d(4,"div",13)(5,"div",51)(6,"div",52)(7,"input",53),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.isDefault,t)||(n.currentTheme.isDefault=t),m(t)}),v("ngModelChange",function(t){c(e);let n=l(3);return m(n.toggleIsDefault(t))}),a()()()(),I()}if(r&2){let e=l(3);o(2),g(h(3,3,"Label_Default")),o(5),s("disabled",!e.isThemeEditable||e.defaultDisabled),x("ngModel",e.currentTheme.isDefault)}}function nt(r,u){if(r&1){let e=b();d(0,"button",56),v("click",function(){c(e);let t=l(4);return m(t.customizeTheme())}),p(1," Customize "),a()}}function rt(r,u){if(r&1){let e=b();d(0,"button",56),v("click",function(){c(e);let t=l(4);return m(t.resetTheme())}),p(1," Reset "),a()}}function ot(r,u){if(r&1&&(d(0,"div",54),w(1,nt,2,0,"button",55)(2,rt,2,0,"button",55),a()),r&2){let e=l(3);o(),s("ngIf",e.isEditing&&e.currentTheme.isEnabled&&e.brand.id!==e.currentTheme.brandId),o(),s("ngIf",e.isEditing&&e.brand.id===e.currentTheme.brandId)}}function at(r,u){if(r&1){let e=b();d(0,"div",13)(1,"input",57),_(2,"translate"),v("ngModelChange",function(){c(e);let t=l(3);return m(t.preview())}),a()()}r&2&&(o(),s("placeholder",h(2,1,"Input_HexColor_Placeholder")))}function dt(r,u){if(r&1&&(d(0,"div",58),p(1),a()),r&2){let e=l(3);o(),g(e.currentTheme.loaderColor)}}function lt(r,u){if(r&1){let e=b();d(0,"div",13)(1,"input",59),_(2,"translate"),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.headerBackgroundColor,t)||(n.currentTheme.headerBackgroundColor=t),m(t)}),v("ngModelChange",function(){c(e);let t=l(3);return m(t.preview())}),a()()}if(r&2){let e=l(3);o(),s("placeholder",h(2,2,"Input_HexColor_Placeholder")),x("ngModel",e.currentTheme.headerBackgroundColor)}}function st(r,u){if(r&1&&(d(0,"div",58),p(1),a()),r&2){let e=l(3);o(),g(e.currentTheme.headerBackgroundColor)}}function ct(r,u){if(r&1){let e=b();d(0,"div",13)(1,"input",59),_(2,"translate"),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.headerForegroundColor,t)||(n.currentTheme.headerForegroundColor=t),m(t)}
1),v("ngModelChange",function(){c(e);let t=l(3);return m(t.preview())}),a()()}if(r&2){let e=l(3);o(),s("placeholder",h(2,2,"Input_HexColor_Placeholder")),x("ngModel",e.currentTheme.headerForegroundColor)}}function mt(r,u){if(r&1&&(d(0,"div",58),p(1),a()),r&2){let e=l(3);o(),g(e.currentTheme.headerForegroundColor)}}function pt(r,u){if(r&1){let e=b();d(0,"div",13)(1,"input",59),_(2,"translate"),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.sidebarBackgroundColor,t)||(n.currentTheme.sidebarBackgroundColor=t),m(t)}),v("ngModelChange",function(){c(e);let t=l(3);return m(t.preview())}),a()()}if(r&2){let e=l(3);o(),s("placeholder",h(2,2,"Input_HexColor_Placeholder")),x("ngModel",e.currentTheme.sidebarBackgroundColor)}}function _t(r,u){if(r&1&&(d(0,"div",58),p(1),a()),r&2){let e=l(3);o(),g(e.currentTheme.sidebarBackgroundColor)}}function ht(r,u){if(r&1){let e=b();d(0,"div",13)(1,"input",59),_(2,"translate"),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.sidebarForegroundColor,t)||(n.currentTheme.sidebarForegroundColor=t),m(t)}),v("ngModelChange",function(){c(e);let t=l(3);return m(t.preview())}),a()()}if(r&2){let e=l(3);o(),s("placeholder",h(2,2,"Input_HexColor_Placeholder")),x("ngModel",e.currentTheme.sidebarForegroundColor)}}function gt(r,u){if(r&1&&(d(0,"div",58),p(1),a()),r&2){let e=l(3);o(),g(e.currentTheme.sidebarForegroundColor)}}function ut(r,u){if(r&1){let e=b();B(0),d(1,"div",60)(2,"h6"),p(3),_(4,"translate"),a(),d(5,"div",41)(6,"image-selector",42),v("imageChanged",function(t){c(e);let n=l(3);return m(n.currentTheme.loginImage=t)}),a()()(),d(7,"div",60)(8,"h6"),p(9),_(10,"translate"),a(),d(11,"div",41)(12,"image-selector",42),v("imageChanged",function(t){c(e);let n=l(3);return m(n.currentTheme.loginLogo=t)}),a()()(),d(13,"div",60)(14,"h6"),p(15),_(16,"translate"),a(),d(17,"div",41)(18,"image-selector",42),v("imageChanged",function(t){c(e);let n=l(3);return m(n.currentTheme.loaderImage=t)}),a()()(),d(19,"div",60)(20,"h6"),p(21),_(22,"translate"),a(),d(23,"div",41)(24,"image-selector",42),v("imageChanged",function(t){c(e);let n=l(3);return m(n.currentTheme.favIcon=t)}),a()()(),I()}if(r&2){let e=l(3);o(3),g(h(4,12,"Label_LoginImage")),o(3),s("disabled",!e.isThemeEditable)("image",e.currentTheme.loginImage),o(3),g(h(10,14,"Label_LoginLogo")),o(3),s("disabled",!e.isThemeEditable)("image",e.currentTheme.loginLogo),o(3),g(h(16,16,"Label_LoaderImage")),o(3),s("disabled",!e.isThemeEditable)("image",e.currentTheme.loaderImage),o(3),g(h(22,18,"Label_Favicon")),o(3),s("disabled",!e.isThemeEditable)("image",e.currentTheme.favIcon)}}function vt(r,u){if(r&1){let e=b();d(0,"div",38)(1,"div",61)(2,"h5"),p(3),_(4,"translate"),a()(),d(5,"div",10)(6,"div",11)(7,"div",13)(8,"textarea",62),f("ngModelChange",function(t){c(e);let n=l(3);return C(n.currentTheme.customCss,t)||(n.currentTheme.customCss=t),m(t)}),a()()()()()}if(r&2){let e=l(3);o(3),g(h(4,3,"Label_CustomCss")),o(5),s("readonly",!e.isThemeEditable),x("ngModel",e.currentTheme.customCss)}}function xt(r,u){if(r&1){let e=b();d(0,"div",19)(1,"div",20)(2,"h6",21),p(3),_(4,"translate"),a(),w(5,$e,7,9,"ng-container",22),a(),d(6,"div")(7,"p-tabs",23),f("valueChange",function(t){c(e);let n=l(2);return C(n.selectedThemeId,t)||(n.selectedThemeId=t),m(t)}),d(8,"p-tablist"),Y(9,tt,1,1,null,null,Ye),a()()(),d(11,"div",24),w(12,it,8,5,"ng-container",1)(13,ot,3,2,"div",25),a(),d(14,"div",26)(15,"div",27),p(16),_(17,"translate"),a(),d(18,"div",13)(19,"div",28)(20,"div",29)(21,"color-picker",30),f("colorChange",function(t){c(e);let n=l(2);return C(n.currentTheme.loaderColor,t)||(n.currentTheme.loaderColor=t),m(t)}),v("onChange",function(t){c(e);let n=l(2);return n.currentTheme.loaderColor=t,m(n.preview())}),a()(),w(22,at,3,3,"div",31)(23,dt,2,1,"div",32),a()()(),d(24,"div",33)(25,"div",27),p(26),_(27,"translate"),a(),d(28,"div",13)(29,"div",28)(30,"div",29)(31,"color-picker",30),f("colorChange",function(t){c(e);let n=l(2);return C(n.currentTheme.headerBackgroundColor,t)||(n.currentTheme.headerBackgroundColor=t),m(t)}),v("onChange",function(t){c(e);let n=l(2);
1return n.currentTheme.headerBackgroundColor=t,m(n.preview())}),a()(),w(32,lt,3,4,"div",31)(33,st,2,1,"div",32),a()()(),d(34,"div",33)(35,"div",27),p(36),_(37,"translate"),a(),d(38,"div",13)(39,"div",28)(40,"div",29)(41,"color-picker",30),f("colorChange",function(t){c(e);let n=l(2);return C(n.currentTheme.headerForegroundColor,t)||(n.currentTheme.headerForegroundColor=t),m(t)}),v("onChange",function(t){c(e);let n=l(2);return n.currentTheme.headerForegroundColor=t,m(n.preview())}),a()(),w(42,ct,3,4,"div",31)(43,mt,2,1,"div",32),a()()(),d(44,"div",33)(45,"div",27),p(46),_(47,"translate"),a(),d(48,"div",13)(49,"div",28)(50,"div",29)(51,"color-picker",30),f("colorChange",function(t){c(e);let n=l(2);return C(n.currentTheme.sidebarBackgroundColor,t)||(n.currentTheme.sidebarBackgroundColor=t),m(t)}),v("onChange",function(t){c(e);let n=l(2);return n.currentTheme.sidebarBackgroundColor=t,m(n.preview())}),a()(),w(52,pt,3,4,"div",31)(53,_t,2,1,"div",32),a()()(),d(54,"div",33)(55,"div",27),p(56),_(57,"translate"),a(),d(58,"div",13)(59,"div",28)(60,"div",29)(61,"color-picker",30),f("colorChange",function(t){c(e);let n=l(2);return C(n.currentTheme.sidebarForegroundColor,t)||(n.currentTheme.sidebarForegroundColor=t),m(t)}),v("onChange",function(t){c(e);let n=l(2);return n.currentTheme.sidebarForegroundColor=t,m(n.preview())}),a()(),w(62,ht,3,4,"div",31)(63,gt,2,1,"div",32),a()()(),d(64,"div",34)(65,"div",35),p(66),_(67,"translate"),a(),d(68,"div",36)(69,"switch",37),v("filterSwitch",function(){c(e);let t=l(2);return m(t.onToggleHeader())}),a()()(),d(70,"div",38)(71,"div",39)(72,"h5"),p(73),_(74,"translate"),a()(),d(75,"div",19)(76,"div",40)(77,"div")(78,"h6"),p(79),_(80,"translate"),a(),d(81,"div",41)(82,"image-selector",42),v("imageChanged",function(t){c(e);let n=l(2);return m(n.logoChanged(t))}),a()()(),w(83,ut,25,20,"ng-container",1),a()()(),w(84,vt,9,5,"div",43),a()}if(r&2){let e=l(2);o(3),g(h(4,39,"Label_SupportedThemes")),o(2),s("ngForOf",e.themes),o(2),x("value",e.selectedThemeId),o(2),J(e.themes),o(3),s("ngIf",!e.checkboxDisabled),o(),s("ngIf",e.isEditing),o(3),g(h(17,41,"Label_LoaderColor")),o(5),s("disabled",!e.isThemeEditable),x("color",e.currentTheme.loaderColor),o(),s("ngIf",e.isThemeEditable),o(),s("ngIf",!e.isEditing),o(3),g(h(27,43,"Label_HeaderBackgroundColor")),o(5),s("disabled",!e.isThemeEditable),x("color",e.currentTheme.headerBackgroundColor),o(),s("ngIf",e.isThemeEditable),o(),s("ngIf",!e.isEditing),o(3),g(h(37,45,"Label_HeaderForegroundColor")),o(5),s("disabled",!e.isThemeEditable),x("color",e.currentTheme.headerForegroundColor),o(),s("ngIf",e.isThemeEditable),o(),s("ngIf",!e.isEditing),o(3),g(h(47,47,"Label_SidebarBackgroundColor")),o(5),s("disabled",!e.isThemeEditable),x("color",e.currentTheme.sidebarBackgroundColor),o(),s("ngIf",e.isThemeEditable),o(),s("ngIf",!e.isEditing),o(3),g(h(57,49,"Label_SidebarForegroundColor")),o(5),s("disabled",!e.isThemeEditable),x("color",e.currentTheme.sidebarForegroundColor),o(),s("ngIf",e.isThemeEditable),o(),s("ngIf",!e.isEditing),o(3),g(h(67,51,"Label_ShowHeader")),o(3),s("disabled",!e.isEditing)("switchValue",e.currentTheme==null?null:e.currentTheme.showHeader),o(4),g(h(74,53,"Label_Images")),o(6),g(h(80,55,"Label_Logo")),o(3),s("disabled",!e.isThemeEditable)("image",e.currentTheme.logo),o(),s("ngIf",e.isUrlBranded),o(),s("ngIf",e.isSuperUser)}}function Ct(r,u){r&1&&S(0,"spinner")}function ft(r,u){if(r&1){let e=b();d(0,"div",5)(1,"div",6)(2,"h5"),p(3),_(4,"translate"),a()(),d(5,"div",19)(6,"form",63,0),v("ngSubmit",function(){c(e);let t=P(7),n=l(2);return m(n.saveEmailTemplate(t))}),d(8,"div",13)(9,"div",64)(10,"div",27)(11,"h6",65),p(12),_(13,"translate"),a()(),d(14,"div",13)(15,"input",66),_(16,"translate"),f("ngModelChange",function(t){c(e);let n=l(2);return C(n.emailTemplate.subject,t)||(n.emailTemplate.subject=t),m(t)}),a()()(),d(17,"div",28)(18,"div",27)(19,"h6",65),p(20),_(21,"translate"),a()(),d(22,"div",13)(23,"textarea",67),_(24,"translate"),f("ngModelChange",function(t){c(e);let n=l(2);return C(n.emailTemplate.body,t)||(n.emailTemplate.body=t),m(t)}),p(25,"                            "),a()()()()()(),d(26,"div",68)(27,"button",69),p(28),_(29,"translate"),a(),w(30,Ct,1,0,"spinner",1),a()()}if(r&2){let e=P(7),i=l(2);o(3),g(h(4,12,"Label_InvitationEmailTemplate")),o(9),g(h(13,14,"Label_Subject")),o(3),s("placeholder",h(16,16,"Input_EmailSubject_Placeholder")),x("ngModel",i.emailTemplate.subject),o(5),g(h(21,18,"Label_Body")),o(3),s("placeholder",h(24,20,"Input_EmailBody_Placeholder")),x("ngModel",i.emailTemplate.body),o(4),K("visibility",i.isLoading?"hidden":"visible"),s("disabled",!e.form.dirty||!e.form.valid),o(),L(" ",h(29,22,"Command_SaveTemplate")," "),o(2),s("ngIf",i.isLoading)}}function wt(r,u){if(r&1&&(d(0,"div",3),w(1,Qe,25,19,"div",4),d(2,"div",5)(3,"div",6)(4,"h5"),p(5),_(6,"translate"),a(),w(7,Xe,8,7,"div",7),a(),w(8,xt,85,57,"div",8),a(),w(9,ft,31,24,"div",4),a()),r&2){let e=l();o(),s("ngIf",e.isUrlBranded),o(4),g(h(6,5,"Label_BrandThemes")),o(2),s("ngIf",e.isEditing),o(),s("ngIf",e.currentTheme),o(),s("ngIf",e.emailTemplate&&e.isUrlBranded)}}var ei=(()=>{class r{set currentTheme(e){this._currentTheme=e,this.selectedThemeId.set(e?.id)}
1get currentTheme(){return this._currentTheme}get isThemeEditable(){return this.isEditing&&!this.isThemeInherited(this.currentTheme)&&this.currentTheme.isEnabled}get checkboxDisabled(){return this.themes?.filter(e=>e.isEnabled).length<2}get defaultDisabled(){return!(this.themes?.every(e=>this.isThemeInherited(e))||this.themes?.every(e=>!this.isThemeInherited(e)))}constructor(e,i,t,n,V,E,Oe,He,Ue){this.dialogService=e,this.accountService=i,this.brandService=t,this.appService=n,this.menuService=V,this.featuresService=E,this.nodesService=Oe,this.themesService=He,this.emailTemplateService=Ue,this.persistedThemes=[],this.themes=[],this.selectedThemeId=Z(),this.previewBrand=!1,this.editorTheme="textmate",this.menuItems=[],R(()=>{let Ae=this.selectedThemeId();this.currentTheme=this.themes.find(Re=>Re.id===Ae),this.preview()})}ngOnInit(){this.subscriptions=[this.nodesService.currentNode$.pipe(k(e=>!!e),M(e=>this.brandService.currentNodeBrand$.pipe(k(i=>!!i&&i.nodeId===e.nodeId),M(i=>ge.isTypeDomainBrand(e)?this.brandService.getDomains(i.id).pipe(O(t=>({node:e,brand:i,domain:t[0]}))):j({node:e,brand:i,domain:void 0})))),M(({node:e,brand:i,domain:t})=>this.init(e,i,t))).subscribe(),this.appService.isEditing$.subscribe(e=>T(this,null,function*(){this.isEditing=e,this.isEditing||(yield this.saveBrand())})),this.accountService.hasPermission("super.user").pipe(H(1)).subscribe(e=>{this.isSuperUser=e})],this.isEditing=this.appService.isEditing}ngOnDestroy(){return T(this,null,function*(){this.subscriptions.forEach(e=>e.unsubscribe()),this.menuService.removeItems(this.menuItems),this.previewBrand&&(yield this.resetPreview())})}setupThemes(e){return T(this,null,function*(){e.themes.length<2?(this.themes=yield this.themesService.getNearestThemes(e.nodeId),(!this.themes||!this.themes.some(i=>i.name==="light"))&&this.themes.push(this.createDefaultTheme("light",!this.themes.some(i=>i.isDefault))),this.themes.some(i=>i.name==="dark")||this.themes.push(this.createDefaultTheme("dark",!this.themes.some(i=>i.isDefault)))):this.themes=e.themes,this.themes.sort((i,t)=>t.name.localeCompare(i.name)),this.persistedThemes=this.themes.map(i=>D({},i)),this.currentTheme=this.themes.find(i=>i.isEnabled)})}deleteBrand(){return T(this,null,function*(){let e=this.currentNode.parentNodeId,i=new Set(yield(yield this.featuresService.getFeatureSetsForNodeId(e)).map(E=>E.name)),t=yield(yield this.featuresService.getFeatureSetsForNodeId(this.brand.nodeId)).map(E=>E.name),n=new Set([...t].filter(E=>!i.has(E)));(yield this.dialogService.showConfirmation("MessageDialog_UnmakeTenantHeader",`Are you sure you want to unmake the tenant '${this.brand.name}'?`+(n.size>0?` The following feature sets will be removed: ${Array.from(n).join(", ")}.`:""),"Command_Yes","Command_No"))&&(yield this.brandService.deleteBrand(this.brand.id),this.brand=null)})}getConfirmForReset(){return T(this,null,function*(){return!!(yield this.dialogService.showConfirmation("MessageDialog_ResetCurrentThemeHeader","MessageDialog_ResetCurrentThemeContent"))})}saveBrand(){return T(this,null,function*(){!this.brand||!this.currentNode||(this.isLoading=!0,this.brand.themes=this.themes.filter(e=>!this.isThemeInherited(e)),yield this.brandService.saveBrand(this.brand).then(e=>{e.themes.forEach(i=>{Object.assign(this.themes.find(t=>t.name===i.name),i)})}),this.currentNode.parentNodeId&&(yield this.resetPreview()),this.isLoading=!1)})}toggleIsDefault(e){this.themes.forEach(i=>{i!==this.currentTheme&&!this.isThemeInherited(i)&&(i.isDefault=!e)})}onEnabledChanged(e,i){e.checked?!this.persistedThemes.find(n=>n.name===i.name).isEnabled&&this.isThemeInherited(i)&&Object.assign(i,this.createDefaultTheme(i.name,i.isDefault)):(this.currentTheme===i&&(this.currentTheme=this.themes.find(t=>t!==i)),this.isThemeInherited(i)&&(i.brandId=this.brand.id,i.id=void 0),i.isDefault&&(i.isDefault=!1,this.currentTheme.isDefault=!0),this.preview())}onToggleHeader(){return T(this,null,function*(){this.currentTheme.showHeader=!this.currentTheme.showHeader,this.preview()})}onTogglePreviewBrand(e){return T(this,null,function*(){this.previewBrand=e,this.previewBrand?this.preview():yield this.resetPreview()})}customizeTheme(){this.currentTheme.id=void 0,this.currentTheme.brandId=this.brand.id}resetTheme(){return T(this,null,function*(){if(!(yield this.getConfirmForReset()))return;if(this.currentTheme.id)try{yield this.themesService.deleteTheme(this.currentTheme.id)}catch(i){console.log(i)}let e=yield this.getNearestThemes();Object.assign(this.currentTheme,e.find(i=>i.name===this.currentTheme.name)),this.toggleIsDefault(this.currentTheme.isDefault),this.preview()})}getNearestThemes(){return T(this,null,function*(){try{return yield this.themesService.getNearestThemes(this.brand.nodeId)}catch(e){console.error("faild to get themes");return}})}init(e,i,t){return T(this,null,function*(){this.isLoading=!0,this.initNode(e),this.currentNode=e,this.brand=i,this.brandDomain=t?.domain,this.emailTemplate=(yield this.getEmailTemplate(i.nodeId))??null,yield this.setupThemes(i),this.isLoading=!1})}resetPreview(){return T(this,null,function*(){this.previewBrand=!1,yield this.themesService.setupThemes()})}preview(){this.previewBrand&&this.themesService.applyTheme(this.currentTheme)}logoChanged(e){this.currentTheme.logo=e,this.preview()}getEmailTemplate(e){return T(this,null,function*(){if(!(!e||!this.accountService.checkPermission(this.accountService.currentUser,"brandemailtemplate.create")))try{return(yield this.emailTemplateService.getTemplateFromId(e?.toString()))??this.initEmailTemplate(e)}catch(i){return}})}initEmailTemplate(e){return{type:N.InvitationTemplateType,subject:"Welcome to @Name",body:"<p><b>Hi @FirstName @LastName!</b></p><p>You have been invited to the @Name portal.</p><p>Activate your account by navigating to @InvitationUrl</p>",nodeId:e,node:this.currentNode}}saveEmailTemplate(e){return T(this,null,function*(){if(e.valid)try{this.isLoading=!0,yield this.emailTemplateService.saveTemplate(this.emailTemplate)}catch(i){console.log(i)}finally{this.isLoading=!1}})}initNode(e){if(!(e.typeFlag&F.Groups)){this.brandNode=void 0;return}this.brandNode=e,this.isUrlBranded=!!(this.brandNode.typeFlag&F.DomainBrands)}createDefaultTheme(e,i=!1){return{brandId:this.brand.id,showHeader:!1,customCss:"",loaderColor:"",headerBackgroun
1dColor:"",headerForegroundColor:"",sidebarBackgroundColor:"",sidebarForegroundColor:"",isDefault:i,isEnabled:!0,name:e,browserTitle:null,favIcon:null,loaderImage:null,loginImage:null,loginLogo:null,logo:null}}isThemeInherited(e){return e.brandId!==this.brand.id}static{this.\u0275fac=function(i){return new(i||r)(y(xe),y(ve),y(fe),y(Ve),y(Me),y(we),y(Ce),y(Te),y(De))}}static{this.\u0275cmp=z({type:r,selectors:[["brand-editor"]],inputs:{selectedThemeId:[1,"selectedThemeId"]},outputs:{selectedThemeId:"selectedThemeIdChange"},decls:2,vars:2,consts:[["form","ngForm"],[4,"ngIf"],["class","form-container",4,"ngIf"],[1,"form-container"],["class","card",4,"ngIf"],[1,"card"],[1,"card-header","d-flex","justify-content-between"],["class","d-flex flex-row justify-content-end align-items-baseline",4,"ngIf"],["class","card-body",4,"ngIf"],[1,"card-header","d-flex"],[1,"card-body","d-flex","flex-column","m-2","row"],[1,"d-flex","flex-row","m-2","row"],[1,"col-3","editing-setting-name"],[1,"col"],["type","text",1,"form-control",2,"max-width","400px",3,"ngModelChange","readonly","ngModel"],[1,"d-flex","flex-row","justify-content-end","align-items-baseline"],["tooltipPosition","right",1,"ioticon","iot-information",3,"pTooltip"],[1,"m-1"],[3,"filterSwitch","switchValue"],[1,"card-body"],[1,"d-flex","flex-column","justify-content-center","my-4"],[1,"mb-4"],[4,"ngFor","ngForOf"],[3,"valueChange","value"],[1,"flex-row","m-2","row","align-items-center",2,"height","38px"],["class","d-flex justify-content-end flex-fill","style","height: 100%;",4,"ngIf"],[1,"flex-row","m-2","row","align-items-end"],[1,"col-12","col-md-3","editing-setting-name","align-items-center"],[1,"row","align-items-center"],[1,"col-2"],[3,"colorChange","onChange","disabled","color"],["class","col",4,"ngIf"],["class","col-3",4,"ngIf"],[1,"flex-row","m-2","row","align-items-center"],[1,"flex-row","m-2","mt-4","row","align-items-center",2,"height","38px"],[1,"col-12","col-md-3","editing-setting-name","d-flex","align-items-center",2,"height","100%"],[1,"col","pl-2"],[3,"filterSwitch","disabled","switchValue"],[1,"mx-4"],[1,"brand-section","py-2","mt-5",2,"border-bottom","1px solid rgba(0, 0, 0, 0.125)"],[1,"d-flex","mb-4"],[2,"height","120px","width","120px"],[3,"imageChanged","disabled","image"],["class","mx-4",4,"ngIf"],[1,"d-flex","align-items-center","mb-3","ml-3"],["name","checkbox-light",3,"ngModelChange","onChange","binary","disabled","ngModel"],[1,"mb-0","ml-2","brand-checkbox"],["class","pi pi-fw",3,"ngStyle","ngClass",4,"ngIf"],[1,"pi","pi-fw",3,"ngStyle","ngClass"],[1,"d-flex","align-items-center",3,"value"],[1,"pi","pi-fw",3,"ngClass"],[1,"row","d-flex","align-items-center",2,"height","100%"],[1,"col-2","d-flex","align-items-center"],["type","checkbox",1,"ml-1",2,"min-width","25px","min-height","25px",3,"ngModelChange","disabled","ngModel"],[1,"d-flex","justify-content-end","flex-fill",2,"height","100%"],["style","width: fit-content;","class","btn btn-primary",3,"click",4,"ngIf"],[1,"btn","btn-primary",2,"width","fit-content",3,"click"],["type","text","minlength","6",1,"form-control",3,"ngModelChange","placeholder"],[1,"col-3"],["type","text","minlength","6",1,"form-control",2,"max-width","200px",3,"ngModelChange","placeholder","ngModel"],[1,"ml-4"],[1,"brand-section","py-2",2,"border-bottom","1px solid rgba(0, 0, 0, 0.125)"],["type","text","rows","10",1,"form-control",3,"ngModelChange","readonly","ngModel"],["id","form",3,"ngSubmit"],[1,"row","align-items-center","mb-4"],[1,"text-center"],["type","text","minlength","6","name","subject","required","",1,"form-control",3,"ngModelChange","placeholder","ngModel"],["type","text","rows","10","name","body","required","",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"card-footer"],["type","submit","form","form",1,"btn","btn-primary","float-right",3,"disabled"]],template:function(i,t){i&1&&w(0,Je,1,0,"spinner",1)(1,wt,10,7,"div",2),i&2&&(s("ngIf",t.isLoading),o(),s("ngIf",t.brand))},dependencies:[te,be,_e,ce,oe,re,ae,de,me,pe,se,le,Se,Ee,ye,ee,Ie,Be,ie,$,We,ke,Pe,Le,Ne,Fe,ne,he],styles:["[_nghost-%COMP%]{display:block;padding:1rem}
1.card[_ngcontent-%COMP%]{margin-bottom:1rem;max-width:1000px}.card[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:0}.preview-setting-name[_ngcontent-%COMP%]{display:inline-block;width:150px}.editing-setting-name[_ngcontent-%COMP%]{min-width:105px}.colorpicker-square[_ngcontent-%COMP%]{display:inline-block;width:32px;height:32px;vertical-align:middle;border:1px solid #ccc}.logotype-preview[_ngcontent-%COMP%]{display:flex;flex-direction:column}.logotype-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;margin-bottom:1rem;max-width:250px}.pointer-cursor[_ngcontent-%COMP%]{cursor:pointer}.logo-preview[_ngcontent-%COMP%]{width:120px;height:120px;display:flex;justify-content:center;align-content:center;background-color:#f7f9fa;border-radius:4px;border:2px dashed #dddddd;padding:.7em}.logo-preview--no-icon[_ngcontent-%COMP%]{color:#222;background-color:transparent;border-color:transparent;width:100%}.logo-preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:120px;max-height:120px;width:100%;height:100%;object-fit:contain}.disabled[_ngcontent-%COMP%]{color:#9a9a9a}.logo-remove[_ngcontent-%COMP%]{position:absolute;top:5px;left:107px;font-size:70%;color:#f7f9fa;background-color:#777;border:1px solid #555;border-radius:3px;opacity:.6}.disabled-theme[_ngcontent-%COMP%]{color:#0006}.card-footer[_ngcontent-%COMP%]{position:relative}"]})}}return r})();export{ei as BrandEditorComponent};

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.