PageSourceSearch

https://app-asogans-pujasweb.web.app/chunk-C23FHI2K.js

js app-asogans-pujasweb.web.app collected 2026-10-03 12:16:53 UTC 4,705 bytes, 1 lines download raw bytes

1import{Jb as z,Kd as O,L as u,Ld as c,d as l,h as s,p as C}from"./chunk-NCO5QYD2.js";import{M as y,g as d,r as h,x as f,z as E}from"./chunk-3K5Y2AQP.js";var S=class t{primaryColor;secondaryColor;btnFontSize;titleFontSize;infoPanelFontSize;contentFontSize;constructor(i,e,o,r,p,m){this.primaryColor=i,this.secondaryColor=e,this.btnFontSize=o,this.titleFontSize=r,this.infoPanelFontSize=p,this.contentFontSize=m}get btnFontSizeX2(){return this.calculateFontSizeX2Value(this.btnFontSize)}get titleFontSizeX2(){return this.calculateFontSizeX2Value(this.titleFontSize)}calculateFontSizeX2Value(i){let e=parseFloat(i.substring(0,i.length-2)),o=i.substring(i.length-2),r=50*e/100;return`${(e+r).toFixed(1)}${o} !important`}static toEntity(i){return new t(i.primaryColor,i.secondaryColor,i.btnFontSize,i.titleFontSize,i.infoPanelFontSize,i.contentFontSize)}},n=function(t){return t.PRIMARY_COLOR="#fa0505 !important; /*primary*/",t.SECONDARY_COLOR="#042443 !important; /*secondary*/",t.BTN_FONT_SIZE="1rem !important; /*btnFontSize*/",t.BTN_FONT_SIZE_X2="20px !important; /*btnFontSizeX2*/",t.TITLE_FONT_SIZE="20px !important; /*titleFontSize*/",t.TITLE_FONT_SIZE_X2="20px !important; /*titleFontSizeX2*/",t.INFO_PANEL_FONT_SIZE="1rem !important; /*infoPanelFontSize*/",t.CONTENT_FONT_SIZE="14px !important; /*content*/",t}(n||{}),F=function(t){return t.PRIMARY_COLOR="#fa0505",t.SECONDARY_COLOR="#042443",t}(F||{});var g=(()=>{class t{document=s(C);rendererFactory=s(u);http=s(z);constructor(){this.renderer2=this.rendererFactory.createRenderer(null,null)}style;cssFile="";themeCSSID="theme";renderer2;themeLocation="assets/css/theme.css";setTheme(e){this.publishThemeCssVariables(e),this.http.get(this.themeLocation,{responseType:"text"}).subscribe(o=>{this.cssFile="theme.css",this.removeExistingThemeStyle(this.renderer2,this.themeCSSID),this.style=this.renderer2.createElement("style");let r=this.renderer2.createText(this.generateStyles(e,o));this.style.appendChild(r),this.renderer2.setProperty(this.style,"id",this.themeCSSID),this.renderer2.appendChild(this.document.head,this.style)})}removeExistingThemeStyle(e,o){let r=this.document.getElementById(o);r&&e.removeChild(this.document.head,r)}generateStyles(e,o){let r=o;return e.primaryColor&&(r=o.replace(new RegExp(this.escapeRegExp(n.PRIMARY_COLOR),"g"),`${e.primaryColor};`)),e.secondaryColor&&(r=r.replace(new RegExp(this.escapeRegExp(n.SECONDARY_COLOR),"g"),`${e.secondaryColor};`)),e.btnFontSize&&(r=r.replace(new RegExp(this.escapeRegExp(n.BTN_FONT_SIZE),"g"),`${e.btnFontSize};`),r=r.replace(new RegExp(this.escapeRegExp(n.BTN_FONT_SIZE_X2),"g"),`${e.btnFontSizeX2};`)),e.titleFontSize&&(r=r.replace(new RegExp(this.escapeRegExp(n.TITLE_FONT_SIZE),"g"),`${e.titleFontSize};`),r=r.replace(new RegExp(this.escapeRegExp(n.TITLE_FONT_SIZE_X2),"g"),`${e.titleFontSizeX2};`)),e.infoPanelFontSize&&(r=r.replace(new RegExp(this.escapeRegExp(n.INFO_PANEL_FONT_SIZE),"g"),`${e.
1infoPanelFontSize};`)),e.contentFontSize&&(r=r.replace(new RegExp(this.escapeRegExp(n.CONTENT_FONT_SIZE),"g"),`${e.contentFontSize};`)),r}publishThemeCssVariables(e){let o=this.document.documentElement;e.primaryColor&&o.style.setProperty("--theme-primary",e.primaryColor),e.secondaryColor&&o.style.setProperty("--theme-secondary",e.secondaryColor)}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}static \u0275fac=function(o){return new(o||t)};static \u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _=8e3,Y=(()=>{class t{appParamService=s(O);themeLoaderService=s(g);isLoaded=!1;themeLoadedSubject=new d(this.isLoaded);onLoad(){return this.themeLoadedSubject.asObservable()}watchForUserPreferences(){let e=this.appParamService.watchSection("marca"),o=this.appParamService.forField(e,c.AppParamMarketing.primaryColor),r=this.appParamService.forField(e,c.AppParamMarketing.secondaryColor),p=this.appParamService.forField(e,c.AppParamMarketing.buttonFontSize),m=this.appParamService.forField(e,c.AppParamMarketing.titleFontSize),R=this.appParamService.forField(e,c.AppParamMarketing.infoPanelFontSize),T=this.appParamService.forField(e,c.AppParamMarketing.contentFontSize);E([o,r,p,m,R,T]).pipe(f({first:_}),y(()=>h([{},{},void 0,void 0,void 0,void 0]))).subscribe(a=>{let x=S.toEntity({primaryColor:a[0]?.hex?`#${a[0].hex}`:F.PRIMARY_COLOR,secondaryColor:a[1]?.hex?`#${a[1].hex}`:F.SECONDARY_COLOR,btnFontSize:a[2],titleFontSize:a[3],infoPanelFontSize:a[4],contentFontSize:a[5]});this.themeLoaderService.setTheme(x),setTimeout(()=>{this.isLoaded=!0,this.themeLoadedSubject.next(!0)},200)})}static \u0275fac=function(o){return new(o||t)};static \u0275prov=l({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{Y as a};

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.