Alessandro Pasotti 6edfc994c9 Remove footer
2020-11-26 09:39:22 +01:00

2 lines
8.0 KiB
JavaScript

(function(e){function t(t){for(var n,o,u=t[0],i=t[1],s=t[2],f=0,l=[];f<u.length;f++)o=u[f],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&l.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);p&&p(t);while(l.length)l.shift()();return c.push.apply(c,s||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var u=r[o];0!==a[u]&&(n=!1)}n&&(c.splice(t--,1),e=i(i.s=r[0]))}return e}var n={},o={app:0},a={app:0},c=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-123bc409":"ef3c4d35","chunk-74045dab":"96de8dee","chunk-744799cf":"0eb406dc"}[e]+".js"}function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],r={"chunk-123bc409":1,"chunk-74045dab":1,"chunk-744799cf":1};o[e]?t.push(o[e]):0!==o[e]&&r[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="css/"+({}[e]||e)+"."+{"chunk-123bc409":"8679d8ba","chunk-74045dab":"4bc0a31d","chunk-744799cf":"0a230f6c"}[e]+".css",a=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=c[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){s=l[u],f=s.getAttribute("data-href");if(f===n||f===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],p.parentNode.removeChild(p),r(c)},p.href=a;var d=document.getElementsByTagName("head")[0];d.appendChild(p)})).then((function(){o[e]=0})));var n=a[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=a[e]=[t,r]}));t.push(n[2]=c);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=u(e);var l=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(p);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}a[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=f;c.push([0,"chunk-vendors"]),r()})({0:function(e,t,r){e.exports=r("56d7")},"034f":function(e,t,r){"use strict";var n=r("85ec"),o=r.n(n);o.a},"56d7":function(e,t,r){"use strict";r.r(t);r("7db0"),r("4160"),r("a630"),r("d81d"),r("fb6a"),r("b64b"),r("d3b7"),r("3ca3"),r("159b"),r("e260"),r("e6cf"),r("cca6"),r("a79d");var n=r("a026"),o=r("8c4f"),a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-app",{attrs:{id:"app"}},[r("router-view")],1)},c=[],u={name:"App"},i=u,s=(r("034f"),r("2877")),f=r("6544"),l=r.n(f),p=r("7496"),d=Object(s["a"])(i,a,c,!1,null,null,null),m=d.exports;l()(d,{VApp:p["a"]});r("99af"),r("96cf");var h=r("1da1"),v=r("2f62");n["a"].use(v["a"]);var b=new v["a"].Store({state:{catalog:[],projects:{},attributeTableTypename:"",tocs:{},error:"",status:"loading",activeTool:"",identifyResults:{},baseMap:"",mapScaleDenominator:1},mutations:{setCatalog:function(e,t){e.catalog=t},setBaseMap:function(e,t){e.baseMap=t},setStatus:function(e,t){e.status=t},setActiveTool:function(e,t){e.activeTool=t},setError:function(e,t){e.error=t},clearError:function(e){e.error=""},clearIdentifyResults:function(e){e.identifyResults={}},setProject:function(e,t){n["a"].set(e.projects,t.id,t)},setToc:function(e,t){var r=t.projectId,o=t.toc;n["a"].set(e.tocs,r,o)},setIdentifyResults:function(e,t){var r=t.identifyResults;e.identifyResults=r},setAttributeTableLayerTypename:function(e,t){e.attributeTableTypename=t},clearAttributeTableTypename:function(e){e.attributeTableTypename=""},setMapScaleDenominator:function(e,t){e.mapScaleDenominator=t}},actions:{getCatalog:function(e){return Object(h["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=e.commit;try{fetch("/index.json").then((function(e){if(!e)throw Error("Error fetching data from QGIS Server");if(!e.ok)throw Error(e.statusText);return e})).then((function(e){return e.json()})).then((function(e){e.projects.forEach((function(e){e.show=!1})),r("setCatalog",e.projects),r("setStatus",e.projects.length?"projects":"empty")})).catch((function(e){r("setError",e.message)}))}catch(n){r("setError",n.message)}case 2:case"end":return t.stop()}}),t)})))()},getProject:function(e,t){return Object(h["a"])(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=e.commit;try{fetch("/map/".concat(t,".json")).then((function(e){if(!e)throw Error("Error fetching data from QGIS Server");if(!e.ok)throw Error(e.statusText);return e})).then((function(e){return e.json()})).then((function(e){n("setProject",e.project),n("setStatus","project")})).catch((function(e){n("setError",e.message)}))}catch(o){n("setError",o.message)}case 2:case"end":return r.stop()}}),r)})))()},setStatus:function(e,t){var r=e.commit;r("setStatus",t)},getToc:function(e,t){var r=this;return Object(h["a"])(regeneratorRuntime.mark((function n(){var o,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:o=e.commit,a="/project/".concat(t.projectId,"/?SERVICE=WMS&REQUEST=GetLegendGraphics&LAYERS=").concat(t.layers,"&FORMAT=application/json"),fetch(a).then(r.handleErrors).then((function(e){return e.json()})).then((function(e){o("setToc",{projectId:t.projectId,toc:e})})).catch((function(e){o("setError",e.message)}));case 3:case"end":return n.stop()}}),n)})))()}}}),g=r("f309");n["a"].use(g["a"]);var y=new g["a"]({});n["a"].config.productionTip=!1,n["a"].use(o["a"]);var j=[{path:"/",name:"catalog",component:function(){return Promise.all([r.e("chunk-123bc409"),r.e("chunk-74045dab")]).then(r.bind(null,"247d"))},meta:{title:"QGIS Server Catalog - Home Page",metaTags:[{name:"description",content:"List of available projects in QGIS Server catalog."}]}},{path:"/map/:projectId",name:"map",component:function(){return Promise.all([r.e("chunk-123bc409"),r.e("chunk-744799cf")]).then(r.bind(null,"19ba"))},props:!0,meta:{title:"QGIS Server Project",metaTags:[{name:"description",content:"QGIS Server Project"}]}}],S=new o["a"]({routes:j});S.beforeEach((function(e,t,r){var n=e.matched.slice().reverse().find((function(e){return e.meta&&e.meta.title})),o=e.matched.slice().reverse().find((function(e){return e.meta&&e.meta.metaTags}));if(n&&(document.title=n.meta.title),Array.from(document.querySelectorAll("[data-vue-router-controlled]")).map((function(e){return e.parentNode.removeChild(e)})),!o)return r();o.meta.metaTags.map((function(e){var t=document.createElement("meta");return Object.keys(e).forEach((function(r){t.setAttribute(r,e[r])})),t.setAttribute("data-vue-router-controlled",""),t})).forEach((function(e){return document.head.appendChild(e)})),r()})),new n["a"]({router:S,vuetify:y,store:b,render:function(e){return e(m)}}).$mount("#app")},"85ec":function(e,t,r){}});
//# sourceMappingURL=app.33bbdcf6.js.map