platypush/platypush/backend/http/webapp/dist/static/js/8126-legacy.ec568576.js.map

1 line
7.2 KiB
Plaintext

{"version":3,"file":"static/js/8126-legacy.ec568576.js","mappings":"+MAISA,IAAA,EAA+BC,MAAM,W,SACvCA,MAAM,mC,iEAJX,QAMM,OANDA,OAAK,SAAC,wBAAuB,qBACA,EAAAC,aAC7BC,OAAK,QAAE,EAAAC,iBAFZ,CAG4D,EAAAC,UAAA,WAA1D,QAAmE,MAAnE,IACsD,EAAAC,QAAA,WAAtD,QAA+D,IAA/D,iBACA,QAA+C,4BAAjC,EAAAC,yBAAsB,WALtC,E,2CAYF,GACEC,KAAM,aACNC,WAAY,CAACC,KAAAA,EAAA,GACbC,MAAO,CACLN,QAAS,CACPO,KAAMC,QACNC,SAAS,GAGXR,MAAO,CACLM,KAAMC,QACNC,SAAS,GAGXC,OAAQ,CACNH,KAAMI,OACNC,UAAU,GAGZC,KAAM,CACJN,KAAMI,OACNF,QAAS,WAAQ,GAGnBK,aAAc,CACZP,KAAMC,QACNC,SAAS,IAIbM,KA9Ba,WA+BX,MAAO,CACLC,UAAW,KACXC,cAAc,EAEjB,EAEDC,SAAU,CACRC,aADQ,WACO,QACTN,GAAG,WAAS,UAAAO,KAAKV,cAAL,mBAAaW,YAAb,eAAmBR,OAAQ,CAAC,GAG5C,OAFIF,OAAOW,KAAKF,KAAKP,MAAQ,CAAC,GAAGU,SAC/BV,EAAOO,KAAKP,OACd,UAAWA,EACZ,EAEDhB,UARQ,WASN,OAAOuB,KAAKN,cAAgBM,KAAKD,aAAaK,KAC/C,EAEDzB,eAZQ,WAaN,OAAOqB,KAAKvB,YAAcuB,KAAKnB,MAAQ,CAAC,WAAcmB,KAAKvB,WAAa,CAAC,CAC1E,EAEDK,uBAhBQ,WAiBN,IAAMW,GAAG,UAAQO,KAAKD,cAGtB,OAFIC,KAAKvB,kBACAgB,EAAKW,MACPX,CACR,EAEDN,KAvBQ,WAwBN,IAAIkB,EAAcL,KAAKV,OAAOH,MAAQ,GACtC,OAAOkB,EAAWC,OAAO,GAAGC,cAAgBF,EAAWG,MAAM,EAC9D,I,UCrEL,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,uGCROlC,MAAM,iC,GACJA,MAAM,Q,GACJA,MAAM,c,GAONA,MAAM,yB,qBAINA,MAAM,sC,yFAbf,QAmBM,MAnBN,EAmBM,EAlBJ,OAiBM,MAjBN,EAiBM,EAhBJ,OAKM,MALN,EAKM,EAJJ,QAGmB,GAFhBc,OAAQ,EAAAqB,MACR/B,QAAS,EAAAA,QACTC,MAAO,EAAAA,OAHV,wCAMF,OAEM,MAFN,EAEM,EADJ,OAAwC,OAAnCL,MAAM,O,aAAO,QAAmB,EAAN,MAACO,OAAhC,aAGF,OAIM,MAJN,EAIM,CADgB,MAAZ,EAAA6B,eAAY,WAFpB,QAEgC,Q,MAF1BpC,MAAM,gB,aACV,QAA2B,EAAP,mBADtB,gC,iCAYR,GACEO,KAAM,cACNC,WAAY,CAAC6B,WAAAA,EAAA,YACbC,OAAQ,CAACC,EAAA,YAETjB,SAAU,CACRc,aADQ,WACO,MACb,GAAyB,OAArB,UAAAZ,KAAKW,aAAL,eAAYA,OACd,OAAO,KAET,IAAMK,EAAMhB,KAAKW,MAAMK,KAAO,EACxBC,EAAMjB,KAAKW,MAAMM,KAAO,IAC9B,OAAS,IAAMjB,KAAKW,MAAMA,OAAUM,EAAMD,IAAME,QAAQ,EACzD,I,UCjCL,MAAMT,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/EntityIcon.vue","webpack://platypush/./src/components/panels/Entities/EntityIcon.vue?8abc","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue","webpack://platypush/./src/components/panels/Entities/LinkQuality.vue?19d2"],"sourcesContent":["<template>\n <div class=\"entity-icon-container\"\n :class=\"{'with-color-fill': !!colorFill}\"\n :style=\"colorFillStyle\">\n <img src=\"@/assets/img/spinner.gif\" class=\"loading\" v-if=\"loading\">\n <i class=\"fas fa-circle-exclamation error\" v-else-if=\"error\" />\n <Icon v-bind=\"computedIconNormalized\" v-else />\n </div>\n</template>\n\n<script>\nimport Icon from \"@/components/elements/Icon\";\n\nexport default {\n name: \"EntityIcon\",\n components: {Icon},\n props: {\n loading: {\n type: Boolean,\n default: false,\n },\n\n error: {\n type: Boolean,\n default: false,\n },\n\n entity: {\n type: Object,\n required: true,\n },\n\n icon: {\n type: Object,\n default: () => {},\n },\n\n hasColorFill: {\n type: Boolean,\n default: false,\n },\n },\n\n data() {\n return {\n component: null,\n modalVisible: false,\n }\n },\n\n computed: {\n computedIcon() {\n let icon = {...(this.entity?.meta?.icon || {})}\n if (Object.keys(this.icon || {}).length)\n icon = this.icon\n return {...icon}\n },\n\n colorFill() {\n return this.hasColorFill && this.computedIcon.color\n },\n\n colorFillStyle() {\n return this.colorFill && !this.error ? {'background': this.colorFill} : {}\n },\n\n computedIconNormalized() {\n const icon = {...this.computedIcon}\n if (this.colorFill)\n delete icon.color\n return icon\n },\n\n type() {\n let entityType = (this.entity.type || '')\n return entityType.charAt(0).toUpperCase() + entityType.slice(1)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"vars\";\n\n.entity-icon-container {\n width: 1.625em;\n height: 1.5em;\n display: inline-flex;\n margin-top: 0.25em;\n margin-left: 0.25em;\n position: relative;\n text-align: center;\n justify-content: center;\n align-items: center;\n\n &.with-color-fill {\n border-radius: 1em;\n }\n\n .loading {\n position: absolute;\n bottom: 0;\n transform: translate(0%, -50%);\n width: 1em;\n height: 1em;\n }\n\n .error {\n color: $error-fg;\n }\n}\n</style>\n","import { render } from \"./EntityIcon.vue?vue&type=template&id=4fad24e6&scoped=true\"\nimport script from \"./EntityIcon.vue?vue&type=script&lang=js\"\nexport * from \"./EntityIcon.vue?vue&type=script&lang=js\"\n\nimport \"./EntityIcon.vue?vue&type=style&index=0&id=4fad24e6&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4fad24e6\"]])\n\nexport default __exports__","<template>\n <div class=\"entity link-quality-container\">\n <div class=\"head\">\n <div class=\"col-1 icon\">\n <EntityIcon\n :entity=\"value\"\n :loading=\"loading\"\n :error=\"error\" />\n </div>\n\n <div class=\"col-s-8 col-m-9 label\">\n <div class=\"name\" v-text=\"value.name\" />\n </div>\n\n <div class=\"col-s-3 col-m-2 buttons pull-right\">\n <span class=\"value-percent\"\n v-text=\"valuePercent + '%'\"\n v-if=\"valuePercent != null\" />\n </div>\n </div>\n </div>\n</template>\n\n<script>\nimport EntityMixin from \"./EntityMixin\"\nimport EntityIcon from \"./EntityIcon\"\n\nexport default {\n name: 'LinkQuality',\n components: {EntityIcon},\n mixins: [EntityMixin],\n\n computed: {\n valuePercent() {\n if (this.value?.value == null)\n return null\n\n const min = this.value.min || 0\n const max = this.value.max || 100\n return ((100 * this.value.value) / (max - min)).toFixed(0)\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import \"common\";\n\n.link-quality-container {\n .head {\n .value-percent {\n font-size: 1.1em;\n font-weight: bold;\n opacity: 0.7;\n }\n }\n}\n</style>\n","import { render } from \"./LinkQuality.vue?vue&type=template&id=4ca8847f&scoped=true\"\nimport script from \"./LinkQuality.vue?vue&type=script&lang=js\"\nexport * from \"./LinkQuality.vue?vue&type=script&lang=js\"\n\nimport \"./LinkQuality.vue?vue&type=style&index=0&id=4ca8847f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4ca8847f\"]])\n\nexport default __exports__"],"names":["src","class","colorFill","style","colorFillStyle","loading","error","computedIconNormalized","name","components","Icon","props","type","Boolean","default","entity","Object","required","icon","hasColorFill","data","component","modalVisible","computed","computedIcon","this","meta","keys","length","color","entityType","charAt","toUpperCase","slice","__exports__","render","value","valuePercent","EntityIcon","mixins","EntityMixin","min","max","toFixed"],"sourceRoot":""}