PageSourceSearch

https://efilax.web.app/js/9154.184e4a86.js

js efilax.web.app collected 2026-10-03 12:23:11 UTC 12,291 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkrmsmenudigitaladmin"]=self["webpackChunkrmsmenudigitaladmin"]||[]).push([[9154],{2920:function(e,t,r){r.d(t,{A:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mapa-renderer",class:{"mapa-renderer--edicion":e.modoEdicion,"mapa-renderer--interactivo":e.interactivo,"mapa-renderer--dimensionado":e.tieneDimensiones},style:e.estiloLienzo},[e.fuenteImagen?t("img",{attrs:{src:e.fuenteImagen,alt:e.textoAlternativo,draggable:"false"},on:{load:function(t){return e.$emit("imagen-cargada",t)},error:function(t){return e.$emit("imagen-error",t)}}}):e._e(),e.fuenteImagen?t("svg",{ref:"overlay",staticClass:"mapa-renderer__overlay",class:"tool-"+e.herramienta,attrs:{viewBox:"0 0 100 100",preserveAspectRatio:"none",tabindex:e.modoEdicion?0:-1,role:e.modoEdicion?"application":"img","aria-label":e.etiquetaAccesible},on:{pointerdown:function(t){return e.emitirLienzo("pointerdown-lienzo",t)},pointermove:function(t){return e.emitirLienzo("pointermove-lienzo",t)},pointerup:function(t){return e.emitirLienzo("pointerup-lienzo",t)},pointercancel:function(t){return e.emitirLienzo("pointercancel-lienzo",t)},keydown:e.emitirTeclado}},e._l(e.areasRenderizadas,(function(r){return t("g",{key:r.id,staticClass:"mapa-renderer__area",class:{selected:r.id===e.areaSeleccionadaId},style:[e.estiloArea(r),{pointerEvents:e.permiteInteraccion?"auto":"none"}],on:{pointerdown:function(t){return t.stopPropagation(),e.emitirArea(t,r)},click:function(t){return t.stopPropagation(),e.emitirClickArea(t,r)}}},["rectangulo"===r.forma?t("rect",{staticClass:"mapa-renderer__forma",attrs:{x:r.x,y:r.y,width:r.ancho,height:r.alto,rx:"1.2","vector-effect":"non-scaling-stroke"}}):t("ellipse",{staticClass:"mapa-renderer__forma",attrs:{cx:r.x+r.ancho/2,cy:r.y+r.alto/2,rx:r.ancho/2,ry:r.alto/2,"vector-effect":"non-scaling-stroke"}}),e.mostrarEtiquetas?t("text",{staticClass:"mapa-renderer__etiqueta",style:{fontSize:e.tamanoEtiqueta(r)+"px"},attrs:{x:r.x+r.ancho/2,y:r.y+r.alto/2,"text-anchor":"middle","dominant-baseline":"central"}},[e._v(" "+e._s(r.nombre)+" ")]):e._e(),e.modoEdicion&&r.id===e.areaSeleccionadaId?t("rect",{staticClass:"mapa-renderer__seleccion",attrs:{x:r.x,y:r.y,width:r.ancho,height:r.alto,"vector-effect":"non-scaling-stroke","pointer-events":"none"}}):e._e(),e.modoEdicion&&r.id===e.areaSeleccionadaId?t("circle",{staticClass:"mapa-renderer__manejador",attrs:{cx:r.x+r.ancho,cy:r.y+r.alto,r:100/e.zoomSeguro*1.25,"vector-effect":"non-scaling-stroke"},on:{pointerdown:function(t){return t.stopPropagation(),e.emitirRedimension(t,r)}}}):e._e()])})),0):t("div",{staticClass:"mapa-renderer__sin-imagen"},[e._t("sin-imagen")],2)])},o=[],n=r(7708);const a=(e,t,r)=>Math.min(Math.max(e,t),r);var s={name:"MapaAreasRenderer",props:{mapa:{type:Object,default:null},imagenUrl:{type:String,default:""},areas:{type:Array,default:()=>[]},estilos:{type:Object,default:()=>({})},datosAreas:{type:[Array,Object],default:()=>[]},claveDatoArea:{type:String,default:"idArea"},claveEstiloDato:{type:String,default:"estilo"},nombreMapa:{type:String,default:""},areaSeleccionadaId:{type:String,default:null},modoEdicion:{type:Boolean,default:!1},interactivo:{type:Boolean,default:!1},herramienta:{type:String,default:"seleccionar"},zoom:{type:Number,default:100},mostrarEtiquetas:{type:Boolean,default:!0},estiloLienzo:{type:Object,default:()=>({})}},computed:{fuenteImagen(){return this.imagenUrl?this.imagenUrl:this.mapa&&this.mapa.imagen&&(this.mapa.imagen.url||this.mapa.imagen.src)||""},areasRenderizadas(){const e=this.mapa&&Array.isArray(this.mapa.areas)?this.mapa.areas:this.areas;return(0,n.TB)(e)},estilosRenderizados(){const e=this.mapa&&this.mapa.estilos?this.mapa.estilos:this.estilos;return(0,n.gJ)(e)},textoAlternativo(){const e=this.nombreMapa||this.mapa&&this.mapa.nombreMapa||"";return e?`Mapa ${e}`:"Mapa de áreas"},etiquetaAccesible(){return this.modoEdicion?"Editor de áreas del mapa":this.textoAlternativo},permiteSeleccion(){return this.modoEdicion&&"seleccionar"===this.herramienta},permiteInteraccion(){return this.permiteSeleccion||!this.modoEdicion&&this.interactivo},tieneDimensiones(){return Boolean(this.estiloLienzo.width&&this.estiloLienzo.height)}
1,zoomSeguro(){return a(this.zoom||100,1,1e3)}},methods:{obtenerPunto(e){const t=this.obtenerDimensiones();return t.width&&t.height?{x:a((e.clientX-t.left)/t.width*100,0,100),y:a((e.clientY-t.top)/t.height*100,0,100)}:{x:0,y:0}},crearPayload(e,t){return{evento:e,punto:this.obtenerPunto(e),area:t||null,dato:t?this.resolverDatoArea(t):null}},resolverDatoArea(e){return(0,n.Pp)(e,this.datosAreas,this.claveDatoArea)},capturarPuntero(e){this.modoEdicion&&this.$refs.overlay&&this.$refs.overlay.setPointerCapture&&this.$refs.overlay.setPointerCapture(e.pointerId)},emitirLienzo(e,t){this.modoEdicion&&("pointerdown-lienzo"===e&&this.capturarPuntero(t),this.$emit(e,this.crearPayload(t)))},emitirArea(e,t){this.permiteSeleccion&&(this.capturarPuntero(e),this.$emit("pointerdown-area",this.crearPayload(e,t)))},emitirClickArea(e,t){if(!this.interactivo||this.modoEdicion)return;const r=this.crearPayload(e,t);this.$emit("area-click",r),this.$emit("dato-area-click",r.dato)},emitirRedimension(e,t){this.modoEdicion&&(this.capturarPuntero(e),this.$emit("pointerdown-redimension",this.crearPayload(e,t)))},emitirTeclado(e){this.modoEdicion&&this.$emit("keydown-lienzo",e)},obtenerDimensiones(){return this.$refs.overlay?this.$refs.overlay.getBoundingClientRect():{left:0,top:0,width:0,height:0}},enfocar(){this.$refs.overlay&&this.$refs.overlay.focus()},tamanoEtiqueta(e){return a(.28*Math.min(e.ancho,e.alto),1.4,4)},estiloArea(e){const t=this.resolverDatoArea(e),r=t&&this.claveEstiloDato&&null!=t[this.claveEstiloDato]?String(t[this.claveEstiloDato]).trim():"",i=r&&this.estilosRenderizados[r]?{...e,estilo:r}:e,o=(0,n.NQ)(i,this.estilosRenderizados);return{"--area-relleno":o.relleno,"--area-borde":o.borde,"--area-texto":o.texto,"--area-opacidad-relleno":o.opacidadRelleno,"--area-opacidad-relleno-activo":a(o.opacidadRelleno+.13,0,1),"--area-opacidad-borde":o.opacidadBorde}}}},l=s,c=r(1656),d=(0,c.A)(l,i,o,!1,null,"1368fdc3",null),u=d.exports},7708:function(e,t,r){r.d(t,{Fj:function(){return h},Hq:function(){return o},NQ:function(){return f},N_:function(){return C},P7:function(){return _},Pp:function(){return g},TB:function(){return A},bh:function(){return m},gJ:function(){return p},ix:function(){return b},vE:function(){return n}});const i=Object.freeze({RECTANGULO:1,ELIPSE:2,CIRCULO:3}),o="base",n=Object.freeze({nombre:"Base",relleno:"#2751A3",borde:"#193A7A",texto:"#102B60",opacidadRelleno:.22,opacidadBorde:.86}),a=Object.freeze({rectangulo:i.RECTANGULO,elipse:i.ELIPSE,circulo:i.CIRCULO}),s=Object.freeze({[i.RECTANGULO]:"rectangulo",[i.ELIPSE]:"elipse",[i.CIRCULO]:"circulo"}),l=e=>Math.round(1e3*e)/1e3,c=(e,t,r)=>Math.min(Math.max(e,t),r),d=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t},u=(e,t)=>
1{const r=String(e||"").trim();return/^#[0-9a-f]{6}$/i.test(r)?r.toUpperCase():/^#[0-9a-f]{3}$/i.test(r)?"#"+r.slice(1).split("").map((e=>e+e)).join("").toUpperCase():t};function h(){return{[o]:{...n}}}function m(e={},t=n){return{nombre:null!=e.nombre&&String(e.nombre).trim()?String(e.nombre).trim():t.nombre,relleno:u(e.relleno,t.relleno),borde:u(e.borde,t.borde),texto:u(e.texto,t.texto),opacidadRelleno:l(c(d(e.opacidadRelleno,t.opacidadRelleno),0,1)),opacidadBorde:l(c(d(e.opacidadBorde,t.opacidadBorde),0,1))}}function p(e={}){const t=e&&"object"===typeof e&&!Array.isArray(e)?e:{},r=m(t[o],n),i={[o]:r};return Object.keys(t).forEach((e=>{const n=String(e).trim();n&&n!==o&&(i[n]=m(t[e],r))})),i}function f(e={},t={}){const r=p(t),i="string"===typeof e.estilo&&e.estilo.trim()?e.estilo.trim():o,n=r[i]?i:o;return{id:n,...r[n]}}function g(e,t=[],r="idArea"){if(!e||void 0===e.id||null===e.id)return null;const i=String(e.id);return Array.isArray(t)?t.find((e=>{if(!e||"object"!==typeof e)return!1;const t=e[r];return void 0!==t&&null!==t&&String(t)===i}))||null:t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,e.id)?null==t[e.id]?null:t[e.id]:null}function y(e){const t=Number(e);return s[t]?t:a[e]||i.RECTANGULO}function v(e){return s[Number(e)]||(a[e]?e:"rectangulo")}function b(e={}){const t=c(d(e.xPct,d(e.x)),0,100),r=c(d(e.yPct,d(e.y)),0,100),i=c(d(e.anchoPct,d(e.ancho)),0,100-t),n=c(d(e.altoPct,d(e.alto)),0,100-r);return{id:e.id||"",nombre:null==e.nombre?"":String(e.nombre),forma:v(e.forma),estilo:"string"===typeof e.estilo&&e.estilo.trim()?e.estilo.trim():o,x:l(t),y:l(r),ancho:l(i),alto:l(n)}}function A(e=[]){return Array.isArray(e)?e.map(b):[]}function _(e={}){const t=b(e);return{id:t.id,nombre:t.nombre,forma:y(t.forma),estilo:t.estilo,xPct:t.x,yPct:t.y,anchoPct:t.ancho,altoPct:t.alto}}function C(e={}){const t=p(e.estilos);return{...e,imagen:e.imagen?{...e.imagen}:{},estilos:t,areas:A(e.areas).map((e=>({...e,estilo:t[e.estilo]?e.estilo:o})))}}},623:function(e,t,r){r.d(t,{A:function(){return h}});var i=r(7858),o=r(9945),n=r(4582),a=r(8937),s=r(1582),l=r(7038),c=r(2006),d=r(3803),u=r(9463),h=(0,c.A)(i.A,a.A,l.A).extend({name:"v-alert",props:{border:{type:String,validator(e){return["top","right","bottom","left"].includes(e)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(e){return"string"===typeof e||!1===e}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(e){return["info","error","success","warning"].includes(e)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let e={staticClass:"v-alert__border",class:{[`v-alert__border--${this.border}`]:!0}};return this.coloredBorder&&(e=this.setBackgroundColor(this.computedColor,e),e.class["v-alert__border--has-color"]=!0),this.$createElement("div",e)},__cachedDismissible(){if(!this.dismissible)return null;const e=this.iconColor;return this.$createElement(o.A,{staticClass:"v-alert__dismissible",props:{color:e,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(n.A,{props:{color:e}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(n.A,{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const e={...i.A.options.computed.classes.call(this),"v-alert--border":Boolean(this.border),"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(e[`v-alert--border-${this.border}`]=!0),e},computedColor(){return this.color||this.type},computedIcon(){return!1!==this.icon&&("string"===typeof this.icon&&this.icon?this.icon:!!["error","info","success","warning"].includes(this.type)&&`$${this.type}`)},hasColoredIcon(){return this.hasText||Boolean(this.border)&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return!(!this.type||this.coloredBorder||this.outlined)||s.A.options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&(0,d.q4)("outline","outlined",this)}
1,methods:{genWrapper(){const e=[(0,u.$c)(this,"prepend")||this.__cachedIcon,this.genContent(),this.__cachedBorder,(0,u.$c)(this,"append"),this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],t={staticClass:"v-alert__wrapper"};return this.$createElement("div",t,e)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},(0,u.$c)(this))},genAlert(){let e={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};if(!this.coloredBorder){const t=this.hasText?this.setTextColor:this.setBackgroundColor;e=t(this.computedColor,e)}return this.$createElement("div",e,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(e){const t=this.genAlert();return this.transition?e("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[t]):t}})},9945:function(e,t,r){var i=r(3847);t.A=i.A}}]);
2//# sourceMappingURL=9154.184e4a86.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.