@vlci/cdmciutat 43.0.0 → 43.0.1-1
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.
- package/dist/js/aigua.js +1 -1
- package/dist/js/ciclista.js +1 -1
- package/dist/js/contaminacio.js +1 -1
- package/dist/js/emt.js +1 -1
- package/dist/js/legacy.js +1 -1
- package/dist/js/mediAmbient.js +1 -1
- package/dist/js/piae.js +1 -1
- package/dist/js/residus.js +1 -1
- package/dist/js/seuElectronica.js +1 -1
- package/dist/js/vehicles.js +1 -1
- package/filesOutput.js +0 -1
- package/package.json +1 -1
- package/dist/js/wifi.js +0 -1
package/filesOutput.js
CHANGED
package/package.json
CHANGED
package/dist/js/wifi.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.wifi=e():t.wifi=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:()=>r,MONTHS_YEAR_SHORT:()=>i,TEXTS_COMMON:()=>l,THRESHOLDS:()=>wt,addPointInteger:()=>x,buildCamarasTrafico:()=>_t,buildTableCalidadAire:()=>Et,calculateMaxYAxis:()=>_,calculatePentahoPath:()=>Ft,calculateXAxisStart:()=>T,capitalizarTexto:()=>D,checkAllGroupsCollapsed:()=>At,configureDataBar:()=>j,configureDataGaugeCommon:()=>P,configureDataGaugeMonthCommon:()=>k,configureDataLine:()=>B,configureDataValidate:()=>Gt,configureLinesChartValidates:()=>Vt,convertDateToInteger:()=>b,convertISODateToEUDate:()=>S,convertToLanguageSelectorDateRange:()=>dt,convertToTableTreeView:()=>xt,downloadCSVTable:()=>vt,downloadPDFTable:()=>Mt,formatCellMultiplesLines:()=>gt,formatDayMonthYear:()=>d,formatMilMillionEuros:()=>N,formatMonthAnyo:()=>u,formatName:()=>C,formatNameHeaderColumn:()=>yt,formatRoundTooltip:()=>z,formatShortMonthShortYear:()=>m,formatShortMonthYear:()=>f,formatToMillions:()=>A,formatToTons:()=>v,formatTooltip:()=>L,formatTooltipPie:()=>O,formatTrimestre:()=>p,formatWithPrefix:()=>M,getEnvironment:()=>$t,getMaxFieldNumberFromData:()=>J,getMonth:()=>a,getMonthList:()=>h,getSelectCommonOptions:()=>rt,getSelectTwoColumnsOptions:()=>it,initBarChart:()=>Pt,initBarChartComparationMonth:()=>jt,initChart:()=>E,initContractAllGroups:()=>Ct,initElement:()=>w,initExpandAllGroups:()=>Dt,initStackedBarChart:()=>Nt,initStackedBarChartMonthSeries:()=>Wt,initTable:()=>ht,initValueDefaultDate:()=>ct,initialCalls:()=>Tt,loadIframeOnClickEvent:()=>qt,printDataChart:()=>$,printDataInHTMLElements:()=>H,printEchart:()=>I,printNoDataChart:()=>F,resetFilter:()=>at,resetFilterAndUpdate:()=>pt,resetFilterDate:()=>st,resetFilterDates:()=>lt,resetFilterToDefault:()=>ft,resultsetWithFields:()=>q,selectConfigDatasource:()=>ot,selectConfigDatasourceAllValue:()=>nt,selectFilterAll:()=>tt,selectFilterNumItemsDefault:()=>mt,selectValueDefaultInFilter:()=>ut,separateDayMonthYearToSlash:()=>s,splitDataset:()=>V,subtractOneDay:()=>y,subtractOneMonth:()=>g,traverseRows:()=>St,updateDomElement:()=>G,updateObject:()=>U,updateStackedBarOptions:()=>It});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 a(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 r={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"]])},l={es_ES:new Map([["last_update","Última actualización"]]),ca_ES:new Map([["last_update","Última actualització"]])};function s(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,a]=function(t){return[t.substring(0,4),n[t.substring(4,6)],t.substring(6,8)]}(t);return`${a} ${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=r[o];return Array.from(t.values()).map(t=>t.slice(0,3))}function y(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 g(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 x(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 A(t){const e=1e6;return t>=e?t/e+"M":t.toString()}function v(t){return t>=1e3?t/1e3+" Tn":t.toString()}function M(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 C(t,e=29){if(t.length>=e){const o=t.split(" ");let n="",a="";return o.forEach(t=>{`${n} ${t}`.length<=e?n+=(n?" ":"")+t:(a+=`${n}\n`,n=t)}),a+=n,a}return t}function D(t){return t.includes("N/D")?t:t.toLowerCase().replace(/(^|\s|[.,;:!?¡¿(){}[\]])([^\s])/gu,(t,e,o)=>e+o[0].toUpperCase())}function w(t,e,o="MainContentLoadedCustom"){let n=document.getElementById(t);return n?Promise.resolve(e(n)):new Promise(a=>{document.body.addEventListener(o,()=>{n=document.getElementById(t),n?a(e(n)):(console.error(`El elemento con ID ${t} aún no está disponible después del evento.`),a(null))})})}function E(t,e){return w(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 F(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 $(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 a=`<p style="font-weight: 500;color: #565656;">${t[0].name}</p>`;return t.forEach(t=>{const r=e?Math.round(t.data):t.data,i=o?`<div style="font-weight: 400;color: #666;">${l=t.color,`<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;font-weight: 500;background-color:${l}"></span>`} ${t.seriesName}: \n <span style="float: right; margin-left:20px;font-weight: 600;color: #565656;">\n ${t.data?`${x(r)} ${n}`:"-"}\n </span>\n </div>`:`<div>\n <span style="font-weight: 600;color: #565656;">${t.data?`${x(r)} ${n}`:"-"}\n </span>\n </div>`;var l;a+=i}),a}function T(t){return 100*(t-120)/t}function _(t,e){const o=Math.max(...t);return o+(e-o%e)}function O(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}%`:x(t.value);return`<div> ${o} ${t.name} <span style="float: right; margin-left:20px;font-weight: 600;color: #333;"> ${n} </span></div>`}function z(t,e){let o=`${t.name} : `;return o+=`<span style="font-weight:500">${x(Math.round(t.value))}</span>`,e&&(o+=`<span> (${t.percent}%)</span>`),t.marker+o}function N(t){const e=1e6,o=Number(t);return o>=0&&o<e?`${x(o)} €`:o>=e?`${x(o/e)} M €`:"-"}function I(t,e,o){return 0===t.length?(F(`#${e}`,`#${o}`),!1):($(`#${o}`,`#${e}`),!0)}function W(t,e,o=1){const n=Math.max(...t.map(t=>t[e]))*o;return 5e3*Math.ceil(n/5e3)}function P(t,e,o,n=30,a=15,r=30,i=-70,l=70,s=3){const c=W(t,e.data,1.1),u=l,d=o.slice(),f=[];let m=a,p=r,h=i;for(let o=0;o<t.length;o+=1)f.push({value:t[o][e.data],name:C(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=>x(Math.round(t))}}),h+=u,(o+1)%s===0&&(p+=r,m+=2*a,h=i);return[c,f]}function k(t,e,o,n=0){return[W(e,o.data,1),t=>function(t,e,o){const n=x(Math.round(e)),r=a(t[o][0]),i=t[o][1],l=`\n${r} ${i} : ${n}`,s=`${n}\n${r} ${i}`;return window.innerWidth<=1710?l:s}(e,t,n),[{value:e[n][o.data]}]]}function R(t,e){const{resultset:o}={resultset:t},n=new Set,a=new Set,r=o.map(([t,o,r])=>{const i=e?Math.round(r):r;return n.add(t),a.add(o),{day:o,type:t,value:i}}),i=Array.from(a.values()),l=Array.from(n.values());return l.sort((t,e)=>t.toLowerCase().localeCompare(e.toLowerCase(),"es",{ignorePunctuation:!0})),[l.map(t=>{const e=r.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}}),l,a]}function B(t,e=[],o=!1){const[n,a,r]=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,r,a]}function j(t,e,o=!1){const[n,a,r]=R(t,o);return n.forEach(t=>{t.type="bar",t.color=e.shift(),t.smooth=!1}),[n,r,a]}function q(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 U(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]=U(t[n]||{},e[n]))}),o}function H(t,e){const o=()=>{t.forEach(t=>{t.id in e&&Object.entries(e[t.id]).forEach(o=>{const n=o[0],a=o[1];"object"==typeof a?a.className?document.querySelector(a.className).className=t[n]:a.element&&a.format&&(document.querySelector(a.element).textContent=e[t.id][n].format(t[n])):document.querySelector(a).textContent=t[n]})})};try{o()}catch(t){document.body.addEventListener("MainContentLoadedCustom",()=>{o()})}}function J(t,e){const o=q(t),n=[];let a=null;return o.forEach(t=>{const o=t[e];"number"!=typeof o||Number.isNaN(o)||n.push(o)}),n.length>0&&(a=Math.max(...n)),a}function G(t,e){const o=document.querySelector(t);o?o.textContent=e:console.warn(`Elemento ${t} no encontrado en el DOM`)}function V(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 Z=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],Y=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],X=["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 at(t){t.forEach(t=>{Dashboards.fireChange(t,["All"])})}function rt(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=rt(t);return e.input.indexes.id=1,e.input.indexes.label=0,e}function lt(t,e,o,n){const a=Dashboards.getParameterValue(o),r=Dashboards.getParameterValue(n);return Dashboards.fireChange(t,[a]),Dashboards.fireChange(e,[r]),!0}function st(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:Z,abbreviatedMonthNames:Y,dayNames:X,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 a=t.resultset.slice(0,o).map(t=>t[n]);return Dashboards.setParameter(e,a),t}function pt(t,e,o){const n=Array.isArray(e)?e:[e];Dashboards.fireChange(t,n);const a=Dashboards.getComponent(o);a&&a.update()}function ht(t,e){return w(t,t=>new Tabulator(t,e))}function yt(t,e){let o=t.getValue();return o.length>e&&(o=`${o.substr(0,e)}<br>${o.substr(e)}`),o}function gt(t,e){const o=t.getValue().split(" ");let n="",a="";return o.forEach(t=>{(a+t).length<=e?a+=`${t} `:(n+=`${a}<br>`,a=`${t} `)}),n+=`${a}<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 xt(t,e,o,n){const a=[];return Object.keys(t).forEach(r=>{if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r],l={[e]:i[0],_children:[]};i.shift(),i.forEach((t,a)=>{const r={[e]:o[a],[n]:t};l._children.push(r)}),a.push(l)}}),a}function At(t){let e=!0;return t.getGroups().forEach(t=>{t._group.visible&&(e=!1)}),e}function vt(t,e,o){const n=document.getElementById(o),a=n.cloneNode(!0);n.parentNode.replaceChild(a,n),a.addEventListener("click",()=>{t.download("csv",`${e}.csv`,{delimiter:";",bom:!0})})}function Mt(t,e,o){const n=document.getElementById(o),a=n.cloneNode(!0);n.parentNode.replaceChild(a,n),a.addEventListener("click",()=>{const o=t.getRows().map(t=>t.getData()),n=t.getColumns(),a={};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())})&&(a[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:a}})})}function Ct(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!1),t.setData(e)})}function Dt(t,e,o){const n=document.getElementById(o);n&&n.addEventListener("click",()=>{t.setGroupStartOpen(!0),t.setData(e)})}const wt={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 Et(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 a=document.createElement("td");if(a.setAttribute("id",t),null!=e){a.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);a.classList.add(t)}return a}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 a=document.createElement("tr"),r=document.createElement("td");r.innerHTML=o.address,a.appendChild(r),a.appendChild(n(`${o.entityid}_so2`,o.so2value,wt.SO2)),a.appendChild(n(`${o.entityid}_no2`,o.no2value,wt.NO2)),a.appendChild(n(`${o.entityid}_o3`,o.o3value,wt.O3)),a.appendChild(n(`${o.entityid}_pm10`,o.pm10value,wt.PM10)),a.appendChild(n(`${o.entityid}_pm25`,o.pm25value,wt.PM25)),e.push(a)}),e}function Ft(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 $t(){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 Tt(t){window.realDashboardsInit=Dashboards.init,Dashboards.init=function(){console.warn("Dashboards.init bloqueado temporalmente")},Lt("include-html-cabecera",function(){!function(){const t=$t();"PRO"!==t&&(document.title+=` (${t})`)}(),function(){const t=$t();"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 _t(t,e,o,n,a,r){let i=!1,l=!1;const s=document.querySelector(t),c=document.querySelector(e),u=()=>{"undefined"!=typeof Liferay&&"ca-ES"===Liferay.ThemeDisplay.getBCP47LanguageId()?(s&&s.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")):(s&&s.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?(s&&(s.src="about:blank"),c&&(c.src="about:blank"),e.classList.add("blur"),l=!0):(e.classList.remove("blur"),u(),l=!1)}const f=t=>{new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(l||u(),i||(i=!0,window.setTimeout(d,r)))})}).observe(t)};!function(){const{userAgent:t}=navigator;return/iPad|iPhone|iPod|Macintosh/.test(t)&&!window.MSStream}()?(s&&(s.setAttribute("sandbox","allow-scripts"),f(s)),c&&(c.setAttribute("sandbox","allow-scripts"),f(c)),document.querySelector(a).addEventListener("click",()=>{d(!1),window.setTimeout(d,r)})):document.querySelectorAll(n)[0].style.display="none"}const Ot={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=>`${A(t)}€`}}]},zt=(t,e)=>{e.sort((t,e)=>parseInt(t.anyo)-parseInt(e.anyo));const o={};e.forEach(e=>{const n=e[1],a=e[0];a!==t.seriesName||o[n]||(o[n]=0),a===t.seriesName&&(o[n]+=e[2])});let n=`<p>${t.seriesName}</p>`;for(const[e,a]of Object.entries(o))n+=`<div>${t.marker} ${e}: <span style="float: right; margin-left:20px;font-weight: 600;">${x(a)}</span></div>`;return n};function Nt(t,e,o=void 0,n=void 0){const a=null===n?void 0:n,r=new Set(e.map(t=>t[1]));let i;const l={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=>zt(t,e),textStyle:{fontFamily:"Montserrat"},position(t,e,o,n,a){const r={},i=a.contentSize[1]/2,l=a.viewSize[1],s=t[1];return s<i?r.top=10:s+i>l?r.bottom=10:r.top=s-i,t[0]<a.viewSize[0]/2?r.left=t[0]+20:r.right=a.viewSize[0]-t[0]+20,r}},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=>x(t)},splitLine:{lineStyle:{color:"#DDD"}}},yAxis:{type:"category",data:Array.from(r),axisLabel:{textStyle:{fontFamily:"Montserrat"}}},series:(()=>{const t={name:"SIN NOMBRE",type:"bar",stack:"total",label:{show:!0,fontFamily:"Montserrat",fontSize:10,formatter:t=>x(Math.round(t.value))},itemStyle:void 0,emphasis:{focus:"series"},data:void 0};a&&a.itemStyle&&Array.isArray(a.itemStyle.borderColor)&&(i=[...a.itemStyle.borderColor],delete a.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);r.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 l=[];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!==a?U(t,a):t,l.push({...n})}),l})(),toolbox:{show:!0,feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},right:50}};let s={};s=void 0!==o?U(l,o):l,E(t,s)}function It(t){let e={};return e=U(Ot,t),e}function Wt(t,e,o={},n={}){let r={};r=U(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"]}},l=null===n?i:U(n,i),s=e;s.forEach((t,e)=>{s[e][0]=a(t[0])}),Nt(t,s,r,l)}function Pt(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=>z(t,!1)},series:[{type:"bar",showBackground:!0}]};let n={};n=void 0!==e?U(o,e):o,E(t,n)}function kt(t){return Math.max(...t.map(t=>Number(t[0])))}function Rt(t){const e=t.filter(e=>Number(e[0])===kt(t)),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const a=parseInt(e,10)-1;o[a]=n}),o}function Bt(t){const e=t.filter(e=>Number(e[0])===kt(t)-1),o=Array.from({length:12},()=>0);return e.forEach(([t,e,n])=>{const a=parseInt(e,10)-1;o[a]=n}),o}function jt(t,e,o=void 0){const n=kt(e).toString(),a=(kt(e)-1).toString();Pt(t,U({title:{left:"center",top:"-12%",textStyle:{fontSize:15,fontFamily:"Montserrat"}},legend:{top:"10%",show:!0,data:[a,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:a,type:"bar",data:Bt(e)},{name:n,type:"bar",barGap:0,data:Rt(e)}]},o))}function qt(t,e,o){const n=document.querySelector(e),a=document.querySelector(t);let r=!1;a.addEventListener("click",()=>{!1===r&&(r=!0,n.setAttribute("src","about:blank"),n.setAttribute("src",o),n.onload=()=>{r=!1})}),a.disabled=!1}const Ut="id",Ht="fecha",Jt="value";function Gt(t,e,o,n,a="es_ES"){const[r,i]=function(t,e,o){const n=[],a=[];return t.forEach(t=>{e.includes(`${t[Ut]}`)?n.push(`${t[Ht]}`):o.includes(`${t[Ut]}`)&&a.push(`${t[Ht]}`)}),[n.map(t=>[t,0]),a.map(t=>[t,0])]}(t,o,n);let l="es_ES"==a?"Datos sin validar":"Dades sense validar";0===i.length&&(l="");const s={name:"Datos validados",type:"line",data:[...r,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,s,{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:l,xAxis:c,yAxis:0},{name:"end",xAxis:u,yAxis:Math.max(...t.filter(t=>null!==t[Jt]).map(t=>parseInt(`${t[Jt]}`,10)))}]]}}]}function Vt(t,e,o=void 0){E(t,U({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 a=e[n];if(void 0!==a)return a.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,o),r.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,{echartMediaConexionesDiarias:()=>f,echartUsuarisConectadosDiaries:()=>d,echartWifiFranjaHorariaBarMonth:()=>p,echartWifiZonaHorizontalBar:()=>m});var t=o(2725);const e={lila:"#9c89b8",azulCielo:"#4ea8de",azulCeruleo:"#05668d",naranjita:"#ffbf69",cranberryPalido:"#e56b6f",aguaMarina:"#83c5be",esmeralda:"#02c39a",mandarina:"#ee9b00",malva:"#cdb4db",rosaPalo:"#ffadad",freson:"#ce4257",gris:"#b7b7a4",naranjaPalido:"#F1AB86",tealPalido:"#48A9A6",amarilloPalido:"#ffbf69",azulPalido:"#4BA3C3",marinoPalido:"#284B63",naranja:"#F96E46",teal:"#307473",amarillo:"#F6AE2D",cranberry:"#A23E48",marino:"#0B3948",verdeClaro:"#6a9c81"};function a(t){return function(t){let e=navigator.language||navigator.userLanguage;e=e.length<=2?`${e}-${e.toUpperCase()}`:e;const o={minimumFractionDigits:0,maximumFractionDigits:2};return"es-ES"===e?t.toLocaleString("de-DE",o):t.toLocaleString(e,o)}(t)}function r(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 i(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){const o=document.getElementById(t);if(!o)return console.error(`No se pudo encontrar el elemento con ID ${t}.`),null;const n=echarts.init(o);return n.setOption(e,!0),$(window).on("resize",()=>{null!=n&&void 0!==n&&n.resize()}),n}function s(t){return 100*(t-120)/t}const c="ca_ES",u={es_ES:new Map([["media_usuarios_conectados_dia","MEDIA DE USUARIOS ACTIVOS HOY"],["usuarios","usuarios}"],["historico_usuarios_al_dia","HISTÓRICO DE USUARIOS CONECTADOS AL DÍA"],["conexiones","Conexiones"],["usuarios_zona","USUARIOS ÚNICOS CONECTADOS POR ZONA"],["zona","Zona"],["usuarios_franja_horaria","USUARIOS POR FRANJA HORARIA"],["num_usuarios","Nº de usuarios"],["franja_horaria","Franja Horaria"]]),ca_ES:new Map([["media_usuarios_conectados_dia","MITJANA d´USUARIS ACTIUS AVUI"],["usuarios","usuaris"],["historico_usuarios_al_dia","HISTÒRIC D’USUARIS CONNECTATS AL DIA"],["conexiones","Connexions"],["usuarios_zona","USUARIS ÚNICS CONNECTATS PER ZONA"],["zona","Zona"],["usuarios_franja_horaria","USUARIS PER FRANJA HORÀRIA"],["num_usuarios","Núm. d'usuaris"],["franja_horaria","Franja horària"]])};function d(e,o){if(0===o.resultset.length)return void r("#chartWifi_Timeserie","#no_dataWifi_Timeserie");i("#no_dataWifi_Timeserie","#chartWifi_Timeserie");const n=o.resultset,d=o.resultset.length,f=new Set,m=[];for(let t=0;t<d;t+=1)f.add(n[t][0]),m.push(n[t][1]);const p=function({dataConexionesWifi:e,date:o}){return{grid:{left:"0",right:"1%",bottom:"60",top:"65",containLabel:!0},title:{text:u[c].get("historico_usuarios_al_dia"),margin:"0",padding:0,top:"0",left:"50%",textAlign:"center",itemGap:5,textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:null,toolbox:{show:!0,right:"0",top:"24",feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},emphasis:{iconStyle:{borderColor:"#ffcd00"}},showTitle:!1,tooltip:{show:!0,padding:[5,8],position:"left",formatter:t=>`<div>${t.title}</div>`,backgroundColor:"#fff",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:600},extraCssText:"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);border-radius: 0;"}},tooltip:{show:!0,trigger:"axis",confine:!0,axisPointer:{type:"shadow"},textStyle:{fontFamily:"Montserrat",fontSize:12,fontWeight:500},formatter:e=>(0,t.formatTooltip)(e)},xAxis:{type:"category",data:Array.from(o.values()),axisTick:{show:!1},boundaryGap:["20%","20%"],gridIndex:0,offset:0,axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{show:!0,interval:"auto",textStyle:{fontFamily:"Montserrat",fontSize:8,color:"#666"}}},graphic:[{id:"circleConsumida",type:"circle",left:0,top:24,shape:{cx:0,cy:0,r:7},style:{fill:"#64a6bd"}},{id:"textConsumida",type:"text",left:20,top:26,style:{text:u[c].get("conexiones"),fontSize:12,fontFamily:"Montserrat",fontWeight:600,fill:"#666"}}],yAxis:{type:"value",scale:!0,min:void 0,axisLabel:{formatter:a,margin:5,textStyle:{fontSize:8,fontFamily:"Montserrat",fontWeight:400}}},series:[{name:u[c].get("conexiones"),type:"line",smooth:!1,symbol:"circle",symbolSize:6,itemStyle:{color:"#64a6bd"},data:e}],dataZoom:[{show:!0,data:Array.from(o.values()),end:100,left:0,right:5,start:s(o.size),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)"}}}],media:[{query:{maxWidth:320},option:{title:{textStyle:{width:240,overflow:"break"}},toolbox:{top:"28"},graphic:[{top:34},{top:36}]}},{query:{minWidth:800},option:{xAxis:{axisLabel:{textStyle:{fontSize:10}}},yAxis:{axisLabel:{textStyle:{fontSize:10}}}}},{query:{minWidth:1e3},option:{dataZoom:{start:0}}}]}}({dataConexionesWifi:m,date:f});l("chartWifi_Timeserie",p)}function f(e,o){const n=(0,t.resultsetWithFields)(o),a=n[0].id,r={[a]:{id:{element:"#tipoConexion",format:()=>u[c].get("media_usuarios_conectados_dia")},value:{element:"#mediaDiaria",format:t=>`${t}`}}};document.getElementById("usuarios").textContent=u[c].get("usuarios"),(0,t.printDataInHTMLElements)(n,r)}function m(e,o){if(0===o.resultset.length)r("#chartWifi_horizontalBarZona","#no_dataWifi_horizontalBarZona");else{i("#no_dataWifi_horizontalBarZona","#chartWifi_horizontalBarZona");const e=function(e){return{grid:{left:"0",right:"1%",bottom:"0",top:"65",containLabel:!0},title:{text:u[c].get("usuarios_zona"),margin:"0",padding:0,top:"0",left:"50%",textAlign:"center",itemGap:5,textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:null,toolbox:{show:!0,right:"0",top:"24",feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},emphasis:{iconStyle:{borderColor:"#ffcd00"}},showTitle:!1,tooltip:{show:!0,padding:[5,8],position:"left",formatter:t=>`<div>${t.title}</div>`,backgroundColor:"#fff",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:600},extraCssText:"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);border-radius: 0;"}},tooltip:{show:!0,trigger:"axis",confine:!0,axisPointer:{type:"shadow"},textStyle:{fontFamily:"Montserrat",fontSize:12,fontWeight:500},formatter:e=>(0,t.formatTooltip)(e)},yAxis:{type:"category",data:e.resultset.map(t=>t[0]),axisLine:{lineStyle:{color:"#ccc"}},axisTick:{show:!1},axisLabel:{formatter:a,margin:5,textStyle:{fontSize:9,fontFamily:"Montserrat",fontWeight:400,color:"#666"}}},xAxis:{type:"value",axisLine:{show:!0,lineStyle:{color:"#ddd"}},axisLabel:{formatter:e=>`${(0,t.addPointInteger)(e)} ${u[c].get("usuarios")}`,show:!0,interval:"auto",padding:0,margin:10,align:"right",textStyle:{fontFamily:"Montserrat",fontSize:9,color:"#666"}}},graphic:[{id:"circleZona",type:"circle",left:0,top:24,shape:{cx:0,cy:0,r:7},style:{fill:"#64a6bd"}},{id:"textZona",type:"text",left:20,top:26,style:{text:u[c].get("zona"),fontSize:11,fontFamily:"Montserrat",fontWeight:500,fill:"#666"}}],series:[{name:u[c].get("num_usuarios"),type:"bar",barMinWidth:8,barMaxWidth:20,itemStyle:{color:"#64a6bd"},data:e.resultset.map(t=>Math.round(t[1]))}],media:[{query:{maxWidth:320},option:{grid:{right:"4%"},title:{textStyle:{width:240,overflow:"break"}},toolbox:{top:"28"},graphic:[{top:34},{top:36},{id:"usuarios",type:"text",left:0,bottom:0,style:{text:u[c].get("num_usuarios"),fontSize:11,fontFamily:"Montserrat",fontWeight:500,fill:"#666"}}],xAxis:{axisLabel:{formatter:e=>(0,t.addPointInteger)(e)}}}},{query:{minWidth:800},option:{xAxis:{axisLabel:{textStyle:{fontSize:10}}},yAxis:{axisLabel:{textStyle:{fontSize:10}}}}}]}}(o);l("chartWifi_horizontalBarZona",e)}}function p(o,n){if(0===n.resultset.length)r("#chartWifi_barFranjas","#no_dataWifi_barFranjas");else{i("#no_dataWifi_barFranjas","#chartWifi_barFranjas");const o=n.resultset.map(t=>t[0]),r=function(o,n,r,i){return{grid:{left:"0",right:"1%",bottom:"100",top:"50",containLabel:!0},title:{text:u[c].get("usuarios_franja_horaria"),top:"0",left:"50%",textAlign:"center",textStyle:{fontSize:15,fontFamily:"Montserrat",fontWeight:500,color:"#666"}},legend:{show:!0,bottom:"65",left:"center",itemHeight:10,itemWidth:10,itemGap:10,textStyle:{fontSize:11,fontFamily:"Montserrat",color:"#666"}},toolbox:{show:!0,right:"0",top:"0",feature:{restore:{title:"Restablir"},saveAsImage:{title:"Desar"}},emphasis:{iconStyle:{borderColor:"#ffcd00"}},showTitle:!1,tooltip:{show:!0,formatter:t=>`<div>${t.title}</div>`,backgroundColor:"#fff",textStyle:{fontSize:11,fontFamily:"Montserrat",fontWeight:600},extraCssText:"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);border-radius: 0;"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:e=>(0,t.formatTooltip)(e,!0,!0,u[c].get("usuarios"))},xAxis:{type:"category",data:i,boundaryGap:["20%","20%"],axisLine:{lineStyle:{color:"#ccc"}},axisLabel:{formatter:a,textStyle:{fontFamily:"Montserrat",fontSize:8,color:"#666"}}},yAxis:{type:"value",scale:!0,axisLabel:{formatter:e=>`${(0,t.addPointInteger)(e)} ${u[c].get("usuarios")}`,textStyle:{fontSize:8,fontFamily:"Montserrat"}}},series:[{name:"7am-5pm",type:"bar",barMaxWidth:40,itemStyle:{color:e.amarilloPalido},data:o},{name:"5pm-12am",type:"bar",barMaxWidth:40,itemStyle:{color:e.naranjaPalido},data:n},{name:"12am-7am",type:"bar",barMaxWidth:40,itemStyle:{color:e.azulCeruleo},data:r}],dataZoom:[{show:!0,start:s(i.length),end:100}]}}(n.resultset.map(t=>t[1]),n.resultset.map(t=>t[2]),n.resultset.map(t=>t[3]),o);l("chartWifi_barFranjas",r)}}})(),n})());
|