1import"./chunk-PVDG46DZ.js";import{a as me}from"./chunk-MJHKSL2V.js";import{a as ae,b as re}from"./chunk-AMHTXUJN.js";import{a as be}from"./chunk-M2SDBECC.js";import{a as ue,k as xe}from"./chunk-DBB3PKOU.js";import{b as he}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import{b as ce}from"./chunk-VG7OHNZN.js";import"./chunk-MS4AQ6UA.js";import{b as pe,d as ge}from"./chunk-N7NZ2FMU.js";import{f as _e}from"./chunk-F2TSTV3I.js";import"./chunk-XRMXGMS4.js";import"./chunk-Q4V6AKYI.js";import{a as fe,b as Ce}from"./chunk-T3PLPHIG.js";import"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import{b as Y,c as G}from"./chunk-V46ZQKC5.js";import"./chunk-QNUNLKYK.js";import{a as v,c as A,r as de}from"./chunk-RE4JJFV5.js";import{f as j,k as Q}from"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as le}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as ne,b as oe}from"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as K,d as X,i as Z,j as ee}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{l as q,n as H,q as J}from"./chunk-YWHNFDXQ.js";import{l as se}from"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import"./chunk-GW33KQPR.js";import{T as ie,U as te}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import{G as U,c as B,h as L,m as $}from"./chunk-QXJM3TTT.js";import{F as N,r as z}from"./chunk-TMOIAHHX.js";import{$a as D,Fb as P,Ib as d,Jb as S,Kb as O,Lb as T,Rb as b,Sb as w,Tb as M,Wa as g,Xa as f,_a as F,ab as p,bb as a,cb as o,db as y,dc as W,ga as s,kb as h,o as m,p as _,qb as u,sa as E,tb as r,za as I}from"./chunk-DJNWGYMM.js";import{ea as x,f as V}from"./chunk-VOZAGDK7.js";import{a as k,b as R}from"./chunk-E5QWB6YB.js";var we=n=>({width:n}),Me=(n,c)=>c.domain,ve=(n,c)=>c.site,Ee=(n,c)=>c.id;function ye(n,c){n&1&&y(0,"mat-progress-bar",2)}function Se(n,c){if(n&1&&(a(0,"p",10),d(1),o()),n&2){let e=r(3);s(),O(" ",e.config.enabled?"Forwarding is on \u2014 incoming mail is delivered to the addresses below.":"Forwarding is off \u2014 your aliases are saved, but no mail is being delivered right now."," ")}}function Fe(n,c){if(n&1){let e=h();a(0,"div",15)(1,"span",16),d(2),o(),a(3,"mat-slide-toggle",17),u("change",function(i){m(e);let l=r(3);return _(l.setEnabled(i.checked))}),o()()}if(n&2){let e=r(3);P("master-toggle--on",e.config.enabled),s(2),S(e.config.enabled?"On":"Off"),s(),p("checked",e.config.enabled)("disabled",e.saving)}}function De(n,c){if(n&1&&(a(0,"mat-option",21),d(1),o()),n&2){let e=c.$implicit;p("value",e.site),s(),T(" ",e.name||e.site," (",e.site,") ")}}function Pe(n,c){if(n&1){let e=h();a(0,"div",12)(1,"mat-form-field",18)(2,"mat-label"),d(3,"Website"),o(),a(4,"mat-icon",19),d(5,"language"),o(),a(6,"mat-select",20),u("selectionChange",function(i){m(e);let l=r(3);return _(l.selectSite(i.value))}),F(7,De,2,3,"mat-option",21,ve),o()()()}if(n&2){let e=r(3);s(6),p("ngModel",e.selectedSite)("disabled",e.saving||e.loading||e.sitesLoading),s(),D(e.siteOptions)}}function Oe(n,c){if(n&1){let e=h();a(0,"div",13)(1,"mat-form-field",22)(2,"mat-label"),d(3,"Add a domain"),o(),a(4,"mat-icon",19),d(5,"dns"),o(),a(6,"input",23),M("ngModelChange",function(i){m(e);let l=r(3);return w(l.domainInput,i)||(l.domainInput=i),_(i)}),u("keyup.enter",function(){m(e);let i=r(3);return _(i.addDomain())}),o()(),a(7,"button",24),u("click",function(){m(e);let i=r(3);return _(i.addDomain())}),a(8,"mat-icon"),d(9,"add"),o(),d(10," Add domain "),o()()}if(n&2){let e=r(3);s(6),b("ngModel",e.domainInput),s(),p("disabled",e.saving||!e.domainInput.trim())}}function Te(n,c){n&1&&d(0," Add a domain above to start forwarding email for this site. ")}function Ae(n,c){n&1&&d(0," No domains have been set up for this site yet. ")}function ke(n,c){if(n&1&&(a(0,"div",4)(1,"mat-icon"),d(2,"mark_email_unread"),o(),a(3,"div",25),d(4,"No domains yet"),o(),a(5,"div",26),g(6,Te,1,0)(7,Ae,1,0),o()()),n&2){let e=r(3);s(6),f(e.canManageDomains?6:7)}}function Re(n,c){if(n&1){let e=h();a(0,"button",40),u("click",function(){m(e);let i=r().$implicit,l=r(3);return _(l.removeDomain(i))}),a(1,"mat-icon"),d(2,"delete"),o()()}if(n&2){let e=r(4);p("disabled",e.saving)}}function Ve(n,c){if(n&1){let e=h();a(0,"mat-checkbox",47),M("ngModelChange",function(i){m(e);let l=r(2).$implicit,C=r(3);return w(C.aliasDrafts[l.domain].is_enabled,i)||(C.aliasDrafts[l.domain].is_enabled=i),_(i)}),d(1,"Enabled"),o()}if(n&2){let e=r(2).$implicit,t=r(3);b("ngModel",t.aliasDrafts[e.domain].is_enabled),p("name","aliasEnabled"+e.domain)}}function Ie(n,c){if(n&1){let e=h();a(0,"div",36)(1,"mat-form-field",41)(2,"mat-label"),d(3,"Alias"),o(),a(4,"input",42),M("ngModelChange",function(i){m(e);let l=r().$implicit,C=r(3);return w(C.aliasDrafts[l.domain].name,i)||(C.aliasDrafts[l.domain].name=i),_(i)}),u("keyup.enter",function(){m(e);let i=r().$implicit,l=r(3);return _(l.addAlias(i))}),o()(),a(5,"mat-form-field",43)(6,"mat-label"),d(7,"Redirect address"),o(),a(8,"input",44),M("ngModelChange",function(i){m(e);let l=r().$implicit,C=r(3);return w(C.aliasDrafts[l.domain].recipients,i)||(C.aliasDrafts[l.domain].recipients=i),_(i)}),u("keyup.enter",function(){m(e);let i=r().$implicit,l=r(3);return _(l.addAlias(i))}),o()(),a(9,"mat-form-field",41)(10,"mat-label"),d(11,"Description"),o(),a(12,"input",45),M("ngModelChange",function(i){m(e);let l=r().$implicit,C=r(3);return w(C.aliasDrafts[l.domain].description,i)||(C.aliasDrafts[l.domain].description=i),_(i)}),o()(),g(13,Ve,2,2,"mat-checkbox",46),a(14,"button",24),u("click",function(){m(e);let i=r().$implicit,l=r(3);return _(l.addAlias(i))}),a(15,"mat-icon"),d(16,"add"),o(),d(17," Add alias "),o()()}if(n&2){let e=r().$implicit,t=r(3);s(4),b("ngModel",t.aliasDrafts[e.domain].name),p("name","aliasName"+e.domain),s(4),b("ngModel",t.aliasDrafts[e.domain].recipients),p("name","aliasRecipients"+e.domain),s(4),b("ngModel",t.aliasDrafts[e.domain].description),p("name","aliasDescription"+e.domain),s(),f(t.canManageDomains?13:-1),s(),p("disabled",t.saving)}}function We(n,c){n&1&&d(0," No aliases yet \u2014 add one above to forward mail for this domain. ")}function ze(n,c){n&1&&d(0," No aliases configured. ")}function Ne(n,c){if(n&1&&(a(0,"div",38),g(1,We,1,0)(2,ze,1,0),o()),n&2){let e=r(4);s(),f(e.config.enabled&&e.canManageAliases?1:2)}}function Be(n,c){if(n&1&&(a(0,"div",54),d(1),o()),n&2){let e=r(2).$implicit;s(),S(e.description)}}function Le(n,c){if(n&1){let e=h();a(0,"button",58),u("click",function(){m(e);let i=r(2).$implicit,l=r(4);return _(l.startEdit(i))}),a(1,"mat-icon"),d(2,"edit"),o()()}if(n&2){let e=r(6);p("disabled",e.saving)}}function $e(n,c){if(n&1){let e=h();a(0,"div",49)(1,"div",50)(2,"span",51),d(3),o(),a(4,"mat-icon",52),d(5,"arrow_forward"),o(),a(6,"span",53),d(7),o()(),g(8,Be,2,1,"div",54),o(),a(9,"div",55)(10,"span",33),y(11,"span",34),d(12),o(),g(13,Le,3,1,"button",56),a(14,"button",57),u("click",function(){m(e);let i=r().$implicit,l=r().$implicit,C=r(3);return _(C.deleteAlias(l,i))}),a(15,"mat-icon"),d(16,"delete"),o()()()}if(n&2){let e=r().$implicit,t=r().$implicit,i=r(3);s(3),T("",e.name,"@",t.domain),s(4),S(e.recipients==null?null:e.recipients.join(", ")),s(),f(e.description?8:-1),s(2),P("status-chip--off",!e.is_enabled),s(2),O("",e.is_enabled?"Enabled":"Disabled"," "),s(),f(i.canManageDomains?13:-1),s(),p("disabled",i.saving)}}function Ue(n,c){if(n&1){let e=h();a(0,"div",48)(1,"mat-form-field",41)(2,"mat-label"),d(3,"Alias"),o(),a(4,"input",45),M("ngModelChange",function(i){m(e);let l=r().$implicit;return w(l.editName,i)||(l.editName=i),_(i)}),o()(),a(5,"mat-form-field",41)(6,"mat-label"),d(7,"Redirect address"),o(),a(8,"input",45),M("ngModelChange",function(i){m(e);let l=r().$implicit;return w(l.editRecipients,i)||(l.editRecipients=i),_(i)}),o()(),a(9,"mat-form-field",41)(10,"mat-label"),d(11,"Description"),o(),a(12,"input",45),M("ngModelChange",function(i){m(e);let l=r().$implicit;return w(l.editDescription,i)||(l.editDescription=i),_(i)}),o()(),a(13,"mat-checkbox",47),M("ngModelChange",function(i){m(e);let l=r().$implicit;return w(l.editEnabled,i)||(l.editEnabled=i),_(i)}),d(14,"Enabled"),o(),a(15,"div",59)(16,"button",24),u("click",function(){m(e);let i=r().$implicit,l=r().$implicit,C=r(3);return _(C.saveAlias(l,i))}),d(17,"Save"),o(),a(18,"button",60),u("click",function(){m(e);let i=r().$implicit,l=r(4);return _(l.cancelEdit(i))}),d(19,"Cancel"),o()()()}if(n&2){let e=r().$implicit,t=r(4);s(4),b("ngModel",e.editName),p("name","editName"+e.id),s(4),b("ngModel",e.editRecipients),p("name","editRecipients"+e.id),s(4),b("ngModel",e.editDescription),p("name","editDescription"+e.id),s(),b("ngModel",e.editEnabled),p("name","editEnabled"+e.id),s(3),p("disabled",t.saving)}}function je(n,c){if(n&1&&(a(0,"div",39),g(1,$e,17,9)(2,Ue,20,9,"div",48),o()),n&2){let e=c.$implicit;s(),f(e.editing?2:1)}}
1function Qe(n,c){if(n&1&&(a(0,"mat-card",14)(1,"div",27)(2,"div",28)(3,"mat-icon",29),d(4,"dns"),o(),a(5,"div")(6,"h3",30),d(7),o(),a(8,"div",31),d(9),o()()(),a(10,"div",32)(11,"span",33),y(12,"span",34),d(13),o(),g(14,Re,3,1,"button",35),o()(),g(15,Ie,18,8,"div",36),a(16,"div",37),g(17,Ne,3,1,"div",38),F(18,je,3,1,"div",39,Ee),o()()),n&2){let e=c.$implicit,t=r(3);s(7),S(e.domain),s(2),T("",t.activeAliases(e).length," ",t.activeAliases(e).length===1?"alias":"aliases"),s(2),P("status-chip--off",!e.is_enabled),s(2),O("",e.is_enabled?"Enabled":"Disabled"," "),s(),f(t.canManageDomains?14:-1),s(),f(t.config.enabled&&t.canManageAliases?15:-1),s(2),f(t.activeAliases(e).length===0?17:-1),s(),D(t.activeAliases(e))}}function qe(n,c){if(n&1&&(a(0,"mat-card",5)(1,"div",6)(2,"div",7)(3,"div",8),d(4,"Settings"),o(),a(5,"h2",9),d(6,"Email forwarding"),o(),g(7,Se,2,1,"p",10),o(),g(8,Fe,4,5,"div",11),o(),g(9,Pe,9,2,"div",12),g(10,Oe,11,2,"div",13),o(),g(11,ke,8,1,"div",4),F(12,Qe,20,9,"mat-card",14,Me)),n&2){let e=r(2);s(7),f(e.canManageDomains?7:-1),s(),f(e.canManageDomains?8:-1),s(),f(e.canManageSites?9:-1),s(),f(e.canManageDomains?10:-1),s(),f(e.activeDomains().length===0?11:-1),s(),D(e.activeDomains())}}function He(n,c){n&1&&(a(0,"div",4)(1,"mat-icon"),d(2,"lock"),o(),a(3,"div",25),d(4,"No access"),o(),a(5,"div",26),d(6,"You don't have permission to manage email forwarding for this site."),o()())}function Je(n,c){if(n&1&&(a(0,"div",3),g(1,qe,14,5)(2,He,7,0,"div",4),o()),n&2){let e=r();p("ngStyle",W(2,we,e.fuseConfig!=null&&e.fuseConfig.pageWidth?e.fuseConfig.pageWidth+"%":"100%")),s(),f(e.canManageAliases?1:2)}}var Oi=(()=>{class n{api;notify;dialog;_fuseConfigService;loading=!1;sitesLoading=!1;saving=!1;fuseConfig;config={enabled:!1,domains:[]};canManageSites=!1;canManageDomains=!1;canManageAliases=!1;selectedSite="";siteOptions=[];domainInput="";aliasDrafts={};confirmDialogRef;_unsubscribeAll=new V;constructor(e,t,i,l){this.api=e,this.notify=t,this.dialog=i,this._fuseConfigService=l}ngOnInit(){this._fuseConfigService.config.pipe(x(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.readPersonaFallback(),this.loadConfig()}loadConfig(){this.loading=!0,this.api.get("SiteEmail/config"+this.siteQuery(),!0).pipe(x(this._unsubscribeAll)).subscribe({next:e=>{this.loading=!1,this.canManageSites=e?.canManageSites===!0,this.canManageDomains=e?.canManageDomains===!0,this.canManageAliases=e?.canManageAliases===!0,this.selectedSite=e?.selectedSite||this.selectedSite||"",this.config=e?.config||{enabled:!1,domains:[]},this.normalizeConfig(),this.canManageSites&&this.siteOptions.length===0&&this.loadSites()},error:e=>{this.loading=!1,this.notify.openAlertModal(e?.error||"Unable to load forwarding settings",v.ERROR)}})}loadSites(){this.canManageSites&&(this.sitesLoading=!0,this.api.get("SiteEmail/sites",!0).pipe(x(this._unsubscribeAll)).subscribe({next:e=>{this.sitesLoading=!1,this.siteOptions=Array.isArray(e)?e:[]},error:e=>{this.sitesLoading=!1,this.notify.openAlertModal(e?.error||"Unable to load sites",v.ERROR)}}))}selectSite(e){!this.canManageSites||!e||e===this.selectedSite||this.saving||(this.selectedSite=e,this.domainInput="",this.aliasDrafts={},this.loadConfig())}setEnabled(e){!this.canManageDomains||this.saving||(this.saving=!0,this.api.put("SiteEmail/enabled",this.withSelectedSite({enabled:e}),!0).pipe(x(this._unsubscribeAll)).subscribe({next:t=>{this.saving=!1,this.config=t||this.config,this.normalizeConfig(),this.notify.openToaster("Forwarding settings updated","success")},error:t=>{this.saving=!1,this.notify.openAlertModal(t?.error||"Unable to update forwarding settings",v.ERROR)}}))}addDomain(){!this.canManageDomains||this.saving||!this.domainInput.trim()||(this.saving=!0,this.api.post("SiteEmail/domains",this.withSelectedSite({domain:this.domainInput.trim()}),!0).pipe(x(this._unsubscribeAll)).subscribe({next:e=>{this.saving=!1,this.domainInput="",this.config=e||this.config,this.normalizeConfig(),this.notify.openToaster("Domain added","success")},error:e=>{this.saving=!1,this.notify.openAlertModal(e?.error||"Unable to add domain",v.ERROR)}}))}removeDomain(e){!this.canManageDomains||this.saving||(this.confirmDialogRef=this.dialog.open(A,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage=`Remove ${e.domain} and delete its aliases from ForwardEmail?`,this.confirmDialogRef.afterClosed().pipe(x(this._unsubscribeAll)).subscribe(t=>{t&&(this.saving=!0,this.api.delete("SiteEmail/domains/"+encodeURIComponent(e.domain)+this.siteQuery(),!0).pipe(x(this._unsubscribeAll)).subscribe({next:i=>{this.saving=!1,this.config=i||this.config,this.normalizeConfig(),this.notify.openToaster("Domain removed","success")},error:i=>{this.saving=!1,this.notify.openAlertModal(i?.error||"Unable to remove domain",v.ERROR)}}))}))}addAlias(e){let t=this.aliasDrafts[e.domain];if(!this.canManageAliases||this.saving||!t?.name?.trim()||!t?.recipients?.trim()){this.notify.openToaster("Alias and redirect address are required","error");return}this.saving=!0,this.api.post("SiteEmail/aliases",this.withSelectedSite({domain:e.domain,name:t.name.trim(),recipients:this.parseRecipients(t.recipients),description:t.description,is_enabled:this.canManageDomains?t.is_enabled:!0}),!0).pipe(x(this._unsubscribeAll)).subscribe({next:i=>{this.saving=!1,this.config=i||this.config,this.normalizeConfig(),this.aliasDrafts[e.domain]=this.empty
1Draft(),this.notify.openToaster("Alias added","success")},error:i=>{this.saving=!1,this.notify.openAlertModal(i?.error||"Unable to add alias",v.ERROR)}})}startEdit(e){e.editing=!0,e.editName=e.name,e.editRecipients=(e.recipients||[]).join(", "),e.editDescription=e.description||"",e.editEnabled=e.is_enabled}cancelEdit(e){e.editing=!1}saveAlias(e,t){if(!(!this.canManageAliases||this.saving)){if(!t.editName?.trim()||!t.editRecipients?.trim()){this.notify.openToaster("Alias and redirect address are required","error");return}this.saving=!0,this.api.put("SiteEmail/aliases/"+encodeURIComponent(t.id),this.withSelectedSite({domain:e.domain,name:t.editName?.trim(),recipients:this.parseRecipients(t.editRecipients||""),description:t.editDescription,is_enabled:t.editEnabled}),!0).pipe(x(this._unsubscribeAll)).subscribe({next:i=>{this.saving=!1,this.config=i||this.config,this.normalizeConfig(),this.notify.openToaster("Alias updated","success")},error:i=>{this.saving=!1,this.notify.openAlertModal(i?.error||"Unable to update alias",v.ERROR)}})}}deleteAlias(e,t){!this.canManageAliases||this.saving||(this.confirmDialogRef=this.dialog.open(A,{disableClose:!1}),this.confirmDialogRef.componentInstance.confirmMessage=`Delete ${t.name}@${e.domain}?`,this.confirmDialogRef.afterClosed().pipe(x(this._unsubscribeAll)).subscribe(i=>{i&&(this.saving=!0,this.api.delete("SiteEmail/domains/"+encodeURIComponent(e.domain)+"/aliases/"+encodeURIComponent(t.id)+this.siteQuery(),!0).pipe(x(this._unsubscribeAll)).subscribe({next:l=>{this.saving=!1,this.config=l||this.config,this.normalizeConfig(),this.notify.openToaster("Alias deleted","success")},error:l=>{this.saving=!1,this.notify.openAlertModal(l?.error||"Unable to delete alias",v.ERROR)}}))}))}activeDomains(){return(this.config?.domains||[]).filter(e=>!e.deletedOn)}activeAliases(e){return(e.aliases||[]).filter(t=>!t.deletedOn)}normalizeConfig(){this.config.domains=this.config.domains||[],this.config.domains.forEach(e=>{e.aliases=e.aliases||[],this.aliasDrafts[e.domain]||(this.aliasDrafts[e.domain]=this.emptyDraft())})}emptyDraft(){return{name:"",recipients:"",description:"",is_enabled:!0}}parseRecipients(e){return(e||"").split(/[\n,; ]+/).map(t=>t.trim()).filter(t=>!!t)}withSelectedSite(e){return!this.canManageSites||!this.selectedSite?e:R(k({},e),{site:this.selectedSite})}siteQuery(){return!this.canManageSites||!this.selectedSite?"":"?site="+encodeURIComponent(this.selectedSite)}readPersonaFallback(){try{let e=JSON.parse(localStorage.getItem("person")||"{}")?.persona||{};this.canManageSites=e.regply===!0,this.canManageDomains=this.canManageSites,this.canManageAliases=this.canManageDomains||e.siteAdmin===!0}catch{this.canManageSites=!1,this.canManageDomains=!1,this.canManageAliases=!1}}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(t){return new(t||n)(E(le),E(de),E(j),E(se))};static \u0275cmp=I({type:n,selectors:[["forward-email"]],decls:4,vars:3,consts:[["id","ForwardEmailPage","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],["title","Forward Email","subtitle","Send mail from your website's addresses (like [email protected]) straight to a real inbox.","matIcon","alternate_email",3,"hideBanner"],["mode","indeterminate","color","primary"],[1,"content","p-24","mx-auto",3,"ngStyle"],[1,"empty-state"],[1,"forward-card","forward-card--settings","mb-16"],[1,"forward-card__header"],[1,"forward-card__heading"],[1,"forward-card__eyebrow"],[1,"forward-card__title"],[1,"forward-card__hint"],[1,"master-toggle",3,"master-toggle--on"],[1,"site-select-row"],[1,"domain-add-row","inline-form"],[1,"forward-card","mb-16"],[1,"master-toggle"],[1,"master-toggle__label"],["color","primary","aria-label","Toggle email forwarding",3,"change","checked","disabled"],["appearance","outline",1,"site-select"],["matPrefix",""],["name","selectedSite",3,"selectionChange","ngModel","disabled"],[3,"value"],["appearance","outline",1,"domain-input"],["matInput","","name","domainInput","placeholder","example.com",3,"ngModelChange","keyup.enter","ngModel"],["mat-flat-button","","color","primary","type","button",3,"click","disabled"],[1,"empty-state__title"],[1,"empty-state__text"],[1,"domain-header"],[1,"domain-header__main"],[1,"domain-header__icon"],[1,"domain-name"],[1,"domain-meta"],[1,"domain-header__actions"],[1,"status-chip"],[1,"status-dot"],["mat-icon-button","","color","warn","type","button","matTooltip","Remove domain",3,"disabled"],[1,"alias-form","inline-form"],[1,"alias-list"],[1,"empty-state","small"],[1,"alias-row"],["mat-icon-button","","color","warn","type","button","matTooltip","Remove domain",3,"click","disabled"],["appearance","outline"],["matInput","","placeholder","info",3,"ngModelChange","keyup.enter","ngModel","name"],["appearance","outline",1,"recipients-field"],["matInput","","placeholder","[email protected]",3,"ngModelChange","keyup.enter","ngModel","name"],["matInput","",3,"ngModelChange","ngModel","name"],[3,"ngModel","name"],[3,"ngModelChange","ngModel","name"],[1,"alias-edit-grid","inline-form"],[1,"alias-main"],[1,"alias-route"],[1,"alias-address"],["aria-label","forwards to",1,"alias-arrow"],[1,"alias-recipients"],[1,"alias-description"],[1,"alias-actions"],["mat-icon-button","","type","button","matTooltip","Edit alias",3,"disabled"],["mat-icon-button","","color","warn","type","button","matTooltip","Delete alias",3,"click","disabled"],["mat-icon-button","","type","button","matTooltip","Edit alias",3,"click","disabled"],[1,"edit-actions"],["mat-button","","type","button",3,"click"]],template:function(t,i){t&1&&(a(0,"div",0),y(1,"page-header",1),g(2,ye,1,0,"mat-progress-bar",2),g(3,Je,3,4,"div",3),o()),t&2&&(s(),p("hideBanner",!0),s(),f(i.loading||i.saving||i.sitesLoading?2:-1),s(),f(i.loading?-1:3))},dependencies:[N,z,U,B,L,$,J,H,q,xe,ue,G,Y,Q,ee,Z,K,X,te,ie,oe,ne,re,ae,ge,pe,_e,Ce,fe,me,ce,he,be],styles:[".forward-card[_ngcontent-%COMP%]{padding:20px;border-radius:14px;border:1px solid #eef2f7;box-shadow:0 2px 12px #0f172a0f;
1transition:box-shadow .2s ease}.forward-card[_ngcontent-%COMP%]:hover{box-shadow:0 6px 24px #0f172a14}.forward-card--settings[_ngcontent-%COMP%]{border-top:3px solid #1a3668}.forward-card__header[_ngcontent-%COMP%], .domain-header[_ngcontent-%COMP%], .alias-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px}.forward-card__eyebrow[_ngcontent-%COMP%]{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#64748b}.forward-card__title[_ngcontent-%COMP%], .domain-name[_ngcontent-%COMP%]{margin:4px 0 0;font-weight:700}.forward-card__hint[_ngcontent-%COMP%]{margin:8px 0 0;color:#64748b;font-size:13px;max-width:64ch}.master-toggle[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;padding:6px 14px;border-radius:999px;background:#f1f5f9;color:#64748b;white-space:nowrap}.master-toggle--on[_ngcontent-%COMP%]{background:#e0e7f5;color:#1a3668}.master-toggle__label[_ngcontent-%COMP%]{font-weight:700;font-size:13px}.inline-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,2fr) minmax(180px,1fr) auto auto;align-items:center;gap:12px;margin-top:18px}.inline-form[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.site-select-row[_ngcontent-%COMP%]{margin-top:18px;max-width:520px}.site-select[_ngcontent-%COMP%]{width:100%}.domain-add-row[_ngcontent-%COMP%]{grid-template-columns:minmax(240px,420px) auto}.domain-input[_ngcontent-%COMP%], .recipients-field[_ngcontent-%COMP%]{width:100%}.domain-header__main[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.domain-header__icon[_ngcontent-%COMP%]{color:#64748b;flex:none}.domain-meta[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;color:#64748b}.domain-header__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.status-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;background:#dcfce7;color:#166534;white-space:nowrap}.status-chip--off[_ngcontent-%COMP%]{background:#f1f5f9;color:#64748b}.status-dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.alias-list[_ngcontent-%COMP%]{margin-top:16px;border-top:1px solid #e2e8f0}.alias-row[_ngcontent-%COMP%]{padding:14px 0;border-bottom:1px solid #e2e8f0}.alias-main[_ngcontent-%COMP%]{min-width:0}.alias-route[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.alias-arrow[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:#94a3b8;flex:none}.alias-address[_ngcontent-%COMP%]{font-weight:700;color:#0f172a}.alias-recipients[_ngcontent-%COMP%]{color:#475569;word-break:break-word}.alias-description[_ngcontent-%COMP%]{margin-top:4px;font-size:12px;color:#64748b;word-break:break-word}.alias-actions[_ngcontent-%COMP%], .edit-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.alias-edit-grid[_ngcontent-%COMP%]{grid-template-columns:minmax(160px,1fr) minmax(240px,2fr) minmax(180px,1fr) auto auto;width:100%;margin-top:0}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 22px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#475569;text-align:center}.empty-state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:34px;width:34px;height:34px;color:#94a3b8}.empty-state__title[_ngcontent-%COMP%]{font-weight:700;color:#334155}.empty-state__text[_ngcontent-%COMP%]{font-size:14px;color:#64748b;max-width:52ch}.empty-state.small[_ngcontent-%COMP%]{display:block;margin-top:16px;padding:16px;font-size:13px}@media(max-width:960px){.forward-card__header[_ngcontent-%COMP%], .domain-header[_ngcontent-%COMP%], .alias-row[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column}.inline-form[_ngcontent-%COMP%]{grid-template-columns:1fr}.alias-actions[_ngcontent-%COMP%], .edit-actions[_ngcontent-%COMP%]{width:100%;justify-content:flex-start}}"]})}return n})();export{Oi as ForwardEmailComponent};
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.