PageSourceSearch

https://www.hollyhomer.com/en/chunk-E3TDQK7E.js

js hollyhomer.com collected 2026-10-04 03:35:01 UTC 8,575 bytes, 2 lines download raw bytes

1import{a as oe}from"./chunk-EXJ62X44.js";import{y as Ie}from"./chunk-E7KJWH6B.js";import{a as Te}from"./chunk-BOKGPF5L.js";import{b as De}from"./chunk-LCWHCZ5R.js";import{a as Ae,c as Pe,d as ke,e as Oe}from"./chunk-5KMSWIXJ.js";import{a as Se}from"./chunk-SPMPVOUW.js";import{a as Fe}from"./chunk-MQTNR3WQ.js";import{a as xe,b as ye}from"./chunk-LY2L7L3N.js";import{m as ge,o as de,t as fe}from"./chunk-C53UORQN.js";import{Ya as ue,va as F}from"./chunk-GRKZLBTJ.js";import{o as ee,x as te}from"./chunk-YBSG77R6.js";import{i as K}from"./chunk-DXTONCKZ.js";import{b as z,c as Q}from"./chunk-HRCH7YTL.js";import{a as X}from"./chunk-V2N2YMJZ.js";import{d as we,e as _e}from"./chunk-QHZU4PST.js";import{b as he,c as be,d as Me,i as Ce,j as ve}from"./chunk-HFX225X2.js";import{E as ce,I as pe,c as ie,f as M,i as ne,j as re,k as ae,n as C,q as se,x as me,y as le}from"./chunk-3QAVFP5S.js";import{i as Y,j as Z,l as J}from"./chunk-NKUORADV.js";import{i as H}from"./chunk-224PXFJJ.js";import{p as q}from"./chunk-2K5EWLY6.js";import{Aa as $,Ec as b,Fb as j,Gc as y,J as _,Kc as U,Lc as W,Mc as N,N as T,Qc as S,Sc as R,T as D,Vc as l,Xc as G,da as I,dc as f,f as O,fc as h,g as w,ha as x,kc as c,lc as i,mc as n,nc as p,pb as m,qa as s,rd as g,sd as d,vc as B,xa as E,ya as L,za as V}from"./chunk-QXK5WLZZ.js";import{a as u,b as v,d as k}from"./chunk-MH5V57HS.js";var Ee=["selectUser"];function Le(r,A){r&1&&(i(0,"div",11),p(1,"mat-spinner"),n())}function Ve(r,A){r&1&&(i(0,"mat-error"),l(1,"Please enter a subject."),n())}function $e(r,A){if(r&1){let e=B();i(0,"form",13),b("ngSubmit",function(){E(e);let o=y();return L(o.save())}),i(1,"div",14)(2,"div",15),p(3,"ih-select-user",16,1),i(5,"div",17)(6,"mat-form-field",18)(7,"mat-label"),l(8,"Subject"),n(),p(9,"input",19,2),i(11,"mat-hint",20),l(12),n(),f(13,Ve,2,0,"mat-error"),n()()(),i(14,"div",21),p(15,"ih-froala",22),n()()()}if(r&2){let e=S(10),t=y();c("formGroup",t.welcomeMessageForm),m(12),G("",(e.value==null?null:e.value.length)||0,"/255"),m(),h(t.welcomeMessageForm.controls.subject.getError("required")?13:-1),m(2),c("toolbarStickyOffset",55)("allowFileUpload",!1)}}var vt=(()=>{class r{security=s(de);saveChangesDialog=s(Se);http=s(q);snackbar=s(ge);config=s(ue);auth=s(fe);router=s(K);hostClass=!0;selectUser;welcomeMessageForm=new ae({from:new C(null,[M.required]),subject:new C(null,[M.required]),body:new C(null,[M.required])});saving$=new w(!1);loading$=new w(!0);destroy$=new O;froalaToolbar=oe;constructor(){if(this.saveChangesDialog.pageTitle="welcome message",!this.security.can(ee.ManageAppSettings)){this.snackbar.noPermission();return}this.auth.isAuthenticated$.pipe(X()).subscribe(e=>{e||(console.debug("WelcomeMessageComponent: User is not authenticated, redirecting to home page"),this.router.navigate(["/home"]))}),this.config.config$.pipe(T(1)).subscribe(e=>{e.menuOptions&&!e.menuOptions.welcomeMessageEnabled&&this.snackbar.noPermission()}),this.welcomeMessageForm.valueChanges.pipe(I(this.destroy$)).subscribe(()=>{this.saveChangesDialog.setModified()})}ngOnInit(){this.http.get("/api/campaign/mine/settings/welcomeMessage").pipe(x(this.config.config$),_((e,t)=>{throw this.snackbar.open("Unable to retrieve the welcome message","TRY AGAIN").then(o=>o.onAction().subscribe(()=>t)),e})).subscribe(([e,t])=>{this.loading$.next(!1),this.welcomeMessageForm.setValue(u(u({},F(t)),e),{emitEvent:!1})})}resetToDefault(){this.http.get("/api/members",{params:{defaultRoles:`[${te.Owner}]`,limit:"1"}}).pipe(x(this.config.config$)).subscribe(([e,t])=>{let P=e[0],{campaignUserId:o}=P,a=k(P,["campaignUserId"]);this.welcomeMessageForm.setValue(v(u({},F(t)),{from:v(u({},a),{authorId:o})})),this.saveChangesDialog.setModified(),this.snackbar.open("Your welcome message has been reset to the default"),this.selectUser.focus()})}save(){this.welcomeMessageForm.valid&&(this.saving$.next(!0),this.welcomeMessageForm.disable({emitEvent:!1}),this.http.put("/api/campaign/mine/settings/welcomeMessage",this.welcomeMessageForm.value).pipe(_((e,t)=>{throw this.snackbar.open("Unable to save your welcome message","TRY AGAIN").then(o=>o.onAction().subscribe(()=>t)),e}),D(()=>{this.saving$.next(!1),this.welcomeMessageForm.enable({emitEvent:!1})}
1)).subscribe(()=>{this.saveChangesDialog.setModified(!1),this.snackbar.open("Your welcome message has been saved")}))}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=j({type:r,selectors:[["ih-welcome-message"]],viewQuery:function(t,o){if(t&1&&U(Ee,5),t&2){let a;W(a=N())&&(o.selectUser=a.first)}},hostVars:2,hostBindings:function(t,o){t&2&&R("ih-welcome-message",o.hostClass)},decls:20,vars:14,consts:[["menu","matMenu"],["selectUser",""],["subjectInput",""],["editorTitle","Welcome message","editorIconPath","M21,12.13C20.85,12.14 20.71,12.19 20.61,12.3L19.61,13.3L21.66,15.3L22.66,14.3C22.88,14.09 22.88,13.74 22.66,13.53L21.42,12.3C21.32,12.19 21.18,12.14 21.04,12.13M19.04,13.88L13,19.94V22H15.06L21.12,15.93M20,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H11V19.11L19.24,10.89C19.71,10.4 20.36,10.13 21.04,10.13C21.38,10.13 21.72,10.19 22.04,10.32V6C22.04,4.88 21.12,4 20,4M20,8L12,13L4,8V6L12,11L20,6","formId","welcomeMessageForm",3,"saving","formDirty"],["button-controls","",1,"button-controls","fx-layout-row","fx-layout-align-start-center"],["mat-flat-button","",1,"reset-to-default-btn","fx-hide-xs",3,"click"],["type","submit","form","welcomeMessageForm","inProgressText","Saving","mat-flat-button","","ihTrackClick","Welcome message save button clicked",1,"welcome-message-save-button",3,"ihInProgress"],["aria-label","Open menu","mat-icon-button","",1,"fx-hide-gt-xs","welcome-message-menu",3,"matMenuTriggerFor"],["id","dots-horizontal","viewBox","0 0 24 24"],["fill","currentColor","d","M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"],["mat-menu-item","",1,"reset-to-default-btn",3,"click"],[1,"loading-container"],["id","welcomeMessageForm",3,"formGroup"],["id","welcomeMessageForm",3,"ngSubmit","formGroup"],[1,"form-panel","section-block"],[1,"from-and-subject-container"],["formControlName","from"],[1,"message-subject-container","fx-layout-row"],["appearance","outline",1,"message-subject","fx-flex"],["matInput","","maxlength","255","type","text","formControlName","subject",1,"primary-border-color-focus"],[1,"fx-layout-align-end"],[1,"ih-froala-container"],["contentType","messages","formControlName","body",3,"toolbarStickyOffset","allowFileUpload"]],template:function(t,o){if(t&1&&(i(0,"ih-admin-base",3),g(1,"async"),i(2,"div",4)(3,"button",5),b("click",function(){return o.resetToDefault()}),l(4,"Reset to default"),n(),i(5,"button",6),g(6,"async"),l(7," Save "),n(),i(8,"button",7)(9,"mat-icon"),V(),i(10,"svg",8),p(11,"path",9),n()()(),$(),i(12,"mat-menu",null,0)(14,"button",10),b("click",function(){return o.resetToDefault()}),l(15,"Reset to default"),n()()(),f(16,Le,2,0,"div",11),g(17,"async"),f(18,$e,16,5,"form",12),g(19,"async"),n()),t&2){let a=S(13);c("saving",d(1,6,o.saving$))("formDirty",o.welcomeMessageForm.dirty),m(5),c("ihInProgress",d(6,8,o.saving$)),m(3),c("matMenuTriggerFor",a),m(8),h(d(17,10,o.loading$)?16:-1),m(2),h(d(19,12,o.loading$)?-1:18)}},dependencies:[J,Z,Y,ve,Ce,he,Me,be,Q,z,_e,we,Oe,Pe,Ae,ke,ye,xe,pe,se,ie,ne,re,ce,le,me,Te,De,Fe,Ie,H],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     .fr-second-toolbar{border:none}[_nghost-%COMP%]     .fr-toolbar.fr-top{border:0}[_nghost-%COMP%]     .fr-wrapper{border-left:0!important;border-right:0!important}[_nghost-%COMP%]     .second-toolbar{border:0}.button-controls[_ngcontent-%COMP%]   .reset-to-default-btn[_ngcontent-%COMP%]{margin-right:8px}.button-controls[_ngcontent-%COMP%]   .welcome-message-menu[_ngcontent-%COMP%]{margin-left:8px}.title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;padding-top:16px}.form-panel[_ngcontent-%COMP%]{margin:16px 8px}.section-block[_ngcontent-%COMP%]{background-color:#fff;border-radius:4px;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;margin-bottom:16px}.loading-container[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;padding:16px;width:100%}.from-and-subject-container[_ngcontent-%COMP%]{padding:16px}.ih-froala-container[_ngcontent-%COMP%]{padding-bottom:16px}.ih-froala[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12);border-radius:5px;margin:0 16px}"],changeDetection:0})}return r})();export{vt as a};
2/**i18n:c9e569e2ecdb3e0de183c72d8315eadfdcb9da9e09d5ac2d9fef9056c1853e21*/

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.