PageSourceSearch

https://www.der3.com/components-wrapper.component-MEQPEIV6.js

js der3.com collected 2026-09-30 19:56:19 UTC 58,953 bytes, 15 lines download raw bytes

1import{a as Rt}from"./chunk-GURNT64G.js";import{a as Ot}from"./chunk-S2FQRLZ6.js";import{a as kt}from"./chunk-E3JLRNOM.js";import{a as Fe,b as Re}from"./chunk-UGVPFSLD.js";import{a as Ft}from"./chunk-BXGWWZY7.js";import"./chunk-IQZ2U77B.js";import{a as Mt}from"./chunk-KDEM2XRO.js";import{a as Dt}from"./chunk-A27UGKKN.js";import{c as Me,d as Tt}from"./chunk-WOMGUBDG.js";import{e as At}from"./chunk-PEPRCDLI.js";import{i as It}from"./chunk-M47Y6NKE.js";import"./chunk-SPAKVS62.js";import"./chunk-4EDVK7TD.js";import"./chunk-2KXGZPPF.js";import"./chunk-ZZRV5ZVI.js";import{a as wt}from"./chunk-XAVED4QJ.js";import"./chunk-CLA6N56S.js";import{a as M}from"./chunk-D4FFNISE.js";import"./chunk-OGJXIMJ3.js";import{c as Z,e as Et}from"./chunk-OJ25ACI2.js";import"./chunk-5YRQAJDA.js";import{a as B,k as xt,m as De,q as ke,r as bt,z as Ae}from"./chunk-6HYWAW76.js";import{$b as he,Aa as ce,Ba as ue,Bb as Q,Fb as U,Fc as Ee,Ga as xe,Gc as we,Hb as vt,Hc as Ie,Ka as ft,Kc as Qe,Lb as _,Lc as W,Mc as Te,Na as _t,Vb as gt,Wc as A,Xb as v,Xc as Ct,Yc as T,ac as yt,bc as me,ea as mt,ec as X,f as ht,hc as w,ic as R,ka as K,kc as O,kd as fe,lc as P,mc as x,nc as b,oc as k,pa as $,qa as Se,rc as Ke,rd as St,sc as be,tb as S,w as pe,xc as de,yc as p,za as dt,zb as h}from"./chunk-HGT463J2.js";import{a as ct,b as ut,i as Ce}from"./chunk-Z2O5QKTL.js";var Oe=class t{constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})};var J=class t{constructor(e,i){this._platformService=e;this._ssrDocument=i;e.isPlatformBrowser&&(window.elementsRefService=this)}elementsRef=[];addElementRef(e){this.elementsRef.push(e)}removeAll(){this.elementsRef.forEach(e=>{try{this._ssrDocument.head.removeChild(e)}catch(i){console.log(e,i)}}),this.elementsRef=[]}static \u0275fac=function(i){return new(i||t)($(M),$(B))};static \u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})},ee=class t{constructor(e,i,n,o,r){this._platformService=e;this.el=i;this.document=n;this.stateService=o;this._headElementsRefService=r}settings;settingsWithSettingsKey;boxShadowColor;boxShadow;boxShadowHorizon;cssTo;jsTo;ngOnInit(){this.settings=this.settingsWithSettingsKey.settings,this.setComponentStyle(this.settings)}setComponentStyle(e){if(e.published!=!1){if(e.backgroundType=="color"&&e.backgroundColor&&(this.el.nativeElement.style.backgroundColor=e.backgroundColor),e.backgroundType=="image"&&e.backGroundUrl&&(this.el.nativeElement.style.backgroundImage="url("+e.backGroundUrl+")",this.el.nativeElement.style.backgroundPosition=e.positionImage,this.el.nativeElement.style.backgroundRepeat=e.repeatImage,this.el.nativeElement.style.backgroundSize=e.sizeImage),e.backgroundType=="image"&&e.backGroundUrl&&e.overlay){var i=this.document.createElement("div");i.innerHTML=e.overlayText,i.setAttribute("class","overlay"),i.setAttribute("style",`
2       background-color: ${e.overlayColor};
3       position: absolute;
4       top: 0;
5       bottom: 0; 
6       left: 0;
7       right: 0;
8       height: 100%;
9       width: 100%;
10       opacity: 0.5;
11       transition: .5s ease;
12       `),this.el.nativeElement.appendChild(i)}e.height=="min-height"&&(this.el.nativeElement.style.height=e.minHeight+"px",this.el.nativeElement.style.overflow=e.overflow,this.el.nativeElement.style.overflowX="hidden"),e.alignment!="none"&&(this.el.nativeElement.style.textAlign=e.alignment),e.marginTop&&e.marginTop!=0&&(this.el.nativeElement.style.marginTop=e.marginTop+"px"),e.marginRight&&e.marginRight!=0&&(this.el.nativeElement.style.marginRight=e.marginRight+"px"),e.marginBottom&&e.marginBottom!=0&&(this.el.nativeElement.style.marginBottom=e.marginBottom+"px"),e.marginLeft&&e.marginLeft!=0&&(this.el.nativeElement.style.marginLeft=e.marginLeft+"px"),e.paddingTop&&e.paddingTop!=0&&(this.el.nativeElement.style.paddingTop=e.paddingTop+"px"),e.paddingRight&&e.paddingRight!=0&&(this.el.nativeElement.style.paddingRight=e.paddingRight+"px"),e.paddingBottom&&e.paddingBottom!=0&&(this.el.nativeElement.style.paddingBottom=e.paddingBottom+"px"),e.paddingLeft&&e.paddingLeft!=0&&(this.el.nativeElement.style.paddingLeft=e.paddingLeft+"px"),e.textColor&&(this.el.nativeElement.style.color=e.textColor),e.textWeight!="default"&&(this.el.nativeElement.style.fontWeight=e.textWeight),e.textSize&&(this.el.nativeElement.style.fontSize=e.textSize+"px"),e.textTransform!="default"&&(this.el.nativeElement.style.textTransform=e.textTransform),e.textStyle!="default"&&(this.el.nativeElement.style.fontStyle=e.textStyle),e.textDecoration!="default"&&(this.el.nativeElement.style.textDecoration=e.textDecoration),e.borderType!="none"&&e.borderTop&&(this.el.nativeElement.style.borderTop=e.borderTop+"px"),e.borderType!="none"&&e.borderRight&&(this.el.nativeElement.style.borderRight=e.borderRight+"px"),e.borderType!="none"&&e.borderBottom&&(this.el.nativeElement.style.borderBottom=e.borderBottom+"px"),e.borderType!="none"&&e.borderLeft&&(this.el.nativeElement.style.borderLeft=e.borderLeft+"px"),e.borderBottomLeftRadius&&(this.el.nativeElement.style.borderBottomLeftRadius=e.borderBottomLeftRadius+"px"),e.borderBottomRightRadius&&(this.el.nativeElement.style.borderBottomRightRadius=e.borderBottomRightRadius+"px"),e.borderTopLeftRadius&&(this.el.nativeElement.style.borderTopLeftRadius=e.borderTopLeftRadius+"px"),e.borderTopRightRadius&&(this.el.nativeElement.style.borderTopRightRadius=e.borderTopRightRadius+"px"),this.el.nativeElement.style.borderStyle=e.borderType||"",e.boxShadowColor&&(this.boxShadow=e.boxShadowColor+" "),e.boxShadowHorizon&&(this.boxShadowHorizon=e.boxShadowHorizon+"px "),e.boxShadowVertical&&(this.boxShadow=this.boxShadow+e.boxShadowVertical+"px "),e.boxShadowBlur&&(this.boxShadow=this.boxShadow+e.boxShadowBlur+"px "),e.boxShadowSpread&&(this.boxShadow=this.boxShadow+e.boxShadowSpread+"px "),e.boxShadowPosition=="inset"&&(this.boxShadow=this.boxShadow+"inset "),this.boxShadow&&(this.el.nativeElement.style.boxShadow=`${this.boxShadow}`),e.CSS&&this.setCSS(e.CSS,e.blockType),e.JS&&this.setJS(e.JS,e.blockType)}}setCSS(e,i){let n=i+"-css-"+this.settingsWithSettingsKey.key,o=this.document.getElementById(n);o||(o=this.document.createElement("style"),o.type="text/css",o.id=n,this.document.head.appendChild(o)),o.innerHTML=e,this._headElementsRefService.elementsRef.includes(o)||this._headElementsRefService.addElementRef(o)}setJS(e,i){if(this._platformService.isPlatformBrowser){let n=i+"-js-"+this.settingsWithSettingsKey.key,o=this.document.getElementById(n);o||(o=this.document.createElement("script"),o.type="text/javascript",o.id=n,this.document.head.appendChild(o)),o.innerHTML=e,this._headElementsRefService.elementsRef.includes(o)||this._headElementsRefService.addElementRef(o)}}static \u0275fac=function(i){return new(i||t)(h(M),h(_t),h(B),h(At),h(J))};static \u0275dir=vt({type:t,selectors:[["","htmlElementSettings",""]],inputs:{settingsWithSettingsKey:[0,"htmlElementSettings","settingsWithSettingsKey"]}})};var ii=["content"];function ni(t,e){}var te=class t{constructor(e,i,n,o,r,a,s,c,u){this._componentFactoriesRepositoryService=e;this._injector=i;this.document=n;this.route=o;this.dataChashingService=r;this.moduleService=a;this.authService=s;this._headElementsRefService=c;this._platformService=u}content;settings;notFoundComponent=!1;ngOnDestroy(){}ngOnInit(){try{let e=this._componentFactoriesRepositoryService.get(this.settings.componentName);e||(e=this._componentFactoriesRepositoryService.get("PlaceholderComponent"),this.notFoundComponent=!0);let i=this.content.createComponent(e,{injector:this._injector});this.notFoundComponent&&i.setInput("componentName",this.settings.componentName),this.settings.setting=this.settings.setting&&typeof this.settings.setting=="object"?this.settings.setting:{},this.settings.setting=ut(ct({},this.settings.setting),{uniqeComponentSettingsId:this.settings.componentSettingsId,componentNameSettings:this.settings.componentName}),i.setInput("settings",this.settings.setting),i.setInput("data",{moduleService:this.moduleService,dataChashingService:this.dataChashingService,authService:this.authService,route:this.route})}catch(e){console.error(`${this.settings.componentName} => ${e}`)}this.loadComponentCss(this.settings.componentName+this.settings.id+this.settings.componentSettingsId,this.settings.setting),this.loadJs(this.settings.componentName+this.settings.id+this.settings.componentSettingsId,this.settings.setting),this.loadImports(this.settings.componentName+this.settings.id+this.settings.componentSettingsId,this.settings.Imports)}loadImports(e,i){if(i){let n=this.document.getElementsByTagName("head")[0];for(let o=0;o<i.length;o++){let r=i[o],a=this.document.createElement("script");a.type=r.type,a.id=e,a.src=r.link,n.appendChild(a)}}}loadJs(e,i){if(i.js&&this._platformService.isPlatformBrowser){let n=this.document.getElementsByTagName("head")[0],o=this.document.createElement("script");o.async=!0,o.defer=!0,o.id=e+"script",o.appendChild(this.document.createTextNode("try{"+i.js+"}catch(err){}")),n.appendChild(o),o.innerHTML=i.js,this._headElementsRefService.elementsRef.includes(o)||this._headElementsRefService.addElementRef(o)}}loadComponentCss(e,i){if(i.css){let n=this.document.createElement("style");n.type="text/css",n.id=e,this.document.head.querySelector(`#${e}`)&&this.document.head.removeChild(this.document.head.querySelector(`#${e}`)),n.appendChild(this.document.createTextNode(i.css)),this.document.head.appendChild(n),n.innerHTML=i.css,this._headElementsRefService.elementsRef.includes(n)||this._headElementsRefService.addElementRef(n)}}static \u0275fac=function(i){return new(i||t)(h(Ft),h(xe),h(B),h(Z),h(Oe),h(Fe),h(Re),h(J),h(M))};static \u0275cmp=U({type:t,selectors:[["app-ui-component-viewer"]],viewQuery:function(i,n){if(i&1&&Ee(ii,7,Q),i&2){let o;we(o=Ie())&&(n.content=o.first)}},inputs:{settings:"settings"},decls:2,vars:0,consts:[["content",""],[1,""]],template:function(i,n){i&1&&_(0,ni,0,0,"ng-template",1,0,fe)},encapsulation:2})};var ai=["modalTemplate"],Pt=(t,e)=>({container:t,index1:e}),Ne=()=>({}),je=(t,e)=>({settings:t,key:e}),si=t=>({editMode:t});function li(t,e){t&1&&Ke(0)}function pi(t,e){if(t&1){let i=be();x(0,"div",3)(1,"h4",4),W(2),b(),x(3,"button",5),de("click",function(){ce(i);let o=p(4);return ue(o.closeModal())}),b()(),x(4,"div",6),_(5,li,1,0,"ng-container",7),b(),x(6,"div",8)(7,"button",9),de("click",function(){ce(i);let o=p(4);return ue(o.closeModal())}),W(8,"Close"),b()()}if(t&2){let i=p(2),n=i.$implicit,o=i.$index;p(2);let r=Qe(2);S(2),Te(n.title||"Modal"),S(3),v("ngTemplateOutlet",r)("ngTemplateOutletContext",T(3,Pt,n,o))}}function ci(t,e){if(t&1&&_(0,pi,9,6,"ng-template",null,1,fe),t&2){let i=p().$implicit;he(i.ModalClassName)}}function ui(t,e){t&1&&Ke(0)}function hi(t,e){if(t&1&&_(0,ui,1,0,"ng-container",7),t&2){let i=p(),n=i.$implicit,o=i.$index;p(2);let r=Qe(2);v("ngTemplateOutlet",r)("ngTemplateOutletContext",T(2,Pt,n,o))}}function mi(t,e){if(t&1&&_(0,ci,2,3,null,2)(1,hi,1,5,"ng-container"),t&2){let i=e.$implicit;w(i.showAsModal?0:1)}}function di(t,e){if(t&1&&O(0,mi,2,1,null,null,R),t&2){let i=p();
12P(i.settingsBody.containers)}}function fi(t,e){if(t&1){let i=be();x(0,"button",21),de("click",function(){ce(i);let o=p(2).$implicit,r=p(6);return ue(r.opendEditor(o.component))}),x(1,"h1"),W(2,"edit"),b()()}}function _i(t,e){if(t&1&&k(0,"app-ui-component-viewer",20),t&2){let i=p(2).$implicit,n=p(6);v("settings",n.getMergedSettings(i.component))}}function vi(t,e){if(t&1&&(_(0,fi,3,0,"button",18),x(1,"div",19),_(2,_i,1,1,"app-ui-component-viewer",20),b()),t&2){let i=p(),n=i.$implicit,o=i.$index,r=p(2).$implicit,a=p(4);v("ngIf",a.isEditMode),S(),X("",a.getViewCols(n,"sm")," ",a.getViewCols(n,"md")," ",a.getViewCols(n,"lg")," ",n.size==0?"col":""," ",n.blockClass?n.blockClass:""," "),v("htmlElementSettings",T(12,je,n,"inner"+o))("ngStyle",n.CSSInLine?a.parseJson(n.CSSInLine):A(15,Ne))("id",n.blockId?n.blockId:""),S(),w(n.component&&n.component.name&&n.component.blockStatus!=2&&r.published==!0?2:-1)}}function gi(t,e){if(t&1&&_(0,vi,3,16),t&2){let i=e.$implicit;w(i.published!=!1?0:-1)}}function yi(t,e){if(t&1&&(x(0,"div")(1,"div",17),O(2,gi,1,1,null,null,R),b()()),t&2){let i=p().$implicit;S(2),P(i.subCols)}}function Ci(t,e){if(t&1){let i=be();x(0,"button",21),de("click",function(){ce(i);let o=p(3).$implicit,r=p(4);return ue(r.opendEditor(o.component))}),x(1,"h1"),W(2,"edit"),b()()}}function Si(t,e){if(t&1&&(_(0,Ci,3,0,"button",18),k(1,"app-ui-component-viewer",20)),t&2){let i=p(2).$implicit,n=p(4);v("ngIf",n.isEditMode),S(),v("settings",n.getMergedSettings(i.component))}}function xi(t,e){if(t&1&&_(0,Si,2,2),t&2){let i=p().$implicit;w(i.component&&i.component.name&&i.component.blockStatus!=2?0:-1)}}function bi(t,e){if(t&1&&(x(0,"div",16),_(1,yi,4,0,"div")(2,xi,1,1),b()),t&2){let i=e.$implicit,n=e.$index,o=p(4);X("",o.getViewCols(i,"sm")," ",o.getViewCols(i,"md")," ",o.getViewCols(i,"lg")," ",i.size==0?"col":""," ",i.blockClass?i.blockClass:"",""),v("htmlElementSettings",T(12,je,i,"inner"+n))("ngStyle",i.CSSInLine?o.parseJson(i.CSSInLine):A(15,Ne))("ngClass",Ct(16,si,o.isEditMode))("id",i.blockId?i.blockId:""),S(),w(i.subCols&&i.published==!0?1:!i.subCols&&i.published==!0?2:-1)}}function Ei(t,e){if(t&1&&(x(0,"div",14),O(1,bi,3,18,"div",15,R),b()),t&2){let i=e.$implicit,n=e.$index,o=p(3);me("row ",i.blockClass?i.blockClass:""," ",o.isEditMode?"editMode":"",""),v("ngStyle",i.CSSInLine?o.parseJson(i.CSSInLine):A(7,Ne))("htmlElementSettings",T(8,je,i,"inner"+n))("id",i.blockId?i.blockId:""),S(),P(i.cols)}}function wi(t,e){if(t&1&&(x(0,"div",11)(1,"div",12),O(2,Ei,3,11,"div",13,R),b()()),t&2){let i=p(),n=i.container,o=i.index1,r=p();he(n.blockClass?"section-"+n.blockClass:""),v("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(10,Ne)),S(),me("",n.type=="full"?"container-fluid":"container"," ",n.blockClass?n.blockClass:"",""),v("id",n.blockId?n.blockId:"")("htmlElementSettings",T(11,je,n,"inner"+o)),S(),P(n.rows)}}function Ii(t,e){if(t&1&&_(0,wi,4,14,"div",10),t&2){let i=e.container;v("ngIf",i.published==!0)}}var Be=class t{constructor(e,i,n,o){this._platformService=e;this.editorService=i;this.modalService=n;this.store=o}settingsBody;previousSlug;ssrDocument=Se(B);modalTemplates;activeModalRef=null;destroy$=new ht;isEditMode=!1;arraysOfmodal=[];isThereContainersInModal=!1;ngOnInit(){if(this.createModalsArray(),this.editorService.isEditMode$.pipe(mt(this.destroy$)).subscribe(e=>{this.isEditMode=e}),this.isThereContainersInModal){let e=this.store.pipe(Tt(kt)).subscribe(i=>{this.openModalByIndex(i.containerModalName)})}}checkBlock(e){return this._platformService.isPlatformServer?!1:!!e.hideOnDesktop}getViewCols(e,i){return e.sizes&&e.sizes[i.toUpperCase()]?"col-"+i+"-"+e.sizes[i.toUpperCase()]:"col-"+i+"-"+e.size}getMergedSettings(e){return e.setting&&typeof e.setting=="object"&&(e.setting.source="page"),this.isEditMode?(e.editMode=!0,e):(e.editMode=!1,e)}opendEditor(e){e.setting.uniqeComponentSettingsId=e.componentSettingsId,e.setting.componentNameSettings=e.componentName,this.editorService.setSettings(e.setting)}parseJson(e){try{return JSON.parse(e)}catch{return{}}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.arraysOfmodal=[],this.modalService.dismissAll()}openModalByIndex(e){let i=this.arraysOfmodal.find(o=>e==o.modalName)?.index,n=this.modalTemplates?.toArray()||[];n[i]&&!this.modalService.hasOpenModals()&&(this.activeModalRef=this.modalService.open(n[i],{size:"xl",centered:!0,backdrop:"static"}))}createModalsArray(){this.arraysOfmodal=[];let e=0;this.settingsBody?.containers?.forEach((i,n)=>{i.modalName&&this.arraysOfmodal.push({index:e,modalName:i.modalName}),i.showAsModal&&(this.isThereContainersInModal=!0,e+=1)})}closeModal(){this.activeModalRef&&(this.activeModalRef.close(),this.activeModalRef=null)}static \u0275fac=function(i){return new(i||t)(h(M),h(Rt),h(It),h(Me))};static \u0275cmp=U({type:t,selectors:[["app-inner-page"]],viewQuery:function(i,n){if(i&1&&Ee(ai,5),i&2){let o;we(o=Ie())&&(n.modalTemplates=o)}},inputs:{settingsBody:"settingsBody",previousSlug:"previousSlug"},decls:3,vars:1,consts:[["containerContent",""],["modalTemplate",""],[3,"class"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"btn-close",3,"click"],[1,"modal-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"modal-footer"],["type","button",1,"btn","btn-secondary",3,"click"],[3,"class","ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"id","htmlElementSettings"],[3,"class","ngStyle","htmlElementSettings","id"],[3,"ngStyle","htmlElementSettings","id"],[3,"htmlElementSettings","class","ngStyle","ngClass","id"],[3,"htmlElementSettings","ngStyle","ngClass","id"],[1,"row"],[3,"click",4,"ngIf"],[3,"htmlElementSettings","ngStyle","id"],[3,"settings"],[3,"click"]],template:function(i,n){i&1&&_(0,di,2,0)(1,Ii,1,1,"ng-template",null,0,fe),i&2&&w(n.settingsBody!=null&&n.settingsBody.containers?0:-1)},dependencies:[Ae,xt,De,bt,ke,te,ee],encapsulation:2})};var _e=()=>({}),Le=(t,e)=>({settings:t,key:e});function Ti(t,e){if(t&1&&k(0,"app-inner-page",1),t&2){let i=p();v("settingsBody",i.slugSettingsBody)}}function Di(t,e){if(t&1&&(x(0,"p"),W(1),b(),k(2,"app-ui-component-viewer",11)),t&2){let i=p(4).$implicit;S(),Te(i.component.componentName),S(),v("settings",i.component)}}function ki(t,e){if(t&1&&k(0,"app-inner-page",10),t&2){let i=p(11);v("settingsBody",i.slugSettingsBody)}}function Ai(t,e){if(t&1&&(x(0,"div"),_(1,Di,3,2)(2,ki,1,1,"app-inner-page",10),b()),t&2){let i=p(3).$implicit,n=p(4).$implicit;S(),w(n.isBlog&&i.component&&i.component.name?1:n.isBlog?-1:2)}}function Mi(t,e){if(t&1&&k(0,"app-ui-component-viewer",11),t&2){let i=p(4).$implicit;v("settings",i.component)}}function Fi(t,e){if(t&1&&(x(0,"div"),_(1,Mi,1,1,"app-ui-component-viewer",11),b()),t&2){let i=p(3).$implicit;S(),w(i.component&&i.component.name&&i.component.blockStatus!=2?1:-1)}}function Ri(t,e){if(t&1&&(x(0,"div"),_(1,Ai,3,1,"div")(2,Fi,2,1,"div"),b()),t&2){let i=p(2).$implicit;S(),w(i.InnerPage?1:2)}}function Oi(t,e){if(t&1&&k(0,"app-ui-component-viewer",11),t&2){let i=p(3).$implicit;v("settings",i.component)}}function Pi(t,e){if(t&1&&k(0,"app-inner-page",1),t&2){let i=p(13);v("settingsBody",i.slugSettingsBody)}}function Bi(t,e){if(t&1&&_(0,Oi,1,1,"app-ui-component-viewer",11)(1,Pi,1,1,"app-inner-page",1),t&2){let i=p(2).$implicit,n=p(7).$implicit;w(n.isBlog&&i.component&&i.component.name?0:n.isBlog?-1:1)}}function Ni(t,e){if(t&1&&k(0,"app-ui-component-viewer",11),t&2){let i=p(3).$implicit;v("settings",i.component)}}
12function ji(t,e){if(t&1&&_(0,Ni,1,1,"app-ui-component-viewer",11),t&2){let i=p(2).$implicit;w(i.component&&i.component.name&&i.component.blockStatus!=2?0:-1)}}function Vi(t,e){if(t&1&&(x(0,"div",8),_(1,Bi,2,1)(2,ji,1,1),b()),t&2){let i=p(),n=i.$implicit,o=i.$index,r=p(10);X("",r.getViewCols(n,"sm")," ",r.getViewCols(n,"md")," ",r.getViewCols(n,"lg")," ",n.size==0?"col":""," ",n&&n.blockClass?n.blockClass:"",""),v("id",n&&n.blockId?n.blockId:"")("htmlElementSettings",T(11,Le,n,"template"+o))("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(14,_e)),S(),w(n.InnerPage&&n.__isVisible?1:!n.InnerPage&&n.__isVisible?2:-1)}}function Li(t,e){if(t&1&&_(0,Vi,3,15,"div",6),t&2){let i=e.$implicit;w(i.__isVisible?0:-1)}}function $i(t,e){if(t&1&&(x(0,"div",9),O(1,Li,1,1,null,null,R),b()),t&2){let i=p(2).$implicit;S(),P(i.subCols)}}function Ui(t,e){if(t&1&&(x(0,"div",8),_(1,Ri,3,1,"div")(2,$i,3,0,"div",9),b()),t&2){let i=p(),n=i.$implicit,o=i.$index,r=p(7);X("",r.getViewCols(n,"sm")," ",r.getViewCols(n,"md")," ",r.getViewCols(n,"lg")," ",n.size==0?"col":""," ",n.blockClass?n.blockClass:"",""),v("id",n.blockId?n.blockId:"")("htmlElementSettings",T(11,Le,n,"template"+o))("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(14,_e)),S(),w(!n.subCols&&n.__isVisible?1:n.subCols&&n.__isVisible?2:-1)}}function qi(t,e){if(t&1&&_(0,Ui,3,15,"div",6),t&2){let i=e.$implicit;w(i.__isVisible?0:-1)}}function Wi(t,e){if(t&1&&(x(0,"div",8),O(1,qi,1,1,null,null,R),b()),t&2){let i=p(),n=i.$implicit,o=i.$index,r=p(5);yt("row ",n.blockClass?n.blockClass:"",""),v("id",n.blockId?n.blockId:"")("htmlElementSettings",T(6,Le,n,"template"+o))("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(9,_e)),S(),P(n.cols)}}function Ji(t,e){if(t&1&&_(0,Wi,3,10,"div",7),t&2){let i=p(2).$implicit;v("ngIf",i.__isVisible)}}function Hi(t,e){if(t&1&&(x(0,"div",4)(1,"div",5),O(2,Ji,1,1,"div",6,R),b()()),t&2){let i=p(),n=i.$implicit,o=i.$index,r=p(3);he(n.blockClass?"section-"+n.blockClass:""),v("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(12,_e))("id",n.blockId?n.blockId:"")("htmlElementSettings",T(13,Le,n,"template"+o)),S(),me("",n.type=="full"?"container-fluid":"container"," ",n.blockClass?n.blockClass:"",""),v("id",n.blockId?n.blockId:"")("ngStyle",n.CSSInLine?r.parseJson(n.CSSInLine):A(16,_e)),S(),P(n.rows)}}function Gi(t,e){if(t&1&&_(0,Hi,4,17,"div",3),t&2){let i=e.$implicit;v("ngIf",i.__isVisible)}}function zi(t,e){if(t&1&&O(0,Gi,1,1,"div",2,R),t&2){let i=p(2);P(i.templateSettingsBody.containers)}}function Ki(t,e){if(t&1&&_(0,zi,2,0),t&2){let i=p();w(i.templateSettingsBody!=null&&i.templateSettingsBody.containers?0:-1)}}var Ve=class t{constructor(e,i,n,o,r){this._activatedRoute=e;this._platformService=i;this.viewContainerRef=n;this.authService=o;this.cdr=r}templateDataWrapped;templateSettingsBodyWrapped;slugDataWrapped;slugSettingsBodyWrapped;templateData;templateSettingsBody;slugData;userRoles=[4];userRolesSet=new Set;authSub;roleMemo=new WeakMap;slugSettingsBody;previousSlug="";ngOnChanges(e){}ngOnInit(){this.setUserRolesFromAuth(),this.applyWrappedInputs(),this.recomputeVisibility(),this.templateData=this.templateDataWrapped,this.templateSettingsBody=this.templateSettingsBodyWrapped;let e=this.templateSettingsBody;e&&e.containers?this.templateSettingsBody=e:this.templateSettingsBody&&!Object.keys(this.templateSettingsBody).length&&(this.templateSettingsBody=null),this.slugData=this.slugDataWrapped,this.slugSettingsBody=this.slugSettingsBodyWrapped}setUserRolesFromAuth(){let e=this.authService.getLoggedUser()?.roles??[4],i=this.toNumericArray(e);this.userRoles=i,this.userRolesSet=new Set(i),this.roleMemo=new WeakMap,this.recomputeVisibility()}toNumericArray(e){return(e??[]).map(i=>typeof i=="number"?i:Number(i)).filter(i=>Number.isFinite(i))}applyWrappedInputs(){this.templateData=this.templateDataWrapped,this.templateSettingsBody=this.templateSettingsBodyWrapped,this.slugData=this.slugDataWrapped,this.slugSettingsBody=this.slugSettingsBodyWrapped,this.templateSettingsBody&&!Object.keys(this.templateSettingsBody).length&&(this.templateSettingsBody=null)}recomputeVisibility(){let e=this.templateSettingsBody?.containers;if(!e?.length){this.cdr.markForCheck();return}e.forEach(i=>
12this.markVisibilityDeep(i)),this.cdr.markForCheck()}markVisibilityDeep(e){let i=e?.rolesAndAsigend??[],n=this.toNumericArray(i),o=n.length===0||n.some(a=>this.userRolesSet.has(a)),r=e?.published!==!1;e.__roleAllowed=o,e.__isVisible=o&&r,Array.isArray(e.rows)&&e.rows.forEach(a=>this.markVisibilityDeep(a)),Array.isArray(e.cols)&&e.cols.forEach(a=>this.markVisibilityDeep(a)),Array.isArray(e.subCols)&&e.subCols.forEach(a=>this.markVisibilityDeep(a))}checkIfUserHasRole(e){if(!e)return!0;let i=e,n=this.roleMemo.get(i);if(n!==void 0)return n;let o=this.toNumericArray(e.rolesAndAsigend??[]),r=o.length===0||o.some(a=>this.userRolesSet.has(a));return this.roleMemo.set(i,r),r}getViewCols(e,i){return e.sizes&&e.sizes[i.toUpperCase()]?"col-"+i+"-"+e.sizes[i.toUpperCase()]:"col-"+i+"-"+e.size}checkBlock(e){return this._platformService.isPlatformServer?!1:!!e.hideOnDesktop}parseJson(e){try{return JSON.parse(e)}catch{return{}}}trackByBlockOrIndex=(e,i)=>i?.blockId??i?.id??e;static \u0275fac=function(i){return new(i||t)(h(Z),h(M),h(Q),h(Re),h(St))};static \u0275cmp=U({type:t,selectors:[["app-dynamic-page"]],inputs:{templateDataWrapped:"templateDataWrapped",templateSettingsBodyWrapped:"templateSettingsBodyWrapped",slugDataWrapped:"slugDataWrapped",slugSettingsBodyWrapped:"slugSettingsBodyWrapped"},outputs:{previousSlug:"previousSlug"},features:[dt],decls:2,vars:2,consts:[["class","w-100",3,"settingsBody",4,"ngIf"],[1,"w-100",3,"settingsBody"],[3,"class","ngStyle","id","htmlElementSettings"],[3,"class","ngStyle","id","htmlElementSettings",4,"ngIf"],[3,"ngStyle","id","htmlElementSettings"],[3,"id","ngStyle"],[3,"class","id","htmlElementSettings","ngStyle"],[3,"class","id","htmlElementSettings","ngStyle",4,"ngIf"],[3,"id","htmlElementSettings","ngStyle"],[1,"row"],[3,"settingsBody"],[3,"settings"]],template:function(i,n){i&1&&_(0,Ti,1,1,"app-inner-page",0)(1,Ki,1,1),i&2&&(v("ngIf",!n.templateSettingsBody),S(),w(n.templateSettingsBody?1:-1))},dependencies:[te,Ae,De,ke,ee,Be],encapsulation:2})};var D="INUMBER",ae="IOP1",se="IOP2",le="IOP3",j="IVAR",G="IVARNAME",ne="IFUNCALL",$e="IFUNDEF",I="IEXPR",tt="IEXPREVAL",z="IMEMBER",Ue="IENDSTATEMENT",oe="IARRAY";function d(t,e){this.type=t,this.value=e??0}d.prototype.toString=function(){switch(this.type){case D:case ae:case se:case le:case j:case G:case Ue:return this.value;case ne:return"CALL "+this.value;case $e:return"DEF "+this.value;case oe:return"ARRAY "+this.value;case z:return"."+this.value;default:return"Invalid Instruction"}};function qe(t){return new d(ae,t)}function L(t){return new d(se,t)}function qt(t){return new d(le,t)}function et(t,e,i,n,o){for(var r=[],a=[],s,c,u,m,f=0;f<t.length;f++){var l=t[f],y=l.type;if(y===D||y===G)Array.isArray(l.value)?r.push.apply(r,et(l.value.map(function(ge){return new d(D,ge)}).concat(new d(oe,l.value.length)),e,i,n,o)):r.push(l);else if(y===j&&o.hasOwnProperty(l.value))l=new d(D,o[l.value]),r.push(l);else if(y===se&&r.length>1)c=r.pop(),s=r.pop(),m=i[l.value],l=new d(D,m(s.value,c.value)),r.push(l);else if(y===le&&r.length>2)u=r.pop(),c=r.pop(),s=r.pop(),l.value==="?"?r.push(s.value?c.value:u.value):(m=n[l.value],l=new d(D,m(s.value,c.value,u.value)),r.push(l));else if(y===ae&&r.length>0)s=r.pop(),m=e[l.value],l=new d(D,m(s.value)),r.push(l);else if(y===I){for(;r.length>0;)a.push(r.shift());a.push(new d(I,et(l.value,e,i,n,o)))}else if(y===z&&r.length>0)s=r.pop(),r.push(new d(D,s.value[l.value]));else{for(;r.length>0;)a.push(r.shift());a.push(l)}}for(;r.length>0;)a.push(r.shift());return a}function Wt(t,e,i){for(var n=[],o=0;o<t.length;o++){var r=t[o],a=r.type;if(a===j&&r.value===e)for(var s=0;s<i.tokens.length;s++){var c=i.tokens[s],u;c.type===ae?u=qe(c.value):c.type===se?u=L(c.value):c.type===le?u=qt(c.value):u=new d(c.type,c.value),n.push(u)}else a===I?n.push(new d(I,Wt(r.value,e,i))):n.push(r)}return n}function H(t,e,i){var n=[],o,r,a,s,c,u;if(it(t))return N(t,i);for(var m=t.length,f=0;f<m;f++){var l=t[f],y=l.type;if(y===D||y===G)n.push(l.value);else if(y===se)r=n.pop(),o=n.pop(),l.value==="and"?n.push(o?!!H(r,e,i):!1):l.value==="or"?n.push(o?!0:!!H(r,e,i)):l.value==="="?(s=e.binaryOps[l.value],n.push(s(o,H(r,e,i),i))):(s=e.binaryOps[l.value],n.push(s(N(o,i),N(r,i))));else if(y===le)a=n.pop(),r=n.pop(),o=n.pop(),l.value==="?"?n.push(H(o?r:a,e,i)):(s=e.ternaryOps[l.value],n.push(s(N(o,i),N(r,i),N(a,i))));else if(y===j)if(l.value in e.functions)n.push(e.functions[l.value]);else if(l.value in e.unaryOps&&e.parser.isOperatorEnabled(l.value))n.push(e.unaryOps[l.value]);else{var ge=i[l.value];if(ge!==void 0)n.push(ge);else throw new Error("undefined variable: "+l.value)}else if(y===ae)o=n.pop(),s=e.unaryOps[l.value],n.push(s(N(o,i)));else if(y===ne){for(u=l.value,c=[];u-- >0;)c.unshift(N(n.pop(),i));if(s=n.pop(),s.apply&&s.call)n.push(s.apply(void 0,c));else throw new Error(s+" is not a function")}else if(y===$e)n.push(function(){for(var Kt=n.pop(),Ge=[],Qt=l.value;Qt-- >0;)Ge.unshift(n.pop());var lt=n.pop(),ze=function(){for(var pt=Object.assign({},i),ye=0,Xt=Ge.length;ye<Xt;ye++)pt[Ge[ye]]=arguments[ye];return H(Kt,e,pt)};
12return Object.defineProperty(ze,"name",{value:lt,writable:!1}),i[lt]=ze,ze}());else if(y===I)n.push(Qi(l,e));else if(y===tt)n.push(l);else if(y===z)o=n.pop(),n.push(o[l.value]);else if(y===Ue)n.pop();else if(y===oe){for(u=l.value,c=[];u-- >0;)c.unshift(n.pop());n.push(c)}else throw new Error("invalid Expression")}if(n.length>1)throw new Error("invalid Expression (parity)");return n[0]===0?0:N(n[0],i)}function Qi(t,e,i){return it(t)?t:{type:tt,value:function(n){return H(t.value,e,n)}}}function it(t){return t&&t.type===tt}function N(t,e){return it(t)?t.value(e):t}function nt(t,e){for(var i=[],n,o,r,a,s,c,u=0;u<t.length;u++){var m=t[u],f=m.type;if(f===D)typeof m.value=="number"&&m.value<0?i.push("("+m.value+")"):Array.isArray(m.value)?i.push("["+m.value.map(Bt).join(", ")+"]"):i.push(Bt(m.value));else if(f===se)o=i.pop(),n=i.pop(),a=m.value,e?a==="^"?i.push("Math.pow("+n+", "+o+")"):a==="and"?i.push("(!!"+n+" && !!"+o+")"):a==="or"?i.push("(!!"+n+" || !!"+o+")"):a==="||"?i.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }(("+n+"),("+o+")))"):a==="=="?i.push("("+n+" === "+o+")"):a==="!="?i.push("("+n+" !== "+o+")"):a==="["?i.push(n+"[("+o+") | 0]"):i.push("("+n+" "+a+" "+o+")"):a==="["?i.push(n+"["+o+"]"):i.push("("+n+" "+a+" "+o+")");else if(f===le)if(r=i.pop(),o=i.pop(),n=i.pop(),a=m.value,a==="?")i.push("("+n+" ? "+o+" : "+r+")");else throw new Error("invalid Expression");else if(f===j||f===G)i.push(m.value);else if(f===ae)n=i.pop(),a=m.value,a==="-"||a==="+"?i.push("("+a+n+")"):e?a==="not"?i.push("(!"+n+")"):a==="!"?i.push("fac("+n+")"):i.push(a+"("+n+")"):a==="!"?i.push("("+n+"!)"):i.push("("+a+" "+n+")");else if(f===ne){for(c=m.value,s=[];c-- >0;)s.unshift(i.pop());a=i.pop(),i.push(a+"("+s.join(", ")+")")}else if(f===$e){for(o=i.pop(),c=m.value,s=[];c-- >0;)s.unshift(i.pop());n=i.pop(),e?i.push("("+n+" = function("+s.join(", ")+") { return "+o+" })"):i.push("("+n+"("+s.join(", ")+") = "+o+")")}else if(f===z)n=i.pop(),i.push(n+"."+m.value);else if(f===oe){for(c=m.value,s=[];c-- >0;)s.unshift(i.pop());i.push("["+s.join(", ")+"]")}else if(f===I)i.push("("+nt(m.value,e)+")");else if(f!==Ue)throw new Error("invalid Expression")}return i.length>1&&(e?i=[i.join(",")]:i=[i.join(";")]),String(i[0])}function Bt(t){return typeof t=="string"?JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029"):t}function ie(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return!0;return!1}function ot(t,e,i){i=i||{};for(var n=!!i.withMembers,o=null,r=0;r<t.length;r++){var a=t[r];a.type===j||a.type===G?!n&&!ie(e,a.value)?e.push(a.value):(o!==null&&(ie(e,o)||e.push(o)),o=a.value):a.type===z&&n&&o!==null?o+="."+a.value:a.type===I?ot(a.value,e,i):o!==null&&(ie(e,o)||e.push(o),o=null)}o!==null&&!ie(e,o)&&e.push(o)}function F(t,e){this.tokens=t,this.parser=e,this.unaryOps=e.unaryOps,this.binaryOps=e.binaryOps,this.ternaryOps=e.ternaryOps,this.functions=e.functions}F.prototype.simplify=function(t){return t=t||{},new F(et(this.tokens,this.unaryOps,this.binaryOps,this.ternaryOps,t),this.parser)};F.prototype.substitute=function(t,e){return e instanceof F||(e=this.parser.parse(String(e))),new F(Wt(this.tokens,t,e),this.parser)};F.prototype.evaluate=function(t){return t=t||{},H(this.tokens,this,t)};F.prototype.toString=function(){return nt(this.tokens,!1)};F.prototype.symbols=function(t){t=t||{};var e=[];return ot(this.tokens,e,t),e};F.prototype.variables=function(t){t=t||{};var e=[];ot(this.tokens,e,t);var i=this.functions;return e.filter(function(n){return!(n in i)})};F.prototype.toJSFunction=function(t,e){var i=this,n=new Function(t,"with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return "+nt(this.simplify(e).tokens,!0)+"; }");return function(){return n.apply(i,arguments)}};var ve="TEOF",g="TOP",We="TNUMBER",Jt="TSTRING",V="TPAREN",re="TBRACKET",Je="TCOMMA",rt="TNAME",at="TSEMICOLON";function Ht(t,e,i){this.type=t,this.value=e,this.index=i}Ht.prototype.toString=function(){return this.type+": "+this.value};function E(t,e){this.pos=0,this.current=null,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.consts=t.consts,this.expression=e,this.savedPosition=0,this.savedCurrent=null,this.options=t.options,this.parser=t}
12E.prototype.newToken=function(t,e,i){return new Ht(t,e,i??this.pos)};E.prototype.save=function(){this.savedPosition=this.pos,this.savedCurrent=this.current};E.prototype.restore=function(){this.pos=this.savedPosition,this.current=this.savedCurrent};E.prototype.next=function(){if(this.pos>=this.expression.length)return this.newToken(ve,"EOF");if(this.isWhitespace()||this.isComment())return this.next();if(this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName())return this.current;this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')};E.prototype.isString=function(){var t=!1,e=this.pos,i=this.expression.charAt(e);if(i==="'"||i==='"')for(var n=this.expression.indexOf(i,e+1);n>=0&&this.pos<this.expression.length;){if(this.pos=n+1,this.expression.charAt(n-1)!=="\\"){var o=this.expression.substring(e+1,n);this.current=this.newToken(Jt,this.unescape(o),e),t=!0;break}n=this.expression.indexOf(i,n+1)}return t};E.prototype.isParen=function(){var t=this.expression.charAt(this.pos);return t==="("||t===")"?(this.current=this.newToken(V,t),this.pos++,!0):!1};E.prototype.isBracket=function(){var t=this.expression.charAt(this.pos);return(t==="["||t==="]")&&this.isOperatorEnabled("[")?(this.current=this.newToken(re,t),this.pos++,!0):!1};E.prototype.isComma=function(){var t=this.expression.charAt(this.pos);return t===","?(this.current=this.newToken(Je,","),this.pos++,!0):!1};E.prototype.isSemicolon=function(){var t=this.expression.charAt(this.pos);return t===";"?(this.current=this.newToken(at,";"),this.pos++,!0):!1};E.prototype.isConst=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var i=this.expression.charAt(e);if(i.toUpperCase()===i.toLowerCase()&&(e===this.pos||i!=="_"&&i!=="."&&(i<"0"||i>"9")))break}if(e>t){var n=this.expression.substring(t,e);if(n in this.consts)return this.current=this.newToken(We,this.consts[n]),this.pos+=n.length,!0}return!1};E.prototype.isNamedOp=function(){for(var t=this.pos,e=t;e<this.expression.length;e++){var i=this.expression.charAt(e);if(i.toUpperCase()===i.toLowerCase()&&(e===this.pos||i!=="_"&&(i<"0"||i>"9")))break}if(e>t){var n=this.expression.substring(t,e);if(this.isOperatorEnabled(n)&&(n in this.binaryOps||n in this.unaryOps||n in this.ternaryOps))return this.current=this.newToken(g,n),this.pos+=n.length,!0}return!1};E.prototype.isName=function(){for(var t=this.pos,e=t,i=!1;e<this.expression.length;e++){var n=this.expression.charAt(e);if(n.toUpperCase()===n.toLowerCase()){if(e===this.pos&&(n==="$"||n==="_")){n==="_"&&(i=!0);continue}else if(e===this.pos||!i||n!=="_"&&(n<"0"||n>"9"))break}else i=!0}if(i){var o=this.expression.substring(t,e);return this.current=this.newToken(rt,o),this.pos+=o.length,!0}return!1};E.prototype.isWhitespace=function(){for(var t=!1,e=this.expression.charAt(this.pos);(e===" "||e==="	"||e===`
13`||e==="\r")&&(t=!0,this.pos++,!(this.pos>=this.expression.length));)e=this.expression.charAt(this.pos);return t};var Xi=/^[0-9a-f]{4}$/i;E.prototype.unescape=function(t){var e=t.indexOf("\\");if(e<0)return t;for(var i=t.substring(0,e);e>=0;){var n=t.charAt(++e);switch(n){case"'":i+="'";break;case'"':i+='"';break;case"\\":i+="\\";break;case"/":i+="/";break;case"b":i+="\b";break;case"f":i+="\f";break;case"n":i+=`
14`;break;case"r":i+="\r";break;case"t":i+="	";break;case"u":var o=t.substring(e+1,e+5);Xi.test(o)||this.parseError("Illegal escape sequence: \\u"+o),i+=String.fromCharCode(parseInt(o,16)),e+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+n+'"')}++e;var r=t.indexOf("\\",e);i+=t.substring(e,r<0?t.length:r),e=r}return i};E.prototype.isComment=function(){var t=this.expression.charAt(this.pos);return t==="/"&&this.expression.charAt(this.pos+1)==="*"?(this.pos=this.expression.indexOf("*/",this.pos)+2,this.pos===1&&(this.pos=this.expression.length),!0):!1};E.prototype.isRadixInteger=function(){var t=this.pos;if(t>=this.expression.length-2||this.expression.charAt(t)!=="0")return!1;++t;var e,i;if(this.expression.charAt(t)==="x")e=16,i=/^[0-9a-f]$/i,++t;else if(this.expression.charAt(t)==="b")e=2,i=/^[01]$/i,++t;else return!1;for(var n=!1,o=t;t<this.expression.length;){var r=this.expression.charAt(t);if(i.test(r))t++,n=!0;else break}return n&&(this.current=this.newToken(We,parseInt(this.expression.substring(o,t),e)),this.pos=t),n};E.prototype.isNumber=function(){for(var t=!1,e=this.pos,i=e,n=e,o=!1,r=!1,a;e<this.expression.length&&(a=this.expression.charAt(e),a>
14="0"&&a<="9"||!o&&a===".");)a==="."?o=!0:r=!0,e++,t=r;if(t&&(n=e),a==="e"||a==="E"){e++;for(var s=!0,c=!1;e<this.expression.length;){if(a=this.expression.charAt(e),s&&(a==="+"||a==="-"))s=!1;else if(a>="0"&&a<="9")c=!0,s=!1;else break;e++}c||(e=n)}return t?(this.current=this.newToken(We,parseFloat(this.expression.substring(i,e))),this.pos=e):this.pos=n,t};E.prototype.isOperator=function(){var t=this.pos,e=this.expression.charAt(this.pos);if(e==="+"||e==="-"||e==="*"||e==="/"||e==="%"||e==="^"||e==="?"||e===":"||e===".")this.current=this.newToken(g,e);else if(e==="\u2219"||e==="\u2022")this.current=this.newToken(g,"*");else if(e===">")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(g,">="),this.pos++):this.current=this.newToken(g,">");else if(e==="<")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(g,"<="),this.pos++):this.current=this.newToken(g,"<");else if(e==="|")if(this.expression.charAt(this.pos+1)==="|")this.current=this.newToken(g,"||"),this.pos++;else return!1;else if(e==="=")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(g,"=="),this.pos++):this.current=this.newToken(g,e);else if(e==="!")this.expression.charAt(this.pos+1)==="="?(this.current=this.newToken(g,"!="),this.pos++):this.current=this.newToken(g,e);else return!1;return this.pos++,this.isOperatorEnabled(this.current.value)?!0:(this.pos=t,!1)};E.prototype.isOperatorEnabled=function(t){return this.parser.isOperatorEnabled(t)};E.prototype.getCoordinates=function(){var t=0,e,i=-1;do t++,e=this.pos-i,i=this.expression.indexOf(`
15`,i+1);while(i>=0&&i<this.pos);return{line:t,column:e}};E.prototype.parseError=function(t){var e=this.getCoordinates();throw new Error("parse error ["+e.line+":"+e.column+"]: "+t)};function C(t,e,i){this.parser=t,this.tokens=e,this.current=null,this.nextToken=null,this.next(),this.savedCurrent=null,this.savedNextToken=null,this.allowMemberAccess=i.allowMemberAccess!==!1}C.prototype.next=function(){return this.current=this.nextToken,this.nextToken=this.tokens.next()};C.prototype.tokenMatches=function(t,e){return typeof e>"u"?!0:Array.isArray(e)?ie(e,t.value):typeof e=="function"?e(t):t.value===e};C.prototype.save=function(){this.savedCurrent=this.current,this.savedNextToken=this.nextToken,this.tokens.save()};C.prototype.restore=function(){this.tokens.restore(),this.current=this.savedCurrent,this.nextToken=this.savedNextToken};C.prototype.accept=function(t,e){return this.nextToken.type===t&&this.tokenMatches(this.nextToken,e)?(this.next(),!0):!1};C.prototype.expect=function(t,e){if(!this.accept(t,e)){var i=this.tokens.getCoordinates();throw new Error("parse error ["+i.line+":"+i.column+"]: Expected "+(e||t))}};C.prototype.parseAtom=function(t){var e=this.tokens.unaryOps;function i(o){return o.value in e}if(this.accept(rt)||this.accept(g,i))t.push(new d(j,this.current.value));else if(this.accept(We))t.push(new d(D,this.current.value));else if(this.accept(Jt))t.push(new d(D,this.current.value));else if(this.accept(V,"("))this.parseExpression(t),this.expect(V,")");else if(this.accept(re,"["))if(this.accept(re,"]"))t.push(new d(oe,0));else{var n=this.parseArrayList(t);t.push(new d(oe,n))}else throw new Error("unexpected "+this.nextToken)};C.prototype.parseExpression=function(t){var e=[];this.parseUntilEndStatement(t,e)||(this.parseVariableAssignmentExpression(e),!this.parseUntilEndStatement(t,e)&&this.pushExpression(t,e))};C.prototype.pushExpression=function(t,e){for(var i=0,n=e.length;i<n;i++)t.push(e[i])};C.prototype.parseUntilEndStatement=function(t,e){return this.accept(at)?(this.nextToken&&this.nextToken.type!==ve&&!(this.nextToken.type===V&&this.nextToken.value===")")&&e.push(new d(Ue)),this.nextToken.type!==ve&&this.parseExpression(e),t.push(new d(I,e)),!0):!1};C.prototype.parseArrayList=function(t){for(var e=0;!this.accept(re,"]");)for(this.parseExpression(t),++e;this.accept(Je);)this.parseExpression(t),++e;return e};C.prototype.parseVariableAssignmentExpression=function(t){for(this.parseConditionalExpression(t);this.accept(g,"=");){var e=t.pop(),i=[],n=t.length-1;if(e.type===ne){if(!this.tokens.isOperatorEnabled("()="))throw new Error("function definition is not permitted");for(var o=0,r=e.value+1;o<r;o++){var a=n-o;t[a].type===j&&(t[a]=new d(G,t[a].value))}this.parseVariableAssignmentExpression(i),t.push(new d(I,i)),t.push(new d($e,e.value));continue}if(e.type!==j&&e.type!==z)throw new Error("expected variable for assignment");this.parseVariableAssignmentExpression(i),t.push(new d(G,e.value)),t.push(new d(I,i)),t.push(L("="))}};C.prototype.parseConditionalExpression=function(t){for(this.parseOrExpression(t);this.accept(g,"?");){var e=[],i=[];this.parseConditionalExpression(e),this.expect(g,":"),this.parseConditionalExpression(i),t.push(new d(I,e)),t.push(new d(I,i)),t.push(qt("?"))}};C.prototype.parseOrExpression=function(t){for(this.parseAndExpression(t);this.accept(g,"or");){var e=[];this.parseAndExpression(e),t.push(new d(I,e)),t.push(L("or"))}};C.prototype.parseAndExpression=function(t){for(this.parseComparison(t);this.accept(g,"and");){var e=[];this.parseComparison(e),t.push(new d(I,e)),t.push(L("and"))}};var Zi=["==","!=","<","<=",">=",">","in"];C.prototype.parseComparison=function(t){for(this.parseAddSub(t);this.accept(g,Zi);){var e=this.current;this.parseAddSub(t),t.push(L(e.value))}};var Yi=["+","-","||"];C.prototype.parseAddSub=function(t){for(this.parseTerm(t);this.accept(g,Yi);){var e=this.current;this.parseTerm(t),t.push(L(e.value))}};var en=["*","/","%"];C.prototype.parseTerm=function(t){for(this.parseFactor(t);this.accept(g,en);){var e=this.current;this.parseFactor(t),t.push(L(e.value))}};C.prototype.parseFactor=function(t){var e=this.tokens.unaryOps;function i(o){return o.value in e}if(this.save(),this.accept(g,i)){if(this.current.value!=="-"&&this.current.value!=="+"){if(this.nextToken.type===V&&this.nextToken.value==="("){this.restore(
15),this.parseExponential(t);return}else if(this.nextToken.type===at||this.nextToken.type===Je||this.nextToken.type===ve||this.nextToken.type===V&&this.nextToken.value===")"){this.restore(),this.parseAtom(t);return}}var n=this.current;this.parseFactor(t),t.push(qe(n.value))}else this.parseExponential(t)};C.prototype.parseExponential=function(t){for(this.parsePostfixExpression(t);this.accept(g,"^");)this.parseFactor(t),t.push(L("^"))};C.prototype.parsePostfixExpression=function(t){for(this.parseFunctionCall(t);this.accept(g,"!");)t.push(qe("!"))};C.prototype.parseFunctionCall=function(t){var e=this.tokens.unaryOps;function i(r){return r.value in e}if(this.accept(g,i)){var n=this.current;this.parseAtom(t),t.push(qe(n.value))}else for(this.parseMemberExpression(t);this.accept(V,"(");)if(this.accept(V,")"))t.push(new d(ne,0));else{var o=this.parseArgumentList(t);t.push(new d(ne,o))}};C.prototype.parseArgumentList=function(t){for(var e=0;!this.accept(V,")");)for(this.parseExpression(t),++e;this.accept(Je);)this.parseExpression(t),++e;return e};C.prototype.parseMemberExpression=function(t){for(this.parseAtom(t);this.accept(g,".")||this.accept(re,"[");){var e=this.current;if(e.value==="."){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(rt),t.push(new d(z,this.current.value))}else if(e.value==="["){if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(t),this.expect(re,"]"),t.push(L("["))}else throw new Error("unexpected symbol: "+e.value)}};function tn(t,e){return Number(t)+Number(e)}function nn(t,e){return t-e}function on(t,e){return t*e}function rn(t,e){return t/e}function an(t,e){return t%e}function sn(t,e){return Array.isArray(t)&&Array.isArray(e)?t.concat(e):""+t+e}function ln(t,e){return t===e}function pn(t,e){return t!==e}function cn(t,e){return t>e}function un(t,e){return t<e}function hn(t,e){return t>=e}function mn(t,e){return t<=e}function dn(t,e){return!!(t&&e)}function fn(t,e){return!!(t||e)}function _n(t,e){return ie(e,t)}function vn(t){return(Math.exp(t)-Math.exp(-t))/2}function gn(t){return(Math.exp(t)+Math.exp(-t))/2}function yn(t){return t===1/0?1:t===-1/0?-1:(Math.exp(t)-Math.exp(-t))/(Math.exp(t)+Math.exp(-t))}function Cn(t){return t===-1/0?t:Math.log(t+Math.sqrt(t*t+1))}function Sn(t){return Math.log(t+Math.sqrt(t*t-1))}function xn(t){return Math.log((1+t)/(1-t))/2}function Nt(t){return Math.log(t)*Math.LOG10E}function bn(t){return-t}function En(t){return!t}function wn(t){return t<0?Math.ceil(t):Math.floor(t)}function In(t){return Math.random()*(t||1)}function jt(t){return st(t+1)}function Tn(t){return isFinite(t)&&t===Math.round(t)}var Dn=4.7421875,Ye=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function st(t){var e,i;if(Tn(t)){if(t<=0)return isFinite(t)?1/0:NaN;if(t>171)return 1/0;for(var n=t-2,o=t-1;n>1;)o*=n,n--;return o===0&&(o=1),o}if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*st(1-t));if(t>=171.35)return 1/0;if(t>85){var r=t*t,a=r*t,s=a*t,c=s*t;return Math.sqrt(2*Math.PI/t)*Math.pow(t/Math.E,t)*(1+1/(12*t)+1/(288*r)-139/(51840*a)-571/(2488320*s)+163879/(209018880*c)+5246819/(75246796800*c*t))}--t,i=Ye[0];for(var u=1;u<Ye.length;++u)i+=Ye[u]/(t+u);return e=t+Dn+.5,Math.sqrt(2*Math.PI)*Math.pow(e,t+.5)*Math.exp(-e)*i}function kn(t){return Array.isArray(t)?t.length:String(t).length}function Vt(){for(var t=0,e=0,i=0;i<arguments.length;i++){var n=Math.abs(arguments[i]),o;e<n?(o=e/n,t=t*o*o+1,e=n):n>0?(o=n/e,t+=o*o):t+=n}return e===1/0?1/0:e*Math.sqrt(t)}function Lt(t,e,i){return t?e:i}function An(t,e){return typeof e>"u"||+e==0?Math.round(t):(t=+t,e=-+e,isNaN(t)||!(typeof e=="number"&&e%1===0)?NaN:(t=t.toString().split("e"),t=Math.round(+(t[0]+"e"+(t[1]?+t[1]-e:-e))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]+e:e))))}function Mn(t,e,i){return i&&(i[t]=e),e}function Fn(t,e){return t[e|0]}function Rn(t){return arguments.length===1&&Array.isArray(t)?Math.max.apply(Math,t):Math.max.apply(Math,arguments)}function On(t){return arguments.length===1&&Array.isArray(t)?Math.min.apply(Math,t):Math.min.apply(Math,arguments)}function Pn(t,e){if(typeof t!="function")throw new Error("First argument to map is not a function");if(!Array.isArray(e))throw new Error("Second argument to map is not an array");return e.map(function(i,n){return t(i,n)})}function Bn(t,e,i){if(typeof t!="function")throw new Error("First argument to fold is not a function");if(!Array.isArray(i))throw new Error("Second argument to fold is not an array");return i.reduce(function(n,o,r){return t(n,o,r)},e)}function Nn(t,e){if(typeof t!="function")throw new Error("First argument to filter is not a function");if(!Array.isArray(e))throw new Error("Second argument to filter is not an array");return e.filter(function(i,n){return t(i,n)})}function jn(t,e){if(!(Array.isArray(e)||typeof e=="string"))throw new Error("Second argument to indexOf is not a string or array");return e.indexOf(t)}function Vn(t,e){if(!Array.isArray(e))throw new Error("Second argument to join is not an array");return e.join(t)}function Ln(t){return(t>0)-(t<0)||+t}var $t=1/3;function $n(t){return t<0?-Math.pow(-t,$t):Math.pow(t,$t)}function Un(t){return Math.exp(t)-1}function qn(t){return Math.log(1+t)}function Wn(t){return Math.log(t)/Math.LN2}function q(t){this.options=t||{},this.unaryOps={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Math.sinh||vn,cosh:Math.cosh||gn,tanh:Math.tanh||yn,asinh:Math.asinh||Cn,acosh:Math.acosh||Sn,atanh:Math.atanh||xn,sqrt:Math.sqrt,cbrt:Math.cbrt||$n,log:Math.log,log2:Math.log2||Wn,ln:Math.log,lg:Math.log10||Nt,log10:Math.log10||Nt,expm1:Math.expm1||Un,log1p:Math.log1p||qn,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:Math.trunc||wn,"
15-":bn,"+":Number,exp:Math.exp,not:En,length:kn,"!":jt,sign:Math.sign||Ln},this.binaryOps={"+":tn,"-":nn,"*":on,"/":rn,"%":an,"^":Math.pow,"||":sn,"==":ln,"!=":pn,">":cn,"<":un,">=":hn,"<=":mn,and:dn,or:fn,in:_n,"=":Mn,"[":Fn},this.ternaryOps={"?":Lt},this.functions={random:In,fac:jt,min:On,max:Rn,hypot:Math.hypot||Vt,pyt:Math.hypot||Vt,pow:Math.pow,atan2:Math.atan2,if:Lt,gamma:st,roundTo:An,map:Pn,fold:Bn,filter:Nn,indexOf:jn,join:Vn},this.consts={E:Math.E,PI:Math.PI,true:!0,false:!1}}q.prototype.parse=function(t){var e=[],i=new C(this,new E(this,t),{allowMemberAccess:this.options.allowMemberAccess});return i.parseExpression(e),i.expect(ve,"EOF"),new F(e,this)};q.prototype.evaluate=function(t,e){return this.parse(t).evaluate(e)};var Gt=new q;q.parse=function(t){return Gt.parse(t)};q.evaluate=function(t,e){return Gt.parse(t).evaluate(e)};var Ut={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",and:"logical",or:"logical",not:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function Jn(t){return Ut.hasOwnProperty(t)?Ut[t]:t}q.prototype.isOperatorEnabled=function(t){var e=Jn(t),i=this.options.operators||{};return!(e in i)||!!i[e]};var He=class t{constructor(e,i,n,o){this.dynamicApiCallerService=e;this.router=i;this.encryptionDecryptionService=n;this.store=o}apiResObj={};actionList;checkConditionsFun(e){let i=e?.conditions?.length;if(!i)return!0;let n=e.statement;for(let o=0;o<i.length;o++){let r=i[o],a=this.getDataFrom(r.leftCon,r.key),s=this.getDataFrom(r.rightCon,r.key);switch(r.conId="C"+r.id,r.operator){case"Equals":a==s?r.conValue=!0:r.conValue=!1;break;case"Not Equal":a!=s?r.conValue=!0:r.conValue=!1;break;case"Larger Than":a>s?r.conValue=!0:r.conValue=!1;break;case"Larger Than Equal":a>=s?r.conValue=!0:r.conValue=!1;break;case"Less Than":a<s?r.conValue=!0:r.conValue=!1;break;case"Less Than Equal":a<=s?r.conValue=!0:r.conValue=!1;break}n=n.replaceAll(r.conId,r.conValue)}return this.callCondtionStatment(n)}callCondtionStatment(e){try{return!!new q().evaluate(e)}catch(i){return console.error("Invalid equation:",i),!1}}getNestedValue(e,i){let n=e;if(!i)return n;let o=i.split(".");for(let r of o)if(n)if(n=this.isJson(n)?JSON.parse(n):n,r.includes("[")){let a=r.split("[");a[0]&&(n=n[a[0]]),n=n[+a[1].slice(0,a.length-1)]}else n=n[r];else return;return n}isJson(e){try{return JSON.parse(e),!0}catch{return!1}}actionFun(e,i){return Ce(this,null,function*(){for(let n=0;n<e.length;n++){let o=e[n];if(!(o.isConditional&&!this.checkConditionsFun(o.conditionalList)))switch(o.actionType){case"navigateTo":this.navigateTo(o,i);break;case"callLocalApi":yield this.callLocalApi(o,i);break;case"callDataSourceApi":yield this.callDataSourceApi(o,i);break;case"sendDataToStore":yield this.sendDataToStore(o,i);break}}})}callLocalApi(e,i){return pe(this.dynamicApiCallerService.multipleCallLocalApi(0,e.arrayOfLocalApi,i,e.readFinalResFrom)).then(n=>(this.apiResObj[e.actionName]=n,n)).catch(n=>!1)}callDataSourceApi(e,i){return pe(this.dynamicApiCallerService.multipleCallDataSource(0,e.arrayOfDataSourceApi,i,e.readFinalResFrom)).then(n=>(this.apiResObj[e.actionName]=n,!0)).catch(n=>!1)}navigateTo(e,i){let n={};if(Array.isArray(e.queryParam)&&e.queryParam.forEach(o=>{if(o.getDataFrom==="static")n[o.queryParam]=o.valueToSend;else if(o.getDataFrom==="queryParam")n[o.queryParam]=i.params[o.queryParamReadFrom];else if(o.getDataFrom==="userOption"){let r=i.userOptionObj&&i.userOptionObj.find(a=>a.propertyName==o.userOptionKeyReadFrom);n[o.queryParam]=r?r[o.userOptionKey]:null,o.addSubUsers&&(i.subUsersData.includes(n[o.paramName])==!1&&n[o.paramName]&&i.subUsersData.push(n[o.paramName]),n[o.paramName]=i.subUsersData)}else o.getDataFrom==="parameters"&&(n[o.queryParam]=i?.parameters[o.keyDataSend])}),e.isEncrypted){let o;for(let a in n)o=o?o+`&${a}=${n[a]}`:`${a}=${n[a]}`;n=this.encryptionDecryptionService.encryptByAesParam(o),this.router.navigateByUrl(e.slug+"?"+n)}else this.router.navigate([`/${e.slug}`],{queryParams:n})}sendDataToStore(e,i){let n={};n[e?.keyStore]=this.getDataFrom(e,i),this.store.dispatch(Dt(n))}getDataFrom(e,i){if(e.getDataObj.getDataFrom==="static")return e.getDataObj.value;if(e.getDataObj.getDataFrom==="queryParam")return i.params[e.getDataObj.key];if(e.getDataObj.getDataFrom==="parameters")return i?.parameters[e.getDataObj.key];if(e.getDataObj.getDataFrom==="previousApi")return this.getNestedValue(this.apiResObj,e.getDataObj.key)}static \u0275fac=function(i){return new(i||t)($(Ot),$(Et),$(Mt),$(Me))};static \u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})};var zt=class t{constructor(e,i,n,o,r,a,s,c,u,m){this.storageService=e;this.ngZone=i;this.appRef=n;this._activatedRoute=o;this._platformService=r;
15this.viewContainerRef=a;this.ssrDocument=s;this.moduleService=c;this.injector=u;this.actionsService=m}templateData;templateSettingsBody;slugData;slugSettingsBody;headElementsRefService=Se(J);ngOnInit(){this._activatedRoute.params.subscribe({next:e=>{}}),this._activatedRoute.data.subscribe({next:e=>Ce(this,null,function*(){switch(e&&e.routeData&&e.routeData.templateData&&(this.templateData=e.routeData.templateData),this.templateSettingsBody=this.templateData?.currentVersion?JSON.parse(this.templateData?.currentVersion?.settingsBody):null,e&&e.routeData&&e.routeData.slugData&&(this.slugData=e.routeData.slugData,this.storageService.set("slugData",this.slugData)),this.slugData?.slugType){case 1:this.slugSettingsBody=JSON.parse(this.slugData.currentVersion.settingsBody);break;case 2:this.slugSettingsBody=JSON.parse(this.slugData.postSettings||"{}");break;case 3:this.slugSettingsBody=JSON.parse(this.slugData.brandSettings||"{}");break;case 4:this.slugSettingsBody=JSON.parse(this.slugData.categoriesSettings||"{}");break;case 5:this.slugSettingsBody=JSON.parse(this.slugData.productSettings||"{}");break;default:break}if(this.slugSettingsBody?.actionList){let r={};r.queryParams=yield pe(this._activatedRoute.queryParams),yield this.actionsService.actionFun(this.slugSettingsBody?.actionList,r)}this.viewContainerRef.clear();try{this.headElementsRefService.removeAll()}catch(r){console.error("An error occurred while removing head elements:",r)}if(this.ssrDocument.querySelectorAll("head > *[id*='templateCssGenericAsset']").forEach(r=>{this._platformService.isPlatformBrowser&&r.remove()}),this.templateData&&this.templateData.genericAssets&&this.templateData.genericAssets.length>0){let r=this.templateData.genericAssets,a=this.ssrDocument.createElement("link"),s=this.ssrDocument.createElement("script");for(let c=0;c<r.length;c++){let u=r[c];if(u.extensions=="JS"&&!this.ssrDocument.getElementById("templateJsGenericAsset_"+u.url.split("?")[1])){let f=this.ssrDocument.createElement("script");f.id="templateJsGenericAsset_"+u.url.split("?")[1],f.src=u.url,f.type="text/javascript",f.setAttribute("defer","true");let l=this.ssrDocument.getElementById("templateCss");l?this.ssrDocument.head.insertBefore(f,l):this.ssrDocument.head.appendChild(f),this.headElementsRefService.addElementRef(f)}if(u.extensions=="CSS"){let m="templateCssGenericAsset_"+u.url.split("?")[1],f=this.ssrDocument.getElementById(m);if(this.ssrDocument.querySelectorAll("head > *[id*='templateCssGenericAsset']").forEach(l=>{l.id!==m&&this._platformService.isPlatformBrowser&&l.remove()}),!f){let l=this.ssrDocument.createElement("link");l.setAttribute("rel","stylesheet"),l.setAttribute("type","text/css"),l.setAttribute("href",u.url),l.id=m;let y=this.ssrDocument.getElementById("templateCss");y?this.ssrDocument.head.insertBefore(l,y):this.ssrDocument.head.appendChild(l),this.headElementsRefService.addElementRef(l)}}}}if(this.templateData&&this.templateData.currentVersion?.importFilesList&&this.templateData.currentVersion?.importFilesList.length!==0){let r=this.templateData.currentVersion.importFilesList,a=this.ssrDocument.createElement("link"),s=this.ssrDocument.createElement("script");for(let c=0;c<r.length;c++){let u=r[c],m=this.ssrDocument.getElementById("templateJsImports_"+u.fileId);u.contentType.indexOf("javascript")!==-1&&!m&&(s.id="templateJsImports_"+u.fileId,s.src=u.fileUrl,s.type=u.contentType,this.ssrDocument.head.appendChild(s),this.headElementsRefService.addElementRef(s));let f=this.ssrDocument.getElementById("templateCssImports_"+u.fileId);u.contentType.indexOf("css")!==-1&&!f&&(a.rel="stylesheet",a.id="templateCssImports_"+u.fileId,a.href=u.fileUrl,a.type=u.contentType,a.setAttribute("media","all"),this.ssrDocument.head.appendChild(a),this.headElementsRefService.addElementRef(a))}}if(this.templateData&&this.templateData.currentVersion&&this.templateData.currentVersion.css){if(!this.ssrDocument.getElementById("templateCss")){let s=this.ssrDocument.createElement("style");s.setAttribute("type","text/css"),s.id="templateCss",s.innerHTML="",this.ssrDocument.head.appendChild(s),this.headElementsRefService.addElementRef(s)}let a=this.ssrDocument.getElementById("templateCss");a&&(a.innerHTML=this.templateData.currentVersion.css)}else this.ssrDocument.querySelectorAll("head > *[id='templateCss']").forEach(r=>{this._platformService.isPlatformBrowser&&r.remove()});let n=this.moduleService.siteData.site.cultureStyleUrl;if(n){let r=this.ssrDocument.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",n),r.setAttribute("media","all"),r.id="culture-style",this.ssrDocument.head.appendChild(r),this.headElementsRefService.addElementRef(r)}let o=this.viewContainerRef.createComponent(Ve,{injector:this.injector});o.setInput("templateDataWrapped",this.templateData),o.setInput("templateSettingsBodyWrapped",this.templateSettingsBody),o.setInput("slugDataWrapped",this.slugData),o.setInput("slugSettingsBodyWrapped",this.slugSettingsBody)})})}static \u0275fac=function(i){return new(i||t)(h(wt),h(ft),h(gt),h(Z),h(M),h(Q),h(B),h(Fe),h(xe),h(He))};static \u0275cmp=U({type:t,selectors:[["app-components-wrapper"]],outputs:{templateData:"templateData",templateSettingsBody:"templateSettingsBody",slugData:"slugData",slugSettingsBody:"slugSettingsBody"},decls:0,vars:0,template:function(i,n){},encapsulation:2})};export{zt as ComponentsWrapperComponent};

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.