PageSourceSearch

https://riddes.ch/chunk-MILEB6RE.js

js riddes.ch collected 2026-09-25 07:16:22 UTC 59,819 bytes, 4 lines download raw bytes

1import{e as pt,f as gt,g as ut,h as ht,i as _t,j as Ct,l as ft,m as Mt,n as St,o as vt,p as bt,q as _e}from"./chunk-4XUODAF4.js";import{a as st,b as lt}from"./chunk-MO4LLQA2.js";import{a as rt}from"./chunk-HZROQJYF.js";import{I as P,J as he,N as mt,O as X,z as pe}from"./chunk-OAGPG6QZ.js";import{a as tt,e as Pe,j as ue,m as D}from"./chunk-L7CZ7KZJ.js";import{b as dt,d as ct}from"./chunk-EGEZVPFL.js";import{d as it,f as nt,g as at,h as ot}from"./chunk-5QO74CPB.js";import{o as Ze,p as Ke}from"./chunk-XI4BVK43.js";import{c as Z,d as A,e as ce,f as me,j as $,r as Ye,w as qe}from"./chunk-U2NOKKVY.js";import{$ as te,$a as p,$e as we,Ba as ne,Cb as be,Cc as Y,Ce as de,Da as a,Db as Q,Eb as v,Gb as re,Ha as Fe,Hb as _,I,Ia as C,Ib as V,If as Je,Jb as b,Ka as ae,Kf as Xe,La as w,Lc as le,Ma as oe,Mf as et,Na as Be,Nf as ge,Oa as He,Qa as L,Ra as Ae,Rb as H,Sb as ye,Tb as xe,Ub as $e,Vb as De,W as x,We as q,_a as m,a as ee,aa as ie,ac as f,ad as Ne,af as ze,ba as Ie,bb as W,bc as M,ca as Te,cb as N,db as j,de as je,ea as u,eb as g,ec as Re,fa as h,fb as o,ga as Ee,gb as r,h as k,hb as y,if as Ue,ka as R,la as Le,mf as Ge,nc as We,ob as S,p as ke,pf as Qe,qb as c,ra as Ve,sb as l,tb as B,tf as K,ub as E,uf as J,wb as z,xb as U,ya as ve,yb as G,yc as se,za as T}from"./chunk-JJXGM4WM.js";var xt=(()=>{class i{constructor(){this.emitClick=new R}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-arrow-down-fragment"]],inputs:{active:"active"},outputs:{emitClick:"emitClick"},decls:7,vars:2,consts:[["mat-icon-button","","aria-label","scroll down",1,"arrowDown-container",3,"click"],["viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","a","gradientTransform","matrix(1 0 0 -1 0 -13210)","gradientUnits","userSpaceOnUse","x1","0","x2","512","y1","-13466","y2","-13466"],["offset","0","stop-color","#31d8ff"],["offset","1","stop-color","#ff80ff"],["d","m512 256c0 141.386719-114.613281 256-256 256s-256-114.613281-256-256 114.613281-256 256-256 256 114.613281 256 256zm0 0","fill","url(#a)",1,"icon-circle"],["d","m348.105469 348.449219c-5.871094-5.84375-15.367188-5.820313-21.210938.050781l-55.894531 56.164062v-333.664062c0-8.285156-6.714844-15-15-15s-15 6.714844-15 15v333.664062l-55.894531-56.164062c-5.84375-5.871094-15.339844-5.894531-21.210938-.050781-5.871093 5.84375-5.894531 15.339843-.050781 21.210937l81.523438 81.917969c5.800781 5.800781 15.464843 5.800781 21.265624 0l81.523438-81.917969c5.84375-5.871094 5.824219-15.367187-.050781-21.210937-5.871094-5.84375 5.875 5.84375 0 0zm0 0",1,"icon-arrow"]],template:function(n,t){n&1&&(o(0,"button",0),c("click",function(){return t.emitClick.next(!0)}),Ee(),o(1,"svg",1)(2,"linearGradient",2),y(3,"stop",3)(4,"stop",4),r(),y(5,"path",5)(6,"path",6),r()()),n&2&&v("active",t.active)},dependencies:[$,ce],styles:["[_nghost-%COMP%]   .arrowDown-container.active[_ngcontent-%COMP%]{bottom:0;opacity:1}[_nghost-%COMP%]   .arrowDown-container[_ngcontent-%COMP%]{width:46px;height:46px;transition:all .3s ease-in-out;opacity:0}[_nghost-%COMP%]   .arrowDown-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{height:34px}[_nghost-%COMP%]   .arrowDown-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .icon-circle[_ngcontent-%COMP%]{transition:all .3s ease-in-out;opacity:0}[_nghost-%COMP%]   .arrowDown-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .icon-arrow[_ngcontent-%COMP%]{transition:all .2s ease-in-out;fill:var(--current)}[_nghost-%COMP%]   .arrowDown-container[_ngcontent-%COMP%]:hover{bottom:-4px}"],changeDetection:0})}}return i})();var wt=(()=>{class i{set parallaxFactor(e){this._factor=e||1}constructor(e,n){this.elementRef=e,this.renderer=n}onWindowScroll(){if(window.innerWidth<=768){this._actualTranslation>0&&(this._actualTranslation=0,this._updateTranslation());return}this._actualTranslation=window.scrollY*this._factor/10,this._updateTranslation()}_updateTranslation(){this.renderer.setProperty(this.elementRef.nativeElement,"style",`transform: translateY(${this._actualTranslation}px)`)}static{this.\u0275fac=function(n){return new(n||i)(C(Ve),C(Fe))}}static{this.\u0275dir=Be({type:i,selectors:[["","megaParallax",""]],hostBindings:function(n,t){n&1&&c("scroll",function(){return t.onWindowScroll()},ne)},inputs:{parallaxFactor:[0,"factor","parallaxFactor"]}})}}return i})();var Pt=(()=>{class i{constructor(){this.onOpenSearchOverlayChanged$=new ke(!1)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=te({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var jt=["swiperRef"],zt=[[["","grid-top-row",""]],[["","grid-bottom-row",""]],[["","grid-center-row",""]]],Ut=["[grid-top-row]","[grid-bottom-row]","[grid-center-row]"],Gt=(i,d,e)=>({id:i,content:d,modalTabs:e,disableMoreButton:!0}),Qt=(i,d)=>
1({content:i,color:"primary",url:d,style:"margin: auto;"});function Yt(i,d){i&1&&y(0,"div",3)}function qt(i,d){if(i&1&&(y(0,"div",18),f(1,"megaImgSrc")),i&2){let e=l();Q("background-image","url("+M(1,10,e.images[0])+")")("background-position",e.attributes==null?null:e.attributes.backgroundPosition)("background-size",e.attributes==null?null:e.attributes.backgroundSize)("background-attachment",e.attributes==null?null:e.attributes.backgroundAttachment)("background-repeat",e.attributes==null?null:e.attributes.backgroundRepeat)}}function Zt(i,d){if(i&1&&(o(0,"video",5),y(1,"source",19),r()),i&2){let e=l();a(),g("src",e.video.path)("type",e.video.type)}}function Kt(i,d){if(i&1){let e=S();o(0,"swiper-slide")(1,"img",20),f(2,"megaImgSrc"),c("load",function(){u(e);let t=l();return h(t.swiper==null?null:t.swiper.update())}),r()()}if(i&2){let e=d.$implicit;a(),g("src",M(2,2,e),T)("alt",e.title)}}function Jt(i,d){if(i&1&&y(0,"img",11),i&2){let e=l();g("src",e.logoPath,T)}}function Xt(i,d){if(i&1&&y(0,"h1",21),i&2){let e=l(2);g("innerHTML",e.fakeTitle||e.attributes.title,ve)}}function ei(i,d){if(i&1&&y(0,"h2",22),i&2){let e=l(2);g("innerHTML",e.attributes.subtitle,ve)}}function ti(i,d){if(i&1&&(m(0,Xt,1,1,"h1",21),m(1,ei,1,1,"h2",22)),i&2){let e=l();p(e.fakeTitle||e.attributes.title?0:-1),a(),p(e.attributes.subtitle?1:-1)}}function ii(i,d){if(i&1){let e=S();o(0,"button",26),c("click",function(){u(e);let t=l(2);return h(t.openSearchOverlay())}),o(1,"div",27),_(2),f(3,"translate"),o(4,"mat-icon"),_(5,"search"),r()()()}i&2&&(a(2),b(" ",M(3,1,"WHAT_ARE_YOU_SEACHING")," "))}function ni(i,d){if(i&1&&y(0,"megaphone-loader-button",28),i&2){let e=d.$implicit;g("attributes",$e(1,Qt,e.title,e.url))}}function ai(i,d){if(i&1&&(o(0,"div",25),N(1,ni,1,4,"megaphone-loader-button",28,W),r()),i&2){let e=l(2);a(),j(e.attributes.list)}}function oi(i,d){if(i&1&&(o(0,"div",12)(1,"div",23),m(2,ii,6,3,"button",24),m(3,ai,3,0,"div",25),E(4,2),r()()),i&2){let e=l();a(),g("factor",3),a(),p(e.haveSearchbar?2:-1),a(),p(e.attributes!=null&&e.attributes.list?3:-1)}}var Tt=(()=>{class i extends he{onWindowScroll(){if(window.innerWidth<tt)return;let e=document.getElementById("firstScrollToButton");if(e){let n=window?.scrollY/Pe(e).top/4;(n<0||n>1)&&(n=1),this.opacity=.4+n,this.arrowOpacity=1-n<0?0:1-n}}set page(e){this._setAttributes(e)}constructor(e,n,t,s,F,Me,Se){super(Me,Se),this._megaWebsiteService=e,this._megaSearchOverlayService=n,this.megaOrganisationService=t,this.router=s,this._websiteId=F,this._reloadOnChange=!0,this.modalTabs=[{title:"CONTENT",items:[{id:"translations",type:"translations",fields:[{id:"title",type:"text"},{id:"slug",title:"/slug",type:"text"},{id:"subtitle",type:"text"},{type:"title",title:"BUTTONS"},{id:"buttons",type:"list",fields:[{id:"title",type:"text"},{id:"url",type:"text"}]}]}]},{title:"BACKGROUND",items:[{id:"attachments",type:"attachments"},{id:"backgroundPosition",title:"Background position",type:"select",multiple:!1,column:"right",options:[{name:"unset",value:"unset"},{name:"top",value:"top"},{name:"topLeft",value:"top left"},{name:"topRight",value:"top right"},{name:"right",value:"right"},{name:"bottom",value:"bottom"},{name:"bottomRight",value:"bottom right"},{name:"bottomLeft",value:"bottom left"},{name:"left",value:"left"},{name:"center",value:"center"}]},{id:"backgroundSize",title:"Background size",type:"select",multiple:!1,column:"right",options:[{name:"unset",value:"unset"},{name:"cover",value:"cover"},{name:"contain",value:"contain"}]},{id:"backgroundAttachment",title:"Background attachment",type:"select",multiple:!1,column:"right",options:[{name:"unset",value:"unset"},{name:"scroll",value:"scroll"},{name:"fixed",value:"fixed"},{name:"local",value:"local"}]},{id:"backgroundRepeat",title:"Background repeat",type:"select",multiple:!1,column:"right",options:[{name:"unset",value:"unset"},{name:"no-repeat",value:"no-repeat"},{name:"repeat",value:"repeat"}]}]}],this.realIndex=0,this.opacity=.4,this.arrowOpacity=1,this.animationFinished=!1}_extendedOnInit(){setTimeout(()=>{this.animationFinished=!0},600)}_doExtendedSubscription(){this.headerSettings||this._megaWebsiteService.header$.pipe(I(e=>!!e),x(this._unsubscribe$)).subscribe(e=>{this.haveSearchbar=e.haveSearchbar,this.headerSettings=e,(!this.images||this.images.length<=0)&&this._initAttachments(),this._initFooterImages()})}_extendedUpdateAttributes(){this._initAttachments()}getAttributesForApi(e){let n=ee({},e);return delete n.pageId,delete n.order,n.attachments?.forEach(t=>{delete t.loaded}),this.flexGrow&&(n.attributes.flexGrow=this.flexGrow),n}_setAttributes(e){return k(this,null,function*(){this.attributes=e?.attributes||{},this.endpoint=`/websites/${this._websiteId.getValue()}/pages`,this.id=e.id,this.content=yield this.service.getAttributes(`${this.endpoint}/${this.id}${this._getFlatteredParameters()}&include=translations`),this.content$.set(this.content),this._initAttachments(),this._initSwiper()})}_initAttachments(){this.images=ze(this.attributes?.attachments,["image/png","image/jpeg","image/webp"])||this.headerSettings?.backgroundImages,this.logoPath=we(this.attributes?.attachments,["svg"])?.path,this.video=null,setTimeout(()=>{this.video=we(this.attributes?.attachments,["video"])},0)}scrollTo(){let e=document.getElementById("firstScrollToButton");window.scrollTo({top:Pe(e).top,behavior:"smooth"})}openSearchOverlay(){this._megaSearchOverlayService.onOpenSearchOverlayChanged$.next(!0)}_initFooterImages(){this.headerSettings?.footerImages?.length>0&&(this.footerImagesPath=this.headerSettings.footerImages.map(e=>e.optimizedPath||e.path||""))}_initSwiper(){let e=this._swiperRef?.nativeElement;if(this.images?.length===0||!e)return;if(!(this.images.length>1)){this._swiperRef.nativeElement.remove();return}Object.assign(e,{slidesPerView:1,centeredSlides:!0,loop:!0,speed:1400,autoplay:{delay:6e3,disableOnInteraction:!1},pagination:{clickable:!0}}
1),e.initialize(),this.swiper=this._swiperRef.nativeElement.swiper}static{this.\u0275fac=function(n){return new(n||i)(C(D),C(Pt),C(Ue),C(Xe),C(de),C(P),C(ge))}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-header-layout"]],viewQuery:function(n,t){if(n&1&&z(jt,5),n&2){let s;U(s=G())&&(t._swiperRef=s.first)}},hostBindings:function(n,t){n&1&&c("scroll",function(){return t.onWindowScroll()},ne)},inputs:{config:"config",haveSearch:"haveSearch",fakeTitle:"fakeTitle",page:"page"},features:[H([P,Ye]),L],ngContentSelectors:Ut,decls:24,vars:36,consts:[["swiperRef",""],["id","headerLayout",1,"header-layout",3,"emitItemChange","emitItemDelete","config"],[1,"header-container"],[1,"background-fixed","loadingImage"],[1,"background-fixed",3,"backgroundImage","backgroundPosition","backgroundSize","backgroundAttachment","backgroundRepeat"],["webkit-playsinline","","playsinline","","playsinline","playsinline","muted","","onloadedmetadata","this.muted = true; this.play()","loop","",1,"video-background"],["init","false"],[1,"overlay-container"],[1,"overlay-background"],[1,"headerGrid-container"],["megaParallax","",1,"gridTop-container",3,"factor"],["alt","logo",1,"logo-container",3,"src"],[1,"gridCenter-container"],[1,"gridBottom-container"],[1,"bottomImage-container"],["alt","footerImage",1,"footer-image",3,"src"],["megaParallax","","alt","footerImage",1,"footer-image",3,"factor","src"],["id","firstScrollToButton",3,"click","active"],[1,"background-fixed"],[3,"src","type"],[1,"background-image",3,"load","src","alt"],[1,"header-title",3,"innerHTML"],[1,"header-subtitle",3,"innerHTML"],["megaParallax","",1,"gridCenterColumn-container",3,"factor"],["mat-button","",1,"fakeSearch-button"],[1,"buttons-container"],["mat-button","",1,"fakeSearch-button",3,"click"],[1,"fakeSearchButton-content"],[3,"attributes"]],template:function(n,t){n&1&&(B(zt),o(0,"megaCMS-edit-layout",1),c("emitItemChange",function(F){return t.updateAttributes(F)})("emitItemDelete",function(){return t.deleteItem()}),o(1,"section",2),m(2,Yt,1,0,"div",3),m(3,qt,2,12,"div",4),m(4,Zt,2,2,"video",5),o(5,"swiper-container",6,0),N(7,Kt,3,4,"swiper-slide",null,W),r(),o(9,"div",7),y(10,"div",8),r(),o(11,"section",9)(12,"div",10),E(13),m(14,Jt,1,1,"img",11),m(15,ti,2,2),r(),m(16,oi,5,3,"div",12),o(17,"div",13),E(18,1),r()(),o(19,"div",14),y(20,"img",15)(21,"img",16)(22,"img",16),r(),o(23,"megaCMS-arrow-down-fragment",17),c("click",function(){return t.scrollTo()}),r()()()),n&2&&(re(t.attributes==null?null:t.attributes.style),g("config",De(32,Gt,t.id,t.content$(),t.modalTabs)),a(2),p((!t.images||(t.images==null?null:t.images.length)===0)&&!t.video?2:-1),a(),p((t.images==null?null:t.images.length)===1?3:-1),a(),p(t.video?4:-1),a(3),j(t.images),a(3),Q("opacity",t.opacity),a(2),v("shallBeSelected",(t.images==null?null:t.images.length)<=1),g("factor",3),a(2),p(t.logoPath?14:-1),a(),p(t.attributes?15:-1),a(),p(t.haveSearchbar||(t.attributes==null||t.attributes.list==null?null:t.attributes.list.length)>0?16:-1),a(4),v("hidden",(t.footerImagesPath==null?null:t.footerImagesPath.length)<=0),g("src",t.footerImagesPath?t.footerImagesPath[0]:"",T),a(),v("hidden",(t.footerImagesPath==null?null:t.footerImagesPath.length)<=1),g("factor",.4)("src",t.footerImagesPath?t.footerImagesPath[1]:"",T),a(),v("hidden",(t.footerImagesPath==null?null:t.footerImagesPath.length)<=2),g("factor",.6)("src",t.footerImagesPath?t.footerImagesPath[2]:"",T),a(),Q("opacity",t.arrowOpacity),v("hasBackgroundImages",(t.headerSettings==null||t.headerSettings.backgroundImages==null?null:t.headerSettings.backgroundImages.length)>1||(t.images==null?null:t.images.length)>1)("hasFooterImages",(t.headerSettings==null||t.headerSettings.footerImages==null?null:t.headerSettings.footerImages.length)>1),g("active",t.animationFinished))},dependencies:[J,wt,mt,xt,lt,st,$,me,A,Z,K,qe],styles:[`megaCMS-header-layout{--current: var(--white);--header-align-items: center;box-sizing:content-box}megaCMS-header-layout.smaller .header-container{height:280px;min-height:unset}megaCMS-header-layout.smaller .header-container .title-container{margin-top:22px}megaCMS-header-layout.smaller .header-container .title-container>.icon{max-height:96px}megaCMS-header-layout.smaller .header-container .title-container .header-title{font-size:2.5em}megaCMS-header-layout .header-title{padding:0 var(--space-smallest);margin:0;color:var(--white);font-size:4em;font-weight:300;text-align:center;text-shadow:2px 2px 3px rgba(0,0,0,.4)}@media(min-width:768px){megaCMS-header-layout .header-title{font-size:var(--headerFont-size, 64px)}}@media(max-width:767px){megaCMS-header-layout .header-title{font-size:3.5rem}}@media(max-width:575px){megaCMS-header-layout .header-title{font-size:2.3rem}}megaCMS-header-layout .header-subtitle{margin-top:var(--space);color:var(--white);font-weight:300;text-shadow:2px 2px 3px rgba(0,0,0,.4);text-align:center}megaCMS-header-layout .header-layout{position:relative}megaCMS-header-layout .header-layout .edit-container{--radius-smaller
1: 0}megaCMS-header-layout .header-layout .edit-container .icon-container{top:unset!important;bottom:0;border-radius:8px 0 0!important}megaCMS-header-layout .header-layout .component-container{z-index:1}megaCMS-header-layout .header-layout .header-container{display:flex;align-items:center;position:relative;height:var(--header-height, 56vh);min-height:420px;background-color:var(--header-background-color);overflow:hidden;transform:unset}megaCMS-header-layout .header-layout .header-container .background-fixed{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center}@media(min-width:768px){megaCMS-header-layout .header-layout .header-container .background-fixed{background-attachment:fixed}}@supports (-webkit-overflow-scrolling: touch){megaCMS-header-layout .header-layout .header-container .background-fixed{background-attachment:scroll}}megaCMS-header-layout .header-layout .header-container .background-fixed.loadingImage{background-image:url(https://assets.megaphone.info/images/skeletons/image.jpg)}megaCMS-header-layout .header-layout .header-container .video-background{position:absolute;inset:-100%;width:100%;height:100%;margin:auto;background-size:cover;background-position:50% 50%;object-fit:cover;filter:brightness(108.5%)}megaCMS-header-layout .header-layout .header-container.halfSized swiper-container{width:50%;margin-right:unset}megaCMS-header-layout .header-layout .header-container.halfSized video{left:-50%;width:50%}megaCMS-header-layout .header-layout .header-container swiper-container{width:100%;height:100%;z-index:0}megaCMS-header-layout .header-layout .header-container swiper-container .background-fixed{background-color:var(--light);background-attachment:unset}megaCMS-header-layout .header-layout .header-container swiper-container .background-image{width:100%;height:100%;object-fit:cover;background-repeat:no-repeat}megaCMS-header-layout .header-layout .header-container swiper-container .swiper-pagination .swiper-pagination-bullet{width:11px;height:11px;background:var(--primary)}megaCMS-header-layout .header-layout .header-container .bg-shadow{position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(0deg,transparent,#1f1f1f)}megaCMS-header-layout .header-layout .header-container .title-container{display:flex;flex-direction:column;align-items:center;position:absolute;width:100%}megaCMS-header-layout .header-layout .header-container .title-container>.icon{max-height:126px}megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-left,megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-right{position:absolute;top:50%;transform:translateY(-50%)}@media(max-width:575px){megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-left,megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-right{width:48px;height:48px}}megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-left{left:0}megaCMS-header-layout .header-layout .header-container .title-container .icon-chevron-right{right:0}megaCMS-header-layout .header-layout .header-container .title-container .btn-container{margin-top:28px}megaCMS-header-layout .header-layout .header-container .overlay-container{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}megaCMS-header-layout .header-layout .header-container .overlay-container .overlay-background{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .1s ease-in-out;background:var(--dark);background:linear-gradient(180deg,#0000,#222428)}megaCMS-header-layout .header-layout .header-container .headerGrid-container{display:flex;flex-direction:column;align-items:var(--header-align-items);position:absolute;top:0;left:50%;width:100%;max-width:var(--container-max-width);height:100%;z-index:1;transform:translate(-50%);overflow:hidden;pointer-events:none}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridTop-container,megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container,megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridBottom-container{width:100%}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridTop-container,megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container{display:flex;flex-grow:1}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridTop-container{flex-direction:column;justify-content:center;align-items:center;position:relative;z-index:1}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridTop-container .shallBeSelected{pointer-events:all}@media(max-width:575px){megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container{flex-direction:column}}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;box-sizing:border-box;margin-left:auto;margin-right:auto;width:100%}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container .buttons-container{display:flex;flex-direction:column;padding:0 var(--space-smallest);margin-top:var(--space-big);gap:var(--space)}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container megaphone-loader-button{pointer-events:all}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container img{max-width:100%;max-height:180px;object-fit:contain}@media(max-width:575px){megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container img{max-height:90px}}megaCMS-header-layout .header-layout .header-container .headerGrid-container .gridCenter-container .gridCenterColumn-container.aside{flex:0 0 33%}megaCMS-header-layout .header-layout .header-container .bottomImage-container{position:absolute;bottom:0;width:100%;z-index:1;pointer-events:none}megaCMS-header-layout .header-layout .header-container .bottomImage-container .footer-image{position:absolute;bottom:-1px;width:100%;min-width:600px}@media(max-width:767px){megaCMS-header-layout .header-layout .header-container .bottomImage-container .footer-image{left:50%;transform:translate(-50%)!important}}megaCMS-header-layout .header-layout .header-container .bottomImage-container .footer-image:nth-child(2){bottom:15px;opacity:.5}megaCMS-header-layout .header-layout .header-container .bottomImage-container .footer-image:nth-child(3){bottom:17px;opacity:.3}megaCMS-header-layout .header-layout .header-container .bottomImage-container .footer-image.hidden{display:none}megaCMS-header-layout .header-layout .header-container megaCMS-arrow-down-fragment{position:absolute;bottom:12px;left:50%;transform:translate(-50%)}megaCMS-header-layout .header-layout .header-container megaCMS-arrow-down-fragment.hasBackgroun
1dImages{bottom:26px}megaCMS-header-layout .header-layout .header-container megaCMS-arrow-down-fragment.hasFooterImages{bottom:64px}megaCMS-header-layout .header-layout .fakeSearch-button{width:80%;max-width:574px;margin:0 auto auto;color:var(--medium-dark);background-color:var(--white);pointer-events:all}megaCMS-header-layout .header-layout .fakeSearch-button .mdc-button__label{width:100%}megaCMS-header-layout .header-layout .fakeSearch-button .fakeSearchButton-content{display:flex;justify-content:space-between;align-items:center;font-size:18px}@media(min-width:576px){megaCMS-header-layout .header-layout.left .halfSized .background-fixed{left:50%;width:50%}megaCMS-header-layout .header-layout.left .halfSized .overlay-container{left:50%;width:50%}megaCMS-header-layout .header-layout.left .headerGrid-container{--header-align-items: start}megaCMS-header-layout .header-layout.left .headerGrid-container .gridTop-container,megaCMS-header-layout .header-layout.left .headerGrid-container .gridCenter-container,megaCMS-header-layout .header-layout.left .headerGrid-container .gridBottom-container{width:50%}megaCMS-header-layout .header-layout.left .headerGrid-container .gridCenter-container .header-title{text-align:left;pointer-events:all}megaCMS-header-layout .header-layout.left .headerGrid-container .gridCenter-container .header-subtitle{text-align:left}megaCMS-header-layout .header-layout.left .headerGrid-container megaCMS-search-fragment{display:none}}
2`],encapsulation:2})}}return i})();var Ce=new Ie("MegaCMSSidebarLoaderServiceProvider");var fe=(()=>{class i{constructor(e){this._config=e,this.components=this._config.defaultComponents||[{type:"unknown",component:pt},{type:"article",component:ut},{type:"attachments-pdf",component:ht},{type:"attachments-list",component:_t},{type:"attachments-table",component:Ct},{type:"image",component:Mt},{type:"contacts-single",component:ft},{type:"openings-single",component:vt},{type:"map",component:St}],this._config.additionalComponents&&this._config.additionalComponents.forEach(n=>{let t=this.components.findIndex(s=>s.type===n.type);t>-1?this.components[t].component=n.component:this.components.push(n)})}static{this.\u0275fac=function(n){return new(n||i)(Te(Ce))}}static{this.\u0275prov=te({token:i,factory:i.\u0275fac})}}return i})();var li=["componentLoaderSidebarContainer"];function di(i,d){}function ci(i,d){if(i&1){let e=S();o(0,"megaCMS-new-component-component",3),c("emitNewComponent",function(t){u(e);let s=l();return h(s.addComponent(t))}),r()}if(i&2){let e=l();g("listType",e.listType)}}var Et=(()=>{class i extends he{constructor(e,n,t,s,F,Me,Se,Dt){super(Se,Dt),this.megaLoaderService=e,this._megaWebsiteService=n,this._changeDetectionRef=t,this._megaCMSSidebarLoaderService=s,this._httpClient=F,this._websiteId=Me,this.isEmpty=!0,this.shallEdit=!1,this.emitIsEmpty=new R,this.ModalNewComponent=gt,this.listType="sidebar"}_extendedOnInit(){this.megaLoaderService.init(this.id,this.componentLoaderContainer,this._changeDetectionRef,this._megaCMSSidebarLoaderService.components,this.listType),this._megaWebsiteService.ids$.pipe(I(e=>!!e?.pageId),x(this._unsubscribe$)).subscribe(e=>k(this,null,function*(){this.id=e.sidebarId,this.pageId=e.pageId,this.endpoint=`/websites/${this._websiteId.getValue()}/pages/${this.pageId}/components`,this.id?this._httpClient.get(`${this._megaWebsiteService.baseUrl}/websites/${this._websiteId.getValue()}/components/${this.id}`).subscribe(n=>{this.content=n.attributes||{},this.megaLoaderService.initComponents(this.content.children),this.isEmpty=!this.content.children||this.content.children?.length<=0,this.emitIsEmpty.emit(this.isEmpty)}):(this.content=null,this.megaLoaderService.initComponents([]),this.emitIsEmpty.emit(!0))})),this._megaWebsiteService.displayMode$.pipe(x(this._unsubscribe$)).subscribe(e=>{this.shallEdit=e==="edition"}),this.megaLoaderService.onElementDeleted$.pipe(I(e=>!!e),x(this._unsubscribe$)).subscribe(()=>{this.emitIsEmpty.next(this.megaLoaderService.generatedComponents.length<=0)})}addComponent(e){return k(this,null,function*(){if(this.emitIsEmpty.emit(!1),!this.id
2){let n=yield this._megaWebsiteService.updateAttributes({type:"sidebar",attributes:{}},`/pages/${this.pageId}/versions/${this._megaWebsiteService.actualVersion.id} /components`);if(n?.id)this.id=n.id;else return;this.megaLoaderService.init(this.id,this.componentLoaderContainer,this._changeDetectionRef,this._megaCMSSidebarLoaderService.components,this.listType)}this.megaLoaderService.createComponent(e,this.id)})}static{this.\u0275fac=function(n){return new(n||i)(C(X),C(D),C(We),C(fe),C(le),C(de),C(P),C(ge))}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-sidebar-loader"]],viewQuery:function(n,t){if(n&1&&z(li,7,ae),n&2){let s;U(s=G())&&(t.componentLoaderContainer=s.first)}},hostVars:4,hostBindings:function(n,t){n&2&&v("isEmpty",t.isEmpty)("shallEdit",t.shallEdit)},outputs:{emitIsEmpty:"emitIsEmpty"},standalone:!1,features:[H([P,X]),L],decls:4,vars:1,consts:[["componentLoaderSidebarContainer",""],[1,"loader-container"],["buttonName","sidebar",3,"listType"],["buttonName","sidebar",3,"emitNewComponent","listType"]],template:function(n,t){n&1&&(o(0,"div",1),Ae(1,di,0,0,"ng-template",null,0,Re),r(),m(3,ci,1,1,"megaCMS-new-component-component",2)),n&2&&(a(3),p(t.shallEdit?3:-1))},dependencies:[_e],styles:[`megaCMS-sidebar-layout .loader-container{margin-top:16px}megaCMS-sidebar-layout .loader-container>*{box-sizing:border-box}megaCMS-sidebar-loader{--map-min-height: 160px;--h2-size: var(--h3-size)}megaCMS-sidebar-loader google-map{height:var(--map-min-height)}megaCMS-sidebar-loader thead{display:none}@media(min-width:768px){megaCMS-sidebar-loader{max-width:228px;min-width:228px}}megaCMS-sidebar-loader megaCMS-map-component .component-innerContainer{margin-bottom:22px}megaCMS-sidebar-loader .loader-container>*{padding:0!important}@media(max-width:767px){megaCMS-sidebar-loader .loader-container>*:first-child{padding-top:var(--space-bigger)!important;margin-top:var(--space-bigger);border-top:solid 1px var(--light-dark)}megaCMS-sidebar-loader .loader-container>*:last-child{padding-bottom:var(--space-bigger)!important;margin-bottom:var(--space-bigger);border-bottom:solid 1px var(--light-dark)}}megaCMS-sidebar-loader .openingsCard-item,megaCMS-sidebar-loader .contactCard-item{padding:var(--space-smallest) var(--space-small)!important}megaCMS-sidebar-loader .contactCard-container{height:unset!important}megaCMS-sidebar-loader .contactCardFixed-function,megaCMS-sidebar-loader .contactCardFixed-title{display:block!important;word-break:initial!important}megaCMS-sidebar-loader .contactCardScroll-container{max-height:unset!important}megaCMS-sidebar-loader.isEmpty:not(.shallEdit){display:none}megaCMS-sidebar-loader .wysiwyg-container li::marker{color:var(--secondary, var(--primary));font-family:monospace;font-weight:600;content:"> "}megaCMS-sidebar-loader .wysiwyg-container ul{padding-left:8px}megaCMS-sidebar-loader megaCMS-article-component a{position:relative}megaCMS-sidebar-loader megaCMS-article-component a[href^="tel:"]:before{mask:url(/assets/website/icons/call_black_24dp.svg) no-repeat center/contain;-webkit-mask:url(/assets/website/icons/call_black_24dp.svg) no-repeat center/contain}megaCMS-sidebar-loader megaCMS-article-component a[href^="mailto:"]:before{mask:url(/assets/website/icons/email_black_24dp.svg) no-repeat center/contain;-webkit-mask:url(/assets/website/icons/email_black_24dp.svg) no-repeat center/contain}megaCMS-sidebar-loader megaCMS-article-component a[href^="tel:"],megaCMS-sidebar-loader megaCMS-article-component a[href^="mailto:"]{padding-left:22px;hyphens:auto}megaCMS-sidebar-loader megaCMS-article-component a[href^="tel:"]:before,megaCMS-sidebar-loader megaCMS-article-component a[href^="mailto:"]:before{position:absolute;top:9px;left:0;width:16px;height:16px;background-color:var(--primary);transform:translateY(-50%);content:"";background-size:contain;background-repeat:no-repeat}megaCMS-sidebar-loader ngx-masonry{max-width:unset!important;min-width:unset!important}megaCMS-sidebar-loader mega-items-per-row,megaCMS-sidebar-loader .expand-button{display:none}megaCMS-sidebar-loader .contactCardImg-container{margin-bottom:10px!important}megaCMS-sidebar-loader .loader-container{margin-bottom:var(--space-bigger);--p-size: .95em;--h3-size: var(--h4);display:flex;flex-direction:column;gap:16px}megaCMS-sidebar-loader .loader-container:not(:first-child){margin-top:16px}megaCMS-sidebar-loader .loader-container mega-filter-categories-component{display:none}megaCMS-sidebar-loader .loader-container .contactCard-container{padding:0!important}megaCMS-sidebar-loader .loader-container .openingsCard-container{padding:0}megaCMS-sidebar-loader .loader-container .openingsCard-container .weekday-title{flex:1 0 34%}
3`],encapsulation:2})}}return i})();var Lt=(()=>
3{class i{static forRoot(e){return{ngModule:i,providers:[fe,{provide:Ce,useValue:e}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=oe({type:i})}static{this.\u0275inj=ie({imports:[Y,_e]})}}return i})();var Vt=(()=>{class i{transform(e){switch(e.type){case"externalUrl":return e.url;case"plugin":return e.url;case"internalLink":return e.scrollTo?e.scrollTo.includes("#")?e.page?.slug+e.scrollTo:`${e.page?.slug}#${e.scrollTo}`:e.endpoint?e.endpoint.includes("/")?e.page?.slug+e.endpoint:`${e.page?.slug}/${e.endpoint}`:e.page?.slug;default:return}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275pipe=He({name:"megaMenuLinkPipe",type:i,pure:!0})}}return i})();var pi=["*"];function gi(i,d){i&1&&(o(0,"mat-icon",9),_(1," launch "),r())}function ui(i,d){if(i&1){let e=S();o(0,"a",7),f(1,"megaMenuLinkPipe"),c("click",function(t){u(e);let s=l().$implicit,F=l(2);return F.closeMenu.emit(!1),F.updateActiveLink(s),h(t.stopPropagation())}),o(2,"p",8),_(3),r(),m(4,gi,2,0,"mat-icon",9),r()}if(i&2){let e=l().$implicit;re(e.type),v("active",e.isActive),g("href",M(1,7,e),T),a(3),V(e.title),a(),p((e==null?null:e.type)==="externalUrl"&&(e.url!=null&&e.url.includes("http"))?4:-1)}}function hi(i,d){if(i&1){let e=S();o(0,"a",10),f(1,"megaMenuLinkPipe"),c("click",function(t){u(e);let s=l().$implicit;return s.isOpened?s.isOpened=!1:s.isOpened=!0,h(t.stopPropagation())}),o(2,"p",8),_(3),r(),o(4,"mat-icon",11),c("mouseover",function(){u(e);let t=l().$implicit;return h(t.isOpenedOnMouse=!0)}),_(5," chevron_right "),r()()}if(i&2){let e=l().$implicit;v("active",e.isActive),g("href",M(1,6,e),T),a(3),V(e.title),a(),v("active",e.isActive&&e.isOpened!==!1||e.isOpenedOnMouse||e.isOpened)}}function _i(i,d){if(i&1){let e=S();o(0,"a",12),c("click",function(t){u(e);let s=l().$implicit;return s.isOpened?s.isOpened=!1:s.isOpened=!0,h(t.stopPropagation())}),o(1,"p",8),_(2),r(),o(3,"mat-icon",11),c("mouseover",function(){u(e);let t=l().$implicit;return h(t.isOpenedOnMouse=!0)}),_(4," chevron_right "),r()()}if(i&2){let e=l().$implicit;v("active",e.isActive),a(2),V(e.title),a(),v("active",e.isActive&&e.isOpened!==!1||e.isOpenedOnMouse||e.isOpened)}}function Ci(i,d){i&1&&E(0)}function fi(i,d){if(i&1){let e=S();o(0,"megaCMS-nav-items-fragment",13),c("onHoverInteraction",function(){u(e);let t=l(3);return h(t.onHoverInteraction)})("loaded",function(){u(e);let t=l(3);return h(t.loaded.emit(!0))})("closeMenu",function(t){u(e);let s=l(3);return h(s.closeMenu.emit(t))}),r()}if(i&2){let e=l().$implicit;g("items",e.items)("parent",e)}}function Mi(i,d){if(i&1){let e=S();o(0,"li",2),c("mouseover",function(){let t=u(e).$implicit,s=l(2);return h(s.onHoverInteraction?t.isOpenedOnMouse=!0:null)})("mouseleave",function(){let t=u(e).$implicit;return h(t.isOpenedOnMouse=!1)}),m(1,ui,5,9,"a",3),m(2,hi,6,8,"a",4),m(3,_i,5,5,"a",5),m(4,Ci,1,0),m(5,fi,1,2,"megaCMS-nav-items-fragment",6),r()}if(i&2){let e=d.$implicit,n=l(2);v("haveParent",!!n.parent),a(),p(!e.items||(e.items==null?null:e.items.length)===0?1:-1),a(),p((e.items==null?null:e.items.length)>0&&e.type==="internalLink"?2:-1),a(),p((e.items==null?null:e.items.length)>0&&e.type!=="internalLink"?3:-1),a(),p(e.isActive?4:-1),a(),p((e.isActive&&e.isOpened!==!1||e.isOpenedOnMouse||e.isOpened)&&(e.items==null?null:e.items.length)>0?5:-1)}}function Si(i,d){if(i&1&&(o(0,"ul",0),N(1,Mi,6,7,"li",1,W),r()),i&2){let e=l();a(),j(e.items)}}var Ft=(()=>{class i{constructor(){this.loaded=new R,this.closeMenu=new R}ngAfterViewInit(){this.loaded.emit(!0)}updateActiveLink(e){this.items.map(n=>{n.isActive=!!(n.id===e.id&&e.id)}),e.id||(e.isActive=!0)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-nav-items-fragment"]],inputs:{items:"items",parent:"parent",onHoverInteraction:"onHoverInteraction"},outputs:{loaded:"loaded",closeMenu:"closeMenu"},ngContentSelectors:pi,decls:1,vars:1,consts:[[1,"sidenav-list"],[1,"sidenav-item",3,"haveParent"],[1,"sidenav-item",3,"mouseover","mouseleave"],["matRipple","",1,"sidenavItem-link",3,"active","class","href"],["matRipple","",1,"sidenavItem-link","haveSlug",3,"active","href"],["matRipple","",1,"sidenavItem-link",3,"active"],[3,"items","parent"],["matRipple","",1,"sidenavItem-link",3,"click","href"],[1,"link-text"],[1,"openUrl-icon"],["matRipple","",1,"sidenavItem-link","haveSlug",3,"click","href"],[1,"expand-icon",3,"mouseover"],["matRipple","",1,"sidenavItem-link",3,"click"],[3,"onHoverInteraction","loaded","closeMenu","items","parent"]],template:function(n,t){n&1&&(B(),m(0,Si,3,0,"ul",0)),n&2&&p(t.items?0:-1)},dependencies:[i,A,Z,Qe,Ge,ue,Vt],styles:["[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]{padding:0;list-style:none}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]:not(:hover)   .active[_ngcontent-%COMP%]{color:var(--primary)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]{margin-left:6px}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item.haveParent[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]{border-radius:0 var(--radius-small) var(--radius-small) 0}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item.haveParent[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:not(.active){border-left:solid 1px var(--light-dark)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:4px 8px;border-radius:0 var(--radius-small) var(--radius-small) var(--radius-small);transition:all .3s ease-in-out;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;border-left:solid 1px transparent;gap:var(--space-smaller)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:hover{color:var(--primary)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:hover   *[_ngcontent-%COMP%]{color:var(--primary)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:not(.active){border-radius:0}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link.active[_ngcontent-%COMP%]{background-color:var(--changeable-light);font-weight:600}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]   .link-text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:first-letter{text-transform:capitalize}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]   .openUrl-icon[_ngcontent-%COMP%]{width:16px;min-width:16px;height:16px;color:var(--medium);font-size:16px;transition:opacity .3s ease-in-out}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{min-width:24px;transition:all .3s ease-in-out;transform-origin:center}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]   .expand-icon.active[_ngcontent-%COMP%]{transform:rotate(90deg)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:hover{color:var(--primary);border-left:solid 1px var(--light-dark);gap:var(--space-small)}[_nghost-%COMP%]   .sidenav-list[_ngcontent-%COMP%]   .sidenav-item[_ngcontent-%COMP%]   .sidenavItem-link[_ngcontent-%COMP%]:hover.active{border-left:solid 1px transparent!important}"]})}}return i})();var vi=["componentLoaderContainer"],bi=["*"];function yi(i,d){if(i&1&&(o(0,"aside",0)(1,"a",1),_(2),f(3,"translate"),r(),o(4,"megaCMS-nav-items-fragment",2),c("onHoverInteraction",function(){return!0}),r(),E(5),r()),i&2){let e=l();a(),g("href",e.attributes.url?e.attributes.url:e.attributes.page==null?null:e.attributes.page.slug,T),a(),b(" ",M(3,3,e.attributes.title)," "),a(2),g("items",e.attributes.items)}}var Bt=(()=>{class i extends q{constructor(e,n){super(),this.megaphoneMenuService=e,this.service=n,this.shallEdit=!1}_doSubscription(){this.attributes||this.megaphoneMenuService.sidebarMenu$.pipe(I(e=>!!e),x(this._unsubscribe$)).subscribe(e=>{this.attributes=e})}static{this.\u0275fac=function(n){return new(n||i)(C(rt),C(P))}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-sidebar-layout"]],viewQuery:function(n,t){if(n&1&&z(vi,7,ae),n&2){let s;
3U(s=G())&&(t.componentLoaderContainer=s.first)}},inputs:{isOpen:"isOpen",attributes:"attributes"},features:[H([P]),L],ngContentSelectors:bi,decls:1,vars:1,consts:[[1,"sidebar-container"],[1,"list-title","truncate",3,"href"],[3,"onHoverInteraction","items"]],template:function(n,t){n&1&&(B(),m(0,yi,6,5,"aside",0)),n&2&&p(t.attributes?0:-1)},dependencies:[et,J,Ft,bt,$,A,ue,K],styles:["[_nghost-%COMP%]{--a-text-decoration: none}[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]{position:sticky;top:var(--navbar-height, 76px);border-radius:var(--radius) 0 var(--radius) 0;color:var(--changeable-black);background-color:var(--sidebar-background, var(--changeable-white))}@media(min-width:768px){[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]{max-width:240px;min-width:228px;padding-bottom:20px}}@media(max-width:767px){[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;padding:var(--layout-gap)}}[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]   .list-title[_ngcontent-%COMP%]{display:block;padding:12px;margin-bottom:2px;border-radius:var(--radius-small) 0;color:var(--primary-contrast);background-color:var(--primary);font-size:var(--h4);font-weight:600;transition:all .3s ease-in-out}@media(max-width:767px){[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]   .list-title[_ngcontent-%COMP%], [_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]   megaCMS-nav-items-fragment[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .sidebar-container[_ngcontent-%COMP%]   megaCMS-sidebar-loader[_ngcontent-%COMP%]{position:absolute;width:100%}"],data:{animation:[dt(),ct()]}})}}return i})();var Ht=()=>({base:"#000",dark:"#000",trans:"#000"}),wi=i=>({primary:i}),Pi=i=>({secondary:i});function Oi(i,d){if(i&1){let e=S();o(0,"button",11),c("click",function(){let t=u(e).$implicit,s=l(2);return h(s.setActualVersion(t))}),_(1),r()}if(i&2){let e=d.$implicit;v("active",e.published),a(),b(" v",e.version," ")}}function ki(i,d){if(i&1){let e=S();o(0,"div",17)(1,"div",20)(2,"strong"),_(3),f(4,"translate"),r(),o(5,"div",21)(6,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({layout:t.checked?"centered":"fullWidth"}))}),_(7),f(8,"translate"),r(),o(9,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({layout:t.checked?"fullWidth":"centered"}))}),_(10),f(11,"translate"),r()()(),o(12,"div",20)(13,"strong"),_(14),f(15,"translate"),r(),o(16,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({hideHeader:t.checked}))}),_(17),f(18,"translate"),r()()()}if(i&2){let e=l(3);a(3),V(M(4,8,"PAGE_LAYOUT")),a(3),g("checked",(e.page.attributes==null?null:e.page.attributes.layout)==="centered"),a(),b(" ",M(8,10,"CENT
3ERED")," "),a(2),g("checked",(e.page.attributes==null?null:e.page.attributes.layout)==="fullWidth"),a(),b(" ",M(11,12,"FULL_WIDTH")," "),a(4),V(M(15,14,"HEADER")),a(2),g("checked",e.page.attributes==null?null:e.page.attributes.hideHeader),a(),b(" ",M(18,16,"HIDE")," ")}}function Ii(i,d){if(i&1){let e=S();o(0,"div",18)(1,"div",20)(2,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({hideBreadcrumb:t.checked}))}),_(3),f(4,"translate"),r(),o(5,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({hideSidebar:t.checked}))}),_(6),f(7,"translate"),r()()()}if(i&2){let e=l(3);a(2),g("checked",e.page.attributes==null?null:e.page.attributes.hideBreadcrumb),a(),b(" ",M(4,4,"HIDE_BREADCRUMB")," "),a(2),g("checked",e.page.attributes==null?null:e.page.attributes.hideSidebar),a(),b(" ",M(7,6,"HIDE_SIDENAV")," ")}}function Ti(i,d){if(i&1){let e=S();o(0,"mega-modal-colors-fragment",24),c("emitNewColorShades",function(t){u(e);let s=l(4);return h(s.updateAttributes(t))}),r()}if(i&2){let e=l(4);g("itemForm",e.itemForm)("colorShades",xe(3,wi,(e.page.attributes==null?null:e.page.attributes.primary)||ye(2,Ht)))}}function Ei(i,d){if(i&1){let e=S();o(0,"mega-modal-colors-fragment",24),c("emitNewColorShades",function(t){u(e);let s=l(4);return h(s.updateAttributes(t))}),r()}if(i&2){let e=l(4);g("itemForm",e.itemForm)("colorShades",xe(3,Pi,(e.page.attributes==null?null:e.page.attributes.secondary)||ye(2,Ht)))}}function Li(i,d){if(i&1){let e=S();o(0,"div",19)(1,"mat-checkbox",22),c("change",function(t){u(e);let s=l(3);return h(s.updateAttributes({customColor:t.checked}))}),_(2),f(3,"translate"),r(),m(4,Ti,1,5,"mega-modal-colors-fragment",23),m(5,Ei,1,5,"mega-modal-colors-fragment",23),r()}if(i&2){let e=l(3);a(),g("checked",e.page.attributes==null?null:e.page.attributes.customColor),a(),b(" ",M(3,4,"CUSTOM_COLOR")," "),a(2),p(e.page.attributes!=null&&e.page.attributes.customColor?4:-1),a(),p(e.page.attributes!=null&&e.page.attributes.customColor?5:-1)}}function Vi(i,d){if(i&1){let e=S();o(0,"div",12),c("click",function(t){return t.stopPropagation()}),o(1,"div",13)(2,"div",14)(3,"button",15),c("click",function(){u(e);let t=l(2);return t.showLayoutSettings=!0,t.showNavigationSettings=!1,h(t.shwColorSettings=!1)}),o(4,"mat-icon"),_(5,"view_quilt"),r(),_(6),f(7,"translate"),r(),o(8,"button",15),c("click",function(){u(e);let t=l(2);return t.showLayoutSettings=!1,t.showNavigationSettings=!0,h(t.shwColorSettings=!1)}),o(9,"mat-icon"),_(10,"menu"),r(),_(11),f(12,"translate"),r(),o(13,"button",15),c("click",function(){u(e);let t=l(2);return t.showLayoutSettings=!1,t.showNavigationSettings=!1,h(t.shwColorSettings=!0)}),o(14,"mat-icon"),_(15,"invert_colors"),r(),_(16),f(17,"translate"),r()(),o(18,"div",16),m(19,ki,19,18,"div",17),m(20,Ii,8,8,"div",18),m(21,Li,6,6,"div",19),r()()()}if(i&2){let e=l(2);a(6),b(" ",M(7,6,"PAGE_LAYOUT")," "),a(5),b(" ",M(12,8,"NAVIGATION")," "),a(5),b(" ",M(17,10,"CUSTOM_COLOR")," "),a(3),p(e.showLayoutSettings?19:-1),a(),p(e.showNavigationSettings?20:-1),a(),p(e.shwColorSettings?21:-1)}}function Fi(i,d){if(i&1){let e=S();o(0,"div",3),c("click",function(){u(e);let t=l();return h(t.showPageSettings=!1)}),o(1,"button",4),_(2),f(3,"translate"),o(4,"p",5),_(5),o(6,"em"),_(7),r()()(),o(8,"button",6),_(9),f(10,"async"),r(),o(11,"button",7),c("click",function(t){u(e);let s=l();return s.showPageSettings=!0,h(t.stopPropagation())}),o(12,"mat-icon"),_(13,"settings"),r()(),o(14,"mat-menu",null,0)(16,"button",8),c("click",function(){u(e);let t=l();return h(t.togglePublished())}),o(17,"mat-icon"),_(18),r(),o(19,"span"),_(20),f(21,"translate"),r()()(),o(22,"mat-menu",null,1),N(24,Oi,2,3,"button",9,W),f(26,"async"),r(),m(27,Vi,22,12,"div",10),r()}if(i&2){let e=be(15),n=be(23),t=l();v("isNotPublished",!t.page.published)("active",t.showPageSettings),a(),g("matMenuTriggerFor",e),a(),b(" ",M(3,13,t.page.published?"PUBLIC":"DRAFT")," "),a(3),b(" ",t.page.title,": "),a(2),V(t.page.id),a(),g("matMenuTriggerFor",n),a(),b(" v",M(10,15,t.service.actualVersion$).version," "),a(9),V(t.page.published?"visibility_off":"visibility"),a(2),b(" ",M(21,17,t.page.published?"UNPUBLISH":"PUBLISH")),a(4),j(M(26,19,t.service.pageVersions$)),a(3),p(t.showPageSettings?27:-1)}}var At=(()=>{class i extends q{constructor(e,n){super(),this.service=e,this._httpClient=n,this.enableSettings=!1,this.showLayoutSettings=!0,this.itemForm=new Ne({})}_doSubscription(){this.service.attributes$.pipe(I(e=>!!e?.attributes),x(this._unsubscribe$)).subscribe(e=>k(this,null,function*(){this.page=e})),this.service.displayMode$.pipe(x(this._unsubscribe$)).subscribe(e=>{this.enableSettings=e==="edition"}),this.service.actualVersion$.pipe(x(this._unsubscribe$)).subscribe(e=>k(this,null,function*(){e&&(this.actualVersionId=e.id)}
3))}togglePublished(){let e="/publish";this.page.published&&(e="/unpublish"),this.page.published=!this.page.published,this._httpClient.post(`${this.service.baseUrl}${this.service.endpoint}/pages/${this.page.id}/versions/${this.actualVersionId}${e}`,"").subscribe(()=>{})}setActualVersion(e){}updateAttributes(e){return k(this,null,function*(){this.page.attributes=ee(ee({},this.page.attributes),e),yield this.service.updateAttributes(this.page,"/pages"),this.service.reload()})}static{this.\u0275fac=function(n){return new(n||i)(C(D),C(le))}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-page-settings-component"]],standalone:!1,features:[L],decls:1,vars:1,consts:[["matMenuStatus","matMenu"],["matMenuVersions","matMenu"],[1,"pageSettings-container",3,"isNotPublished","active"],[1,"pageSettings-container",3,"click"],["mat-flat-button","",1,"toggle-button",3,"matMenuTriggerFor"],[1,"pageSettings-title"],["mat-flat-button","",1,"pageVersion-button",3,"matMenuTriggerFor"],["mat-icon-button","",1,"pageSettings-button",3,"click"],["aria-label","Toggle-status","mat-menu-item","",3,"click"],["mat-menu-item","",3,"active"],[1,"settingsEdition-container"],["mat-menu-item","",3,"click"],[1,"settingsEdition-container",3,"click"],[1,"settingsEdition-innerContainer"],[1,"settingsSelection-list"],["mat-flat-button","",3,"click"],[1,"settingsValues-list"],[1,"layoutSettings-list"],[1,"layoutNavigation-list"],[1,"layoutColor-list"],[1,"list-container"],[1,"checkBox-list"],[3,"change","checked"],[1,"config-item-container",3,"itemForm","colorShades"],[1,"config-item-container",3,"emitNewColorShades","itemForm","colorShades"]],template:function(n,t){n&1&&m(0,Fi,28,21,"div",2),n&2&&p(t.page&&t.enableSettings?0:-1)},dependencies:[me,ce,Z,nt,it,at,Ze,pe,se,K],styles:["[_nghost-%COMP%]{--current: var(--success)}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;border:solid 0 transparent;transition:border .3s ease-in-out;z-index:var(--z-index-highest);box-sizing:border-box}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]:not(.active){pointer-events:none}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]{z-index:1;position:absolute;top:0;right:64px;pointer-events:all}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsEdition-innerContainer[_ngcontent-%COMP%]{display:flex;padding-top:var(--space-smaller);padding-bottom:var(--space-smaller);border-radius:0 0 var(--radius) var(--radius);background-color:var(--changeable-white);transition:all .25s;box-shadow:0 1px 1px #00000024,0 2px 1px -1px #0000001f,0 1px 3px #0003}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsSelection-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsSelection-list[_ngcontent-%COMP%]   .mdc-button[_ngcontent-%COMP%]{height:48px;text-align:left}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsValues-list[_ngcontent-%COMP%]{padding-right:var(--space-smaller);padding-left:var(--space-smaller);border-left:solid 1px var(--medium-light)}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsValues-list[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:var(--space-smaller)}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .settingsEdition-container[_ngcontent-%COMP%]   .settingsValues-list[_ngcontent-%COMP%]   .list-container[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%] > .mdc-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%] > .mdc-icon-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;top:-28px;height:40px;border-radius:0;color:var(--dark);background-color:var(--current);font-weight:600;transition:top .3s ease-in-out;pointer-events:all}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%] > .mdc-button[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%] > .mdc-icon-button[_ngcontent-%COMP%]:hover{top:-8px}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .mat-primary[_ngcontent-%COMP%]{width:248px;margin:var(--space) var(--space) 0 var(--space)}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .toggle-button[_ngcontent-%COMP%]{right:154px}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .toggle-button[_ngcontent-%COMP%]   .pageSettings-title[_ngcontent-%COMP%]{position:absolute;top:50%;left:-26px;color:var(--current);transform:translate(-100%,-50%);white-space:nowrap}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .pageVersion-button[_ngcontent-%COMP%]{right:100px;min-width:46px;padding:0 8px}[_nghost-%COMP%]   .pageSettings-container[_ngcontent-%COMP%]   .pageSettings-button[_ngcontent-%COMP%]{right:46px;min-width:46px;padding:0 8px}[_nghost-%COMP%]   .pageSettings-container.isNotPublished[_ngcontent-%COMP%]{--current: var(--warning);border:solid 4px var(--current)}[_nghost-%COMP%]   .pageSettings-container.isNotPublished[_ngcontent-%COMP%]   .mdc-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .pageSettings-container.isNotPublished[_ngcontent-%COMP%]   .mdc-icon-button[_ngcontent-%COMP%]{top:-8px}"]})}}return i})();var $t=(()=>
3{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=oe({type:i})}static{this.\u0275inj=ie({imports:[Y,J,$,A,ot,Ke,pe]})}}return i})();var Hi=["*",[["","position-top",""]]],Ai=["*","[position-top]"];function $i(i,d){if(i&1&&y(0,"megaCMS-header-layout",1),i&2){let e=l();g("page",e.content)("fakeTitle",e.fakeTitle)}}function Di(i,d){i&1&&(o(0,"div",3),E(1,1),r())}function Ri(i,d){if(i&1){let e=S();o(0,"megaCMS-sidebar-loader",7),c("emitIsEmpty",function(t){u(e);let s=l(2);return h(s.setIsRightSideBarEmpty(t))}),r()}}function Wi(i,d){if(i&1&&(o(0,"megaCMS-sidebar-layout",5),m(1,Ri,1,0,"megaCMS-sidebar-loader"),r()),i&2){let e=l();g("attributes",e.fixSidebarMenu),a(),p(e.sideBarPosition==="left"||e.isRightSidebarEmpty?1:-1)}}function Ni(i,d){if(i&1){let e=S();o(0,"megaCMS-sidebar-loader",8),c("emitIsEmpty",function(t){u(e);let s=l();return h(s.setIsRightSideBarEmpty(t))}),r()}}var Ja=(()=>{class i extends q{constructor(e,n,t,s){super(),this.service=e,this._activatedRoute=n,this.viewportRuler=t,this.ngZone=s,this.disableHeader=!1,this.disableSidebar=!1,this.fullWidth=!1,this.isRightSidebarEmpty=!0,this.minSectionHeight="100vh"}_extendedOnInit(){let e=document.getElementById("footerComponent");e?this.minSectionHeight=window.innerHeight-e.offsetHeight+"px":console.warn('Megaphone: if you\'re using a custom footer, please do ad `id="footerComponent` to it"')}_initSubscriber(){!this.disableSidebar&&!this.fullWidth&&this.attributes&&this.attributes.layout!=="fullWidth"&&(this.sideBarPosition||this._setIsSidebarRight(),this._viewportChange$||(this._viewportChange$=this.viewportRuler.change(200).subscribe(()=>this.ngZone.run(()=>this._setIsSidebarRight()))))}_initSubscription(){this.syncedWithPlugin?this._activatedRoute.params.pipe(x(this._unsubscribe$)).subscribe(e=>{this.actualRouteParamsId=e.id||"",this._doSubscription()}):this._doSubscription()}_doSubscription(){this.service.attributes$.pipe(I(e=>e?.id&&e.id!=0),x(this._unsubscribe$)).subscribe(e=>k(this,null,function*(){this.attributes=e.attributes,this.content=e,this.disableHeader||(this.disableHeader=this.attributes?.hideHeader),this.disableSidebar||(this.disableSidebar=this.attributes?.hideSidebar),(this.attributes?.layout==="fullWidth"||this.disableSidebar)&&(this.sideBarPosition=null),this._setFullWidth(this.attributes?.layout),this._initSubscriber()}))}_extendedDestroy(){this._viewportChange$?.unsubscribe()}_setFullWidth(e){e==="fullWidth"||this.fullWidth?document.body.classList.add("fullWidth"):document.body.classList.remove("fullWidth")}setIsRightSideBarEmpty(e){this.isRightSidebarEmpty=e,e?document.body.classList.remove("haveRightSideBar"):document.body.classList.add("haveRightSideBar")}_setIsSidebarRight(){let{width:e,height:n}=this.viewportRuler.getViewportSize();this.sideBarPosition=e>1270?"right":"left"}static{this.\u0275fac=function(n){return new(n||i)(C(D),C(Je),C(je),C(Le))}}static{this.\u0275cmp=w({type:i,selectors:[["megaCMS-page-layout"]],inputs:{disableHeader:"disableHeader",disableSidebar:"disableSidebar",fullWidth:"fullWidth",syncedWithPlugin:"syncedWithPlugin",fixSidebarMenu:"fixSidebarMenu",fakeTitle:"fakeTitle"},features:[H([X]),L],ngContentSelectors:Ai,decls:10,vars:12,consts:[["id","main-content",1,"main-container"],[3,"page","fakeTitle"],[1,"main-innerContainer"],[1,"main-topContainer"],[1,"sub-container"],[1,"left-side",3,"attributes"],[1,"right-side"],[3,"emitIsEmpty"],[1,"right-side",3,"emitIsEmpty"]],template:function(n,t){n&1&&(B(Hi),y(0,"megaCMS-page-settings-component"),o(1,"main",0),m(2,$i,1,2,"megaCMS-header-layout",1),o(3,"section",2),m(4,Di,2,0,"div",3),o(5,"article",4),m(6,Wi,2,2,"megaCMS-sidebar-layout",5),f(7,"async"),E(8),m(9,Ni,1,0,"megaCMS-sidebar-loader",6),r()()()),n&2&&(a(),Q("min-height",t.minSectionHeight),a(),p(t.disableHeader?-1:2),a(),v("fullWidth",t.fullWidth||(t.attributes==null?null:t.attributes.layout)==="fullWidth")("isRightSideBarEmpty",!0),a(),p(!t.fullWidth&&(t.attributes==null?null:t.attributes.layout)!=="fullWidth"?4:-1),a(2),p(t.sideBarPosition&&M(7,10,t.service.displayMode$)!=="stripped"?6:-1),a(3),p(t.sideBarPosition==="right"&&!t.isRightSidebarEmpty?9:-1))},dependencies:[Y,Lt,Et,Tt,$t,At,Bt,se],styles:[`megaCMS-page-layout.singleItem fragment-card .text-container{max-height:unset!important}megaCMS-page-layout.singleItem fragment-card .more-text{display:none!important}
3megaCMS-page-layout megaCMS-header-layout .decreaseOrder-button,megaCMS-page-layout megaCMS-header-layout .increaseOrder-button{display:none}megaCMS-page-layout .container,megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth){max-width:var(--new-container-max-with, var(--container-max-width));margin-right:auto;margin-left:auto}megaCMS-page-layout .main-container{background-color:var(--background-color, var(--changeable-white))}megaCMS-page-layout .main-container .main-topContainer{padding-top:20px;margin-bottom:28px}megaCMS-page-layout .main-container .main-innerContainer{position:relative}megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) megaphone-layout .expand-button{display:none}megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) megaphone-layout megaphone-layout .expand-button{display:block}megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) .sub-container{display:flex}@media(min-width:992px){megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) .sub-container{gap:30px}}@media(max-width:767px){megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) .sub-container{flex-direction:column-reverse}}megaCMS-page-layout .main-container .main-innerContainer:not(.fullWidth) .sub-container>*:last-child{flex-grow:1}
4`],encapsulation:2})}}return i})();export{Vt as a,Ft as b,Pt as c,Tt as d,Lt as e,Ja as f};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.