Files
app_hub/dist/js/index.45537b27.js
2026-01-13 12:46:07 +03:00

1 line
7.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["index"],{"36a7":function(t,s,e){},"6e78":function(t,s,e){"use strict";e.r(s);var i=e("8336"),a=e("b0af"),r=e("99d9"),n=e("cc20"),o=e("a523"),c=e("ce7e"),h=e("132d"),l=e("adda"),d=e("8860"),m=e("da13"),u=e("1800"),g=e("5d23"),p=e("1baa"),v=e("8e36"),_=e("e0c7"),S=function(){var t=this,s=t._self._c;return s(o["a"],{attrs:{id:"stat","fill-height":""}},[s(a["a"],{staticClass:"mx-auto",attrs:{tile:"",elevation:"5"}},[s(l["a"],{attrs:{height:"200",width:"750",src:e("b9af")}}),s(r["c"],[s(h["a"],{attrs:{color:"teal lighten-3",large:"",left:""}},[t._v("mdi-apps")]),s("span",[t._v("APP-VUE-HUB ("+t._s(t.items.length)+" projects"),t.loading?t._e():s("span",[t._v(" | "+t._s(t.allCounts)+" visits")]),t._v(")")])],1),t.loading?s(v["a"],{attrs:{indeterminate:""}}):t._e(),s(c["a"]),s(d["a"],{staticClass:"overflow-y-auto",attrs:{"two-line":"",id:"scrolling-techniques-7","max-height":"450","max-width":"750"}},[s(p["a"],t._l(t.items,(function(e,a){return s(m["a"],{key:e.index,attrs:{to:{path:e.path}}},[s(g["a"],[s(g["c"],[t._v(t._s(++a)+" - "+t._s(e.name))]),s(g["b"],[t._v("URL:"+t._s(e.path))])],1),"undefined visits |"===e.counters||t.loading?t._e():s("span",{staticClass:"text--secondary overline",attrs:{id:"myheaders"}},[s("span",{staticClass:"pa-md-2 mx-lg-auto"},[s(n["a"],{attrs:{small:""}},[t._v(t._s(e.counters))])],1),s("span",{staticClass:"mx-lg-auto"},[t._v("visits \\ ")]),s("span",{staticClass:"mx-lg-auto"},[t._v("last ")]),s("span",{staticClass:"mx-lg-auto"},[s(n["a"],{attrs:{small:""}},[t._v(t._s(e.last_date))])],1),s(u["a"],[s(i["a"],{attrs:{icon:""},nativeOn:{click:function(s){return s.preventDefault(),t.showInfo(e.name)}}},[s(h["a"],{attrs:{color:"grey lighten-1"}},[t._v("mdi-information")])],1)],1)],1)],1)})),1)],1),s(c["a"]),s(d["a"],{attrs:{subheader:""}},[s(_["a"],{staticClass:"overline"},[t._v("БОТП АСУТП ККЦ - Самофалов Д.А.")])],1)],1)],1)},f=[],b=e("2f62"),y=e("f2ef"),C={data:()=>({allCounts:0,items:[]}),computed:{...Object(b["c"])("stat",{loading:"loading",data:"data"})},methods:{...Object(b["b"])("stat",{getData:"getData"}),showInfo(t){this.$router.props=t,this.$router.push("/stat")}},mounted(){this.$router.options.routes.forEach(t=>{"/"!==t.path&&"/stat"!==t.path&&this.items.push({name:t.name,path:t.path})}),this.getData().then(()=>{this.items=this.items.map(t=>({...t,counters:y["a"].defaults(y["a"].findWhere(this.data.stat,{project_name:t.name})).project_count,last_date:y["a"].defaults(y["a"].findWhere(this.data.stat,{project_name:t.name})).last_date})),this.data.stat.forEach(t=>{"Stat"!==t.project_name&&(this.allCounts=this.allCounts+t.project_count)})})}},w=C,z=(e("91e2"),e("2877")),j=Object(z["a"])(w,S,f,!1,null,null,null);s["default"]=j.exports},"8efc":function(t,s,e){},"91e2":function(t,s,e){"use strict";e("9450")},9450:function(t,s,e){},adda:function(t,s,e){"use strict";e("8efc");var i=e("90a2"),a=(e("36a7"),e("24b2")),r=e("58df"),n=e("80d2"),o=Object(r["a"])(a["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(n["s"])(this))}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),c=o,h=e("7560"),l=e("d9f7"),d=e("d9bd");const m="undefined"!==typeof window&&"IntersectionObserver"in window;s["a"]=Object(r["a"])(c,h["a"]).extend({name:"v-img",directives:{intersect:i["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],s=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),s&&t.push(`url("${s}")`);const e=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[e]):e}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,s,e){if(!m||e||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),t.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,s=100){const e=()=>{const{naturalHeight:i,naturalWidth:a}=t;i||a?(this.naturalWidth=a,this.calculatedAspectRatio=a/i):t.complete||!this.isLoading||this.hasError||null==s||setTimeout(e,s)};e()},genContent(){const t=c.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){const t=Object(n["s"])(this,"placeholder");if(t){const s=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},t)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},s):s[0]}}},render(t){const s=c.options.render.call(this,t),e=Object(l["a"])(s.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:m?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return s.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(s.tag,e,s.children)}})},b9af:function(t,s,e){t.exports=e.p+"img/2.09495f1b.png"}}]);