1import{a as Y}from"./chunk-DTHL6QTU.js";import{a as K}from"./chunk-Y7NUCFGH.js";import"./chunk-HSEF5MKH.js";import{b as A}from"./chunk-WQNBFU6N.js";import"./chunk-XA2M3N3U.js";import{a as Z}from"./chunk-2J2SKPJX.js";import"./chunk-EDQHPU2F.js";import"./chunk-V2GKQIZM.js";import"./chunk-WPCFRNFQ.js";import"./chunk-2ASPUHTX.js";import"./chunk-Y3AZN6IK.js";import{d as N,f as j,g as F}from"./chunk-BCETYUMZ.js";import{a as C}from"./chunk-I6DVG7UX.js";import{J as D,K as V,M as z,e as k,g as B}from"./chunk-SG2MX73N.js";import{Fc as X,Ib as S,Jb as p,Kb as u,Mb as M,Mc as _,Nb as T,Nc as b,O as x,Ob as O,Pb as h,Qb as r,Rb as o,Sb as v,Zb as R,bc as E,cb as n,dc as g,ha as w,lb as l,ma as P,na as y,nc as U,sa as I,sb as L,sc as c,uc as d}from"./chunk-WRBLWZTT.js";import"./chunk-TWZW5B45.js";var q=i=>({"button-toggle-vertical--checked":i});function Q(i,m){i&1&&v(0,"i",4)}function tt(i,m){if(i&1&&(r(0,"span",5),c(1),o()),i&2){let t=g();n(),d(" ",t.pageSelected==null?null:t.pageSelected.name," ")}}function et(i,m){if(i&1){let t=R();r(0,"button",16),E("click",function(){let a=P(t).$implicit,s=g(2);return y(s.onSelectedPage(a))}),c(1),o()}if(i&2){let t=m.$implicit,e=g(2);h("ngClass",X(3,q,t.id==(e.pageSelected==null?null:e.pageSelected.id))),S("aria-label",t.name),n(),d(" ",t.name," ")}}function it(i,m){if(i&1&&(r(0,"section",6)(1,"div",8)(2,"h2",9),c(3),_(4,"translate"),o(),r(5,"nav",10),T(6,et,2,5,"button",11,M),o()(),r(8,"div",12)(9,"h1",13),c(10),o(),r(11,"div",14),v(12,"app-dynamic-content",15),o()()()),i&2){let t=g();n(3),d(" ",b(4,3,"general.related-info")," "),n(3),O(t.pages),n(4),d(" ",t.pageSelected==null?null:t.pageSelected.name," "),n(2),h("idContentSelected",t.idContentSelected)}}var H=(()=>{class i{constructor(t,e,a,s,J,$,G){this.translateService=t,this.languageService=e,this.meta=a,this.contentPageService=s,this.activeRoute=J,this.location=$,this.router=G,this.destroyRef=w(I),this.dataLoading={loading:!0},this.showElement=!1,this.loadContentPageList=()=>{this.dataLoading={loading:!0};let f=this.contentPageService.getPagesUltravioletList();return f.pipe(x(()=>{this.dataLoading={loading:!1,data:this.pages}})).pipe(C(this.destroyRef)).subscribe(W=>{this.pages=W,this.idPageSelected&&(this.pageSelected=this.findPage(),this.idContentSelected=this.pageSelected?.id)}),f},this.activeRoute.params.subscribe(f=>{f.idContent&&(this.idPageSelected=f.idContent)})}ngOnInit(){this.loadLanguage(),setTimeout(()=>{this.showElement=!0},100)}onSelectedPage(t){t&&(this.pageSelected=t,this.idContentSelected=this.pageSelected.id,this.idPageSelected=t.id,document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0),this.updateUrl())}updateUrl(){if(this.pageSelected){let t=this.filterURL();this.location.replaceState(t+"/"+this.pageSelected.id)}}filterURL(){let t=this.router.url.split("/");return t.filter(e=>e!=="").find(e=>!isNaN(+e))&&t.pop(),t.join("/")}findPage(){return this.idPageSelected&&this.pages?this.pages.find(t=>t.id==this.idPageSelected):null}loadMetaTags(){this.meta.loadMetaTags("ultraviolet-info","meteogalicia, ultravioleta, observaci\xF3n","ultraviolet-info")}loadLanguage(){this.languageService.getDefaultLanguage().pipe(C(this.destroyRef)).subscribe(t=>{let e=localStorage.getItem("language");e&&(this.translateService.use(e),this.translateService.setFallbackLang(e)),this.loadMetaTags(),this.loadContentPageList()})}static{this.\u0275fac=function(e){return new(e||i)(l(D),l(z),l(Z),l(K),l(N),l(k),l(j))}}static{this.\u0275cmp=L({type:i,selectors:[["app-ultraviolet-info"]],decls:11,vars:11,consts:[["errorLoading",""],[1,"global-card","global-card--large","ultraviolet-info"],[1,"global-breadcrumbs"],["routerLink","/predicion/ultravioleta",1,"global-breadcrumbs__link"],[1,"ri-arrow-drop-right-line","global-breadcrumbs__icon"],[1,"global-breadcrumbs__text"],[1,"global-card__content"],["height","100vh",3,"dataLoading","reloadFunction"],[1,"ultraviolet-info__side"],[1,"ultraviolet-info__subtitle"],[1,"button-toggle-group-vertical"],[1,"button-toggle-vertical",3,"ngClass"],[1,"ultraviolet-info__main"],[1,"ultraviolet-info__title"],[1,"dynamic-content-html"],[3,"idContentSelected"],[1,"button-toggle-vertical",3,"click","ngClass"]],template:function(e,a){if(e&1&&(r(0,"article",1)(1,"p",2)(2,"a",3),_(3,"translate"),c(4),_(5,"translate"),o(),p(6,Q,1,0,"i",4),p(7,tt,2,1,"span",5),o(),p(8,it,13,5,"section",6),v(9,"app-error-loading",7,0),o()),e&2){let s=U(10);n(2),S("aria-label",b(3,7,"general.ultraviolet")),n(2),d(" ",b(5,9,"general.ultraviolet")," "),n(2),u(a.showElement?6:-1),n(),u(a.showElement?7:-1),n(),u(a.pages&&!a.dataLoading.loading&&!s.errorMessage?8:-1),n(),h("dataLoading",a.dataLoading)("reloadFunction",a.loadContentPageList)}},dependencies:[B,F,Y,A,V],styles:['@font-face{font-family:XuntaSans;src:url("./media/XuntaSans-Regular-RZFVRW3M.woff2") format("woff2"),url("./media/XuntaSans-Regular-KZGYT35O.woff") format("woff");font-weight:400;font-style:normal}@font-face{font-family:XuntaSans;src:url("./media/XuntaSans-Bold-XNU2UBJN.woff2") format("woff2"),url("./media/XuntaSans-Bold-RCFTN5ST.woff") format("woff");font-weight:700;font-style:normal}@font-face{font-family:XuntaSans;src:url("./media/XuntaSans-Italic-IB4ABEJN.woff2") format("woff2"),url("./media/XuntaSans-Italic-PO5ZTMKL.woff") format("woff");font-weight:400;font-style:italic}@font-face{font-family:XuntaSans;src:url("./media/XuntaSans-BoldItalic-NHHOKYN2.woff2") format("woff2"),url("./media/XuntaSans-BoldItalic-L2YRVP33.woff") format("woff");font-weight:700;font-style:italic}.button-toggle-group-vertical[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:8px}.button-toggle-vertical[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#fbfbfc;border-radius:2px;font-family:XuntaSans,sans-serif;font-size:14px;line-height:18px;color:#5f6363;letter-spacing:0;color:#006ebb;text-align:left;padding:8px 12px;margin-bottom:8px}.button-toggle-vertical[_ngcontent-%COMP%]:hover, .button-toggle-vertical--checked[_ngcontent-%COMP%]{background-color:#006ebb;color:#fff}.global-card[_ngcontent-%COMP%]{padding:20px 20px 0}
1@media(min-width:900px){.global-card[_ngcontent-%COMP%]{padding:24px 24px 0}}.global-card__content[_ngcontent-%COMP%]{justify-content:space-between;margin:0}@media(min-width:700px){.global-card__content[_ngcontent-%COMP%]{flex-direction:row}}.ultraviolet-info__title[_ngcontent-%COMP%]{font-family:XuntaSans,sans-serif;font-size:24px;line-height:28px;color:#2d3232;letter-spacing:0;margin-bottom:16px}.ultraviolet-info__subtitle[_ngcontent-%COMP%]{font-family:XuntaSans,sans-serif;font-size:14px;line-height:18px;color:#5f6363;letter-spacing:0;margin-bottom:16px}.ultraviolet-info__side[_ngcontent-%COMP%]{width:100%;margin-bottom:24px}@media(min-width:700px){.ultraviolet-info__side[_ngcontent-%COMP%]{width:calc(33.3333333333% - 16px)}}.ultraviolet-info__main[_ngcontent-%COMP%]{width:100%}@media(min-width:700px){.ultraviolet-info__main[_ngcontent-%COMP%]{width:calc(66.6666666667% - 16px)}}.dynamic-content-html[_ngcontent-%COMP%]{margin-bottom:8px}']})}}return i})();var Ct=[{path:"",component:H}];export{Ct as ULTRAVIOLET_INFO_ROUTES};
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.