@vlci/cdmciutat 40.0.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.analitica=e():t.analitica=e()}(self,()=>(()=>{var t={2725:t=>{var e;self,e=()=>(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{MONTHS_YEAR:()=>a,MONTHS_YEAR_SHORT:()=>i,TEXTS_COMMON:()=>s,THRESHOLDS:()=>Ct,addPointInteger:()=>v,buildCamarasTrafico:()=>Ot,buildTableCalidadAire:()=>wt,calculateMaxYAxis:()=>O,calculatePentahoPath:()=>$t,calculateXAxisStart:()=>N,capitalizarTexto:()=>E,checkAllGroupsCollapsed:()=>Mt,configureDataBar:()=>q,configureDataGaugeCommon:()=>B,configureDataGaugeMonthCommon:()=>_,configureDataLine:()=>W,configureDataValidate:()=>Ht,configureLinesChartValidates:()=>Ut,convertDateToInteger:()=>b,convertISODateToEUDate:()=>S,convertToLanguageSelectorDateRange:()=>dt,convertToTableTreeView:()=>vt,downloadCSVTable:()=>At,downloadPDFTable:()=>Dt,formatCellMultiplesLines:()=>yt,formatDayMonthYear:()=>d,formatMilMillionEuros:()=>k,formatMonthAnyo:()=>u,formatName:()=>x,formatNameHeaderColumn:()=>gt,formatRoundTooltip:()=>I,formatShortMonthShortYear:()=>m,formatShortMonthYear:()=>f,formatToMillions:()=>M,formatToTons:()=>A,formatTooltip:()=>L,formatTooltipPie:()=>T,formatTrimestre:()=>p,formatWithPrefix:()=>D,getEnvironment:()=>Ft,getMaxFieldNumberFromData:()=>V,getMonth:()=>r,getMonthList:()=>h,getSelectCommonOptions:()=>at,getSelectTwoColumnsOptions:()=>it,initBarChart:()=>Bt,initBarChartComparationMonth:()=>qt,initChart:()=>w,initContractAllGroups:()=>xt,initElement:()=>C,initExpandAllGroups:()=>Et,initStackedBarChart:()=>kt,initStackedBarChartMonthSeries:()=>zt,initTable:()=>ht,initValueDefaultDate:()=>ct,initialCalls:()=>Nt,loadIframeOnClickEvent:()=>Jt,printDataChart:()=>F,printDataInHTMLElements:()=>G,printEchart:()=>P,printNoDataChart:()=>$,resetFilter:()=>rt,resetFilterAndUpdate:()=>pt,resetFilterDate:()=>lt,resetFilterDates:()=>st,resetFilterToDefault:()=>ft,resultsetWithFields:()=>J,selectConfigDatasource:()=>ot,selectConfigDatasourceAllValue:()=>nt,selectFilterAll:()=>tt,selectFilterNumItemsDefault:()=>mt,selectValueDefaultInFilter:()=>ut,separateDayMonthYearToSlash:()=>l,splitDataset:()=>U,subtractOneDay:()=>g,subtractOneMonth:()=>y,traverseRows:()=>St,updateDomElement:()=>H,updateObject:()=>j,updateStackedBarOptions:()=>Pt});const o="es_ES",n=(new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]]),{"01":"Enero","02":"Febrero","03":"Marzo","04":"Abril","05":"Mayo","06":"Junio","07":"Julio","08":"Agosto","09":"Septiembre",10:"Octubre",11:"Noviembre",12:"Diciembre"});function r(t){return{1:"Gen",2:"Feb",3:"Mar",4:"Abr",5:"Mai",6:"Jun",7:"Jul",8:"Ago",9:"Sep",10:"Oct",11:"Nov",12:"Des"}[parseInt(t.toString(),10)]}const a={es_ES:new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),ca_ES:new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]])},i={es_ES:new Map([["1","Ene"],["2","Feb"],["3","Mar"],["4","Abr"],["5","May"],["6","Jun"],["7","Jul"],["8","Ago"],["9","Sep"],["10","Oct"],["11","Nov"],["12","Dic"]]),ca_ES:new Map([["1","Gen"],["2","Feb"],["3","Mar"],["4","Abr"],["5","Mai"],["6","Jun"],["7","Jul"],["8","Ago"],["9","Set"],["10","Oct"],["11","Nov"],["12","Des"]])},s={es_ES:new Map([["last_update","Última actualización"]]),ca_ES:new Map([["last_update","Última actualització"]])};function l(t){return`${t.substring(6,8)}/${t.substring(4,6)}/${t.substring(0,4)}`}function c(t){return[t.substring(0,4),n[t.substring(4,6)]]}function u(t){const[e,o]=c(t);return`${o} ${e}`}function d(t){const[e,o,r]=function(t){return[t.substring(0,4),n[t.substring(4,6)],t.substring(6,8)]}(t);return`${r} ${o} ${e}`}function f(t){const[e,o]=c(t);return`${o.substring(0,3)} ${e}`}function m(t){const[e,o]=c(t);return`${o.substring(0,3)} '${e.substring(2,4)}`}function p(t){const[e,o]=t.split("-");return`${parseFloat(o)/3}T ${e}`}function h(){const t=a[o];return Array.from(t.values()).map(t=>t.slice(0,3))}function g(t){const e=Math.floor(t/1e4),o=new Date(e,t%1e4/100-1,t%100);return o.setDate(o.getDate()-1),`${o.getFullYear()}${(o.getMonth()+1).toString().padStart(2,"0")}${o.getDate().toString().padStart(2,"0")}`}function y(t){const e=new Date(Math.floor(t/100),t%100-1,0);return`${e.getFullYear()}${(e.getMonth()+1).toString().padStart(2,"0")}`}function b(t){return"string"==typeof t?parseInt(t.replace("-",""),10):t}function S(t){if(!t||"string"!=typeof t)return"";const[e,o,n]=t.split("-");return`${n}/${o}/${e}`}function v(t,e=2){let o=navigator.language||navigator.userLanguage;o=o.length<=2?`${o}-${o.toUpperCase()}`:o;const n={minimumFractionDigits:0,maximumFractionDigits:e};return"es-ES"===o?t.toLocaleString("de-DE",n):t.toLocaleString(o,n)}function M(t){const e=1e6;return t>=e?t/e+"M":t.toString()}function A(t){return t>=1e3?t/1e3+" Tn":t.toString()}function D(t){let e,o;return t>=1e6?(e=t/1e6,o="G"):t>=1e3?(e=t/1e3,o="M"):(e=t,o="k"),{value:Math.round(100*e)/100,prefix:o}}function x(t,e=29){if(t.length>=e){const o=t.split(" ");let n="",r="";return o.forEach(t=>{`${n} ${t}`.length<=e?n+=(n?" ":"")+t:(r+=`${n}\n`,n=t)}),r+=n,r}return t}function E(t){return t.includes("N/D")?t:t.toLowerCase().replace(/(^|\s|[.,;:!?¡¿(){}[\]])([^\s])/gu,(t,e,o)=>e+o[0].toUpperCase())}function C(t,e,o="MainContentLoadedCustom"){let n=document.getElementById(t);return n?Promise.resolve(e(n)):new Promise(r=>{document.body.addEventListener(o,()=>{n=document.getElementById(t),n?r(e(n)):(console.error(`El elemento con ID ${t} aún no está disponible después del evento.`),r(null))})})}function w(t,e){return C(t,t=>{const o=echarts.init(t);o.setOption(e,!0),window.addEventListener("resize",()=>{null!=o&&void 0!==o&&o.resize()});const n=document.getElementById("main-content");return n&&(n.addEventListener("shown.bs.collapse",()=>{o.resize()}),n.addEventListener("hidden.bs.collapse",()=>{o.resize()})),o})}function $(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="url('./build/images/nodata1.png') no-repeat top center",n.hidden=!1)}function F(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="#ffffff",n.hidden=!1)}function L(t,e=!1,o=!0,n=""){let r=`<p style="font-weight: 500;color: #565656;">${t[0].name}</p>`;return t.forEach(t=>{const a=e?Math.round(t.data):t.data,i=o?`<div style="font-weight: 400;color: #666;">${s=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;font-weight: 500;background-color:${s}"></span>`} ${t.seriesName}: \n <span style="float: right; margin-left:20px;font-weight: 600;color: #565656;">\n ${t.data?`${v(a)} ${n}`:"-"}\n </span>\n </div>`:`<div>\n <span style="font-weight: 600;color: #565656;">${t.data?`${v(a)} ${n}`:"-"}\n </span>\n </div>`;var s;r+=i}),r}function N(t){return 100*(t-120)/t}function O(t,e){const o=Math.max(...t);return o+(e-o%e)}function T(t,e=!1){const o=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:${t.color}"></span>`,n=e?`${t.percent}%`:v(t.value);return`<div> ${o} ${t.name} <span style="float: right; margin-left:20px;font-weight: 600;color: #333;"> ${n} </span></div>`}function I(t,e){let o=`${t.name} : `;return o+=`<span style="font-weight:500">${v(Math.round(t.value))}</span>`,e&&(o+=`<span> (${t.percent}%)</span>`),t.marker+o}function k(t){const e=1e6,o=Number(t);return o>=0&&o<e?`${v(o)} €`:o>=e?`${v(o/e)} M €`:"-"}function P(t,e,o){return 0===t.length?($(`#${e}`,`#${o}`),!1):(F(`#${o}`,`#${e}`),!0)}function z(t,e,o=1){const n=Math.max(...t.map(t=>t[e]))*o;return 5e3*Math.ceil(n/5e3)}function B(t,e,o,n=30,r=15,a=30,i=-70,s=70,l=3){const c=z(t,e.data,1.1),u=s,d=o.slice(),f=[];let m=r,p=a,h=i;for(let o=0;o<t.length;o+=1)f.push({value:t[o][e.data],name:x(String(t[o][e.type]).replace(/\[.*?\]/g,"")),color:d.shift(),title:{offsetCenter:[`${String(h)}%`,`${String(m)}%`],fontFamily:"Montserrat",fontSize:n},detail:{offsetCenter:[`${String(h)}%`,`${String(p)}%`],fontFamily:"Montserrat",width:"33%",formatter:t=>v(Math.round(t))}}),h+=u,(o+1)%l===0&&(p+=a,m+=2*r,h=i);return[c,f]}function _(t,e,o,n=0){return[z(e,o.data,1),t=>function(t,e,o){const n=v(Math.round(e)),a=r(t[o][0]),i=t[o][1],s=`\n${a} ${i} : ${n}`,l=`${n}\n${a} ${i}`;return window.innerWidth<=1710?s:l}(e,t,n),[{value:e[n][o.data]}]]}function R(t,e){const{resultset:o}={resultset:t},n=new Set,r=new Set,a=o.map(([t,o,a])=>{const i=e?Math.round(a):a;return n.add(t),r.add(o),{day:o,type:t,value:i}}),i=Array.from(r.values()),s=Array.from(n.values());return s.sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0})),[s.map(t=>{const e=a.filter(e=>e.type===t).map(({day:e,value:o})=>[e,t,o]),o=i.map(t=>{const o=e.find(([e])=>e===t);return o?o[2]:null});return{name:t,data:o}}),s,r]}function W(t,e=[],o=!1){const[n,r,a]=R(t,o);return n.forEach(t=>{t.type="line",t.symbol="circle",t.symbolSize=6,t.smooth=.1,e.length>0&&(t.color=e.shift())}),[n,a,r]}function q(t,e,o=!1){const[n,r,a]=R(t,o);return n.forEach(t=>{t.type="bar",t.color=e.shift(),t.smooth=!1}),[n,a,r]}function J(t){const{resultset:e,metadata:o}=t,n=[];return e.forEach(t=>{const e={};t.forEach((t,n)=>{e[o[n].colName]=t}),n.push(e)}),n}function j(t,e){const o={...t};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&("series"===n&&Array.isArray(e[n])?o[n]=e[n].map((e,o)=>({...Array.isArray(t[n])&&t[n][o]||{},...e})):"object"!=typeof e[n]||null===e[n]||Array.isArray(e[n])?t[n]!==e[n]&&(o[n]=e[n]):o[n]=j(t[n]||{},e[n]))}),o}function G(t,e){const o=()=>{t.forEach(t=>{t.id in e&&Object.entries(e[t.id]).forEach(o=>{const n=o[0],r=o[1];"object"==typeof r?r.className?document.querySelector(r.className).className=t[n]:r.element&&r.format&&(document.querySelector(r.element).textContent=e[t.id][n].format(t[n])):document.querySelector(r).textContent=t[n]})})};try{o()}catch(t){document.body.addEventListener("MainContentLoadedCustom",()=>{o()})}}function V(t,e){const o=J(t),n=[];let r=null;return o.forEach(t=>{const o=t[e];"number"!=typeof o||Number.isNaN(o)||n.push(o)}),n.length>0&&(r=Math.max(...n)),r}function H(t,e){const o=document.querySelector(t);o?o.textContent=e:console.warn(`Elemento ${t} no encontrado en el DOM`)}function U(t,e=!0){const o={Cont:[],Mob:[]};return t.forEach(t=>{"is-res-001-kgs-contenidors"===t[0]&&"total"===t[1]&&(e?o.Cont.push([t[3],t[4],t[2]]):o.Cont.push([t[3],t[2]])),"Mobles"===t[1]&&(e?o.Mob.push([t[3],t[4],t[2]]):o.Mob.push([t[3],t[2]]))}),o}const Y=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],X=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],Z=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],K=["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],Q=["Do","Lu","Ma","Mi","Ju","Vi","Sá"];function tt(t){const e=t.resultset.map(t=>t[0]);return this.dashboard.fireChange(this.parameter,e),t}function et(t){for(const e of t)if(Array.isArray(e)){if(!et(e))return!1}else if("All"!==e)return!1;return!0}function ot(t,e,o,n){return et(e)?(t.queryDefinition.dataAccessId=o,t.dashboard.setParameter(t.parameter,["All"])):t.queryDefinition.dataAccessId=n,!0}function nt(t){return t.dashboard.setParameter(t.parameter,["All"]),!0}function rt(t){t.forEach(t=>{Dashboards.fireChange(t,["All"])})}function at(t="Todos"){return{input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:t,noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}}}function it(t="Todos"){const e=at(t);return e.input.indexes.id=1,e.input.indexes.label=0,e}function st(t,e,o,n){const r=Dashboards.getParameterValue(o),a=Dashboards.getParameterValue(n);return Dashboards.fireChange(t,[r]),Dashboards.fireChange(e,[a]),!0}function lt(t,e){const o=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,[o]),!0}function ct(t,e){Dashboards.fireChange(e,t.resultset[0][0])}function ut(t,e){const o=Dashboards.getParameterValue(e),n=t.parameter;""!==o&&t.dashboard.setParameter(n,[o])}function dt(t){t.regional.es={monthNames:Y,abbreviatedMonthNames:X,dayNames:Z,abbreviatedDayNames:K,dayNamesMin:Q,weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},t.setDefaults(t.regional.es)}function ft(t,e){const o=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,Array.isArray(o)?o:[o]),!0}function mt(t,e,o,n=0){const r=t.resultset.slice(0,o).map(t=>t[n]);return Dashboards.setParameter(e,r),t}function pt(t,e,o){const n=Array.isArray(e)?e:[e];Dashboards.fireChange(t,n);const r=Dashboards.getComponent(o);r&&r.update()}function ht(t,e){return C(t,t=>new Tabulator(t,e))}function gt(t,e){let o=t.getValue();return o.length>e&&(o=`${o.substr(0,e)}<br>${o.substr(e)}`),o}function yt(t,e){const o=t.getValue().split(" ");let n="",r="";return o.forEach(t=>{(r+t).length<=e?r+=`${t} `:(n+=`${r}<br>`,r=`${t} `)}),n+=`${r}<br>`,n}function bt(t,e){"expand"===e?t.treeExpand():t.treeCollapse();const o=t.getTreeChildren();o.length>0&&o.forEach(t=>{t.getTreeChildren().length>0&&bt(t,e)})}function St(t,e){t.getRows().forEach(t=>{t.getTreeChildren().length>0&&bt(t,e)})}function vt(t,e,o,n){const r=[];return Object.keys(t).forEach(a=>{if(Object.prototype.hasOwnProperty.call(t,a)){const i=t[a],s={[e]:i[0],_children:[]};i.shift(),i.forEach((t,r)=>{const a={[e]:o[r],[n]:t};s._children.push(a)}),r.push(s)}}),r}function Mt(t){let e=!0;return t.getGroups().forEach(t=>{t._group.visible&&(e=!1)}),e}function At(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",()=>{t.download("csv",`${e}.csv`,{delimiter:";",bom:!0})})}function Dt(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",()=>{const o=t.getRows().map(t=>t.getData()),n=t.getColumns(),r={};n.forEach((t,e)=>{const n=t.getField();n&&o.every(t=>{const e=t[n];return null==e||/^-?\d+([.,]\d+)?$/.test(e.toString().trim())})&&(r[e]={halign:"right"})}),t.download("pdf",`${e}.pdf`,{title:e,rowCalcStyles:{fontSize:8,fontStyle:"bold"},autoTable:{styles:{fontSize:8,lineWidth:.1,lineColor:[200,200,200]},headStyles:{halign:"center"},columnStyles:r}})})}function xt(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!1),t.setData(e)})}function Et(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!0),t.setData(e)})}const Ct={SO2:[100,200,350,500,750,751],NO2:[40,90,120,230,340,341],O3:[50,100,130,240,380,381],PM10:[20,40,50,100,150,151],PM25:[10,20,25,50,75,76]};function wt(t){const e=[],o={0:"b",1:"a",2:"d",3:"m",4:"mm",5:"em",6:"",7:"nd"};function n(t,e,n){const r=document.createElement("td");if(r.setAttribute("id",t),null!=e){r.innerHTML=e;const t=function(t,e){let n;return void 0===e?n=6:"ND"===e?n=7:(n=5,t.forEach((t,o)=>{e<=t&&5===n&&(n=o)})),o[n]}(n,e);r.classList.add(t)}return r}return t.forEach(t=>{const o=t;"noData"===o.operationalstatus&&(o.so2value="ND",o.no2value="ND",o.o3value="ND",o.pm10value="ND",o.pm25value="ND");const r=document.createElement("tr"),a=document.createElement("td");a.innerHTML=o.address,r.appendChild(a),r.appendChild(n(`${o.entityid}_so2`,o.so2value,Ct.SO2)),r.appendChild(n(`${o.entityid}_no2`,o.no2value,Ct.NO2)),r.appendChild(n(`${o.entityid}_o3`,o.o3value,Ct.O3)),r.appendChild(n(`${o.entityid}_pm10`,o.pm10value,Ct.PM10)),r.appendChild(n(`${o.entityid}_pm25`,o.pm25value,Ct.PM25)),e.push(r)}),e}function $t(t){document.location=`${document.documentURI.split("%3A")[0]}%3A${document.documentURI.split("%3A")[1]}%3A${document.documentURI.split("%3A")[2]}%3A${document.documentURI.split("%3A")[3]}%3A${t}`}function Ft(){const t=window.location.href;let e="";return e=t.includes("localhost")?"local":t.includes("sc_valencia_pre")?"PRE":"PRO",e}function Lt(t,e){document.querySelectorAll(`[${t}]`).forEach(o=>{!function(t,e,o){const n=e;if(t){const e=new XMLHttpRequest;e.onreadystatechange=function(){4===this.readyState&&(200===this.status&&(n.innerHTML=this.responseText,o&&o()),404===this.status&&(n.innerHTML="No se ha podido cargar correctamente."))},e.open("GET",t,!0),e.send()}}(o.getAttribute(t),o,e)})}function Nt(t){window.realDashboardsInit=Dashboards.init,Dashboards.init=function(){console.warn("Dashboards.init bloqueado temporalmente")},Lt("include-html-cabecera",function(){!function(){const t=Ft();"PRO"!==t&&(document.title+=` (${t})`)}(),function(){const t=Ft();"PRO"!==t&&(document.querySelector("nav").querySelectorAll("span")[1].textContent+=` (${t})`)}()}),Lt("include-html-menu"),Lt("include-html-main-container",function(){document.body.dispatchEvent(new Event("MainContentLoadedCustom")),function(){const t=document.querySelector("body");t.classList.remove("inicio"),t.classList.add(document.documentURI.split("%3A")[4].match(/(.*?).wcdf/)[1])}(),t&&t()}),Lt("include-html-copyright"),function(t="MainContentLoadedCustom"){document.body.addEventListener(t,()=>{try{Dashboards.init=window.realDashboardsInit,Dashboards.init()}catch(t){console.warn("No se pudo restaurar Dashboards.init; la función original no está disponible.")}},{once:!0})}()}function Ot(t,e,o,n,r,a){let i=!1,s=!1;const l=document.querySelector(t),c=document.querySelector(e),u=()=>{"undefined"!=typeof Liferay&&"ca-ES"===Liferay.ThemeDisplay.getBCP47LanguageId()?(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=cas"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=cas")):(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=val"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=val"))};function d(t=!0){const e=document.querySelector(o);t?(l&&(l.src="about:blank"),c&&(c.src="about:blank"),e.classList.add("blur"),s=!0):(e.classList.remove("blur"),u(),s=!1)}const f=t=>{new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(s||u(),i||(i=!0,window.setTimeout(d,a)))})}).observe(t)};!function(){const{userAgent:t}=navigator;return/iPad|iPhone|iPod|Macintosh/.test(t)&&!window.MSStream}()?(l&&(l.setAttribute("sandbox","allow-scripts"),f(l)),c&&(c.setAttribute("sandbox","allow-scripts"),f(c)),document.querySelector(r).addEventListener("click",()=>{d(!1),window.setTimeout(d,a)})):document.querySelectorAll(n)[0].style.display="none"}const Tt={grid:{containLabel:!0},title:{left:"center",top:"0",textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:{orient:"horizontal",bottom:"0",left:"center",width:"100%",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:400,color:"#666"}},toolbox:{show:!0,right:"0",top:"0",feature:{restore:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}},saveAsImage:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}}},emphasis:{iconStyle:{borderColor:"#ffcd00",textFill:"#666"}}},tooltip:{textStyle:{fontFamily:"Montserrat",fontSize:12}},xAxis:[{type:"category",axisLabel:{show:!0,interval:0,textStyle:{fontFamily:"Montserrat",fontSize:11}},data:[]}],yAxis:[{type:"value",alignTicks:!0,position:"right",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${t}%`}},{type:"value",position:"left",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${M(t)}€`}}]},It=(t,e)=>{e.sort((t,e)=>parseInt(t.anyo)-parseInt(e.anyo));const o={};e.forEach(e=>{const n=e[1],r=e[0];r!==t.seriesName||o[n]||(o[n]=0),r===t.seriesName&&(o[n]+=e[2])});let n=`<p>${t.seriesName}</p>`;for(const[e,r]of Object.entries(o))n+=`<div>${t.marker} ${e}: <span style="float: right; margin-left:20px;font-weight: 600;">${v(r)}</span></div>`;return n};function kt(t,e,o=void 0,n=void 0){const r=null===n?void 0:n,a=new Set(e.map(t=>t[1]));let i;const s={title:{text:"SIN TITULO",left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{axisPointer:{type:"shadow"},trigger:"item",formatter:t=>It(t,e),textStyle:{fontFamily:"Montserrat"},position(t,e,o,n,r){const a={},i=r.contentSize[1]/2,s=r.viewSize[1],l=t[1];return l<i?a.top=10:l+i>s?a.bottom=10:a.top=l-i,t[0]<r.viewSize[0]/2?a.left=t[0]+20:a.right=r.viewSize[0]-t[0]+20,a}},legend:{padding:40,textStyle:{fontFamily:"Montserrat"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitNumber:10,name:"SIN NOMBRE",nameLocation:"start",nameTextStyle:{fontWeight:"bold",fontFamily:"Montserrat",color:"#666",padding:-40},axisLabel:{margin:5,textStyle:{fontFamily:"Montserrat"},formatter:t=>v(t)},splitLine:{lineStyle:{color:"#DDD"}}},yAxis:{type:"category",data:Array.from(a),axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:(()=>{const t={name:"SIN NOMBRE",type:"bar",stack:"total",label:{show:!0,fontFamily:"Montserrat",fontSize:10,formatter:t=>v(Math.round(t.value))},itemStyle:void 0,emphasis:{focus:"series"},data:void 0};r&&r.itemStyle&&Array.isArray(r.itemStyle.borderColor)&&(i=[...r.itemStyle.borderColor],delete r.itemStyle.borderColor);const o=function(t){return t.reduce((t,e)=>{const o=e[0];return t[o]||(t[o]=[]),t[o].push(e),t},{})}(e),n=Object.keys(o);a.forEach(t=>{n.forEach(e=>{void 0===o[e].find(e=>e[1]===t)&&(o[e].push([o[e][0][0],t,void 0]),o[e].sort())})});const s=[];return Object.keys(o).forEach(e=>{i&&(t.itemStyle={borderColor:i.shift()}),t.name=e,t.data=o[e].map(t=>t[2]);let n={};n=void 0!==r?j(t,r):t,s.push({...n})}),s})(),toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50}};let l={};l=void 0!==o?j(s,o):s,w(t,l)}function Pt(t){let e={};return e=j(Tt,t),e}function zt(t,e,o={},n={}){let a={};a=j(o,{color:["#81B1CC","#ABD9EA","#C2EEF9","#F9E2AF","#F9C780","#FDAE61","#F46D43","#FDAE61","#F9E2AF","#C2EEF9","#ABD9EA","#81B1CC"],yAxis:{data:function(){const t=new Set;return e.forEach(e=>{t.add(e[1])}),Array.from(t).sort((t,e)=>t-e)}()}});const i={itemStyle:{borderWidth:2,borderColor:["#448DAD","#89CADB","#A0DEE8","#F4D28C","#F4B569","#F79646","#F25930","#F79646","#F4D28C","#A0DEE8","#89CADB","#448DAD"]}},s=null===n?i:j(n,i),l=e;l.forEach((t,e)=>{l[e][0]=r(t[0])}),kt(t,l,a,s)}function Bt(t,e=void 0){const o={title:{text:"SIN TITULO",left:"center",top:"top",padding:50,textStyle:{fontSize:14,fontFamily:"Montserrat",fontWeight:400,color:"#333"}},legend:{show:!1},grid:{top:"30%",bottom:"5%",left:"8%",right:"8%"},xAxis:{type:"value",show:!1},yAxis:{show:!1,type:"category"},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat",fontWeight:"600"},appendToBody:!0,formatter:t=>I(t,!1)},series:[{type:"bar",showBackground:!0}]};let n={};n=void 0!==e?j(o,e):o,w(t,n)}function _t(t){return Math.max(...t.map(t=>Number(t[0])))}function Rt(t){const e=t.filter(e=>Number(e[0])===_t(t)),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n}),o}function Wt(t){const e=t.filter(e=>Number(e[0])===_t(t)-1),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n}),o}function qt(t,e,o=void 0){const n=_t(e).toString(),r=(_t(e)-1).toString();Bt(t,j({title:{left:"center",top:"-12%",textStyle:{fontSize:15,fontFamily:"Montserrat"}},legend:{top:"10%",show:!0,data:[r,n],textStyle:{fontFamily:"Montserrat"}},grid:{bottom:"8%",top:"20%",right:"2%"},xAxis:[{type:"category",data:h(),interval:0,margin:10,axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],yAxis:[{type:"value",axisLabel:{formatter:t=>t.toLocaleString("es-ES"),textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],series:[{name:r,type:"bar",data:Wt(e)},{name:n,type:"bar",barGap:0,data:Rt(e)}]},o))}function Jt(t,e,o){const n=document.querySelector(e),r=document.querySelector(t);let a=!1;r.addEventListener("click",()=>{!1===a&&(a=!0,n.setAttribute("src","about:blank"),n.setAttribute("src",o),n.onload=()=>{a=!1})}),r.disabled=!1}const jt="id",Gt="fecha",Vt="value";function Ht(t,e,o,n,r="es_ES"){const[a,i]=function(t,e,o){const n=[],r=[];return t.forEach(t=>{e.includes(`${t[jt]}`)?n.push(`${t[Gt]}`):o.includes(`${t[jt]}`)&&r.push(`${t[Gt]}`)}),[n.map(t=>[t,0]),r.map(t=>[t,0])]}(t,o,n);let s="es_ES"==r?"Datos sin validar":"Dades sense validar";0===i.length&&(s="");const l={name:"Datos validados",type:"line",data:[...a,i[0]],lineStyle:{color:"#00A9A0",width:4},showSymbol:!1,tooltip:{show:!1}};let c="",u="";if(0===i.length){const e=t[t.length-1].fecha;c=e,u=e}else c=i[0][0],u=i[i.length-1][0];return[...e,l,{name:"Datos NO validados",type:"line",data:i,lineStyle:{color:"#80D4CF",width:4},showSymbol:!1,tooltip:{show:!1},markArea:{silent:!0,itemStyle:{opacity:.6,color:"#eee"},tooltip:{show:!1},label:{color:"#333",fontStyle:"normal",fontWeight:"400",fontFamily:"Montserrat",fontSize:11},data:[[{name:s,xAxis:c,yAxis:0},{name:"end",xAxis:u,yAxis:Math.max(...t.filter(t=>null!==t[Vt]).map(t=>parseInt(`${t[Vt]}`,10)))}]]}}]}function Ut(t,e,o=void 0){w(t,j({grid:{left:"2.5%",right:"5%",bottom:"70",top:"150",containLabel:!0},title:{left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},legend:{type:"plain",top:"50",width:"98%",textStyle:{fontFamily:"Montserrat"}},tooltip:{trigger:"axis",show:!0,formatter:t=>L(t),textStyle:{fontFamily:"Montserrat"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{show:!1},axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},yAxis:{type:"value",nameLocation:"end",nameGap:"0",nameTextStyle:{fontFamily:"Montserrat",fontWeight:"500",padding:[-25,0,0,-48],margin:0,align:"left",verticalAlign:"top",width:"auto"},scale:!0,splitNumber:"6",axisLabel:{margin:10,textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},dataZoom:{end:100,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}},toolbox:{feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:"1%",top:"0%"},series:e},o))}return e})(),t.exports=e()}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{loadAnaliticaFrames:()=>e});var t=o(2725);function e(){(0,t.loadIframeOnClickEvent)("#tabSmartCity","#iframeSmartCity","https://lookerstudio.google.com/embed/reporting/ff43c17f-23cb-4edb-923b-a7b061d829dc/page/6WdoC?hl=ca"),(0,t.loadIframeOnClickEvent)("#tabCdmCiutat","#iframeCdMCiutat","https://lookerstudio.google.com/embed/reporting/2da9d93e-d833-4a00-833a-19ac0746dc9f/page/6WdoC?hl=ca"),window.addEventListener("load",()=>{document.querySelector("#iframeValenciaMinut").setAttribute("src","https://lookerstudio.google.com/embed/reporting/14a41533-3cd8-4f75-b303-9a494c0e4a9d/page/6WdoC?hl=ca")})}})(),n})());
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.analitica=e():t.analitica=e()}(self,()=>(()=>{var t={2725:t=>{var e;self,e=()=>(()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{MONTHS_YEAR:()=>a,MONTHS_YEAR_SHORT:()=>i,TEXTS_COMMON:()=>s,THRESHOLDS:()=>Ct,addPointInteger:()=>v,buildCamarasTrafico:()=>Ot,buildTableCalidadAire:()=>wt,calculateMaxYAxis:()=>O,calculatePentahoPath:()=>$t,calculateXAxisStart:()=>N,capitalizarTexto:()=>E,checkAllGroupsCollapsed:()=>Mt,configureDataBar:()=>q,configureDataGaugeCommon:()=>B,configureDataGaugeMonthCommon:()=>_,configureDataLine:()=>W,configureDataValidate:()=>Ht,configureLinesChartValidates:()=>Ut,convertDateToInteger:()=>b,convertISODateToEUDate:()=>S,convertToLanguageSelectorDateRange:()=>dt,convertToTableTreeView:()=>vt,downloadCSVTable:()=>At,downloadPDFTable:()=>Dt,formatCellMultiplesLines:()=>yt,formatDayMonthYear:()=>d,formatMilMillionEuros:()=>k,formatMonthAnyo:()=>u,formatName:()=>x,formatNameHeaderColumn:()=>gt,formatRoundTooltip:()=>I,formatShortMonthShortYear:()=>m,formatShortMonthYear:()=>f,formatToMillions:()=>M,formatToTons:()=>A,formatTooltip:()=>L,formatTooltipPie:()=>T,formatTrimestre:()=>p,formatWithPrefix:()=>D,getEnvironment:()=>Ft,getMaxFieldNumberFromData:()=>V,getMonth:()=>r,getMonthList:()=>h,getSelectCommonOptions:()=>at,getSelectTwoColumnsOptions:()=>it,initBarChart:()=>Bt,initBarChartComparationMonth:()=>qt,initChart:()=>w,initContractAllGroups:()=>xt,initElement:()=>C,initExpandAllGroups:()=>Et,initStackedBarChart:()=>kt,initStackedBarChartMonthSeries:()=>zt,initTable:()=>ht,initValueDefaultDate:()=>ct,initialCalls:()=>Nt,loadIframeOnClickEvent:()=>Jt,printDataChart:()=>F,printDataInHTMLElements:()=>G,printEchart:()=>P,printNoDataChart:()=>$,resetFilter:()=>rt,resetFilterAndUpdate:()=>pt,resetFilterDate:()=>lt,resetFilterDates:()=>st,resetFilterToDefault:()=>ft,resultsetWithFields:()=>J,selectConfigDatasource:()=>ot,selectConfigDatasourceAllValue:()=>nt,selectFilterAll:()=>tt,selectFilterNumItemsDefault:()=>mt,selectValueDefaultInFilter:()=>ut,separateDayMonthYearToSlash:()=>l,splitDataset:()=>U,subtractOneDay:()=>g,subtractOneMonth:()=>y,traverseRows:()=>St,updateDomElement:()=>H,updateObject:()=>j,updateStackedBarOptions:()=>Pt});const o="es_ES",n=(new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]]),{"01":"Enero","02":"Febrero","03":"Marzo","04":"Abril","05":"Mayo","06":"Junio","07":"Julio","08":"Agosto","09":"Septiembre",10:"Octubre",11:"Noviembre",12:"Diciembre"});function r(t){return{1:"Gen",2:"Feb",3:"Mar",4:"Abr",5:"Mai",6:"Jun",7:"Jul",8:"Ago",9:"Sep",10:"Oct",11:"Nov",12:"Des"}[parseInt(t.toString(),10)]}const a={es_ES:new Map([["1","Enero"],["2","Febrero"],["3","Marzo"],["4","Abril"],["5","Mayo"],["6","Junio"],["7","Julio"],["8","Agosto"],["9","Septiembre"],["10","Octubre"],["11","Noviembre"],["12","Diciembre"]]),ca_ES:new Map([["1","Gener"],["2","Febrer"],["3","Març"],["4","Abril"],["5","Maig"],["6","Juny"],["7","Juliol"],["8","Agost"],["9","Setembre"],["10","Octubre"],["11","Novembre"],["12","Desembre"]])},i={es_ES:new Map([["1","Ene"],["2","Feb"],["3","Mar"],["4","Abr"],["5","May"],["6","Jun"],["7","Jul"],["8","Ago"],["9","Sep"],["10","Oct"],["11","Nov"],["12","Dic"]]),ca_ES:new Map([["1","Gen"],["2","Feb"],["3","Mar"],["4","Abr"],["5","Mai"],["6","Jun"],["7","Jul"],["8","Ago"],["9","Set"],["10","Oct"],["11","Nov"],["12","Des"]])},s={es_ES:new Map([["last_update","Última actualización"]]),ca_ES:new Map([["last_update","Última actualització"]])};function l(t){return`${t.substring(6,8)}/${t.substring(4,6)}/${t.substring(0,4)}`}function c(t){return[t.substring(0,4),n[t.substring(4,6)]]}function u(t){const[e,o]=c(t);return`${o} ${e}`}function d(t){const[e,o,r]=function(t){return[t.substring(0,4),n[t.substring(4,6)],t.substring(6,8)]}(t);return`${r} ${o} ${e}`}function f(t){const[e,o]=c(t);return`${o.substring(0,3)} ${e}`}function m(t){const[e,o]=c(t);return`${o.substring(0,3)} '${e.substring(2,4)}`}function p(t){const[e,o]=t.split("-");return`${parseFloat(o)/3}T ${e}`}function h(){const t=a[o];return Array.from(t.values()).map(t=>t.slice(0,3))}function g(t){const e=Math.floor(t/1e4),o=new Date(e,t%1e4/100-1,t%100);return o.setDate(o.getDate()-1),`${o.getFullYear()}${(o.getMonth()+1).toString().padStart(2,"0")}${o.getDate().toString().padStart(2,"0")}`}function y(t){const e=new Date(Math.floor(t/100),t%100-1,0);return`${e.getFullYear()}${(e.getMonth()+1).toString().padStart(2,"0")}`}function b(t){return"string"==typeof t?parseInt(t.replace("-",""),10):t}function S(t){if(!t||"string"!=typeof t)return"";const[e,o,n]=t.split("-");return`${n}/${o}/${e}`}function v(t,e=2){let o=navigator.language||navigator.userLanguage;o=o.length<=2?`${o}-${o.toUpperCase()}`:o;const n={minimumFractionDigits:0,maximumFractionDigits:e};return"es-ES"===o?t.toLocaleString("de-DE",n):t.toLocaleString(o,n)}function M(t){const e=1e6;return t>=e?t/e+"M":t.toString()}function A(t){return t>=1e3?t/1e3+" Tn":t.toString()}function D(t){let e,o;return t>=1e6?(e=t/1e6,o="G"):t>=1e3?(e=t/1e3,o="M"):(e=t,o="k"),{value:Math.round(100*e)/100,prefix:o}}function x(t,e=29){if(t.length>=e){const o=t.split(" ");let n="",r="";return o.forEach(t=>{`${n} ${t}`.length<=e?n+=(n?" ":"")+t:(r+=`${n}\n`,n=t)}),r+=n,r}return t}function E(t){return t.includes("N/D")?t:t.toLowerCase().replace(/(^|\s|[.,;:!?¡¿(){}[\]])([^\s])/gu,(t,e,o)=>e+o[0].toUpperCase())}function C(t,e,o="MainContentLoadedCustom"){let n=document.getElementById(t);return n?Promise.resolve(e(n)):new Promise(r=>{document.body.addEventListener(o,()=>{n=document.getElementById(t),n?r(e(n)):(console.error(`El elemento con ID ${t} aún no está disponible después del evento.`),r(null))})})}function w(t,e){return C(t,t=>{const o=echarts.init(t);o.setOption(e,!0),window.addEventListener("resize",()=>{null!=o&&void 0!==o&&o.resize()});const n=document.getElementById("main-content");return n&&(n.addEventListener("shown.bs.collapse",()=>{o.resize()}),n.addEventListener("hidden.bs.collapse",()=>{o.resize()})),o})}function $(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="url('./build/images/nodata1.png') no-repeat top center",n.hidden=!1)}function F(t,e){const o=t?document.querySelector(t):null,n=e?document.querySelector(e):null;o&&(o.hidden=!0),n&&(n.style.background="#ffffff",n.hidden=!1)}function L(t,e=!1,o=!0,n=""){let r=`<p style="font-weight: 500;color: #565656;">${t[0].name}</p>`;return t.forEach(t=>{const a=e?Math.round(t.data):t.data,i=o?`<div style="font-weight: 400;color: #666;">${s=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;font-weight: 500;background-color:${s}"></span>`} ${t.seriesName}: \n <span style="float: right; margin-left:20px;font-weight: 600;color: #565656;">\n ${t.data?`${v(a)} ${n}`:"-"}\n </span>\n </div>`:`<div>\n <span style="font-weight: 600;color: #565656;">${t.data?`${v(a)} ${n}`:"-"}\n </span>\n </div>`;var s;r+=i}),r}function N(t){return 100*(t-120)/t}function O(t,e){const o=Math.max(...t);return o+(e-o%e)}function T(t,e=!1){const o=`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:${t.color}"></span>`,n=e?`${t.percent}%`:v(t.value);return`<div> ${o} ${t.name} <span style="float: right; margin-left:20px;font-weight: 600;color: #333;"> ${n} </span></div>`}function I(t,e){let o=`${t.name} : `;return o+=`<span style="font-weight:500">${v(Math.round(t.value))}</span>`,e&&(o+=`<span> (${t.percent}%)</span>`),t.marker+o}function k(t){const e=1e6,o=Number(t);return o>=0&&o<e?`${v(o)} €`:o>=e?`${v(o/e)} M €`:"-"}function P(t,e,o){return 0===t.length?($(`#${e}`,`#${o}`),!1):(F(`#${o}`,`#${e}`),!0)}function z(t,e,o=1){const n=Math.max(...t.map(t=>t[e]))*o;return 5e3*Math.ceil(n/5e3)}function B(t,e,o,n=30,r=15,a=30,i=-70,s=70,l=3){const c=z(t,e.data,1.1),u=s,d=o.slice(),f=[];let m=r,p=a,h=i;for(let o=0;o<t.length;o+=1)f.push({value:t[o][e.data],name:x(String(t[o][e.type]).replace(/\[.*?\]/g,"")),color:d.shift(),title:{offsetCenter:[`${String(h)}%`,`${String(m)}%`],fontFamily:"Montserrat",fontSize:n},detail:{offsetCenter:[`${String(h)}%`,`${String(p)}%`],fontFamily:"Montserrat",width:"33%",formatter:t=>v(Math.round(t))}}),h+=u,(o+1)%l===0&&(p+=a,m+=2*r,h=i);return[c,f]}function _(t,e,o,n=0){return[z(e,o.data,1),t=>function(t,e,o){const n=v(Math.round(e)),a=r(t[o][0]),i=t[o][1],s=`\n${a} ${i} : ${n}`,l=`${n}\n${a} ${i}`;return window.innerWidth<=1710?s:l}(e,t,n),[{value:e[n][o.data]}]]}function R(t,e){const{resultset:o}={resultset:t},n=new Set,r=new Set,a=o.map(([t,o,a])=>{const i=e?Math.round(a):a;return n.add(t),r.add(o),{day:o,type:t,value:i}}),i=Array.from(r.values()),s=Array.from(n.values());return s.sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0})),[s.map(t=>{const e=a.filter(e=>e.type===t).map(({day:e,value:o})=>[e,t,o]),o=i.map(t=>{const o=e.find(([e])=>e===t);return o?o[2]:null});return{name:t,data:o}}),s,r]}function W(t,e=[],o=!1){const[n,r,a]=R(t,o);return n.forEach(t=>{t.type="line",t.symbol="circle",t.symbolSize=6,t.smooth=.1,e.length>0&&(t.color=e.shift())}),[n,a,r]}function q(t,e,o=!1){const[n,r,a]=R(t,o);return n.forEach(t=>{t.type="bar",t.color=e.shift(),t.smooth=!1}),[n,a,r]}function J(t){const{resultset:e,metadata:o}=t,n=[];return e.forEach(t=>{const e={};t.forEach((t,n)=>{e[o[n].colName]=t}),n.push(e)}),n}function j(t,e){const o={...t};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&("series"===n&&Array.isArray(e[n])?o[n]=e[n].map((e,o)=>({...Array.isArray(t[n])&&t[n][o]||{},...e})):"object"!=typeof e[n]||null===e[n]||Array.isArray(e[n])?t[n]!==e[n]&&(o[n]=e[n]):o[n]=j(t[n]||{},e[n]))}),o}function G(t,e){const o=()=>{t.forEach(t=>{t.id in e&&Object.entries(e[t.id]).forEach(o=>{const n=o[0],r=o[1];"object"==typeof r?r.className?document.querySelector(r.className).className=t[n]:r.element&&r.format&&(document.querySelector(r.element).textContent=e[t.id][n].format(t[n])):document.querySelector(r).textContent=t[n]})})};try{o()}catch(t){document.body.addEventListener("MainContentLoadedCustom",()=>{o()})}}function V(t,e){const o=J(t),n=[];let r=null;return o.forEach(t=>{const o=t[e];"number"!=typeof o||Number.isNaN(o)||n.push(o)}),n.length>0&&(r=Math.max(...n)),r}function H(t,e){const o=document.querySelector(t);o?o.textContent=e:console.warn(`Elemento ${t} no encontrado en el DOM`)}function U(t,e=!0){const o={Cont:[],Mob:[]};return t.forEach(t=>{"is-res-001-kgs-contenidors"===t[0]&&"total"===t[1]&&(e?o.Cont.push([t[3],t[4],t[2]]):o.Cont.push([t[3],t[2]])),"Mobles"===t[1]&&(e?o.Mob.push([t[3],t[4],t[2]]):o.Mob.push([t[3],t[2]]))}),o}const Y=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],X=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],Z=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],K=["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],Q=["Do","Lu","Ma","Mi","Ju","Vi","Sá"];function tt(t){const e=t.resultset.map(t=>t[0]);return this.dashboard.fireChange(this.parameter,e),t}function et(t){for(const e of t)if(Array.isArray(e)){if(!et(e))return!1}else if("All"!==e)return!1;return!0}function ot(t,e,o,n){return et(e)?(t.queryDefinition.dataAccessId=o,t.dashboard.setParameter(t.parameter,["All"])):t.queryDefinition.dataAccessId=n,!0}function nt(t){return t.dashboard.setParameter(t.parameter,["All"]),!0}function rt(t){t.forEach(t=>{Dashboards.fireChange(t,["All"])})}function at(t="Todos"){return{input:{root:{id:"All"},indexes:{id:0,label:0}},component:{Root:{strings:{isDisabled:"No disponible",allItems:t,noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}},Group:{Strings:{allItems:"Todos",noItems:"Ninguno",btnApply:"Aceptar",btnCancel:"Cancelar"}}}}}function it(t="Todos"){const e=at(t);return e.input.indexes.id=1,e.input.indexes.label=0,e}function st(t,e,o,n){const r=Dashboards.getParameterValue(o),a=Dashboards.getParameterValue(n);return Dashboards.fireChange(t,[r]),Dashboards.fireChange(e,[a]),!0}function lt(t,e){const o=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,[o]),!0}function ct(t,e){Dashboards.fireChange(e,t.resultset[0][0])}function ut(t,e){const o=Dashboards.getParameterValue(e),n=t.parameter;""!==o&&t.dashboard.setParameter(n,[o])}function dt(t){t.regional.es={monthNames:Y,abbreviatedMonthNames:X,dayNames:Z,abbreviatedDayNames:K,dayNamesMin:Q,weekHeader:"Sm",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},t.setDefaults(t.regional.es)}function ft(t,e){const o=Dashboards.getParameterValue(e);return Dashboards.fireChange(t,Array.isArray(o)?o:[o]),!0}function mt(t,e,o,n=0){const r=t.resultset.slice(0,o).map(t=>t[n]);return Dashboards.setParameter(e,r),t}function pt(t,e,o){const n=Array.isArray(e)?e:[e];Dashboards.fireChange(t,n);const r=Dashboards.getComponent(o);r&&r.update()}function ht(t,e){return C(t,t=>new Tabulator(t,e))}function gt(t,e){let o=t.getValue();return o.length>e&&(o=`${o.substr(0,e)}<br>${o.substr(e)}`),o}function yt(t,e){const o=t.getValue().split(" ");let n="",r="";return o.forEach(t=>{(r+t).length<=e?r+=`${t} `:(n+=`${r}<br>`,r=`${t} `)}),n+=`${r}<br>`,n}function bt(t,e){"expand"===e?t.treeExpand():t.treeCollapse();const o=t.getTreeChildren();o.length>0&&o.forEach(t=>{t.getTreeChildren().length>0&&bt(t,e)})}function St(t,e){t.getRows().forEach(t=>{t.getTreeChildren().length>0&&bt(t,e)})}function vt(t,e,o,n){const r=[];return Object.keys(t).forEach(a=>{if(Object.prototype.hasOwnProperty.call(t,a)){const i=t[a],s={[e]:i[0],_children:[]};i.shift(),i.forEach((t,r)=>{const a={[e]:o[r],[n]:t};s._children.push(a)}),r.push(s)}}),r}function Mt(t){let e=!0;return t.getGroups().forEach(t=>{t._group.visible&&(e=!1)}),e}function At(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",()=>{t.download("csv",`${e}.csv`,{delimiter:";",bom:!0})})}function Dt(t,e,o){const n=document.getElementById(o),r=n.cloneNode(!0);n.parentNode.replaceChild(r,n),r.addEventListener("click",()=>{const o=t.getRows().map(t=>t.getData()),n=t.getColumns(),r={};n.forEach((t,e)=>{const n=t.getField();n&&o.every(t=>{const e=t[n];return null==e||/^-?\d+([.,]\d+)?$/.test(e.toString().trim())})&&(r[e]={halign:"right"})}),t.download("pdf",`${e}.pdf`,{title:e,rowCalcStyles:{fontSize:8,fontStyle:"bold"},autoTable:{styles:{fontSize:8,lineWidth:.1,lineColor:[200,200,200]},headStyles:{halign:"center"},columnStyles:r}})})}function xt(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!1),t.setData(e)})}function Et(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!0),t.setData(e)})}const Ct={SO2:[100,200,350,500,750,751],NO2:[40,90,120,230,340,341],O3:[50,100,130,240,380,381],PM10:[20,40,50,100,150,151],PM25:[10,20,25,50,75,76]};function wt(t){const e=[],o={0:"b",1:"a",2:"d",3:"m",4:"mm",5:"em",6:"",7:"nd"};function n(t,e,n){const r=document.createElement("td");if(r.setAttribute("id",t),null!=e){r.innerHTML=e;const t=function(t,e){let n;return void 0===e?n=6:"ND"===e?n=7:(n=5,t.forEach((t,o)=>{e<=t&&5===n&&(n=o)})),o[n]}(n,e);r.classList.add(t)}return r}return t.forEach(t=>{const o=t;"noData"===o.operationalstatus&&(o.so2value="ND",o.no2value="ND",o.o3value="ND",o.pm10value="ND",o.pm25value="ND");const r=document.createElement("tr"),a=document.createElement("td");a.innerHTML=o.address,r.appendChild(a),r.appendChild(n(`${o.entityid}_so2`,o.so2value,Ct.SO2)),r.appendChild(n(`${o.entityid}_no2`,o.no2value,Ct.NO2)),r.appendChild(n(`${o.entityid}_o3`,o.o3value,Ct.O3)),r.appendChild(n(`${o.entityid}_pm10`,o.pm10value,Ct.PM10)),r.appendChild(n(`${o.entityid}_pm25`,o.pm25value,Ct.PM25)),e.push(r)}),e}function $t(t){document.location=`${document.documentURI.split("%3A")[0]}%3A${document.documentURI.split("%3A")[1]}%3A${document.documentURI.split("%3A")[2]}%3A${document.documentURI.split("%3A")[3]}%3A${t}`}function Ft(){const t=window.location.href;let e="";return e=t.includes("localhost")?"local":t.includes("sc_valencia_pre")?"PRE":"PRO",e}function Lt(t,e){document.querySelectorAll(`[${t}]`).forEach(o=>{!function(t,e,o){const n=e;if(t){const e=new XMLHttpRequest;e.onreadystatechange=function(){4===this.readyState&&(200===this.status&&(n.innerHTML=this.responseText,o&&o()),404===this.status&&(n.innerHTML="No se ha podido cargar correctamente."))},e.open("GET",t,!0),e.send()}}(o.getAttribute(t),o,e)})}function Nt(t){window.realDashboardsInit=Dashboards.init,Dashboards.init=function(){console.warn("Dashboards.init bloqueado temporalmente")},Lt("include-html-cabecera",function(){!function(){const t=Ft();"PRO"!==t&&(document.title+=` (${t})`)}(),function(){const t=Ft();"PRO"!==t&&(document.querySelector("nav").querySelectorAll("span")[1].textContent+=` (${t})`)}()}),Lt("include-html-menu"),Lt("include-html-main-container",function(){document.body.dispatchEvent(new Event("MainContentLoadedCustom")),function(){const t=document.querySelector("body");t.classList.remove("inicio"),t.classList.add(document.documentURI.split("%3A")[4].match(/(.*?).wcdf/)[1])}(),t&&t()}),Lt("include-html-copyright"),function(t="MainContentLoadedCustom"){document.body.addEventListener(t,()=>{try{Dashboards.init=window.realDashboardsInit,Dashboards.init()}catch(t){console.warn("No se pudo restaurar Dashboards.init; la función original no está disponible.")}},{once:!0})}()}function Ot(t,e,o,n,r,a){let i=!1,s=!1;const l=document.querySelector(t),c=document.querySelector(e),u=()=>{"undefined"!=typeof Liferay&&"ca-ES"===Liferay.ThemeDisplay.getBCP47LanguageId()?(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=cas"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=cas")):(l&&l.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?camara=1&lang=val"),c&&c.setAttribute("src","https://camaras.valencia.es/camaras/ocimovil.html?lang=val"))};function d(t=!0){const e=document.querySelector(o);t?(l&&(l.src="about:blank"),c&&(c.src="about:blank"),e.classList.add("blur"),s=!0):(e.classList.remove("blur"),u(),s=!1)}const f=t=>{new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(s||u(),i||(i=!0,window.setTimeout(d,a)))})}).observe(t)};!function(){const{userAgent:t}=navigator;return/iPad|iPhone|iPod|Macintosh/.test(t)&&!window.MSStream}()?(l&&(l.setAttribute("sandbox","allow-scripts"),f(l)),c&&(c.setAttribute("sandbox","allow-scripts"),f(c)),document.querySelector(r).addEventListener("click",()=>{d(!1),window.setTimeout(d,a)})):document.querySelectorAll(n)[0].style.display="none"}const Tt={grid:{containLabel:!0},title:{left:"center",top:"0",textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:{orient:"horizontal",bottom:"0",left:"center",width:"100%",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:400,color:"#666"}},toolbox:{show:!0,right:"0",top:"0",feature:{restore:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}},saveAsImage:{textStyle:{fontSize:6,fontFamily:"Montserrat",fontWeight:300}}},emphasis:{iconStyle:{borderColor:"#ffcd00",textFill:"#666"}}},tooltip:{textStyle:{fontFamily:"Montserrat",fontSize:12}},xAxis:[{type:"category",axisLabel:{show:!0,interval:0,textStyle:{fontFamily:"Montserrat",fontSize:11}},data:[]}],yAxis:[{type:"value",alignTicks:!0,position:"right",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${t}%`}},{type:"value",position:"left",axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400},formatter:t=>`${M(t)}€`}}]},It=(t,e)=>{e.sort((t,e)=>parseInt(t.anyo)-parseInt(e.anyo));const o={};e.forEach(e=>{const n=e[1],r=e[0];r!==t.seriesName||o[n]||(o[n]=0),r===t.seriesName&&(o[n]+=e[2])});let n=`<p>${t.seriesName}</p>`;for(const[e,r]of Object.entries(o))n+=`<div>${t.marker} ${e}: <span style="float: right; margin-left:20px;font-weight: 600;">${v(r)}</span></div>`;return n};function kt(t,e,o=void 0,n=void 0){const r=null===n?void 0:n,a=new Set(e.map(t=>t[1]));let i;const s={title:{text:"SIN TITULO",left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},tooltip:{axisPointer:{type:"shadow"},trigger:"item",formatter:t=>It(t,e),textStyle:{fontFamily:"Montserrat"},position(t,e,o,n,r){const a={},i=r.contentSize[1]/2,s=r.viewSize[1],l=t[1];return l<i?a.top=10:l+i>s?a.bottom=10:a.top=l-i,t[0]<r.viewSize[0]/2?a.left=t[0]+20:a.right=r.viewSize[0]-t[0]+20,a}},legend:{padding:40,textStyle:{fontFamily:"Montserrat"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"value",splitNumber:10,name:"SIN NOMBRE",nameLocation:"start",nameTextStyle:{fontWeight:"bold",fontFamily:"Montserrat",color:"#666",padding:-40},axisLabel:{margin:5,textStyle:{fontFamily:"Montserrat"},formatter:t=>v(t)},splitLine:{lineStyle:{color:"#DDD"}}},yAxis:{type:"category",data:Array.from(a),axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:(()=>{const t={name:"SIN NOMBRE",type:"bar",stack:"total",label:{show:!0,fontFamily:"Montserrat",fontSize:10,formatter:t=>v(Math.round(t.value))},itemStyle:void 0,emphasis:{focus:"series"},data:void 0};r&&r.itemStyle&&Array.isArray(r.itemStyle.borderColor)&&(i=[...r.itemStyle.borderColor],delete r.itemStyle.borderColor);const o=function(t){return t.reduce((t,e)=>{const o=e[0];return t[o]||(t[o]=[]),t[o].push(e),t},{})}(e),n=Object.keys(o);a.forEach(t=>{n.forEach(e=>{void 0===o[e].find(e=>e[1]===t)&&(o[e].push([o[e][0][0],t,void 0]),o[e].sort())})});const s=[];return Object.keys(o).forEach(e=>{i&&(t.itemStyle={borderColor:i.shift()}),t.name=e,t.data=o[e].map(t=>t[2]);let n={};n=void 0!==r?j(t,r):t,s.push({...n})}),s})(),toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50}};let l={};l=void 0!==o?j(s,o):s,w(t,l)}function Pt(t){let e={};return e=j(Tt,t),e}function zt(t,e,o={},n={}){let a={};a=j(o,{color:["#81B1CC","#ABD9EA","#C2EEF9","#F9E2AF","#F9C780","#FDAE61","#F46D43","#FDAE61","#F9E2AF","#C2EEF9","#ABD9EA","#81B1CC"],yAxis:{data:function(){const t=new Set;return e.forEach(e=>{t.add(e[1])}),Array.from(t).sort((t,e)=>t-e)}()}});const i={itemStyle:{borderWidth:2,borderColor:["#448DAD","#89CADB","#A0DEE8","#F4D28C","#F4B569","#F79646","#F25930","#F79646","#F4D28C","#A0DEE8","#89CADB","#448DAD"]}},s=null===n?i:j(n,i),l=e;l.forEach((t,e)=>{l[e][0]=r(t[0])}),kt(t,l,a,s)}function Bt(t,e=void 0){const o={title:{text:"SIN TITULO",left:"center",top:"top",padding:50,textStyle:{fontSize:14,fontFamily:"Montserrat",fontWeight:400,color:"#333"}},legend:{show:!1},grid:{top:"30%",bottom:"5%",left:"8%",right:"8%"},xAxis:{type:"value",show:!1},yAxis:{show:!1,type:"category"},tooltip:{show:!0,textStyle:{fontFamily:"Montserrat",fontWeight:"600"},appendToBody:!0,formatter:t=>I(t,!1)},series:[{type:"bar",showBackground:!0}]};let n={};n=void 0!==e?j(o,e):o,w(t,n)}function _t(t){return Math.max(...t.map(t=>Number(t[0])))}function Rt(t){const e=t.filter(e=>Number(e[0])===_t(t)),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n}),o}function Wt(t){const e=t.filter(e=>Number(e[0])===_t(t)-1),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const r=parseInt(e,10)-1;o[r]=n}),o}function qt(t,e,o=void 0){const n=_t(e).toString(),r=(_t(e)-1).toString();Bt(t,j({title:{left:"center",top:"-12%",textStyle:{fontSize:15,fontFamily:"Montserrat"}},legend:{top:"10%",show:!0,data:[r,n],textStyle:{fontFamily:"Montserrat"}},grid:{bottom:"8%",top:"20%",right:"2%"},xAxis:[{type:"category",data:h(),interval:0,margin:10,axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],yAxis:[{type:"value",axisLabel:{formatter:t=>t.toLocaleString("es-ES"),textStyle:{fontSize:10,fontFamily:"Montserrat",fontWeight:400}}}],series:[{name:r,type:"bar",data:Wt(e)},{name:n,type:"bar",barGap:0,data:Rt(e)}]},o))}function Jt(t,e,o){const n=document.querySelector(e),r=document.querySelector(t);let a=!1;r.addEventListener("click",()=>{!1===a&&(a=!0,n.setAttribute("src","about:blank"),n.setAttribute("src",o),n.onload=()=>{a=!1})}),r.disabled=!1}const jt="id",Gt="fecha",Vt="value";function Ht(t,e,o,n,r="es_ES"){const[a,i]=function(t,e,o){const n=[],r=[];return t.forEach(t=>{e.includes(`${t[jt]}`)?n.push(`${t[Gt]}`):o.includes(`${t[jt]}`)&&r.push(`${t[Gt]}`)}),[n.map(t=>[t,0]),r.map(t=>[t,0])]}(t,o,n);let s="es_ES"==r?"Datos sin validar":"Dades sense validar";0===i.length&&(s="");const l={name:"Datos validados",type:"line",data:[...a,i[0]],lineStyle:{color:"#00A9A0",width:4},showSymbol:!1,tooltip:{show:!1}};let c="",u="";if(0===i.length){const e=t[t.length-1].fecha;c=e,u=e}else c=i[0][0],u=i[i.length-1][0];return[...e,l,{name:"Datos NO validados",type:"line",data:i,lineStyle:{color:"#80D4CF",width:4},showSymbol:!1,tooltip:{show:!1},markArea:{silent:!0,itemStyle:{opacity:.6,color:"#eee"},tooltip:{show:!1},label:{color:"#333",fontStyle:"normal",fontWeight:"400",fontFamily:"Montserrat",fontSize:11},data:[[{name:s,xAxis:c,yAxis:0},{name:"end",xAxis:u,yAxis:Math.max(...t.filter(t=>null!==t[Vt]).map(t=>parseInt(`${t[Vt]}`,10)))}]]}}]}function Ut(t,e,o=void 0){w(t,j({grid:{left:"2.5%",right:"5%",bottom:"70",top:"150",containLabel:!0},title:{left:"center",top:"top",textStyle:{fontSize:20,fontFamily:"Montserrat",fontWeight:600,color:"#666"}},legend:{type:"plain",top:"50",width:"98%",textStyle:{fontFamily:"Montserrat"}},tooltip:{trigger:"axis",show:!0,formatter:t=>L(t),textStyle:{fontFamily:"Montserrat"}},xAxis:{type:"category",boundaryGap:!1,splitLine:{show:!1},axisLabel:{textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},yAxis:{type:"value",nameLocation:"end",nameGap:"0",nameTextStyle:{fontFamily:"Montserrat",fontWeight:"500",padding:[-25,0,0,-48],margin:0,align:"left",verticalAlign:"top",width:"auto"},scale:!0,splitNumber:"6",axisLabel:{margin:10,textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#666"}}},dataZoom:{end:100,borderColor:"#eee",fillerColor:"rgba(0,0,0,.05)",textStyle:{fontSize:10,fontFamily:"Montserrat",color:"#333",textBorderColor:"#fff",textBorderWidth:3,fontWeight:"600"},selectedDataBackground:{lineStyle:{color:"#333"},areaStyle:{color:"#ffcd00"}},dataBackground:{backgroundColor:"rgba(0,0,0,1)",lineStyle:{color:"#333"},areaStyle:{color:"rgba(0,0,0,0.5)"}},handleStyle:{color:"rgba(0,0,0,0.2)"},moveHandleStyle:{color:"rgba(0,0,0,0.3)"},emphasis:{handleStyle:{color:"rgba(255,205,0,1)"},moveHandleStyle:{color:"rgba(255,205,0,1)"}}},toolbox:{feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:"1%",top:"0%"},series:e},o))}return e})(),t.exports=e()}},e={};function o(n){var r=e[n];if(void 0!==r)return r.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,o),a.exports}o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";o.r(n),o.d(n,{loadAnaliticaFrames:()=>e});var t=o(2725);function e(){(0,t.loadIframeOnClickEvent)("#tabSmartCity","#iframeSmartCity","https://lookerstudio.google.com/embed/reporting/7d97aaa3-fe5e-4a61-8f6c-3717f839b3bf/page/6WdoC?hl=ca"),(0,t.loadIframeOnClickEvent)("#tabCdmCiutat","#iframeCdMCiutat","https://lookerstudio.google.com/embed/reporting/2da9d93e-d833-4a00-833a-19ac0746dc9f/page/6WdoC?hl=ca"),window.addEventListener("load",()=>{document.querySelector("#iframeValenciaMinut").setAttribute("src","https://lookerstudio.google.com/embed/reporting/14a41533-3cd8-4f75-b303-9a494c0e4a9d/page/6WdoC?hl=ca")})}})(),n})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vlci/cdmciutat",
3
- "version": "40.0.0",
3
+ "version": "41.0.0",
4
4
  "description": "JavaScript library for cdmciutat",
5
5
  "main": "index.js",
6
6
  "scripts": {