%PDF- %PDF-
Direktori : /home/graphicd/public_html/vebto/public/client/ |
Current File : /home/graphicd/public_html/vebto/public/client/171-es2015.313990efb48376948193.js |
(self.webpackChunkbedrive2=self.webpackChunkbedrive2||[]).push([[171],{46171:function(e,t,i){"use strict";i.r(t),i.d(t,{AppAppearanceModule:function(){return Zi}});var n=i(38583),a=i(3679),o=i(63423),s=i(6966),r=i(87636),l=i(88002),c=i(37716);const d=new c.OlP("APPEARANCE_EDITOR_CONFIG"),u={navigationRoutes:[],menus:{availableRoutes:["login","register","contact","billing/pricing","account-settings","admin/appearance","admin/users","admin/settings/authentication","admin/settings/branding","admin/settings/cache","admin/settings/providers","admin/roles"],positions:["admin-navbar","custom-page-navbar","auth-page-footer"]},sections:[{name:"general",position:1},{name:"themes",position:2},{name:"menus",position:3},{name:"custom-code",position:4},{name:"seo-settings",position:5}]};var h=i(3543),p=i(95347);class m{constructor(e,t){this.route=e,this.queryParams=t,this.type=p.R.Navigate}}class g{constructor(e,t){this.key=e,this.value=t,this.type=p.R.SetConfig}}class f{constructor(e,t=0){this.selector=e,this.index=t,this.type=p.R.Select}}class v{constructor(){this.type=p.R.Deselect}}class b{constructor(e,t){this.key=e,this.value=t,this.type=p.R.SetColors}}class x{constructor(e){this.content=e,this.type=p.R.SetCustomCss}}class Z{constructor(e){this.content=e,this.type=p.R.SetCustomHtml}}var _=i(55809),y=i(26215),k=i(82298),w=i(22759),C=i(45435),A=i(68939),T=i(18819),M=i(89225),q=i.n(M),P=i(34673),I=i(90299),O=i(35718);let J=(()=>{class e{constructor(e,t,i,n){this.settings=e,this.router=t,this.http=i,this.toast=n,this.activePanel$=new y.X(null),this.defaultSettings={},this.initiated$=new k.t(1),this.loading$=new y.X(!1),this.changes$=new y.X(null)}addChanges(e){this.changes$.next(Object.assign(Object.assign({},this.changes$.value),e))}openPanel(e){const t=this.config.sections.find(t=>(0,s.V)(t.name)===e);this.activePanel$.next(t),this.navigate(t)}init(e,t,i){return(0,w.R)(window,"message").pipe((0,C.h)(e=>e.data===_.B&&new URL(e.origin).hostname===window.location.hostname)).subscribe(()=>{this.initiated$.next(!0),this.initiated$.complete(),this.activePanel$.value&&this.navigate(this.activePanel$.value)}),t.forEach(e=>{"env"===e.name?this.defaultSettings=Object.assign(Object.assign({},this.defaultSettings),e.value):this.defaultSettings[e.name]=e.value}),this.initConfig(i),this.initIframe(e),this.initiated$}saveChanges(e){e&&this.addChanges(e),this.loading$.next(!0);const t=(this.saveRequest?this.saveRequest:e=>this.http.post("admin/appearance",e))(this.changes$.value).pipe((0,A.x)(()=>this.loading$.next(!1)),(0,T.B)());return t.subscribe(()=>{this.changes$.next(null),this.toast.open("Appearance saved")}),t}setSaveRequest(e){this.saveRequest=e}closeActivePanel(){this.router.navigate(["/admin/appearance"])}navigate(e){this.postMessage(new m((null==e?void 0:e.route)||this.config.defaultRoute,null==e?void 0:e.queryParams))}setConfig(e,t){this.postMessage(new g(e,t))}selectNode(e,t=0){e&&this.postMessage(new f(e,t))}deselectNode(){this.postMessage(new v)}postMessage(e){this.previewWindow.postMessage(e,"*")}currentValue(e){return e.startsWith("env.")||e.startsWith("custom-code.")?this.defaultSettings[e]:this.settings.get(e)}initConfig(e){const t=q().all(e);t.sections=t.sections.sort((e,t)=>e.position>t.position?1:-1),t.defaultRoute||(t.defaultRoute="/"),this.settings.get("site.has_mobile_app")&&t.menus.positions.push("mobile-app-about"),this.config=t}initIframe(e){const t=this.settings.getBaseUrl()+"/"+this.config.defaultRoute+`?be-preview-mode=${_.B}`;e.src=function(e){return e.replace(/([^:]\/)\/+/g,"$1")}(t),this.previewWindow=e.contentWindow}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(P.Z),c.LFG(o.F0),c.LFG(I.r),c.LFG(O.F))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var U=i(96605),N=i(76627),$=i(15515),S=i(51095),F=i(35566);function Q(e,t){1&e&&c._UZ(0,"mat-icon",9)}function Y(e,t){if(1&e&&(c.TgZ(0,"span"),c.YNc(1,Q,1,0,"mat-icon",7),c.TgZ(2,"span",8),c._uU(3),c.qZA(),c.qZA()),2&e){const e=c.oxw(),t=e.first,i=e.last,n=e.$implicit,a=c.oxw();c.xp6(1),c.Q6J("ngIf",!t),c.xp6(1),c.ekj("last",i),c.xp6(1),c.Oqu(a.viewName(n))}}function E(e,t){if(1&e&&(c.ynx(0),c.YNc(1,Y,4,4,"span",6),c.BQk()),2&e){const e=t.$implicit;c.xp6(1),c.Q6J("ngIf",e)}}let D=(()=>{class e{constructor(){this.path=[],this.back=new c.vpe}viewName(e){return(0,F.f)(e).replace(/_/g," ")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xpm({type:e,selectors:[["appearance-panel-meta"]],inputs:{path:"path"},outputs:{back:"back"},decls:7,vars:1,consts:[[1,"back-button",3,"click"],["svgIcon","keyboard-arrow-left"],[1,"title"],["trans","",1,"static"],[1,"path"],[4,"ngFor","ngForOf"],[4,"ngIf"],["svgIcon","keyboard-arrow-right","class","separator",4,"ngIf"],["trans","",1,"name"],["svgIcon","keyboard-arrow-right",1,"separator"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0),c.NdJ("click",function(){return t.back.emit()}),c._UZ(1,"mat-icon",1),c.qZA(),c.TgZ(2,"div",2),c.TgZ(3,"div",3),c._uU(4,"Customizing"),c.qZA(),c.TgZ(5,"div",4),c.YNc(6,E,2,1,"ng-container",5),c.qZA(),c.qZA()),2&e&&(c.xp6(6),c.Q6J("ngForOf",t.path))},directives:[N.Hw,$.P,n.sg,n.O5],styles:["[_nghost-%COMP%]{display:flex;align-items:center;height:70px;margin-bottom:10px;border-bottom:1px solid var(--be-divider-default);background-color:var(--be-background)}.title[_ngcontent-%COMP%]{padding:10px}.path[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.name[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;text-transform:capitalize}.last[_ngcontent-%COMP%]{color:var(--be-accent-default)}.separator[_ngcontent-%COMP%]{vertical-align:middle;color:var(--be-secondary-text);width:18px;height:18px;line-height:18px}"],changeDetection:0}),e})();var V=i(56456),L=i(41880),z=i(53534),R=i(58480),H=i(48976),G=i(64563),X=i(33935),B=i(66452),W=i(12178);function j(e,t){1&e&&c._UZ(0,"image-or-icon",11),2&e&&c.Q6J("src",t.ngIf)}function K(e,t){1&e&&(c.TgZ(0,"div",12),c._UZ(1,"mat-icon",13),c.TgZ(2,"span",14),c._uU(3,"Upload"),c.qZA(),c.qZA())}function ee(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",15),c.NdJ("click",function(){return c.CHM(e),c.oxw().remove()}),c._uU(1,"Remove"),c.qZA()}}function te(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",15),c.NdJ("click",function(){return c.CHM(e),c.oxw().useDefault()}),c._uU(1,"Use Default"),c.qZA()}}function ie(e,t){1&e&&c._UZ(0,"mat-progress-bar",16)}const ne=["*"];let ae=(()=>{class e{constructor(e,t,i,n){this.editor=e,this.uploadQueue=t,this.validator=i,this.settings=n,this.image$=new y.X(null),this.loading$=new y.X(!1),this.validator.showToast=!0}openModal(){const e={uri:this.backendUri||H.C.Image,httpParams:{diskPrefix:this.diskPrefix},validator:this.validator};(0,L.r)({types:[z.j.image]}).then(t=>{this.loading$.next(!0),this.uploadQueue.start(t,e).pipe((0,A.x)(()=>this.loading$.next(!1))).subscribe(e=>{this.updateValue(e.fileEntry.url)})})}remove(){this.updateValue(null)}useDefault(){this.updateValue(this.defaultValue)}updateValue(e){this.propagateChange(e),this.image$.next(e?e+`?v=${(0,R.O)(8)}`:null)}writeValue(e){this.image$.next(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(){}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(V.A),c.Y36(G.G),c.Y36(P.Z))},e.\u0275cmp=c.Xpm({type:e,selectors:[["appearance-image-input"]],hostAttrs:["tabindex","0"],inputs:{defaultValue:"defaultValue",backendUri:"backendUri",diskPrefix:"diskPrefix"},features:[c._Bn([V.A,{provide:a.JU,useExisting:e,multi:!0}])],ngContentSelectors:ne,decls:18,vars:12,consts:[[1,"field-container",3,"click"],["trans","",1,"label","fake-label"],[1,"img-container"],["class","inherit-size",3,"src",4,"ngIf","ngIfElse"],["noImage",""],[1,"actions-dropdown"],[1,"no-style",3,"matMenuTriggerFor","click"],["svgIcon","settings",1,"trigger-icon"],["actionsMenu",""],["mat-menu-item","","trans","",3,"click",4,"ngIf"],["mode","indeterminate","color","accent",4,"ngIf"],[1,"inherit-size",3,"src"],[1,"no-image"],["svgIcon","photo-size-select-actual"],["trans","",1,"text"],["mat-menu-item","","trans","",3,"click"],["mode","indeterminate","color","accent"]],template:function(e,t){if(1&e&&(c.F$t(),c.TgZ(0,"div",0),c.NdJ("click",function(){return t.openModal()}),c.TgZ(1,"div",1),c.Hsn(2),c.qZA(),c.TgZ(3,"div",2),c.YNc(4,j,1,1,"image-or-icon",3),c.ALo(5,"async"),c.YNc(6,K,4,0,"ng-template",null,4,c.W1O),c.TgZ(8,"div",5),c.TgZ(9,"button",6),c.NdJ("click",function(e){return e.stopPropagation()}),c._UZ(10,"mat-icon",7),c.qZA(),c.TgZ(11,"mat-menu",null,8),c.YNc(13,ee,2,0,"div",9),c.ALo(14,"async"),c.YNc(15,te,2,0,"div",9),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.YNc(16,ie,1,0,"mat-progress-bar",10),c.ALo(17,"async")),2&e){const e=c.MAs(7),i=c.MAs(12);c.xp6(4),c.Q6J("ngIf",c.lcZ(5,6,t.image$))("ngIfElse",e),c.xp6(5),c.Q6J("matMenuTriggerFor",i),c.xp6(4),c.Q6J("ngIf",c.lcZ(14,8,t.image$)),c.xp6(2),c.Q6J("ngIf",t.defaultValue),c.xp6(1),c.Q6J("ngIf",c.lcZ(17,10,t.loading$))}},directives:[$.P,n.O5,X.p6,N.Hw,X.VK,B.A,X.OP,W.pW],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block;cursor:pointer;margin-bottom:15px;position:relative}.label[_ngcontent-%COMP%]{margin-bottom:5px}.img-container[_ngcontent-%COMP%]{position:relative;height:80px;padding:5px;border:1px solid var(--be-divider-default);border-radius:4px;background-color:var(--be-chip);overflow:hidden}.img-container[_ngcontent-%COMP%], image-or-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%}image-or-icon[_ngcontent-%COMP%]{height:100%}img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover}.no-image[_ngcontent-%COMP%]{text-align:center}.no-image[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:block;color:var(--be-hint-text);width:40px;height:40px}.no-image[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--be-link);margin-top:3px;font-size:1.3rem}.actions-dropdown[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:5px;color:var(--be-secondary-text)}.actions-dropdown[_ngcontent-%COMP%] .trigger-icon[_ngcontent-%COMP%]{width:20px;height:20px}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}"],changeDetection:0}),e})(),oe=(()=>{class e{constructor(e,t){this.el=e,this.editor=t}ngOnInit(){this.el.nativeElement.addEventListener("focus",()=>{this.editor.selectNode(this.selector)}),this.el.nativeElement.addEventListener("blur",()=>{this.editor.deselectNode()})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.SBq),c.Y36(J))},e.\u0275dir=c.lG2({type:e,selectors:[["","highlightInPreview",""]],inputs:{selector:["highlightInPreview","selector"]}}),e})();const se=function(){return["General"]};let re=(()=>{class e{constructor(e,t){this.fb=e,this.editor=t,this.form=this.fb.group({"branding.logo_light":[""],"branding.logo_dark":[""],"branding.favicon":[""],"env.app_name":[""],"branding.site_description":[""]})}ngOnInit(){const e={};Object.keys(this.form.controls).forEach(t=>{e[t]=this.editor.currentValue(t)}),this.form.patchValue(e),this.form.valueChanges.subscribe(e=>{this.editor.addChanges(e)})}defaultValue(e){return this.editor.defaultSettings[e]}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(a.qu),c.Y36(J))},e.\u0275cmp=c.Xpm({type:e,selectors:[["general-appearance-panel"]],hostAttrs:[1,"appearance-panel"],decls:16,vars:8,consts:[[3,"path","back"],[1,"appearance-panel-content","many-inputs",3,"formGroup"],["formControlName","branding.logo_light","diskPrefix","branding_media","highlightInPreview",".logo",3,"defaultValue"],["formControlName","branding.logo_dark","diskPrefix","branding_media","highlightInPreview",".logo",3,"defaultValue"],["backendUri","uploads/favicon","diskPrefix","branding_media","formControlName","branding.favicon",3,"defaultValue"],[1,"input-container"],["for","env.app_name","trans",""],["type","text","id","env.app_name","formControlName","env.app_name",3,"placeholder"],["for","branding.site_description","trans",""],["id","branding.site_description","rows","4","formControlName","branding.site_description",3,"placeholder"]],template:function(e,t){1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.editor.closeActivePanel()}),c.qZA(),c.TgZ(1,"div",1),c.TgZ(2,"appearance-image-input",2),c._uU(3," Logo #1 (For top navbar) "),c.qZA(),c.TgZ(4,"appearance-image-input",3),c._uU(5," Logo #2 (Everywhere else) "),c.qZA(),c.TgZ(6,"appearance-image-input",4),c._uU(7," Favicon "),c.qZA(),c.TgZ(8,"div",5),c.TgZ(9,"label",6),c._uU(10,"Site Name"),c.qZA(),c._UZ(11,"input",7),c.qZA(),c.TgZ(12,"div",5),c.TgZ(13,"label",8),c._uU(14,"Site Description"),c.qZA(),c._UZ(15,"textarea",9),c.qZA(),c.qZA()),2&e&&(c.Q6J("path",c.DdM(7,se)),c.xp6(1),c.Q6J("formGroup",t.form),c.xp6(1),c.Q6J("defaultValue",t.defaultValue("branding.logo_light")),c.xp6(2),c.Q6J("defaultValue",t.defaultValue("branding.logo_dark")),c.xp6(2),c.Q6J("defaultValue",t.defaultValue("branding.favicon")),c.xp6(5),c.Q6J("placeholder",t.defaultValue("env.app_name")),c.xp6(4),c.Q6J("placeholder",t.defaultValue("branding.site_description")))},directives:[D,a.JL,a.sg,ae,a.JJ,a.u,oe,$.P,a.Fj],styles:[""],changeDetection:0}),e})();var le=i(22238);let ce=(()=>{class e{constructor(e){this.http=e}all(){return this.http.get("css-theme")}create(e){return this.http.post("css-theme",e)}update(e,t){return this.http.put(`css-theme/${e}`,t)}delete(e){return this.http.delete(`css-theme/${e}`)}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(I.r))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var de=i(45396);function ue(e,t){1&e&&(c.TgZ(0,"span",6),c._uU(1,"Update Theme"),c.qZA())}function he(e,t){1&e&&(c.TgZ(0,"span",6),c._uU(1,"Create Theme"),c.qZA())}function pe(e,t){if(1&e&&(c.TgZ(0,"div",21),c._uU(1),c.qZA()),2&e){const e=c.oxw().ngIf;c.xp6(1),c.Oqu(e.name)}}function me(e,t){1&e&&(c.TgZ(0,"span"),c._uU(1,"Update"),c.qZA())}function ge(e,t){1&e&&(c.TgZ(0,"span"),c._uU(1,"Create"),c.qZA())}function fe(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"form",7),c.NdJ("ngSubmit",function(){return c.CHM(e),c.oxw().confirm()}),c.TgZ(1,"mat-dialog-content",8),c.TgZ(2,"div",9),c.TgZ(3,"label",10),c._uU(4,"Name"),c.qZA(),c._UZ(5,"input",11),c.YNc(6,pe,2,1,"div",12),c.qZA(),c.TgZ(7,"div",13),c.TgZ(8,"mat-slide-toggle",14),c._uU(9,"Dark Theme"),c.qZA(),c.TgZ(10,"p",6),c._uU(11,"Whether this theme has light text on dark background."),c.qZA(),c.qZA(),c.TgZ(12,"div",13),c.TgZ(13,"mat-slide-toggle",15),c._uU(14,"Default Dark Theme"),c.qZA(),c.TgZ(15,"p",6),c._uU(16,"Whether this theme should be used as default dark theme."),c.qZA(),c.qZA(),c.TgZ(17,"div",13),c.TgZ(18,"mat-slide-toggle",16),c._uU(19,"Default Light Theme"),c.qZA(),c.TgZ(20,"p",6),c._uU(21,"Whether this theme should be used as default light theme."),c.qZA(),c.qZA(),c.qZA(),c.TgZ(22,"mat-dialog-actions"),c.TgZ(23,"button",17),c.NdJ("click",function(){return c.CHM(e),c.oxw().close()}),c._uU(24,"Cancel"),c.qZA(),c.TgZ(25,"button",18),c.ALo(26,"async"),c.YNc(27,me,2,0,"span",19),c.YNc(28,ge,2,0,"ng-template",null,20,c.W1O),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.ngIf,i=c.MAs(29),n=c.oxw();c.Q6J("formGroup",n.form),c.xp6(6),c.Q6J("ngIf",e.name),c.xp6(19),c.Q6J("disabled",c.lcZ(26,5,n.loading$)),c.xp6(2),c.Q6J("ngIf",n.data.theme)("ngIfElse",i)}}let ve=(()=>{class e{constructor(e,t,i,n,a){this.dialogRef=e,this.data=t,this.cssTheme=i,this.toast=n,this.fb=a,this.loading$=new y.X(!1),this.errors$=new y.X({}),this.form=this.fb.group({name:[""],is_dark:[!1],default_dark:[!1],default_light:[!1]}),t.theme&&this.form.patchValue(t.theme),this.form.get("default_dark").valueChanges.pipe((0,C.h)(e=>!!e)).subscribe(()=>{this.form.get("default_light").setValue(!1)}),this.form.get("default_light").valueChanges.pipe((0,C.h)(e=>!!e)).subscribe(()=>{this.form.get("default_dark").setValue(!1)})}confirm(){(this.data.theme?this.cssTheme.update(this.data.theme.id,this.form.value):this.cssTheme.create(this.form.value)).subscribe(e=>{this.toast.open(this.data.theme?"Theme updated":"Theme created"),this.close(e.theme)},e=>this.errors$.next(e.errors))}close(e){this.dialogRef.close(e)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(le.so),c.Y36(le.WI),c.Y36(ce),c.Y36(O.F),c.Y36(a.qu))},e.\u0275cmp=c.Xpm({type:e,selectors:[["crupdate-css-theme-modal"]],decls:8,vars:5,consts:[[1,"modal-header"],["mat-dialog-title",""],["trans","",4,"ngIf"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],["ngNativeValidate","",3,"formGroup","ngSubmit",4,"ngIf"],["trans",""],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"many-inputs"],[1,"input-container"],["for","name","trans",""],["type","text","id","name","formControlName","name","required","","minlength","3"],["class","error",4,"ngIf"],[1,"setting-toggle-container"],["id","is_dark","formControlName","is_dark","trans",""],["id","default_dark","formControlName","default_dark","trans",""],["id","default_light","formControlName","default_light","trans",""],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],[4,"ngIf","ngIfElse"],["creating",""],[1,"error"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"h2",1),c.YNc(2,ue,2,0,"span",2),c.YNc(3,he,2,0,"span",2),c.qZA(),c.TgZ(4,"button",3),c.NdJ("click",function(){return t.close()}),c._UZ(5,"mat-icon",4),c.qZA(),c.qZA(),c.YNc(6,fe,30,7,"form",5),c.ALo(7,"async")),2&e&&(c.xp6(2),c.Q6J("ngIf",t.data.theme),c.xp6(1),c.Q6J("ngIf",!t.data.theme),c.xp6(3),c.Q6J("ngIf",c.lcZ(7,3,t.errors$)))},directives:[le.uh,n.O5,N.Hw,$.P,a.JL,a.sg,le.xY,a.Fj,a.JJ,a.u,a.Q7,a.wO,de.Rr,le.H8,S.lW],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block;width:400px;max-width:100%}"],changeDetection:0}),e})();var be=i(8208),xe=i(15381),Ze=i(20616),_e=i(64762),ye=i(75978),ke=i(7964),we=i(72458);const Ce=["*"];let Ae=(()=>{class e{constructor(e){this.overlayPanel=e,this.color$=new y.X(null)}ngOnDestroy(){this.pickerSub&&this.pickerSub.unsubscribe()}writeValue(e){this.color$.next(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(){}openColorPicker(e){return(0,_e.mG)(this,void 0,void 0,function*(){const{BeColorPickerModule:t}=yield i.e(427).then(i.bind(i,75427));this.pickerSub=this.overlayPanel.open(t.components.panel,{origin:new c.SBq(e.target),position:ye.x,data:{color:this.color$.value}}).valueChanged().subscribe(e=>{this.color$.next(e),this.propagateChange(this.color$.value)})})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(ke.T))},e.\u0275cmp=c.Xpm({type:e,selectors:[["color-picker-input"]],features:[c._Bn([{provide:a.JU,useExisting:e,multi:!0}])],ngContentSelectors:Ce,decls:7,vars:4,consts:[["type","button","matRipple","",1,"no-style","color-picker-btn",3,"click"],["svgIcon","drop-custom",1,"color-icon"],["trans","",1,"name"],["trans","",1,"change"]],template:function(e,t){1&e&&(c.F$t(),c.TgZ(0,"button",0),c.NdJ("click",function(e){return t.openColorPicker(e)}),c.TgZ(1,"mat-icon",1),c.ALo(2,"async"),c.qZA(),c.TgZ(3,"span",2),c.Hsn(4),c.qZA(),c.TgZ(5,"span",3),c._uU(6,"Change"),c.qZA(),c.qZA()),2&e&&(c.xp6(1),c.Udp("color",c.lcZ(2,2,t.color$)))},directives:[we.wG,N.Hw,$.P],pipes:[n.Ov],styles:[".color-picker-btn[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 10px 0 15px;margin-bottom:15px;border-radius:4px;border:1px solid var(--be-divider-default);background-color:var(--be-background);cursor:pointer;height:57px;font-size:1.5rem;overflow:hidden;width:100%}.color-picker-btn[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{width:35px;height:35px}.color-picker-btn[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{margin-left:3px;margin-top:3px;font-size:1.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px;text-transform:capitalize}.color-picker-btn[_ngcontent-%COMP%] .change[_ngcontent-%COMP%]{color:var(--be-link);font-size:1.3rem;margin-left:auto}"],changeDetection:0}),e})();function Te(e,t){if(1&e&&(c.TgZ(0,"li"),c.TgZ(1,"color-picker-input",2),c._uU(2),c.qZA(),c.qZA()),2&e){const e=t.$implicit,i=c.oxw();c.xp6(1),c.Q6J("formControlName",e.key),c.xp6(1),c.Oqu(i.viewName(e.key))}}let Me=(()=>{class e{constructor(e,t){this.editor=e,this.themes=t,this.form=new a.cw({}),this.colorCache={}}ngOnInit(){this.editor.setSaveRequest(this.saveColors.bind(this)),Object.entries(this.theme.colors).forEach(([e,t])=>{this.form.addControl(e,new a.NI(t))}),this.editor.initiated$.subscribe(()=>{this.setColors(this.theme.colors),this.form.valueChanges.subscribe(e=>{this.setColors(e),this.editor.addChanges({colors:e})})})}ngOnDestroy(){this.editor.setSaveRequest(null)}saveColors(e){return this.themes.update(this.theme.id,e)}setColors(e){Object.entries(e).forEach(([e,t])=>{this.colorCache[e]!==t&&(this.editor.postMessage(new b(e,t)),this.colorCache[e]=t)})}viewName(e){return e.replace("be-","").replace(/-/g," ")}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(ce))},e.\u0275cmp=c.Xpm({type:e,selectors:[["css-theme-colors-panel"]],inputs:{theme:"theme"},decls:3,vars:4,consts:[[1,"unstyled-list",3,"formGroup"],[4,"ngFor","ngForOf"],["trans","",3,"formControlName"]],template:function(e,t){1&e&&(c.TgZ(0,"ul",0),c.YNc(1,Te,3,2,"li",1),c.ALo(2,"keyvalue"),c.qZA()),2&e&&(c.Q6J("formGroup",t.form),c.xp6(1),c.Q6J("ngForOf",c.lcZ(2,2,t.theme.colors)))},directives:[a.JL,a.sg,n.sg,Ae,$.P,a.JJ,a.u],pipes:[n.Nd],styles:[""],changeDetection:0}),e})();function qe(e,t){1&e&&c._UZ(0,"css-theme-colors-panel",5),2&e&&c.Q6J("theme",t.ngIf)}function Pe(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"li",9),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).setSelectedTheme(t)}),c.TgZ(1,"div",10),c._uU(2),c.qZA(),c.TgZ(3,"div",11),c.NdJ("click",function(e){return e.stopPropagation()}),c.TgZ(4,"button",12),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).setSelectedTheme(t)}),c._UZ(5,"mat-icon",13),c.qZA(),c.TgZ(6,"button",12),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).openCrupdateThemeModal(t)}),c._UZ(7,"mat-icon",14),c.qZA(),c.TgZ(8,"button",12),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).maybeDeleteThemeModal(t)}),c._UZ(9,"mat-icon",15),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(2),c.Oqu(e.name)}}function Ie(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",6),c.NdJ("click",function(){return c.CHM(e),c.oxw().openCrupdateThemeModal()}),c._uU(1,"New Theme"),c.qZA(),c.TgZ(2,"ul",7),c.YNc(3,Pe,10,1,"li",8),c.ALo(4,"async"),c.qZA()}if(2&e){const e=c.oxw();c.xp6(3),c.Q6J("ngForOf",c.lcZ(4,1,e.loadedThemes$))}}let Oe=(()=>{class e{constructor(e,t,i,n,a,o){this.appearance=e,this.modal=t,this.themes=i,this.toast=n,this.router=a,this.route=o,this.loading$=new y.X(!1),this.loadedThemes$=new y.X([]),this.selectedTheme$=new y.X(null),this.path$=this.selectedTheme$.pipe((0,l.U)(e=>{const t=["Themes"];return e&&t.push(e.name),t}))}ngOnInit(){this.reloadThemes()}ngOnDestroy(){this.querySub&&this.querySub.unsubscribe()}openCrupdateThemeModal(e){this.modal.open(ve,{theme:e}).afterClosed().subscribe(e=>{e&&this.reloadThemes()})}setSelectedTheme(e){this.router.navigate([],{queryParams:{theme:e&&e.id},queryParamsHandling:"merge"})}openPreviousPanel(){this.selectedTheme$.value?this.setSelectedTheme():this.appearance.closeActivePanel()}maybeDeleteThemeModal(e){this.modal.show(be.z,{title:"Delete Theme",body:"Are you sure you want to delete this theme?",ok:"Delete"}).afterClosed().subscribe(t=>{t&&this.deleteTheme(e)})}reloadThemes(){this.loading$.next(!0),this.themes.all().pipe((0,A.x)(()=>this.loading$.next(!1))).subscribe(e=>{this.loadedThemes$.next(e.pagination.data),this.bindToQueryParams()})}deleteTheme(e){this.themes.delete([e.id]).subscribe(()=>{this.toast.open("Theme deleted"),this.reloadThemes()})}bindToQueryParams(){this.querySub||(this.querySub=this.route.queryParams.subscribe(e=>{const t=this.loadedThemes$.value.find(t=>t.id===+e.theme);this.selectedTheme$.next(t)}))}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(xe.u),c.Y36(ce),c.Y36(O.F),c.Y36(o.F0),c.Y36(o.gz))},e.\u0275cmp=c.Xpm({type:e,selectors:[["themes-appearance-panel"]],decls:9,vars:10,consts:[[3,"path","back"],[1,"appearance-panel-content"],[3,"theme",4,"ngIf","ngIfElse"],["themesList",""],[1,"overlay","overlay-partial",3,"isVisible"],[3,"theme"],["mat-raised-button","","color","accent","type","button","trans","",1,"new-theme-button",3,"click"],[1,"unstyled-list"],["class","nav-item",3,"click",4,"ngFor","ngForOf"],[1,"nav-item",3,"click"],[1,"name"],[1,"actions",3,"click"],["mat-icon-button","","type","button",3,"click"],["svgIcon","drop-custom"],["svgIcon","edit"],["svgIcon","delete"]],template:function(e,t){if(1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.openPreviousPanel()}),c.ALo(1,"async"),c.qZA(),c.TgZ(2,"div",1),c.YNc(3,qe,1,1,"css-theme-colors-panel",2),c.ALo(4,"async"),c.YNc(5,Ie,5,3,"ng-template",null,3,c.W1O),c.qZA(),c._UZ(7,"loading-indicator",4),c.ALo(8,"async")),2&e){const e=c.MAs(6);c.Q6J("path",c.lcZ(1,4,t.path$)),c.xp6(3),c.Q6J("ngIf",c.lcZ(4,6,t.selectedTheme$))("ngIfElse",e),c.xp6(4),c.Q6J("isVisible",c.lcZ(8,8,t.loading$))}},directives:[D,n.O5,Ze.Q,Me,S.lW,$.P,n.sg,N.Hw],pipes:[n.Ov],styles:[".new-theme-button[_ngcontent-%COMP%]{margin-bottom:15px}"],changeDetection:0}),e})();var Je=i(99905),Ue=i(83461),Ne=i(81669);class $e{constructor(e={}){this.type="link",this.condition=null,this.target=null,this.activeExact=!1;for(const t in e)this[t]=e[t];this.id=Math.floor(999*Math.random())}}let Se=(()=>{class e{constructor(e,t){this.settings=e,this.appearance=t,this.allMenus$=new y.X([]),this.activeMenu$=new y.X(null)}create(){const e=[...this.allMenus$.value];this.activeMenu$.next(new Ne.v({name:"New Menu"})),e.push(this.activeMenu$.value),this.allMenus$.next(e),this.commitChanges()}reorderActiveMenuItems(e,t){const i=Object.assign({},this.activeMenu$.value);(0,Ue.bA)(i.items,e,t),this.activeMenu$.next(i),this.commitChanges()}deleteActive(){const e=[...this.allMenus$.value],t=e.indexOf(this.activeMenu$.value);e.splice(t,1),this.activeMenu$.next(null),this.allMenus$.next(e),this.commitChanges()}addItem(e){const t=Object.assign({},this.activeMenu$.value);e=this.transformLocalLinksToRoutes(e),t.items.push(e),this.activeMenu$.next(t),this.commitChanges()}removeItem(e){const t=Object.assign({},this.activeMenu$.value),i=this.activeMenu$.value.items.indexOf(e);t.items.splice(i,1),this.activeMenu$.next(t),this.commitChanges()}transformLocalLinksToRoutes(e){const t=this.settings.getBaseUrl();return"link"!==e.type||-1===e.action.indexOf(t)||(e.type="route",e.action=e.action.replace(this.settings.getBaseUrl(),"")),e}commitChanges(){const e=JSON.stringify(this.allMenus$.value);this.appearance.setConfig("menus",e),this.appearance.addChanges({menus:e})}setFromJson(e){if(!e)return;const t=JSON.parse(e);if(!t)return;const i=t.map(e=>{const t=new Ne.v(e);return t.items=t.items.map(e=>new $e(e)),t});this.allMenus$.next(i)}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(P.Z),c.LFG(J))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Fe=i(67310),Qe=i(99981);let Ye=(()=>{class e{constructor(e){this.http=e}get(){return this.http.getWithCache("admin/appearance/menu-categories")}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(Qe.F))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ee=i(90171);function De(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",17),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw().addRouteMenuItem(t)}),c._uU(1),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(1),c.hij("",e," ")}}function Ve(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",17),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).addCustomMenuItem(t)}),c._uU(1),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(1),c.Oqu(e.label)}}function Le(e,t){if(1&e&&(c.TgZ(0,"mat-expansion-panel",5),c.TgZ(1,"mat-expansion-panel-header"),c.TgZ(2,"mat-panel-title",6),c._uU(3),c.qZA(),c.qZA(),c.TgZ(4,"div",14),c.YNc(5,Ve,2,1,"div",15),c.qZA(),c.qZA()),2&e){const e=t.$implicit;c.xp6(3),c.Oqu(e.name),c.xp6(2),c.Q6J("ngForOf",e.items)}}let ze=(()=>{class e{constructor(e,t,i,n,a){this.editor=e,this.appearance=t,this.overlayPanelRef=i,this.fb=n,this.itemCategories=a,this.linkForm=this.fb.group({action:[""],label:[""]})}ngOnInit(){this.itemCategories.get().subscribe(e=>{this.menuItemCategories=e.categories})}addLinkMenuItem(){this.close({type:"link",label:this.linkForm.value.label,action:this.linkForm.value.action})}addRouteMenuItem(e){this.close({type:"route",label:e,action:e})}addCustomMenuItem(e){this.close(e)}close(e){this.overlayPanelRef.close(e)}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(Se),c.Y36(J),c.Y36(Fe.L),c.Y36(a.qu),c.Y36(Ye))},e.\u0275cmp=c.Xpm({type:e,selectors:[["select-menu-item-action"]],decls:30,vars:3,consts:[[1,"header"],["trans","",1,"title"],["svgIcon","close",3,"click"],[1,"new-item-tabs"],["ngNativeValidate","",3,"formGroup","ngSubmit"],[1,"mat-elevation-z"],["trans",""],[1,"many-inputs","expansion-panel-content"],[1,"input-container"],["for","external-link-url","trans",""],["type","url","id","external-link-url","formControlName","action","required",""],["for","external-link-text","trans",""],["type","text","id","external-link-text","formControlName","label","required",""],["mat-button","","color","accent","type","submit","trans",""],[1,"items-list","expansion-panel-content"],["class","item",3,"click",4,"ngFor","ngForOf"],["class","mat-elevation-z",4,"ngFor","ngForOf"],[1,"item",3,"click"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"span",1),c._uU(2,"Select Destination"),c.qZA(),c.TgZ(3,"mat-icon",2),c.NdJ("click",function(){return t.close()}),c.qZA(),c.qZA(),c.TgZ(4,"div",3),c.TgZ(5,"mat-accordion"),c.TgZ(6,"form",4),c.NdJ("ngSubmit",function(){return t.addLinkMenuItem()}),c.TgZ(7,"mat-expansion-panel",5),c.TgZ(8,"mat-expansion-panel-header"),c.TgZ(9,"mat-panel-title",6),c._uU(10,"Link"),c.qZA(),c.qZA(),c.TgZ(11,"div",7),c.TgZ(12,"div",8),c.TgZ(13,"label",9),c._uU(14,"URL"),c.qZA(),c._UZ(15,"input",10),c.qZA(),c.TgZ(16,"div",8),c.TgZ(17,"label",11),c._uU(18,"Link Text"),c.qZA(),c._UZ(19,"input",12),c.qZA(),c.qZA(),c.TgZ(20,"mat-action-row"),c.TgZ(21,"button",13),c._uU(22,"Select"),c.qZA(),c.qZA(),c.qZA(),c.qZA(),c.TgZ(23,"mat-expansion-panel",5),c.TgZ(24,"mat-expansion-panel-header"),c.TgZ(25,"mat-panel-title",6),c._uU(26,"Route"),c.qZA(),c.qZA(),c.TgZ(27,"div",14),c.YNc(28,De,2,1,"div",15),c.qZA(),c.qZA(),c.YNc(29,Le,6,2,"mat-expansion-panel",16),c.qZA(),c.qZA()),2&e&&(c.xp6(6),c.Q6J("formGroup",t.linkForm),c.xp6(22),c.Q6J("ngForOf",t.appearance.config.menus.availableRoutes),c.xp6(1),c.Q6J("ngForOf",t.menuItemCategories))},directives:[$.P,N.Hw,Ee.pp,a.JL,a.sg,Ee.ib,Ee.yz,Ee.yK,a.Fj,a.JJ,a.u,a.Q7,Ee.VG,S.lW,n.sg],styles:["[_nghost-%COMP%]{background-color:var(--be-background-alternative);box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);overflow:hidden;width:300px;border-radius:4px}.header[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:var(--be-background);padding:15px;font-size:1.7rem;font-weight:300;border-bottom:1px solid var(--be-divider-default);margin-bottom:10px}.header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{cursor:pointer;color:var(--be-secondary-text);margin-left:auto}.new-item-tabs[_ngcontent-%COMP%]{padding:10px}.items-list[_ngcontent-%COMP%]{overflow:auto;max-height:300px}.items-list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{color:var(--be-link);padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--be-divider-default);cursor:pointer}.items-list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{text-decoration:underline}.mat-expansion-panel[_ngcontent-%COMP%]{border:1px solid var(--be-divider-default);margin-bottom:10px}.mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:57px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.expansion-panel-content[_ngcontent-%COMP%]{padding-top:25px}"],changeDetection:0}),e})();function Re(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",2),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw().selectIcon(t)}),c._UZ(1,"mat-icon",3),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(1),c.Q6J("svgIcon",e)}}let He=(()=>{class e{constructor(e,t){this.http=e,this.overlayPanelRef=t,this.icons$=new y.X([]),this.loading$=new y.X(!1),this.iconSelected=new c.vpe}ngOnInit(){this.loading$.next(!0),this.http.get("admin/icons").pipe((0,A.x)(()=>this.loading$.next(!1))).subscribe(e=>{this.icons$.next(e.icons)})}selectIcon(e){this.iconSelected.observers.length?this.iconSelected.next(e):(this.overlayPanelRef.emitValue(e),this.overlayPanelRef.close())}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(Qe.F),c.Y36(Fe.L))},e.\u0275cmp=c.Xpm({type:e,selectors:[["icon-selector"]],outputs:{iconSelected:"iconSelected"},decls:4,vars:6,consts:[["mat-icon-button","",3,"click",4,"ngFor","ngForOf"],[1,"overlay","overlay-partial",3,"isVisible"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(e,t){1&e&&(c.YNc(0,Re,2,1,"button",0),c.ALo(1,"async"),c._UZ(2,"loading-indicator",1),c.ALo(3,"async")),2&e&&(c.Q6J("ngForOf",c.lcZ(1,2,t.icons$)),c.xp6(2),c.Q6J("isVisible",c.lcZ(3,4,t.loading$)))},directives:[n.sg,Ze.Q,S.lW,N.Hw],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block;background-color:var(--be-background);padding:15px;border-radius:4px;width:490px;max-width:90vw;min-height:390px;overflow:auto;position:relative;text-align:center;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-icon-button[_ngcontent-%COMP%]{transition:transform .1s ease-in-out}.mat-icon-button[_ngcontent-%COMP%]:hover{transform:scale(1.6)}"],changeDetection:0}),e})();function Ge(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"mat-expansion-panel",5),c.NdJ("opened",function(){const t=c.CHM(e).$implicit;return c.oxw(2).toggleMenuItem(t)})("closed",function(){const t=c.CHM(e).$implicit;return c.oxw(2).toggleMenuItem(t)}),c.TgZ(1,"mat-expansion-panel-header"),c.TgZ(2,"mat-panel-title"),c._UZ(3,"mat-icon",6),c.TgZ(4,"span",7),c._uU(5),c.qZA(),c.qZA(),c.qZA(),c.TgZ(6,"div",8),c.TgZ(7,"div",9),c.TgZ(8,"label",10),c._uU(9,"Label"),c.qZA(),c.TgZ(10,"input",11),c.NdJ("ngModelChange",function(e){return t.$implicit.label=e})("ngModelChange",function(){return c.CHM(e),c.oxw(2).menus.commitChanges()}),c.qZA(),c.qZA(),c.TgZ(11,"div",9),c.TgZ(12,"label",10),c._uU(13,"Type"),c.qZA(),c.TgZ(14,"select",12),c.NdJ("ngModelChange",function(e){return t.$implicit.type=e})("ngModelChange",function(){return c.CHM(e),c.oxw(2).menus.commitChanges()}),c.TgZ(15,"option",13),c._uU(16,"Link"),c.qZA(),c.TgZ(17,"option",14),c._uU(18,"Route"),c.qZA(),c.TgZ(19,"option",15),c._uU(20,"Page"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(21,"div",9),c.TgZ(22,"label",10),c._uU(23,"Action"),c.qZA(),c.TgZ(24,"input",11),c.NdJ("ngModelChange",function(e){return t.$implicit.action=e})("ngModelChange",function(){return c.CHM(e),c.oxw(2).menus.commitChanges()}),c.qZA(),c.qZA(),c.TgZ(25,"div",9),c.TgZ(26,"label",10),c._uU(27,"Condition"),c.qZA(),c.TgZ(28,"select",12),c.NdJ("ngModelChange",function(e){return t.$implicit.condition=e})("ngModelChange",function(){return c.CHM(e),c.oxw(2).menus.commitChanges()}),c.TgZ(29,"option",16),c._uU(30,"None"),c.qZA(),c.TgZ(31,"option",17),c._uU(32,"Show to Logged in Users Only"),c.qZA(),c.TgZ(33,"option",18),c._uU(34,"Show to Guest Users Only"),c.qZA(),c.TgZ(35,"option",19),c._uU(36,"Show to Admin Only"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(37,"div",9),c.TgZ(38,"label",10),c._uU(39,"Open link in"),c.qZA(),c.TgZ(40,"select",12),c.NdJ("ngModelChange",function(e){return t.$implicit.target=e})("ngModelChange",function(){return c.CHM(e),c.oxw(2).menus.commitChanges()}),c.TgZ(41,"option",20),c._uU(42,"Same Window"),c.qZA(),c.TgZ(43,"option",21),c._uU(44,"New Window"),c.qZA(),c.qZA(),c.qZA(),c.TgZ(45,"div",22,23),c.NdJ("click",function(){const t=c.CHM(e).$implicit,i=c.MAs(46);return c.oxw(2).openIconSelector(i,t)}),c.TgZ(47,"label",10),c._uU(48,"Icon"),c.qZA(),c.TgZ(49,"input",24),c.NdJ("ngModelChange",function(e){return t.$implicit.icon=e}),c.qZA(),c._UZ(50,"mat-icon",25),c.qZA(),c.qZA(),c.TgZ(51,"mat-action-row"),c.TgZ(52,"button",26),c.NdJ("click",function(){return c.CHM(e),c.oxw(2).confirmMenuItemDeletion()}),c._uU(53,"Remove"),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit;c.uIk("data-id",e.id),c.xp6(5),c.Oqu(e.label),c.xp6(3),c.s9C("for",e.id+"-label"),c.xp6(2),c.s9C("id",e.id+"-label"),c.Q6J("ngModel",e.label),c.xp6(2),c.s9C("for",e.id+"-type"),c.xp6(2),c.s9C("id",e.id+"-type"),c.Q6J("ngModel",e.type),c.xp6(8),c.s9C("for",e.id+"-action"),c.xp6(2),c.s9C("id",e.id+"-action"),c.Q6J("ngModel",e.action),c.xp6(2),c.s9C("for",e.id+"-condition"),c.xp6(2),c.s9C("id",e.id+"-condition"),c.Q6J("ngModel",e.condition),c.xp6(1),c.Q6J("ngValue",null),c.xp6(9),c.s9C("for",e.id+"-target"),c.xp6(2),c.s9C("id",e.id+"-target"),c.Q6J("ngModel",e.target),c.xp6(7),c.s9C("for",e.id+"-icon"),c.xp6(2),c.s9C("id",e.id+"-icon"),c.Q6J("ngModel",e.icon),c.xp6(1),c.Q6J("svgIcon",e.icon)}}function Xe(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"mat-accordion",3),c.NdJ("cdkDropListDropped",function(t){return c.CHM(e),c.oxw().reorderMenuItems(t)}),c.YNc(1,Ge,54,22,"mat-expansion-panel",4),c.qZA()}if(2&e){const e=t.ngIf;c.xp6(1),c.Q6J("ngForOf",e.items)}}function Be(e,t){1&e&&(c.TgZ(0,"div",27),c._uU(1,"This menu has no items yet."),c.qZA())}let We=(()=>{class e{constructor(e,t,i,n){this.menus=e,this.modal=t,this.overlayPanel=i,this.cd=n,this.subscriptions=[]}ngOnDestroy(){this.subscriptions.forEach(e=>{e&&e.unsubscribe()})}reorderMenuItems(e){this.menus.reorderActiveMenuItems(e.previousIndex,e.currentIndex)}toggleMenuItem(e){this.selectedMenuItem=this.selectedMenuItem===e?null:e}confirmMenuItemDeletion(){this.modal.show(be.z,{title:"Delete Menu Item",body:"Are you sure you want to delete this menu item?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&(this.menus.removeItem(this.selectedMenuItem),this.selectedMenuItem=null)})}openIconSelector(e,t){this.overlayPanel.open(He,{position:Je.Z,origin:new c.SBq(e)}).valueChanged().subscribe(e=>{t.icon=e,this.menus.commitChanges(),this.cd.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(Se),c.Y36(xe.u),c.Y36(ke.T),c.Y36(c.sBO))},e.\u0275cmp=c.Xpm({type:e,selectors:[["menu-items"]],decls:6,vars:4,consts:[["trans","",1,"title"],["cdkDropList","",3,"cdkDropListDropped",4,"ngIf","ngIfElse"],["noActiveMenu",""],["cdkDropList","",3,"cdkDropListDropped"],["class","mat-elevation-z menu-item-container","cdkDrag","",3,"opened","closed",4,"ngFor","ngForOf"],["cdkDrag","",1,"mat-elevation-z","menu-item-container",3,"opened","closed"],["cdkDragHandle","","svgIcon","drag-handle",1,"drag-handle"],[1,"name"],[1,"many-inputs","menu-item-list"],[1,"input-container"],["trans","",3,"for"],["type","text",3,"ngModel","id","ngModelChange"],[3,"ngModel","id","ngModelChange"],["value","link","trans",""],["value","route","trans",""],["value","page","trans",""],["trans","",3,"ngValue"],["value","auth","trans",""],["value","guest","trans",""],["value","admin","trans",""],["value","_self","trans",""],["value","_blank","trans",""],[1,"input-container","icon-input-container",3,"click"],["iconInput",""],["type","text","readonly","","placeholder","(Optional)","trans-placeholder","",3,"ngModel","id","ngModelChange"],[3,"svgIcon"],["mat-button","","color","warn","trans","",1,"delete-button",3,"click"],["trans","",1,"no-menu-items"]],template:function(e,t){if(1&e&&(c.TgZ(0,"div",0),c._uU(1,"Menu Items"),c.qZA(),c.YNc(2,Xe,2,1,"mat-accordion",1),c.ALo(3,"async"),c.YNc(4,Be,2,0,"ng-template",null,2,c.W1O)),2&e){const e=c.MAs(5);c.xp6(2),c.Q6J("ngIf",c.lcZ(3,2,t.menus.activeMenu$))("ngIfElse",e)}},directives:[$.P,n.O5,Ee.pp,Ue.Wj,n.sg,Ee.ib,Ue.Zt,Ee.yz,Ee.yK,N.Hw,Ue.Bh,a.Fj,a.JJ,a.On,a.EJ,a.YN,a.Kr,Ee.VG,S.lW],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block}.title[_ngcontent-%COMP%]{margin:35px 0 5px}.no-menu-items[_ngcontent-%COMP%]{font-size:1.6rem;font-style:italic;color:var(--be-secondary-text);margin:10px 0}.icon-input-container[_ngcontent-%COMP%]{position:relative}.icon-input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:35px}.icon-input-container[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{position:absolute;top:36px;left:8px;color:var(--be-secondary-text)}.menu-item-list[_ngcontent-%COMP%]{padding-top:25px}.mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:10px;border-radius:4px;border:1px solid var(--be-divider-default)}.mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:57px}.mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.mat-action-row[_ngcontent-%COMP%]{border:none;padding:0 15px 10px}.drag-handle[_ngcontent-%COMP%]{display:block;color:var(--be-secondary-text);margin-right:8px;cursor:move}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%], .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0}),e})();function je(e,t){if(1&e&&(c.TgZ(0,"option",15),c._uU(1),c.qZA()),2&e){const e=t.$implicit,i=c.oxw(2);c.Q6J("ngValue",e),c.xp6(1),c.Oqu(i.getDisplayName(e))}}function Ke(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",4),c.TgZ(1,"div",5),c.TgZ(2,"div",6),c.TgZ(3,"label",7),c._uU(4,"Menu Name"),c.qZA(),c.TgZ(5,"input",8),c.NdJ("ngModelChange",function(e){return t.ngIf.name=e})("ngModelChange",function(){return c.CHM(e),c.oxw().menus.commitChanges()}),c.qZA(),c.qZA(),c.TgZ(6,"div",6),c.TgZ(7,"label",9),c._uU(8,"Menu Position"),c.qZA(),c.TgZ(9,"select",10),c.NdJ("ngModelChange",function(e){return t.ngIf.position=e})("ngModelChange",function(){return c.CHM(e),c.oxw().menus.commitChanges()}),c.YNc(10,je,2,2,"option",11),c.qZA(),c.qZA(),c.qZA(),c._UZ(11,"menu-items"),c.TgZ(12,"div",12),c.TgZ(13,"button",13),c.NdJ("click",function(){return c.CHM(e),c.oxw().confirmMenuDeletion()}),c._uU(14,"Delete Menu"),c.qZA(),c.TgZ(15,"button",14),c.NdJ("click",function(){return c.CHM(e),c.oxw().openAddItemPanel()}),c._uU(16,"Add Item"),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=t.ngIf,i=c.oxw();c.xp6(5),c.Q6J("ngModel",e.name),c.xp6(4),c.Q6J("ngModel",e.position),c.xp6(1),c.Q6J("ngForOf",i.appearance.config.menus.positions)}}function et(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",19),c.NdJ("click",function(){const t=c.CHM(e).$implicit;return c.oxw(2).setActiveMenu(t)}),c.TgZ(1,"span",20),c._uU(2),c.qZA(),c._UZ(3,"mat-icon",21),c.qZA()}if(2&e){const e=t.$implicit;c.xp6(2),c.Oqu(e.name)}}function tt(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",16),c.YNc(1,et,4,1,"div",17),c.ALo(2,"async"),c.TgZ(3,"div",12),c.TgZ(4,"button",18),c.NdJ("click",function(){return c.CHM(e),c.oxw().menus.create()}),c._uU(5,"Add a Menu"),c.qZA(),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.xp6(1),c.Q6J("ngForOf",c.lcZ(2,1,e.menus.allMenus$))}}const it=function(e){return["Menus",e]};let nt=(()=>{class e{constructor(e,t,i,n,a,o){this.appearance=e,this.menus=t,this.modal=i,this.settings=n,this.panel=a,this.el=o,this.menus.setFromJson(this.settings.get("menus"))}openAddItemPanel(){const e=Je.Z.slice();e[0].offsetX=10,e[1].offsetX=10,this.panel.open(ze,{position:e,origin:this.el,panelClass:"add-menu-item-panel-container"}).afterClosed().subscribe(e=>{e&&this.menus.addItem(new $e(e))})}openPreviousPanel(){this.menus.activeMenu$.value?this.menus.activeMenu$.next(null):this.appearance.closeActivePanel()}setActiveMenu(e){this.menus.activeMenu$.next(e)}confirmMenuDeletion(){this.modal.show(be.z,{title:"Delete Menu",body:"Are you sure you want to delete this menu?",ok:"Delete"}).afterClosed().subscribe(e=>{e&&this.menus.deleteActive()})}getDisplayName(e){return e.replace(/-/g," ")}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(Se),c.Y36(xe.u),c.Y36(P.Z),c.Y36(ke.T),c.Y36(c.SBq))},e.\u0275cmp=c.Xpm({type:e,selectors:[["menus-appearance-panel"]],decls:6,vars:7,consts:[[3,"path","back"],[1,"appearance-panel-content"],["class","menu-panel",4,"ngIf","ngIfElse"],["allMenuList",""],[1,"menu-panel"],[1,"many-inputs","menu-settings"],[1,"input-container"],["for","menu-name","trans",""],["type","text","id","menu-name",3,"ngModel","ngModelChange"],["for","menu-position","trans",""],["id","menu-position",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"action-buttons"],["mat-button","","color","warn","trans","",3,"click"],["mat-button","","color","accent","trans","",1,"button","flat","add-item-button",3,"click"],[3,"ngValue"],[1,"menus"],["class","menu nav-item",3,"click",4,"ngFor","ngForOf"],["mat-button","","color","accent","trans","",1,"button","primary",3,"click"],[1,"menu","nav-item",3,"click"],[1,"name"],["svgIcon","keyboard-arrow-right",1,"actions"]],template:function(e,t){if(1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.openPreviousPanel()}),c.qZA(),c.TgZ(1,"div",1),c.YNc(2,Ke,17,3,"div",2),c.ALo(3,"async"),c.YNc(4,tt,6,3,"ng-template",null,3,c.W1O),c.qZA()),2&e){const e=c.MAs(5);c.Q6J("path",c.VKq(5,it,t.menus.activeMenu$.value&&t.menus.activeMenu$.value.name)),c.xp6(2),c.Q6J("ngIf",c.lcZ(3,3,t.menus.activeMenu$))("ngIfElse",e)}},directives:[D,n.O5,$.P,a.Fj,a.JJ,a.On,a.EJ,n.sg,We,S.lW,a.YN,a.Kr,N.Hw],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block}.menu-settings[_ngcontent-%COMP%]{margin:10px 0}.menu-settings[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{text-transform:capitalize}.action-buttons[_ngcontent-%COMP%]{text-align:right;margin:10px 0}"],changeDetection:0}),e})();function at(e,t){if(1&e&&(c.ynx(0),c.TgZ(1,"div",3),c.TgZ(2,"label",4),c._uU(3),c.qZA(),c._UZ(4,"textarea",5),c.qZA(),c.BQk()),2&e){const e=t.$implicit;c.xp6(2),c.Q6J("for",e.key),c.xp6(1),c.Oqu(e.name),c.xp6(1),c.Q6J("id",e.key)("formControlName",e.key)("placeholder",e.defaultValue)}}const ot=function(){return["Seo Settings"]};let st=(()=>{class e{constructor(e,t){this.editor=e,this.fb=t,this.form=this.fb.group({})}ngOnInit(){this.seoFields=this.editor.defaultSettings.seo_fields,this.seoFields.forEach(e=>{this.form.addControl(e.key,this.fb.control(e.value))}),this.form.valueChanges.subscribe(e=>{this.editor.addChanges(e)})}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(a.qu))},e.\u0275cmp=c.Xpm({type:e,selectors:[["seo-appearance-panel"]],decls:3,vars:4,consts:[[3,"path","back"],[1,"appearance-panel-content","many-inputs",3,"formGroup"],[4,"ngFor","ngForOf"],[1,"input-container"],["trans","",3,"for"],["type","text","rows","2",3,"id","formControlName","placeholder"]],template:function(e,t){1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.editor.closeActivePanel()}),c.qZA(),c.TgZ(1,"div",1),c.YNc(2,at,5,5,"ng-container",2),c.qZA()),2&e&&(c.Q6J("path",c.DdM(3,ot)),c.xp6(1),c.Q6J("formGroup",t.form),c.xp6(1),c.Q6J("ngForOf",t.seoFields))},directives:[D,a.JL,a.sg,n.sg,$.P,a.Fj,a.JJ,a.u],styles:["label[_ngcontent-%COMP%]{text-transform:capitalize}"],changeDetection:0}),e})();var rt=i(36461),lt=i(35402);const ct=["editor"];function dt(e,t){1&e&&(c.TgZ(0,"p",11),c._uU(1,"If entering javascript, wrap it with <script><\/script> tag."),c.qZA())}let ut=(()=>{class e{constructor(e,t,i){this.dialogRef=e,this.data=t,this.lazyLoader=i,this.loading$=new y.X(!1),this.syntaxInvalid$=new y.X(!1)}ngOnInit(){this.initEditor(this.data.contents,this.data.language),this.overrideDialogCloseEvents()}confirm(){this.close(this.editor.getValue())}close(e){this.dialogRef.close(e)}initEditor(e,t="html"){this.loading$.next(!0),this.lazyLoader.loadAsset("js/ace/ace.js",{type:"js"}).then(()=>{this.editor=ace.edit(this.editorEl.nativeElement),this.editor.getSession().setMode("ace/mode/"+t),this.editor.setTheme("ace/theme/chrome"),this.editor.$blockScrolling=1/0,e&&this.editor.setValue(e,1),this.editor.getSession().on("changeAnnotation",()=>{const e=this.editor.getSession().getAnnotations();if(e[0]&&/doctype first/.test(e[0].text))return e.splice(0,1),void this.editor.getSession().setAnnotations(e);const t=this.editor.getSession().getAnnotations().filter(e=>"error"===e.type).length>0;this.syntaxInvalid$.next(t)}),this.loading$.next(!1)})}overrideDialogCloseEvents(){this.dialogRef.disableClose=!0,this.dialogRef.backdropClick().subscribe(()=>{this.close()}),this.dialogRef.keydownEvents().pipe((0,C.h)(e=>e.keyCode===rt.hY)).subscribe(()=>this.close())}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(le.so),c.Y36(le.WI),c.Y36(lt.j))},e.\u0275cmp=c.Xpm({type:e,selectors:[["code-editor-modal"]],viewQuery:function(e,t){if(1&e&&c.Gf(ct,7),2&e){let e;c.iGM(e=c.CRH())&&(t.editorEl=e.first)}},decls:18,vars:7,consts:[[1,"modal-header"],["mat-dialog-title","","trans","",1,"modal-title"],["type","button","tabindex","-1",1,"close-button","no-style",3,"click"],["svgIcon","close"],[1,"editor-container"],["class","info","trans","",4,"ngIf"],[1,"editor"],["editor",""],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled","click"],[1,"overlay",3,"isVisible"],["trans","",1,"info"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0),c.TgZ(1,"h2",1),c._uU(2,"Code Editor"),c.qZA(),c.TgZ(3,"button",2),c.NdJ("click",function(){return t.close()}),c._UZ(4,"mat-icon",3),c.qZA(),c.qZA(),c.TgZ(5,"mat-dialog-content"),c.TgZ(6,"div",4),c.YNc(7,dt,2,0,"p",5),c._UZ(8,"div",6,7),c.qZA(),c.qZA(),c.TgZ(10,"mat-dialog-actions"),c.TgZ(11,"button",8),c.NdJ("click",function(){return t.close()}),c._uU(12,"Cancel"),c.qZA(),c.TgZ(13,"button",9),c.NdJ("click",function(){return t.confirm()}),c.ALo(14,"async"),c._uU(15,"Update"),c.qZA(),c.qZA(),c._UZ(16,"loading-indicator",10),c.ALo(17,"async")),2&e&&(c.xp6(7),c.Q6J("ngIf","html"===t.data.language),c.xp6(6),c.Q6J("disabled",c.lcZ(14,3,t.syntaxInvalid$)),c.xp6(3),c.Q6J("isVisible",c.lcZ(17,5,t.loading$)))},directives:[le.uh,$.P,N.Hw,le.xY,n.O5,le.H8,S.lW,Ze.Q],pipes:[n.Ov],styles:["[_nghost-%COMP%]{display:block;width:800px;max-width:100%}.modal-header[_ngcontent-%COMP%]{margin:0 0 15px}.editor[_ngcontent-%COMP%]{min-height:550px;border:1px solid var(--be-divider-default);font-size:1.4rem}.info[_ngcontent-%COMP%]{color:var(--be-secondary-text)}"],changeDetection:0}),e})();const ht=function(){return["Custom Code"]};let pt=(()=>{class e{constructor(e,t,i,n){this.editor=e,this.fb=t,this.modal=i,this.toast=n,this.form=this.fb.group({"custom-code.css":[""],"custom-code.html":[""]})}ngOnInit(){const e={};Object.keys(this.form.controls).forEach(t=>{e[t]=this.editor.currentValue(t)}),this.form.patchValue(e)}openModal(e){const t="custom-code."+e,i=this.form.value[t]||"";this.modal.open(ut,{contents:this.form.value[t],language:e}).afterClosed().subscribe(n=>{if(void 0===n||i===n)return;const a={[t]:n};this.form.patchValue(a),this.editor.saveChanges(a).subscribe(()=>{this.addCodeToPreview(e,n),this.toast.open("Custom code saved")})})}addCodeToPreview(e,t){this.editor.postMessage("css"===e?new x(t):new Z(t))}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(a.qu),c.Y36(xe.u),c.Y36(O.F))},e.\u0275cmp=c.Xpm({type:e,selectors:[["custom-code-appearance-panel"]],decls:12,vars:2,consts:[[3,"path","back"],[1,"appearance-panel-content"],["type","button",1,"nav-item",3,"click"],["trans","",1,"text"],["trans","",1,"actions"],[1,"nav-item",3,"click"]],template:function(e,t){1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.editor.closeActivePanel()}),c.qZA(),c.TgZ(1,"div",1),c.TgZ(2,"button",2),c.NdJ("click",function(){return t.openModal("css")}),c.TgZ(3,"span",3),c._uU(4,"Custom CSS"),c.qZA(),c.TgZ(5,"span",4),c._uU(6,"Modify"),c.qZA(),c.qZA(),c.TgZ(7,"button",5),c.NdJ("click",function(){return t.openModal("html")}),c.TgZ(8,"span",3),c._uU(9,"Custom HTML & Javascript"),c.qZA(),c.TgZ(10,"span",4),c._uU(11,"Modify"),c.qZA(),c.qZA(),c.qZA()),2&e&&c.Q6J("path",c.DdM(1,ht))},directives:[D,$.P],styles:[".actions[_ngcontent-%COMP%]{color:var(--be-link);font-size:1.3rem}"],changeDetection:0}),e})();const mt=["iframe"];function gt(e,t){1&e&&(c.TgZ(0,"span",16),c._uU(1,"Save"),c.qZA())}function ft(e,t){1&e&&(c.TgZ(0,"span",16),c._uU(1,"Saved"),c.qZA())}function vt(e,t){1&e&&c._UZ(0,"general-appearance-panel")}function bt(e,t){1&e&&c._UZ(0,"themes-appearance-panel")}function xt(e,t){1&e&&c._UZ(0,"menus-appearance-panel")}function Zt(e,t){1&e&&c._UZ(0,"seo-appearance-panel")}function _t(e,t){1&e&&c._UZ(0,"custom-code-appearance-panel")}function yt(e,t){}function kt(e,t){1&e&&c.YNc(0,yt,0,0,"ng-template",21),2&e&&c.Q6J("cdkPortalOutlet",t.ngIf)}function wt(e,t){if(1&e&&(c.ynx(0),c.YNc(1,kt,1,1,void 0,20),c.ALo(2,"async"),c.BQk()),2&e){const e=c.oxw(2);c.xp6(1),c.Q6J("ngIf",c.lcZ(2,1,e.panelPortal$))}}function Ct(e,t){if(1&e&&(c.ynx(0),c.ynx(1,17),c.YNc(2,vt,1,0,"general-appearance-panel",18),c.YNc(3,bt,1,0,"themes-appearance-panel",18),c.YNc(4,xt,1,0,"menus-appearance-panel",18),c.YNc(5,Zt,1,0,"seo-appearance-panel",18),c.YNc(6,_t,1,0,"custom-code-appearance-panel",18),c.YNc(7,wt,3,3,"ng-container",19),c.BQk(),c.BQk()),2&e){const e=t.ngIf;c.xp6(1),c.Q6J("ngSwitch",e.name),c.xp6(1),c.Q6J("ngSwitchCase","general"),c.xp6(1),c.Q6J("ngSwitchCase","themes"),c.xp6(1),c.Q6J("ngSwitchCase","menus"),c.xp6(1),c.Q6J("ngSwitchCase","seo-settings"),c.xp6(1),c.Q6J("ngSwitchCase","custom-code")}}const At=function(){return[]},Tt=function(e){return{panel:e}};function Mt(e,t){if(1&e&&(c.TgZ(0,"a",24),c.TgZ(1,"span",25),c._uU(2),c.qZA(),c._UZ(3,"mat-icon",26),c.qZA()),2&e){const e=t.$implicit,i=c.oxw(2);c.Q6J("routerLink",c.DdM(3,At))("queryParams",c.VKq(4,Tt,i.slugify(e.name))),c.xp6(2),c.Oqu(i.viewName(e.name))}}function qt(e,t){if(1&e&&(c.TgZ(0,"div",22),c.YNc(1,Mt,4,6,"a",23),c.qZA()),2&e){const e=c.oxw();c.xp6(1),c.Q6J("ngForOf",e.editor.config.sections)}}let Pt=(()=>{class e{constructor(e,t,i,n,a){this.editor=e,this.router=t,this.route=i,this.breakpoints=n,this.config=a,this.panelPortal$=this.editor.activePanel$.pipe((0,l.U)(e=>e&&e.component?new r.C5(e.component):null))}ngOnInit(){this.editor.init(this.iframe.nativeElement,this.route.snapshot.data.defaultSettings,this.config),this.routerSub=this.route.queryParams.subscribe(e=>{this.editor.openPanel(e.panel)})}ngOnDestroy(){this.routerSub&&this.routerSub.unsubscribe()}closeEditor(){this.router.navigate(["admin"])}slugify(e){return(0,s.V)(e)}viewName(e){return e.replace("-"," ")}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(J),c.Y36(o.F0),c.Y36(o.gz),c.Y36(U.S),c.Y36(d,8))},e.\u0275cmp=c.Xpm({type:e,selectors:[["appearance"]],viewQuery:function(e,t){if(1&e&&(c.Gf(mt,7),c.Gf(h._,7)),2&e){let e;c.iGM(e=c.CRH())&&(t.iframe=e.first),c.iGM(e=c.CRH())&&(t.sidenav=e.first)}},decls:24,vars:13,consts:[[1,"no-navbar"],[1,"sidebar"],[1,"header"],[1,"back-button",3,"click"],["svgIcon","close"],["trans","",1,"title"],["mat-raised-button","","color","accent",1,"button","primary","save-button",3,"disabled","click"],["trans","",4,"ngIf","ngIfElse"],["saved",""],[4,"ngIf","ngIfElse"],["navigation",""],[1,"live-preview"],["src","about:blank"],["iframe",""],["mat-fab","",1,"sidebar-toggle-button",3,"click"],["svgIcon","edit"],["trans",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],[3,"cdkPortalOutlet"],[1,"root-navigation"],["class","nav-item",3,"routerLink","queryParams",4,"ngFor","ngForOf"],[1,"nav-item",3,"routerLink","queryParams"],["trans","",1,"text"],["svgIcon","keyboard-arrow-right",1,"actions"]],template:function(e,t){if(1&e&&(c.TgZ(0,"sidenav",0),c.TgZ(1,"nav",1),c.TgZ(2,"div",2),c.TgZ(3,"div",3),c.NdJ("click",function(){return t.closeEditor()}),c._UZ(4,"mat-icon",4),c.qZA(),c.TgZ(5,"div",5),c._uU(6,"Appearance Editor"),c.qZA(),c.TgZ(7,"button",6),c.NdJ("click",function(){return t.editor.saveChanges()}),c.ALo(8,"async"),c.ALo(9,"async"),c.YNc(10,gt,2,0,"span",7),c.ALo(11,"async"),c.YNc(12,ft,2,0,"ng-template",null,8,c.W1O),c.qZA(),c.qZA(),c.YNc(14,Ct,8,6,"ng-container",9),c.ALo(15,"async"),c.YNc(16,qt,2,1,"ng-template",null,10,c.W1O),c.qZA(),c.TgZ(18,"main"),c.TgZ(19,"div",11),c._UZ(20,"iframe",12,13),c.qZA(),c.qZA(),c.qZA(),c.TgZ(22,"button",14),c.NdJ("click",function(){return t.sidenav.toggleSidebarMode()}),c._UZ(23,"mat-icon",15),c.qZA()),2&e){const e=c.MAs(13),i=c.MAs(17);c.xp6(7),c.Q6J("disabled",!c.lcZ(8,5,t.editor.changes$)||c.lcZ(9,7,t.editor.loading$)),c.xp6(3),c.Q6J("ngIf",c.lcZ(11,9,t.editor.changes$))("ngIfElse",e),c.xp6(4),c.Q6J("ngIf",c.lcZ(15,11,t.editor.activePanel$))("ngIfElse",i)}},directives:[h._,N.Hw,$.P,S.lW,n.O5,n.RF,n.n9,n.ED,re,Oe,nt,st,pt,r.Pl,n.sg,o.yS],pipes:[n.Ov],styles:[".mat-sidenav-container[_ngcontent-%COMP%]{height:100vh}.sidebar-toggle-button[_ngcontent-%COMP%]{display:none;position:fixed;bottom:15px;right:15px;z-index:4}sidenav[_ngcontent-%COMP%]{--nav-width:330px}.sidebar[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);padding:0}.sidebar[_ngcontent-%COMP%] .root-navigation[_ngcontent-%COMP%]{padding:10px}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:10px;border-bottom:1px solid var(--be-divider-default);height:50px}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding-left:10px;font-size:1.7rem;font-weight:300}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]{margin-left:auto;max-height:36px;box-shadow:none}.sidebar[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:disabled{cursor:default}.live-preview[_ngcontent-%COMP%]{display:flex;height:100%;justify-content:center;align-items:center;flex:1 1 auto;position:relative}.live-preview[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{border:none;width:100%;height:100%}@media screen and (max-width:768px){.sidebar-toggle-button[_ngcontent-%COMP%]{display:block}}"],changeDetection:0}),e})(),It=(()=>{class e{constructor(e,t){this.editor=e,this.modal=t}canDeactivate(){return!this.editor.changes$.value||this.modal.show(be.z,{title:"Close Appearance Editor",body:"Are you sure you want to close appearance editor?",bodyBold:"All unsaved changes will be lost.",ok:"Close",cancel:"Stay"}).afterClosed()}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(J),c.LFG(xe.u))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ot=i(42690),Jt=i(5304),Ut=i(19773),Nt=i(59193),$t=i(25917);const St=[{path:"",component:Pt,data:{permissions:["appearance.update"]},resolve:{defaultSettings:(()=>{class e{constructor(e,t){this.router=e,this.http=t}resolve(e,t){return this.http.get("admin/appearance/values").pipe((0,Jt.K)(()=>(this.router.navigate(["/admin"]),Nt.E)),(0,Ut.zg)(e=>e?(0,$t.of)(e):(this.router.navigate(["/admin"]),Nt.E)))}}return e.\u0275fac=function(t){return new(t||e)(c.LFG(o.F0),c.LFG(I.r))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},canActivate:[Ot.a],canDeactivate:[It],children:[{path:""},{path:":panel"},{path:":panel/:activeItem"}]}];let Ft=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[o.Bz.forChild(St)],o.Bz]}),e})();var Qt=i(43389);let Yt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[n.ez,Qt.p,S.ot,N.Ps]]}),e})();var Et=i(49866),Dt=i(68285);let Vt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[n.ez,Et.N,N.Ps,we.si]]}),e})();var Lt=i(26989);let zt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({providers:[{provide:d,useValue:u,multi:!0}],imports:[[Ft,n.ez,a.u5,a.UX,Yt,Et.N,Dt.T,Qt.p,Vt,Lt.c,X.Tx,W.Cv,N.Ps,S.ot,le.Is,Ee.To,Ue._t,r.eL,de.rP]]}),e})();var Rt=i(39490),Ht=i(46237),Gt=i(80521),Xt=i(75319),Bt=i(19238),Wt=i(70946);const jt=["sliderWrapper"],Kt=(0,Gt.i$)({passive:!1}),ei={provide:a.JU,useExisting:(0,c.Gpc)(()=>ai),multi:!0};class ti{}class ii{constructor(e){this._elementRef=e}}const ni=(0,we.sb)((0,we.pj)((0,we.Id)(ii),"accent"));let ai=(()=>{class e extends ni{constructor(e,t,i,n,a,o,s,r){super(e),this._focusMonitor=t,this._changeDetectorRef=i,this._dir=n,this._ngZone=o,this._animationMode=r,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new c.vpe,this.input=new c.vpe,this.valueChange=new c.vpe,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=Xt.w.EMPTY,this._pointerDown=e=>{this.disabled||this._isSliding||!oi(e)&&0!==e.button||this._ngZone.run(()=>{const t=this.value,i=si(e);this._isSliding=!0,this._lastPointerEvent=e,e.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(e),this._focusHostElement(),this._updateValueFromPosition(i),this._valueOnSlideStart=t,t!=this.value&&this._emitInputEvent()})},this._pointerMove=e=>{if(this._isSliding){e.preventDefault();const t=this.value;this._lastPointerEvent=e,this._updateValueFromPosition(si(e)),t!=this.value&&this._emitInputEvent()}},this._pointerUp=e=>{this._isSliding&&(e.preventDefault(),this._removeGlobalEvents(),this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=this._lastPointerEvent=null)},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=s,this.tabIndex=parseInt(a)||0,o.runOutsideAngular(()=>{const t=e.nativeElement;t.addEventListener("mousedown",this._pointerDown,Kt),t.addEventListener("touchstart",this._pointerDown,Kt)})}get invert(){return this._invert}set invert(e){this._invert=(0,Rt.Ig)(e)}get max(){return this._max}set max(e){this._max=(0,Rt.su)(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=(0,Rt.su)(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=(0,Rt.su)(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=(0,Rt.Ig)(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?(0,Rt.su)(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value){let t=(0,Rt.su)(e);this._roundToDecimal&&t!==this.min&&t!==this.max&&(t=parseFloat(t.toFixed(this._roundToDecimal))),this._value=t,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=(0,Rt.Ig)(e)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(e){this._focusHostElement(e)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const e=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${e})`}}_getTrackFillStyles(){const e=this.percent,t=this.vertical?`1, ${e}, 1`:`${e}, 1, 1`;return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${t})`,display:0===e?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let e=100*this._tickIntervalPercent,t={backgroundSize:this.vertical?`2px ${e}%`:`${e}% 2px`,transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const e=this._shouldInvertAxis();let i;i=this.vertical?e?"Bottom":"Top":e?"Right":"Left",t[`padding${i}`]=`${this._getThumbGap()}px`}return t}_getThumbContainerStyles(){const e=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,Kt),e.removeEventListener("touchstart",this._pointerDown,Kt),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled||(0,rt.Vb)(e))return;const t=this.value;switch(e.keyCode){case rt.Ku:this._increment(10);break;case rt.VM:this._increment(-10);break;case rt.uR:this.value=this.max;break;case rt.Sd:this.value=this.min;break;case rt.oh:this._increment("rtl"==this._getDirection()?1:-1);break;case rt.LH:this._increment(1);break;case rt.SV:this._increment("rtl"==this._getDirection()?-1:1);break;case rt.JH:this._increment(-1);break;default:return}t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(e){const t=this._document,i=oi(e),n=i?"touchend":"mouseup";t.addEventListener(i?"touchmove":"mousemove",this._pointerMove,Kt),t.addEventListener(n,this._pointerUp,Kt),i&&t.addEventListener("touchcancel",this._pointerUp,Kt);const a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const e=this._document;e.removeEventListener("mousemove",this._pointerMove,Kt),e.removeEventListener("mouseup",this._pointerUp,Kt),e.removeEventListener("touchmove",this._pointerMove,Kt),e.removeEventListener("touchend",this._pointerUp,Kt),e.removeEventListener("touchcancel",this._pointerUp,Kt);const t=this._getWindow();void 0!==t&&t&&t.removeEventListener("blur",this._windowBlur)}_increment(e){this.value=this._clamp((this.value||0)+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let t=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(t=1-t),0===t)this.value=this.min;else if(1===t)this.value=this.max;else{const e=this._calculateValue(t),i=Math.round((e-this.min)/this.step)*this.step+this.min;this.value=this._clamp(i,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,t=Math.ceil(30/(e*this.step/(this.max-this.min)));this._tickIntervalPercent=t*this.step/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(e=this.value){let t=new ti;return t.source=this,t.value=e,t}_calculatePercentage(e){return((e||0)-this.min)/(this.max-this.min)}_calculateValue(e){return this.min+e*(this.max-this.min)}_clamp(e,t=0,i=1){return Math.max(t,Math.min(e,i))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(e){this._elementRef.nativeElement.focus(e)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(c.SBq),c.Y36(Bt.tE),c.Y36(c.sBO),c.Y36(Wt.Is,8),c.$8M("tabindex"),c.Y36(c.R0b),c.Y36(n.K0),c.Y36(Ht.Qb,8))},e.\u0275cmp=c.Xpm({type:e,selectors:[["mat-slider"]],viewQuery:function(e,t){if(1&e&&c.Gf(jt,5),2&e){let e;c.iGM(e=c.CRH())&&(t._sliderWrapper=e.first)}},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:29,hostBindings:function(e,t){1&e&&c.NdJ("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()})("keydown",function(e){return t._onKeydown(e)})("keyup",function(){return t._onKeyup()})("mouseenter",function(){return t._onMouseenter()})("selectstart",function(e){return e.preventDefault()}),2&e&&(c.Ikx("tabIndex",t.tabIndex),c.uIk("aria-disabled",t.disabled)("aria-valuemax",t.max)("aria-valuemin",t.min)("aria-valuenow",t.value)("aria-valuetext",null==t.valueText?t.displayValue:t.valueText)("aria-orientation",t.vertical?"vertical":"horizontal"),c.ekj("mat-slider-disabled",t.disabled)("mat-slider-has-ticks",t.tickInterval)("mat-slider-horizontal",!t.vertical)("mat-slider-axis-inverted",t._shouldInvertAxis())("mat-slider-invert-mouse-coords",t._shouldInvertMouseCoords())("mat-slider-sliding",t._isSliding)("mat-slider-thumb-label-showing",t.thumbLabel)("mat-slider-vertical",t.vertical)("mat-slider-min-value",t._isMinValue())("mat-slider-hide-last-tick",t.disabled||t._isMinValue()&&t._getThumbGap()&&t._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith",valueText:"valueText"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[c._Bn([ei]),c.qOj],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(e,t){1&e&&(c.TgZ(0,"div",0,1),c.TgZ(2,"div",2),c._UZ(3,"div",3),c._UZ(4,"div",4),c.qZA(),c.TgZ(5,"div",5),c._UZ(6,"div",6),c.qZA(),c.TgZ(7,"div",7),c._UZ(8,"div",8),c._UZ(9,"div",9),c.TgZ(10,"div",10),c.TgZ(11,"span",11),c._uU(12),c.qZA(),c.qZA(),c.qZA(),c.qZA()),2&e&&(c.xp6(3),c.Q6J("ngStyle",t._getTrackBackgroundStyles()),c.xp6(1),c.Q6J("ngStyle",t._getTrackFillStyles()),c.xp6(1),c.Q6J("ngStyle",t._getTicksContainerStyles()),c.xp6(1),c.Q6J("ngStyle",t._getTicksStyles()),c.xp6(1),c.Q6J("ngStyle",t._getThumbContainerStyles()),c.xp6(5),c.Oqu(t.displayValue))},directives:[n.PC],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute;-webkit-print-color-adjust:exact;color-adjust:exact}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),e})();function oi(e){return"t"===e.type[0]}function si(e){const t=oi(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.clientX,y:t.clientY}}let ri=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({imports:[[n.ez,we.BQ],we.BQ]}),e})();var li=i(80970),ci=i(63297);function di(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",9),c.TgZ(1,"div",10),c.TgZ(2,"div",11),c._uU(3),c.ALo(4,"trans"),c.qZA(),c.TgZ(5,"button",12),c.NdJ("click",function(){const t=c.CHM(e).index;return c.oxw(3).removeFeature("primary",t)}),c._UZ(6,"mat-icon",13),c.qZA(),c.qZA(),c.TgZ(7,"div",14),c.TgZ(8,"label",15),c._uU(9,"Title"),c.qZA(),c._UZ(10,"input",16),c.qZA(),c.TgZ(11,"div",14),c.TgZ(12,"label",15),c._uU(13,"Subtitle"),c.qZA(),c._UZ(14,"textarea",17),c.qZA(),c.TgZ(15,"appearance-image-input",18),c._uU(16," Image "),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit,i=t.index,n=c.oxw(3);c.Q6J("formGroup",e),c.xp6(3),c.AsE("",c.lcZ(4,13,"Feature")," #",i+1,""),c.xp6(5),c.Q6J("for","primary."+i+".title"),c.xp6(2),c.MGl("highlightInPreview",".inline-feature:nth-child(",i+1,") h3"),c.Q6J("id","primary."+i+".title")("placeholder",n.defaultValue("primaryFeatures."+i+".title")),c.xp6(2),c.Q6J("for","primary."+i+".subtitle"),c.xp6(2),c.MGl("highlightInPreview",".inline-feature:nth-child(",i+1,") p"),c.Q6J("id","primary."+i+".subtitle")("placeholder",n.defaultValue("primaryFeatures."+i+".subtitle")),c.xp6(1),c.MGl("highlightInPreview",".inline-feature:nth-child(",i+1,") img"),c.Q6J("defaultValue",n.defaultValue("primaryFeatures."+i+".image"))}}function ui(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"button",19),c.NdJ("click",function(){return c.CHM(e),c.oxw(3).addFeature("primary")}),c._uU(1,"Add"),c.qZA()}}function hi(e,t){if(1&e&&(c.ynx(0),c.YNc(1,di,17,15,"div",7),c.YNc(2,ui,2,0,"button",8),c.BQk()),2&e){const e=c.oxw(2);c.xp6(1),c.Q6J("ngForOf",e.primaryArray().controls),c.xp6(1),c.Q6J("ngIf",e.primaryArray().length<3)}}function pi(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",9),c.TgZ(1,"div",10),c.TgZ(2,"div",11),c._uU(3),c.ALo(4,"trans"),c.qZA(),c.TgZ(5,"button",12),c.NdJ("click",function(){const t=c.CHM(e).index;return c.oxw(3).removeFeature("secondary",t)}),c._UZ(6,"mat-icon",13),c.qZA(),c.qZA(),c.TgZ(7,"div",14),c.TgZ(8,"label",15),c._uU(9,"Title"),c.qZA(),c._UZ(10,"input",16),c.qZA(),c.TgZ(11,"div",14),c.TgZ(12,"label",15),c._uU(13,"Subtitle"),c.qZA(),c._UZ(14,"input",20),c.qZA(),c.TgZ(15,"div",14),c.TgZ(16,"label",15),c._uU(17,"Description"),c.qZA(),c._UZ(18,"textarea",21),c.qZA(),c.TgZ(19,"appearance-image-input",22),c._uU(20,"Image "),c.qZA(),c.qZA()}if(2&e){const e=t.$implicit,i=t.index,n=c.oxw(3);c.Q6J("formGroup",e),c.xp6(3),c.AsE("",c.lcZ(4,17,"Feature")," #",i+1,""),c.xp6(5),c.Q6J("for","secondary."+i+".title"),c.xp6(2),c.MGl("highlightInPreview",".big-feature:nth-child(",i+1,") h2"),c.Q6J("id","secondary."+i+".title")("placeholder",n.defaultValue("secondaryFeatures."+i+".title")),c.xp6(2),c.Q6J("for","secondary."+i+".subtitle"),c.xp6(2),c.MGl("highlightInPreview",".big-feature:nth-child(",i+1,") small"),c.Q6J("id","secondary."+i+".subtitle")("placeholder",n.defaultValue("secondaryFeatures."+i+".subtitle")),c.xp6(2),c.Q6J("for","secondary."+i+".description"),c.xp6(2),c.MGl("highlightInPreview",".big-feature:nth-child(",i+1,") p"),c.Q6J("id","secondary."+i+".description")("placeholder",n.defaultValue("secondaryFeatures."+i+".description")),c.xp6(1),c.MGl("highlightInPreview",".big-feature:nth-child(",i+1,") img"),c.Q6J("defaultValue",n.defaultValue("secondaryFeatures."+i+".image"))}}function mi(e,t){if(1&e){const e=c.EpF();c.ynx(0),c.YNc(1,pi,21,19,"div",7),c.TgZ(2,"button",19),c.NdJ("click",function(){return c.CHM(e),c.oxw(2).addFeature("secondary")}),c._uU(3,"Add"),c.qZA(),c.BQk()}if(2&e){const e=c.oxw(2);c.xp6(1),c.Q6J("ngForOf",e.secondaryArray().controls)}}function gi(e,t){if(1&e&&(c.TgZ(0,"div",23),c.TgZ(1,"div",14),c.TgZ(2,"label",24),c._uU(3,"Call to Action #1"),c.qZA(),c._UZ(4,"input",25),c.qZA(),c.TgZ(5,"div",14),c.TgZ(6,"label",26),c._uU(7,"Call to Action #2"),c.qZA(),c._UZ(8,"input",27),c.qZA(),c.TgZ(9,"div",14),c.TgZ(10,"label",28),c._uU(11,"Call to Action #3"),c.qZA(),c._UZ(12,"input",29),c.qZA(),c.qZA()),2&e){const e=c.oxw(2);c.Q6J("formGroup",e.form.get("actions")),c.xp6(4),c.Q6J("placeholder",e.defaultValue("actions.cta1")),c.xp6(4),c.Q6J("placeholder",e.defaultValue("actions.cta2")),c.xp6(4),c.Q6J("placeholder",e.defaultValue("actions.cta3"))}}function fi(e,t){if(1&e&&(c.ynx(0),c.TgZ(1,"div",4),c.YNc(2,hi,3,2,"ng-container",5),c.YNc(3,mi,4,1,"ng-container",5),c.YNc(4,gi,13,4,"div",6),c.qZA(),c.BQk()),2&e){const e=t.ngIf;c.xp6(1),c.Q6J("ngSwitch",e),c.xp6(1),c.Q6J("ngSwitchCase","primaryFeatures"),c.xp6(1),c.Q6J("ngSwitchCase","secondaryFeatures"),c.xp6(1),c.Q6J("ngSwitchCase","actions")}}function vi(e,t){if(1&e){const e=c.EpF();c.TgZ(0,"div",23),c.TgZ(1,"div",14),c.TgZ(2,"label",30),c._uU(3,"Header Title"),c.qZA(),c._UZ(4,"input",31),c.qZA(),c.TgZ(5,"div",14),c.TgZ(6,"label",32),c._uU(7,"Header Subtitle"),c.qZA(),c._UZ(8,"textarea",33),c.qZA(),c.TgZ(9,"appearance-image-input",34),c._uU(10,"Header Image "),c.qZA(),c._UZ(11,"mat-slider",35),c.TgZ(12,"color-picker-input",36),c._uU(13,"Header Overlay Color 1"),c.qZA(),c.TgZ(14,"color-picker-input",37),c._uU(15,"Header Overlay Color 2"),c.qZA(),c._UZ(16,"div",38),c.TgZ(17,"ul",39),c.TgZ(18,"li",40),c.NdJ("click",function(){return c.CHM(e),c.oxw().openSubpanel("actions")}),c.TgZ(19,"span",41),c._uU(20,"Action Buttons"),c.qZA(),c._UZ(21,"mat-icon",42),c.qZA(),c.TgZ(22,"li",40),c.NdJ("click",function(){return c.CHM(e),c.oxw().openSubpanel("primaryFeatures")}),c.TgZ(23,"span",41),c._uU(24,"Primary Features"),c.qZA(),c._UZ(25,"mat-icon",42),c.qZA(),c.TgZ(26,"li",40),c.NdJ("click",function(){return c.CHM(e),c.oxw().openSubpanel("secondaryFeatures")}),c.TgZ(27,"span",41),c._uU(28,"Secondary Features"),c.qZA(),c._UZ(29,"mat-icon",42),c.qZA(),c.qZA(),c._UZ(30,"div",38),c.TgZ(31,"div",14),c.TgZ(32,"label",43),c._uU(33,"Footer Title"),c.qZA(),c._UZ(34,"input",44),c.qZA(),c.TgZ(35,"div",14),c.TgZ(36,"label",45),c._uU(37,"Footer Subtitle"),c.qZA(),c._UZ(38,"textarea",46),c.qZA(),c.TgZ(39,"appearance-image-input",47),c._uU(40,"Footer Image "),c.qZA(),c.qZA()}if(2&e){const e=c.oxw();c.Q6J("formGroup",e.form),c.xp6(4),c.Q6J("placeholder",e.defaultValue("headerTitle")),c.xp6(4),c.Q6J("placeholder",e.defaultValue("headerSubtitle")),c.xp6(1),c.Q6J("defaultValue",e.defaultValue("headerImage")),c.xp6(25),c.Q6J("placeholder",e.defaultValue("footerTitle")),c.xp6(4),c.Q6J("placeholder",e.defaultValue("footerSubtitle")),c.xp6(1),c.Q6J("defaultValue",e.defaultValue("footerImage"))}}const bi="homepage.appearance",xi={defaultRoute:"drive",navigationRoutes:["s","drive"],menus:{positions:["drive-navbar","drive-sidebar","homepage-navbar","admin-navbar","custom-page-navbar","footer","footer-secondary"],availableRoutes:["drive/shares","drive/recent","drive/starred","drive/trash","drive/workspaces"]},sections:[{name:"landing page",component:(()=>{class e{constructor(e,t,i){this.fb=e,this.editor=t,this.settings=i,this.selectedSubpanel$=new y.X(null),this.path$=this.selectedSubpanel$.pipe((0,l.U)(e=>{const t=["Homepage"];return e&&t.push(e),t})),this.form=this.fb.group({headerTitle:[""],headerSubtitle:[""],headerImage:[""],headerImageOpacity:[1],headerOverlayColor1:[""],headerOverlayColor2:[""],footerTitle:[""],footerSubtitle:[""],footerImage:[""],actions:this.fb.group({cta1:[""],cta2:[""],cta3:[""]}),primaryFeatures:this.fb.array([]),secondaryFeatures:this.fb.array([])})}ngOnInit(){const e=this.settings.getJson(bi,{});this.defaultValues=this.editor.defaultSettings[bi]?JSON.parse(this.editor.defaultSettings[bi]):{},(e.primaryFeatures||[]).forEach(()=>{this.addFeature("primary")}),(e.secondaryFeatures||[]).forEach(()=>{this.addFeature("secondary")}),this.form.patchValue(e),this.form.valueChanges.subscribe(e=>{this.editor.setConfig(bi,e),this.editor.addChanges({[bi]:e})})}openPreviousPanel(){this.selectedSubpanel$.value?this.openSubpanel(null):this.editor.closeActivePanel()}openSubpanel(e){this.selectedSubpanel$.next(e)}addFeature(e){const t=this.form.get(`${e}Features`),i={title:[""],subtitle:[""],image:[""]};"secondary"===e&&(i.description=[""]),t.push(this.fb.group(i))}removeFeature(e,t){this.form.get(`${e}Features`).removeAt(t)}defaultValue(e){return li.pick(e,this.defaultValues)||""}primaryArray(){return this.form.get("primaryFeatures")}secondaryArray(){return this.form.get("secondaryFeatures")}}return e.\u0275fac=function(t){return new(t||e)(c.Y36(a.qu),c.Y36(J),c.Y36(P.Z))},e.\u0275cmp=c.Xpm({type:e,selectors:[["homepage-appearance-panel"]],decls:7,vars:7,consts:[[3,"path","back"],[1,"appearance-panel-content"],[4,"ngIf","ngIfElse"],["mainPanel",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","many-inputs",3,"formGroup",4,"ngSwitchCase"],["class","many-inputs feature-group",3,"formGroup",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","trans","",3,"click",4,"ngIf"],[1,"many-inputs","feature-group",3,"formGroup"],[1,"feature-group-header"],[1,"text"],["mat-icon-button","","color","warn",3,"click"],["svgIcon","close"],[1,"input-container"],["trans","",3,"for"],["type","text","formControlName","title","required","",3,"id","placeholder","highlightInPreview"],["formControlName","subtitle","rows","3","required","",3,"id","placeholder","highlightInPreview"],["formControlName","image","diskPrefix","homepage","trans","",3,"defaultValue","highlightInPreview"],["mat-flat-button","","color","accent","trans","",3,"click"],["type","text","formControlName","subtitle","required","",3,"id","placeholder","highlightInPreview"],["type","text","formControlName","description","rows","4","required","",3,"id","placeholder","highlightInPreview"],["diskPrefix","homepage","formControlName","image","trans","",3,"defaultValue","highlightInPreview"],[1,"many-inputs",3,"formGroup"],["for","home.actions.cta1","trans",""],["type","text","id","home.actions.cta1","formControlName","cta1","highlightInPreview",".get-started-button","required","",3,"placeholder"],["for","home.actions.cta2","trans",""],["type","text","id","home.actions.cta2","formControlName","cta2","highlightInPreview",".learn-more-button","required","",3,"placeholder"],["for","home.actions.cta3","trans",""],["type","text","id","home.actions.cta3","formControlName","cta3","highlightInPreview",".learn-more-button","required","",3,"placeholder"],["for","home.header.title","trans",""],["type","text","id","home.header.title","formControlName","headerTitle","highlightInPreview",".header-title","required","",3,"placeholder"],["for","home.header.subtitle","trans",""],["type","text","id","home.header.subtitle","formControlName","headerSubtitle","rows","4","highlightInPreview",".header-description","required","",3,"placeholder"],["highlightInPreview",".hero","diskPrefix","homepage","formControlName","headerImage","trans","",3,"defaultValue"],["min","0","max","1","step","0.1","formControlName","headerImageOpacity",1,"opacity-slider"],["formControlName","headerOverlayColor1","trans",""],["formControlName","headerOverlayColor2","trans",""],[1,"separator"],[1,"unstyled-list"],[1,"nav-item",3,"click"],["trans","",1,"text"],["svgIcon","keyboard-arrow-right",1,"actions"],["for","home.footer.title","trans",""],["type","text","id","home.footer.title","formControlName","footerTitle","highlightInPreview",".footer-title","required","",3,"placeholder"],["for","home.footer.subtitle","trans",""],["type","text","id","home.footer.subtitle","formControlName","footerSubtitle","rows","4","highlightInPreview",".footer-description","required","",3,"placeholder"],["highlightInPreview",".bottom-cta","diskPrefix","homepage","formControlName","footerImage","trans","",3,"defaultValue"]],template:function(e,t){if(1&e&&(c.TgZ(0,"appearance-panel-meta",0),c.NdJ("back",function(){return t.openPreviousPanel()}),c.ALo(1,"async"),c.qZA(),c.TgZ(2,"div",1),c.YNc(3,fi,5,4,"ng-container",2),c.ALo(4,"async"),c.YNc(5,vi,41,7,"ng-template",null,3,c.W1O),c.qZA()),2&e){const e=c.MAs(6);c.Q6J("path",c.lcZ(1,3,t.path$)),c.xp6(3),c.Q6J("ngIf",c.lcZ(4,5,t.selectedSubpanel$))("ngIfElse",e)}},directives:[D,n.O5,n.RF,n.n9,n.sg,a.JL,a.sg,S.lW,N.Hw,$.P,a.Fj,a.JJ,a.u,a.Q7,oe,ae,ai,Ae],pipes:[n.Ov,ci.R],styles:[".separator[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--be-divider-default);margin:20px 0}.feature-group[_ngcontent-%COMP%]{padding-bottom:5px;margin-bottom:15px}.feature-group[_ngcontent-%COMP%], .feature-group-header[_ngcontent-%COMP%]{border-bottom:1px solid var(--be-divider-default)}.feature-group-header[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1.5rem;padding-bottom:10px;margin-bottom:10px}.feature-group-header[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{margin-left:auto}.opacity-slider[_ngcontent-%COMP%]{width:100%;margin-top:-20px}"],changeDetection:0}),e})(),position:1,route:"/"}]};let Zi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.oAB({type:e}),e.\u0275inj=c.cJS({providers:[{provide:d,useValue:xi,multi:!0}],imports:[[n.ez,zt,a.UX,Vt,Et.N,N.Ps,S.ot,Et.N,ri]]}),e})()},99905:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});const n=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:5}]}}]); //# sourceMappingURL=171-es2015.313990efb48376948193.js.map