diff --git a/g3w-admin/client/static/client/js/app.min.js b/g3w-admin/client/static/client/js/app.min.js index ae25fcab3..8d0681eda 100644 --- a/g3w-admin/client/static/client/js/app.min.js +++ b/g3w-admin/client/static/client/js/app.min.js @@ -1,2 +1,2 @@ -!function r(n,i,o){function s(t,e){if(!i[t]){if(!n[t]){var a="function"==typeof require&&require;if(!e&&a)return a(t,!0);if(l)return l(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}a=i[t]={exports:{}},n[t][0].call(a.exports,function(e){return s(n[t][1][e]||e)},a,a.exports,r,n,i,o)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e=",lte:"<=",NOT:"!=",eq:"=",gt:">",lt:"<",IN:"IN",LIKE:"LIKE",ILIKE:"ILIKE",AND:"AND",OR:"OR"}),r=a.FILTER_EXPRESSION_OPERATORS=r({lte:"<=",ltgt:"!=",ilike:"ILIKE",like:"LIKE"},l),u=a.GEOMETRY_FIELDS=["geometryProperty","boundedBy","geom","the_geom","geometry","bbox","GEOMETRY","geoemtria","geometria"],c=a.GEOMETRY_TYPES={POINT:"Point",POINTZ:"PointZ",POINTM:"PointM",POINTZM:"PointZM",POINT25D:"Point25D",MULTIPOINT:"MultiPoint",MULTIPOINTZ:"MultiPointZ",MULTIPOINTM:"MutliPointM",MULTIPOINTZM:"MultiPointZM",MULTIPOINT25D:"MultiPoint25D",LINESTRING:"LineString",LINESTRINGZ:"LineStringZ",LINESTRINGM:"LineStringM",LINESTRINGZM:"LineStringZM",LINESTRING25D:"LineString25D",LINE:"Line",LINEZ:"LineZ",LINEM:"LineM",LINEZM:"LineZM",LINE25D:"Line25D",MULTILINESTRING:"MultiLineString",MULTILINESTRINGZ:"MultiLineStringZ",MULTILINESTRINGM:"MultiLineStringM",MULTILINESTRINGZM:"MultiLineStringZM",MULTILINESTRING25D:"MultiLineString25D",MULTILINE:"MultiLine",MULTILINEZ:"MultiLineZ",MULTILINEM:"MultiLineM",MULTILINEZM:"MultiLineZM",MULTILINE25D:"MultiLine25D",POLYGON:"Polygon",POLYGONZ:"PolygonZ",POLYGONM:"PolygonM",POLYGONZM:"PolygonZM",POLYGON25D:"Polygon25D",MULTIPOLYGON:"MultiPolygon",MULTIPOLYGONZ:"MultiPolygonZ",MULTIPOLYGONM:"MultiPolygonM",MULTIPOLYGONZM:"MultiPolygonZM",MULTIPOLYGON25D:"MultiPolygon25D",GEOMETRYCOLLECTION:"GeometryCollection",GEOMETRYCOLLECTIONZ:"GeometryCollectionZ",GEOMETRYCOLLECTIONM:"GeometryCollectionM",GEOMETRYCOLLECTIONZM:"GeometryCollectionZM",GEOMETRYCOLLECTION25D:"GeometryCollection25D"},d=(a.LIST_OF_RELATIONS_TITLE="info.list_of_relations",a.LIST_OF_RELATIONS_ID="__G3W_LIST_OF_RELATIONS_ID__",a.LOCALSTORAGE_EXTERNALWMS_ITEM="externalwms",a.MAP_SETTINGS={ZOOM:{maxScale:1e3},ANIMATION:{duration:2e3},LAYER_POSITIONS:{default:"top",getPositions:function(){return["top","bottom"]}}}),p=a.PRINT_FORMATS=[{value:"png",label:"PNG"},{value:"jpg",label:"JPG"},{value:"svg",label:"SVG"},{value:"pdf",label:"PDF"},{value:"geopdf",label:"GEOPDF"}],f=a.PRINT_RESOLUTIONS=[150,300],h=a.PRINT_SCALES=[{value:100,label:"1:100"},{value:200,label:"1:200"},{value:500,label:"1:500"},{value:1e3,label:"1:1.000"},{value:2e3,label:"1:2.000"},{value:2500,label:"1:2.500"},{value:5e3,label:"1:5.000"},{value:1e4,label:"1:10.000"},{value:2e4,label:"1:20.000"},{value:25e3,label:"1:25.000"},{value:5e4,label:"1:50.000"},{value:1e5,label:"1:100.000"},{value:25e4,label:"1:250.000"},{value:5e5,label:"1:500.000"},{value:1e6,label:"1:1.000.000"},{value:25e5,label:"1:2.500.000"},{value:5e6,label:"1:5.000.000"},{value:1e7,label:"1:10.000.000"},{value:2e7,label:"1:20.000.000"},{value:5e7,label:"1:50.000.000"},{value:1e8,label:"1:100.000.000"},{value:25e7,label:"1:250.000.000"},{value:5e8,label:"1:500.000.000"}],g=a.QUERY_POINT_TOLERANCE={unit:"pixel",value:10},y=(a.SEARCH_ALLVALUE="__G3W_ALL__",a.SEARCH_RETURN_TYPES=["data","search"]),v=(a.TIMEOUT=6e4,a.TOC_LAYERS_INIT_STATUS="not_collapsed",a.TOC_THEMES_INIT_STATUS="collapsed",a.VIEWPORT={resize:{map:{min:200},content:{min:200}}}),m=a.ZINDEXES={usermessage:{tool:2}},_=a.API_BASE_URLS={ABOUT:{macrogroups:"/about/api/macrogroup/",nomacrogoups:"/about/api/group/nomacrogroup/",projects:"/about/api/group/__G3W_GROUP_ID__/projects/",group:"/about/api/group/"},CRS:"/crs/"},b=a.FONT_AWESOME_ICONS={"change-map":"fas fa-map-signs",map:"far fa-map",file:"fas fa-file-code",marker:"fas fa-map-marker-alt",relation:"fas fa-sitemap",tools:"fas fa-cogs",tool:"fas fa-cog",search:"fas fa-search",print:"fas fa-print",info:"fas fa-info-circle","info-circle":"fas fa-info-circle",globe:"fas fa-globe",mail:"fas fa-envelope",mobile:"fas fa-mobile",fax:"fas fa-fax",user:"fas fa-user",bars:"fas fa-bars",uncheck:"far fa-square",check:"far fa-check-square",checkmark:"fa fa-check",filluncheck:"fas fa-square",table:"fas fa-table",trash:"fas fa-trash","trash-o":"far fa-trash-alt",pencil:"fas fa-pencil-alt","ellips-h":"fas fa-ellipsis-h","ellips-v":"fas fa-ellipsis-v","arrow-up":"fas fa-chevron-up","arrow-down":"fas fa-chevron-down","arrow-left":"fas fa-chevron-left","arrow-right":"fas fa-chevron-right","resize-h":"fas fa-arrows-alt-h","resize-v":"fas fa-arrows-alt-v","resize-default":"fas fa-compress","caret-up":"fas fa-caret-up","caret-down":"fas fa-caret-down","caret-left":"fas fa-caret-left","caret-right":"fas fa-caret-right","empty-circle":"far fa-circle","cloud-upload":"fas fa-cloud-upload-alt",spinner:"fas fa-spinner",minus:"fas fa-minus","minus-square":"far fa-minus-square",plus:"fas fa-plus","plus-circle":"fas fa-plus-circle","plus-square":"far fa-plus-square",grid:"fas fa-th",home:"fas fa-home",folder:"fas fa-folder","sign-out":"fas fa-sign-out-alt",close:"fas fa-times",time:"far fa-clock",calendar:"fas fa-calendar-alt",list:"fas fa-list-alt",link:"fas fa-link",unlink:"fas fa-unlink",eye:"far fa-eye","eye-close":"far fa-eye-slash",save:"far fa-save",pdf:"fas fa-file-pdf",image:"far fa-image",video:"far fa-file-video",unknow:"far fa-question-circle",zip:"far fa-file-archive",text:"far fa-file-alt",excel:"far fa-file-excel",xls:"far fa-file-excel",gpx:"fas fa-location-arrow",gpkg:"fas fa-box-open",shapefile:"fas fa-file-archive",csv:"fas fa-file-csv",geotiff:"fas fa-th",ppt:"far fa-file-powerpoint",circle:"fas fa-circle",calculator:"fas fa-calculator",picture:"far fa-image",keyboard:"far fa-keyboard","file-download":"fas fa-file-download",copy:"far fa-copy",draw:"fas fa-draw-polygon",chart:"fas fa-chart-bar","chart-line":"fas fa-chart-line","chart-area":"fas fa-chart-area","chart-pie":"fas fa-chart-pie",run:"fas fa-play",warning:"fas fa-exclamation-circle",alert:"fas fa-exclamation-triangle",crosshairs:"fas fa-crosshairs",success:"far fa-check-circle",back:"fas fa-chevron-circle-left","file-upload":"fas fa-file-upload",wifi:"fas fa-wifi",mouse:"fas fa-mouse","copy-paste":"far fa-copy","vector-square":"fas fa-vector-square",download:"fas fa-download",credits:"fas fa-euro-sign",filter:"fas fa-filter",plugin:"fas fa-plug",invert:"fas fa-exchange-alt",clear:"fas fa-broom",palette:"fas fa-palette",layers:"fas fa-layer-group","sign-in":"fas fa-sign-in-alt",language:"fas fa-language",target:"fas fa-bullseye",pin:"fas fa-map-pin",square:"far fa-square",move:"fas fa-arrows-alt",moon:"fas fa-moon",sun:"fas fa-sun",refresh:"fas fa-sync-alt",pause:"fas fa-pause","step-backward":"fas fa-step-backward","fast-backward":"fas fa-fast-backward","step-forward":"fas fa-step-forward","fast-forward":"fas fa-fast-forward",crop:"fas fa-crop-alt",exit:"fas fa-door-open",slider:"fas fa-sliders-h",bookmark:"fas fa-bookmark",reply:"fas fa-reply",share:"fas fa-share","share-alt":"fa fa-share-alt","external-link":"fa fa-external-link-alt",pointer:"fa fa-hand-pointer",camera:"fas fa-camera-retro",measure:"fas fa-ruler-horizontal"},w=a.LOCAL_ITEM_IDS={MESSAGES:{id:"MESSAGES",value:{}},SPATIALBOOKMARKS:{id:"SPATIALBOOKMARKS",value:{}}},x=(a.LOGO_GIS3W="images/logo_gis3w_156_85.png",a.SPATIAL_METHODS=["intersects","within"]),k=(a.DOTS_PER_INCH=96,a.INCHES_PER_UNIT={m:39.37,degrees:4374754}),e=(a.SELECTION={ALL:"__ALL__",EXCLUDE:"__EXCLUDE__"},a.APP_CONFIG={apptitle:"G3W Client",client:{debug:!0,local:!1},server:{urls:{baseurl:"/",ows:"ows",api:"api",initconfig:"api/initconfig",config:"api/config"}},plugins:{},supportedLanguages:["en","it"],tools:{tools:[]},_i18n:{resources:e.default}});a.default={APP_CONFIG:e,APP_VERSION:n,API_BASE_URLS:_,DEFAULT_EDITING_CAPABILITIES:o,DOTS_PER_INCH:96,DOWNLOAD_FORMATS:s,FILTER_OPERATORS:l,FILTER_EXPRESSION_OPERATORS:r,FONT_AWESOME_ICONS:b,G3W_FID:"g3w_fid",GEOMETRY_FIELDS:u,GEOMETRY_TYPES:c,INCHES_PER_UNIT:k,LIST_OF_RELATIONS_TITLE:"info.list_of_relations",LIST_OF_RELATIONS_ID:"__G3W_LIST_OF_RELATIONS_ID__",LOCAL_ITEM_IDS:w,LOCALSTORAGE_EXTERNALWMS_ITEM:"externalwms",LOGO_GIS3W:"images/logo_gis3w_156_85.png",MAP_SETTINGS:d,PRINT_FORMATS:p,PRINT_RESOLUTIONS:f,PRINT_SCALES:h,QUERY_POINT_TOLERANCE:g,SEARCH_ALLVALUE:"__G3W_ALL__",SEARCH_RETURN_TYPES:y,SPATIAL_METHODS:x,TIMEOUT:6e4,TOC_LAYERS_INIT_STATUS:"not_collapsed",TOC_THEMES_INIT_STATUS:"collapsed",VIEWPORT:v,ZINDEXES:m}},{"../locales":205,"../version":355}],5:[function(e,t,a){Object.defineProperty(a,"__esModule",{value:!0}),a.BarStack=void 0;var n=function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e};function r(e,t){for(var a=0;a "+a+" "):$(a):a;$(r._parent).append(t),e.push({content:t,options:n})}else{if(a.mount&&"function"==typeof a.mount)return-1!==(t=e.findIndex(function(e){return e.content.getId&&a.getId()===e.content.getId()}))&&(yield(0,l.promisify)(e[t].content.unmount()),e.splice(t,1)),yield(0,l.promisify)(a.mount(r._parent,n.append||!1)),$(r._parent).localize(),e.push({content:a,options:n}),a;r._parent.appendChild(a),e.push({content:a,options:n})}}))}},{key:"pop",value:function(){var t=this;return(0,l.$promisify)(c(function*(){var e=t.state.contentsdata;if(0=this.state.maxscale&&e<=this.state.minscale)}},{key:"getStyles",value:function(){return(this.config.source.external?this.config.source:this.config).styles}},{key:"getStyle",value:function(){return this.config.source.external?this.config.source.styles:this.config.styles?this.config.styles.find(function(e){return e.current}).name:""}},{key:"getOpacity",value:function(){return this.state.opacity}},{key:"setCurrentStyle",value:function(t){var e=!this.config.styles.find(function(e){return t===e.name}).current;return this.config.styles.forEach(function(e){return e.current=t===e.name}),e}},{key:"getCurrentStyle",value:function(){return this.config.styles.find(function(e){return e.current})}},{key:"setDisabled",value:function(e){if(this.state.scalebasedvisibility){for(var t=(0,u.getScaleFromResolution)(e,1=this.state.maxscale&&t<=this.state.minscale),this.state.disabled=0===this.state.minscale?!(t>=this.state.maxscale):this.state.disabled,!0),r=this.state.parentGroup;r;)a=a&&r.checked,r=r.parentGroup;a&&this.setVisible(!this.state.disabled),this.isFilterable()&&this.setTocHighlightable(!this.state.disabled)}else this.state.disabled=!1}},{key:"getMultiLayerId",value:function(){return this.config.multilayerid}},{key:"getGeometryType",value:function(){return this.config.geometrytype}},{key:"getOwsMethod",value:function(){return this.config.ows_method}},{key:"setProjection",value:function(){this.config.projection=s.default.get(0\n \n "}))).$mount().$el),(r=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e)))._options=e,r.cursorClass=e.cursorClass,r._originalonlick=null,r._onclick=e.onclick,r._enabled=e.enabled,r.offline=void 0===e.offline||e.offline,r.name=t,r.id=r.name+"_"+Math.floor(1e6*Math.random()),r.eventKeys={},r.positionCode=e.position||"tl",r.priority=e.priority||0,$(e.element).on("click",function(e){return r._handleClick(e)}),r.setVisible(e.visible),r._options.postRender&&r._options.postRender.call(r),r._toggled=!1,r._toggled=!1,r._interactionClassOptions=e.interactionClassOptions,e.interactionClass&&r.initInteraction(e),u(r)}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r(n,[{key:"setMouseCursor",value:function(e){var t=1t&&(e=$(this).position().left,a>$(this).outerWidth()&&(t+=a-$(this).outerWidth()),$(this).css("left",t+"px"),t=e,a=$(this).outerWidth())}),$(this.element).hide()}},{key:"setEnable",value:function(e){$(this.element).find("button").first().toggleClass("g3w-ol-disabled",!e),!e&&this._interaction&&this._interaction.setActive(!1),this._enabled=e}},{key:"getEnable",value:function(){return this._enabled}},{key:"setVisible",value:function(){var e=!(0\n \n ',data:function(){return{methods:o.SPATIAL_METHODS,method:t.getSpatialMethod()}},watch:{method:function(e){return t.setSpatialMethod(e)}},created:function(){s.default.toggleUserMessage(!1)},beforeDestroy:function(){s.default.toggleUserMessage(!0)}};break;case"custom":this.toggledTool=e.component}"how"===e.how&&this._onhover&&(this._toolButton=$(''),$(this.element).prepend(this._toolButton),this._toolButton.on("click",function(e){e.stopPropagation(),t.showToggledTool(!0)}),$(this.element).hover(function(){return t._toggled&&t._toolButton.show()}),$(this.element).mouseleave(function(){return t._toolButton.hide()}))}},{key:"showToggledTool",value:function(){!(0\n \n ',watch:{type:function(e,t){a.interactions[t].setActive(!1),a.interactions[t].clear(),a.getMap().removeInteraction(a.interactions[t]),a.getMap().addInteraction(a.interactions[e]),a.interactions[e].setActive(!0),a._interaction=a.interactions[e]}},created:function(){l.default.toggleUserMessage(!1)},beforeDestroy:function(){l.default.toggleUserMessage(!0)}}})}}]),m);function m(){var e=0\n \x3c!-- DOCS URL --\x3e\n \n \n \n \x3c!-- SPATIAL METHOD --\x3e\n
\n \n
\n \x3c!-- QUERY TYPE --\x3e\n
\n \n
\n \x3c!-- RADIUS TYPE IN METERS--\x3e\n
\n \n
\n \n \x3c!-- CLEAR RADIUS --\x3e\n \n
\n
\n \x3c!-- SELECTED LAYER --\x3e\n
\n \n \n
\n \x3c!-- HELP TEXT --\x3e\n
\n \x3c!-- CLEAR SELECTION --\x3e\n \n ',computed:{control:function(){return x[this.type]},queryable:function(){var t=this;return(this.control.layers||[]).filter(function(e){return"querybypolygon"!==t.type||w.includes(e.getGeometryType())})},no_layers:function(){return!this.queryable||!T(this.control)},help:function(){return"sdk.mapcontrols."+this.type+".help.message"},all:function(){return this.no_layers?"sdk.mapcontrols.queryby.none":"sdk.mapcontrols.queryby.all"},radius:{get:function(){return S.querybycircle.radius},set:function(e){Number.isNaN(e)||e<0?this.radius=S.querybycircle.radius:(S.querybycircle.radius=Math.floor("m"===u.default.getService("map").getMapUnits()?e:(0,g.getMetersFromDegrees)(e)),k.dfeature&&0  '+e.text+""):e.text},templateLayer:function(t){var e;return t.id&&"__NEW__"!==t.id?(e=u.default.getService("map").getLegacyExternalLayers(),e=l.default.getLayerById(t.id)||e.find(function(e){return e.get("id")===t.id}),e="__ALL__"!==t.id&&e?'  ':"",$(""+e+t.text+"")):t.text}},mounted:function(){x.queryby.usermessage=this,u.default.toggleUserMessage(!1),this.reset()},beforeDestroy:function(){u.default.toggleUserMessage(!0),a.types.forEach(function(e){x[e].toggle(!1),x[e].autorun=!1,x.queryby.element.classList.toggle("ol-"+e,e===a.types[0]),x[e].layers.forEach(function(e){return e.setTocHighlightable(!1)})})}}}})}),a;throw new TypeError("Cannot call a class as a function")}return a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e),r(n,[{key:"addType",value:function(i){var e,t,a=this;this.types.includes(i)||(this.types.splice(this.types.includes("querybypolygon")?this.types.indexOf("querybypoyling"):this.types.length,0,i),t=x[i]=new p.InteractionControl({name:i,offline:!1,visible:!1,geometryTypes:["querybypolygon","querybydrawpolygon"].includes(i)?w:[],cursorClass:"querybypolygon"!==i?"ol-crosshair":"ol-pointer",interactionClass:{querybbox:ol.interaction.DragBox,querybycircle:ol.interaction.Draw,querybydrawpolygon:ol.interaction.Draw,querybypolygon:_}[i],interactionClassOptions:["querybydrawpolygon","querybycircle"].includes(i)?{type:"querybydrawpolygon"===i?"Polygon":"Circle"}:{},layers:L(i),onSetMap:function(e){var t,a,r=this,n=e.setter;e.map;"after"===n&&("querybbox"===i&&(t=null,this._interaction.on("boxstart",function(e){return t=e.coordinate}),this._interaction.on("boxend",(0,f.throttle)(function(e){k.bbox=ol.extent.boundingExtent([t,e.coordinate]),r.dispatchEvent({type:"bboxend",extent:k.bbox}),t=null,r._autountoggle&&r.toggle()})),this.setEventKey({eventType:"bboxend",eventKey:this.on("bboxend",function(){return x.queryby.runSpatialQuery("querybbox")})})),"querybycircle"===i&&this._interaction.on("drawstart",function(e){var t=e.feature.getGeometry();t.setRadius(S.querybycircle.radius),t.on("change",function(){return S.querybycircle.radius=t.getRadius()}),0\n \n \n ',methods:{download:(t=p(function*(e){var t=l.default.getService("map"),a=s.default.setDownload(!0);e.target.disabled=!0;try{var r=yield t.createMapImage();"screenshot"===this.type?window.saveAs(r,"map_"+Date.now()+".png"):window.saveAs(yield(0,c.getGeoTIFFfromServer)({url:"/"+t.project.getType()+"/api/asgeotiff/"+t.project.getId()+"/",method:"POST",params:{image:r,csrfmiddlewaretoken:t.getCookie("csrftoken"),bbox:t.getMapBBOX().toString()}}),"map_"+Date.now()+".tif")}catch(e){l.default.showUserMessage({type:"SecurityError"===err.name?"warning":"alert",message:"SecurityError"===err.name?"mapcontrols.screenshot.securityError":"mapcontrols.screenshot.error",autoclose:!1})}return s.default.setDownload(!1,a),!(e.target.disabled=!1)}),function(e){return t.apply(this,arguments)})},created:function(){l.default.toggleUserMessage(!1)},beforeDestroy:function(){l.default.toggleUserMessage(!0)}}})}},{key:"_addLayer",value:function(e){var t=this;this.layers.push(e),this.change(this.layers),e.on("change:visible",function(){return t.change(t.layers)})}},{key:"_removeLayer",value:function(t){this.layers=this.layers.filter(function(e){return e!==t}),this.change(this.layers)}},{key:"change",value:function(){this.setVisible(this.checkVisible(0r._map.getSize()[0]||t[1]+15>r._map.getSize()[1]||t[0]<15||t[1]<15)&&r._map.getView().setCenter(e)}),e&&e.location&&(r._panorama.setPov({pitch:0,heading:0}),r._panorama.setPosition(e.location.latLng))}).then(function(e){void 0===e&&u.default.closeContent()}).catch(function(e){a.toggle()})}},{key:"setMap",value:function(e){var t=this;this._map=e,s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"setMap",this).call(this,e),this.setProjection(this._map.getView().getProjection()),this._map.addLayer(this._layer),this._interaction.on("picked",function(e){e=e.coordinate;t.showStreetView(e),t._autountoggle&&t.toggle()})}},{key:"showStreetView",value:function(e){var t=ol.proj.transform(e,this._map.getView().getProjection().getCode(),"EPSG:4326"),t=r(t,2),a=t[0],t=t[1];this.key?(u.default.setContent({title:"StreetView",content:new d.default({internalComponent:new(Vue.extend(c))({keyError:this.keyError})})}),this.keyError||this.setPosition({lng:a,lat:t})):(this._streetViewFeature.setGeometry(new ol.geom.Point(e)),window.open("https://www.google.com/maps/@?api=1&map_action=pano&viewpoint="+t+","+a))}},{key:"clearMarker",value:function(){this._streetViewFeature.setGeometry(null)}},{key:"clear",value:function(){this._layer.getSource().clear(),this._streetViewFeature.setGeometry(null),this.clearMarker(),this._panorama=null,this.active&&u.default.closeContent(),this.active=!1}},{key:"toggle",value:function(e){s(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"toggle",this).call(this,e),this.isToggled()?this._layer.getSource().addFeatures([this._streetViewFeature]):this.clear()}}]),n}(f.InteractionControl);a.StreetViewControl=e},{"components/StreetView.vue":174,"core/g3w-component":6,"g3w-ol/controls/interactioncontrol":30,"g3w-ol/interactions/pickcoordinatesinteraction":37,"services/gui":226,"store/application-state":230,"utils/XHR":238}],36:[function(t,a,r){function o(e,t,a){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);return void 0!==r?"value"in r?r.value:void 0!==(r=r.get)?r.call(a):void 0:null!==(r=Object.getPrototypeOf(e))?o(r,t,a):void 0}var n=function(e,t,a){return t&&i(e.prototype,t),a&&i(e,a),e};function i(e,t){for(var a=0;a+this.state.tovalidate[e.validate.min_field].value:this.state.tovalidate[e.validate.max_field].validate.empty||+e.value<+this.state.tovalidate[e.validate.max_field].value,e.validate.valid&&(this.state.tovalidate[t].validate.valid=!0))}this.state.valid=Object.values(this.state.tovalidate).reduce(function(e,t){return e&&t.validate.valid},!0)&&Object.values(this.state.componentstovalidate).reduce(function(e,t){return e&&t},!0)}},{key:"addComponents",value:function(){var e=0\n "+this.state.info+"\n \n "),this.state.validate.message=this.state.info||e):this.state.validate.message=this.state.info)}},{key:"setUpdate",value:function(){var e=this.state,t=e.value,e=e._value;"media"===this.state.input.type&&"Object"!==s(t)&&"Object"!==s(e)?this.state.update=t.value!=e.value:"datetimepicker"===this.state.input.type?this.state.update=(null!==t?t.toUpperCase():t)!=(e&&e.toUpperCase()):this.state.update=t!=e}}]),u)},{"core/i18n/i18n.service":10,utils:309,"utils/validators":352}],69:[function(e,t,a){e={text:e("./service"),textarea:e("./service"),texthtml:e("./service"),integer:e("./integer/service"),string:e("./service"),float:e("./float/service"),radio:e("./radio/service"),check:e("./checkbox/service"),range:e("./range/service"),datetimepicker:e("./datetimepicker/service"),unique:e("./unique/service"),select:e("./select/service"),media:e("./media/service"),select_autocomplete:e("./select/service"),picklayer:e("./service"),color:e("./service"),slider:e("./sliderrange/service"),lonlat:e("./lonlat/service")};t.exports=e},{"./checkbox/service":45,"./datetimepicker/service":48,"./float/service":50,"./integer/service":54,"./lonlat/service":56,"./media/service":58,"./radio/service":62,"./range/service":64,"./select/service":66,"./service":68,"./sliderrange/service":70,"./unique/service":75}],70:[function(e,t,a){var n=function(e,t,a){return t&&r(e.prototype,t),a&&r(e,a),e};function r(e,t){for(var a=0;a=this.state.input.options.min||this.state.value<=this.state.input.options.max}},{key:"changeInfoMessage",value:function(){this.state.info="[MIN: "+this.state.input.options.min+" - MAX: "+this.state.input.options.max+"]"}}]),r}();t.exports=e},{"gui/inputs/service":68,"utils/validators":352}],71:[function(e,t,a){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}}(e("components/InputSliderRange.vue"));e=Vue.extend(e);t.exports=e},{"components/InputSliderRange.vue":132}],72:[function(e,t,a){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}}(e("components/InputText.vue"));e=Vue.extend(e);t.exports=e},{"components/InputText.vue":133}],73:[function(e,t,a){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}}(e("components/InputTextArea.vue"));e=Vue.extend(e);t.exports=e},{"components/InputTextArea.vue":134}],74:[function(e,t,a){e=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}}(e("components/InputTextHtml.vue"));e=Vue.extend(e);t.exports=e},{"components/InputTextHtml.vue":135}],75:[function(e,t,a){var n=e("gui/inputs/service");t.exports=function(){var e=r,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);function r(){var e=0'+t+"":''+t+"");if(this.getMapLayers().forEach(function(e){return e.getSource().setAttributions(a)}),(a||(0,_.getMapLayersByFilter)({BASELAYER:!0}).length)&&this.getMap().addControl(new ol.control.Attribution({collapsible:!1,target:"map_footer_left"})),this.config&&this.config.mapcontrols)return e=Array.isArray(this.config.mapcontrols)?this.config.mapcontrols.reduce(function(e,t){return e[t]={},e},{}):this.config.mapcontrols,Object.entries(e).forEach(function(e){var a,r,t,n,e=p(e,2),i=e[0],e=e[1],o=void 0===e?{}:e;switch(i){case"zoom":s.createMapControl(i);break;case"zoombox":isMobile.any||s.createMapControl(i,{}).on("zoomend",function(e){return s.viewer.fit(e.extent)});break;case"zoomtoextent":s.createMapControl(i,{options:{label:"",extent:s.project.state.initextent}});break;case"mouseposition":isMobile.any||(a="degrees"===s.getProjection().getUnits(),r=s.getEpsg(),n=s.createMapControl(i,{add:!(t=function(e,t){return"EPSG:4326"===e?ol.coordinate.format(ol.proj.transform(t,r,"EPSG:4326")," Lng: {x}, Lat: {y}   [EPSG:4326] ",4):ol.coordinate.format(t," "+(a?"Lng":"X")+": {x}, "+(a?"Lat":"Y")+": {y}   ["+e+"] ",a?4:2)}),options:{coordinateFormat:t.bind(null,r),undefinedHTML:!1,projection:s.getCrs()}}),"EPSG:4326"!==r&&n.on("change:epsg",function(e){return n.setCoordinateFormat(t.bind(null,e.epsg))}));break;case"screenshot":case"geoscreenshot":isMobile.any||(s.getMapControlByType("screenshot")?s.getMapControlByType("screenshot").addType(i):s.createMapControl("screenshot",{options:{types:[i],layers:[].concat(F(A.layers.getLayers()),F(s._layers.external))}}));break;case"scale":s.createMapControl(i,{add:!1,options:{coordinateFormat:ol.coordinate.createStringXY(4),projection:s.getCrs(),isMobile:isMobile.any}});break;case"query":s.createMapControl(i,{add:!0,toggled:!0});break;case"querybypolygon":case"querybbox":case"querybycircle":case"querybydrawpolygon":isMobile.any||(s.getMapControlByType("queryby")?s.getMapControlByType("queryby").addType(i):s.createMapControl("queryby",{options:{types:[i]}}));break;case"streetview":s.createMapControl(i,{});break;case"scaleline":s.createMapControl(i,{add:!1,options:{position:"br"}});break;case"overview":!isMobile.any&&s.config.overviewproject&&s.config.overviewproject.gid&&C.default.getProject(s.config.overviewproject.gid).then(function(r){var a=s.getMap(),n=new ol.View(s._calculateViewOptions({project:r,width:200,height:150}));n.on("change:center",function(){var e=n.getCenter(),t=a.getView().constrainCenter(e);t[0]===e[0]&&t[1]===e[1]||n.setCenter(t)}),s.createMapControl(i,{add:!1,options:{view:n,position:"bl",collapsed:!1,className:"ol-overviewmap ol-custom-overviewmap",collapseLabel:$('')[0],label:$('')[0],layers:Object.entries(r.getLayersStore().getLayers({GEOLAYER:!0,BASELAYER:!1}).reduce(function(e,t){var a=t.getMultiLayerId();return void 0===e[a]&&(e[a]=[]),e[a].push(t),e},{})||[]).map(function(e){var e=p(e,2),t=e[0],e=e[1],a=new(c("core/layers/imagelayer").WMSLayer)({url:r.getWmsUrl(),id:"overview_layer_"+t,tiled:e[0].state.tiled});return e.reverse().forEach(function(e){return a.addLayer(e)}),a.getOLLayer(!0)}).reverse()}}),document.querySelector(".g3w-map-controls-left-bottom").style.left="230px",new MutationObserver(function(e){e.forEach(function(e){"class"===e.attributeName&&(document.querySelector(".g3w-map-controls-left-bottom").style.left=e.target.classList.contains("ol-collapsed")?"50px":"230px")})}).observe(document.querySelector(".ol-custom-overviewmap"),{attributes:!0})}).catch(function(e){});break;case"geocoding":case"nominatim":s.createMapControl(i,{add:!1,options:{config:o}});break;case"geolocation":s.createMapControl(i).on("click",(0,k.throttle)(function(e){return s.showMarker(e.coordinates)}));break;case"addlayers":isMobile.any||s.createMapControl(i,{}).on("addlayer",function(){return s.showAddLayerModal()});break;case"length":case"area":isMobile.any||(s.getMapControlByType("measure")?s.getMapControlByType("measure").addType(i):s.createMapControl("measure",{options:{name:"measure",tipLabel:"sdk.mapcontrols.measures.title",types:[i],interactionClassOptions:{projection:s.getProjection(),help:"sdk.mapcontrols.measures."+i+".help"}}}));break;case"zoomhistory":$(".g3w-map-controls-left-bottom").append(s.createMapControl(i,{add:!1}).element)}}),this.getMapControls()},addHideMap:function(){var e=(0'),this.viewer.map.getInteractions().forEach(function(e){return d._watchInteraction(e)}),this.viewer.map.getInteractions().on("add",function(e){return d._watchInteraction(e.element)}),this.viewer.map.getInteractions().on("remove",function(e){}),this._marker=new ol.Overlay({position:null,positioning:"center-center",element:document.getElementById("marker"),stopEvent:!1}),this.viewer.map.addOverlay(this._marker),this.viewer.map.getLayers().on("add",function(e){e=d.setLayerZIndex({layer:e.element,zindex:e.element.get("basemap")||"bottom"===e.element.get("position")?0:void 0});d.defaultsLayers.mapcenter&&d.defaultsLayers.mapcenter.setZIndex(e+1),d.defaultsLayers.highlightLayer&&d.defaultsLayers.highlightLayer.setZIndex(e+1),d.defaultsLayers.selectionLayer&&d.defaultsLayers.selectionLayer.setZIndex(e+2)}),this.viewer.map.getLayers().on("remove",function(e){e.element.getZIndex()===d.layersCount&&d.layersCount--}),this.state.bbox=this.getMapBBOX(),this.state.resolution=this.viewer.getResolution(),this.state.center=this.viewer.getCenter(),this._setupAllLayers(),this.setUpMapOlEvents(),A.layers.getLayersStores().forEach(this._setUpEventsKeysToLayersStore.bind(this)),A.layers.onafter("addLayersStore",this._setUpEventsKeysToLayersStore.bind(this)),A.layers.onafter("removeLayersStore",this._removeEventsKeysToLayersStore.bind(this)),this.emit("viewerset"),this.setupControls(),this.emit("ready"))}),function(e,t){return a.apply(this,arguments)}),controlClick:function(e){},loadExternalLayer:function(e){},unloadExternalLayer:function(e){}},t.on("extraParamsSet",t.onExtraParamsSet),t;throw new TypeError("Cannot call a class as a function")}return s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(s,e):s.__proto__=e),d(u,[{key:"onExtraParamsSet",value:function(t,e){var a=this;e&&this.getMapLayers().forEach(function(e){return e.update(a.state,t)})}},{key:"onSetCurrentProject",value:function(e){function t(){var e=r.viewer.map.getSize(),t=(e=p(e,2))[0],e=e[1],a=r.project.state.extent,t=ol.extent.getWidth(a)/t,e=ol.extent.getHeight(a)/e,t=Math.max(t,e)>r.viewer.map.getView().getMaxResolution()?Math.max(t,e):r.viewer.map.getView().getMaxResolution(),e=new ol.View({extent:a,projection:r.viewer.map.getView().getProjection(),center:r.viewer.map.getView().getCenter(),resolution:r.viewer.map.getView().getResolution(),maxResolution:t});T.MAP_SETTINGS.ZOOM.maxScale=Math.min((0,b.getScaleFromResolution)(r.getMap().getView().getResolutionForExtent(r.project.state.initextent,r.getMap().getSize()),r.getMapUnits()),T.MAP_SETTINGS.ZOOM.maxScale),r.viewer.map.setView(e),r._setupAllLayers(),r.setUpMapOlEvents(),r.setupCustomMapParamsToLegendUrl()}var r=this,a=(this.removeLayers(),this._keyEvents.base&&this.project.un("setBaseLayer",this._keyEvents.base),this.project.getId()===e.getId());this.project=e;(a||P.default.isIframe())&&t(),a||this.getMap().once("change:size",t)}},{key:"onLayerLoadStart",value:function(){0===this._howManyAreLoading&&(this.emit("loadstart"),O.default.showSpinner({container:$("#map-spinner"),id:"maploadspinner",style:"transparent"})),this._howManyAreLoading+=1}},{key:"onLayerLoadEnd",value:function(){--this._howManyAreLoading,0===this._howManyAreLoading&&(this.emit("loadend"),O.default.hideSpinner("maploadspinner"))}},{key:"onLayerLoadError",value:function(){this.project.state.show_load_layer_error&&(this.onLayerLoadError.shown||(O.default.notify.warning("sdk.errors.layers.load"),this.onLayerLoadError.shown=!0),this.onLayerLoadEnd())}},{key:"isReady",value:function(){return this._ready}},{key:"setUpMapOlEvents",value:function(){var e=this,t=this.project.getContextBaseLegend();this._keyEvents.ol.forEach(function(e){return ol.Observable.unByKey(e)}),this._keyEvents.ol.push(this.viewer.map.getView().on("change:resolution",function(){e.state.bbox=e.getMapBBOX(),e.state.resolution=e.viewer.getResolution(),e.state.center=e.viewer.getCenter(),e.updateMapLayers(),t&&e.setupCustomMapParamsToLegendUrl()})),t?this._keyEvents.ol.push(this.viewer.map.on("moveend",function(){return e.setupCustomMapParamsToLegendUrl()})):this.setupCustomMapParamsToLegendUrl()}},{key:"clear",value:function(){var a=this;this.removeListener("extraParamsSet",this.onExtraParamsSet),["ol","g3wobject"].forEach(function(e){switch(e){case"ol":a._keyEvents[e].forEach(function(e){return ol.Observable.unByKey(e)});break;case"g3wobject":a._keyEvents[e].forEach(function(e){var t=e.who,a=e.setter,e=e.key;return t.un(a,e)});break;case"eventemitter":a._keyEvents[e].forEach(function(e){var t=e.event,e=e.listener;return a.removeListener(t,e)})}a._keyEvents[e].splice(0)}),A.layers.getLayersStores().forEach(this._removeEventsKeysToLayersStore.bind(this))}},{key:"_addHideMap",value:function(){var e=0')+'
"}),x.default.showModalDialog({title:M("sdk.atlas.template_dialog.title"),message:r,buttons:{success:{label:"OK",className:"skin-button",callback:function(){var e=$('input[name="template"]:checked').attr("g3w_atlas_index");if(void 0===e)return!1;a._printSingleAtlas({features:n,atlas:i[e]})}}}}))}},{key:"showLayerDownloadFormats",value:function(e){var t=h.default.name;e[t].active=!e[t].active,this.setLayerActionTool({layer:e,component:e[t].active?h.default:null,config:e[t].active?l({},this.state.actiontools[t][e.id],{downloads:this.state.actiontools[t][e.id].downloads.filter(function(e){return"pdf"!==e.format})}):null})}},{key:"downloadFeatures",value:(a=P(function*(t,a){var e,r=2a._projectLayerIds.indexOf(t.id)?1:-1})),e.forEach(function(e){t.add?a.updateLayerResultFeatures(e):a.state.layers.push(e)}),this.setActionsForLayers(e,{add:t.add}),this.state.changed=!0},addComponent:function(e){this.state.components.push(e)},addActionsForLayers:function(e,t){},postRender:function(e){},closeComponent:function(){},changeLayerResult:function(t){this.state.layersactions[t.id].forEach(function(e){return e.change&&e.change(t)}),this.resetCurrentActionToolsLayer(t)},activeMapInteraction:function(){},editFeature:function(){var e=0div[data-v-6659a6eb]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project_title_content .main_title[data-v-6659a6eb]{font-size:1.6em}.project_title_content .sub_title[data-v-6659a6eb]{font-size:1.3em}@media (max-width:767px){.logo-wrapper[data-v-6659a6eb]{padding-left:5px}}.logo-wrapper.mobile[data-v-6659a6eb]{padding:5px}.logo-wrapper.mobile img[data-v-6659a6eb]{height:23px;max-width:150px!important;padding-left:0;margin-right:5px}.logo-wrapper.mobile .main_title[data-v-6659a6eb]{font-size:1.1em}.logo-wrapper.mobile .sub_title[data-v-6659a6eb]{font-size:1em}.project_title_content.mobile[data-v-6659a6eb]{margin-top:2px}.project_title_content.mobile .sub_title[data-v-6659a6eb]{height:auto}.credit-title-logo[data-v-6659a6eb]{font-weight:700;font-size:1.2em;margin-bottom:15px}.g3w-credits-block[data-v-6659a6eb]{text-align:center!important;margin-bottom:20px}.g3w-suite-logo[data-v-6659a6eb]{width:50%!important}.customcredits[data-v-6659a6eb]{margin-bottom:10px;margin-top:5px}#address-credits span[data-v-6659a6eb]{padding-left:3px}#g3w-sidebarpanel-header-placeholder[data-v-6659a6eb]{overflow:hidden;line-height:14px;font-size:1.5em;min-height:35px;border-bottom:1px solid #fff;margin-bottom:5px}#disable-sidebar[data-v-6659a6eb]{display:none;position:absolute;background-color:rgba(0,0,0,.3);height:100%;width:100%;z-index:10}.content_breadcrumb[data-v-6659a6eb]{font-size:1.2em;padding:0 3px;border-radius:3px}.close-panel-block[data-v-6659a6eb]{overflow:hidden;margin-top:2px;margin-bottom:2px;font-size:1.4em}.g3w_contents_back[data-v-6659a6eb]{font-size:.8em}.g3w_contents_back [data-v-6659a6eb]:is(.backto,.back){display:inline-block;font-weight:700}.g3w_contents_back .backto[data-v-6659a6eb]{margin-top:5px;cursor:pointer}.user-header[data-v-6659a6eb]{background-color:var(--skin-color);height:175px;padding:10px;text-align:center}.user-header>p[data-v-6659a6eb]{z-index:5;color:#fff;color:hsla(0,0%,100%,.8);font-size:17px;margin-top:10px}.user-footer[data-v-6659a6eb]{background-color:#f9f9f9;padding:10px;display:flex;justify-content:space-between}.user-footer .btn-default[data-v-6659a6eb]{color:#666}@media (max-width:767px){#g3w-small-screen-hamburger-sidebar[data-v-6659a6eb]{display:block}.user-footer .btn-default[data-v-6659a6eb]:hover{background-color:#f9f9f9}.user-header[data-v-6659a6eb]{display:none}}");function b(e){return e&&e.__esModule?e:{default:e}}function w(e){return function(){var s=e.apply(this,arguments);return new Promise(function(i,o){return function t(e,a){try{var r=s[e](a),n=r.value}catch(e){return void o(e)}if(!r.done)return Promise.resolve(n).then(function(e){t("next",e)},function(e){t("throw",e)});i(n)}("next")})}}Object.defineProperty(a,"__esModule",{value:!0}),s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var a=t,r=[],n=!0,t=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!a||r.length!==a);n=!0);}catch(e){t=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(t)throw i}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=b(t("vue-cookie-law")),l=t("app/constant"),o=b(t("store/application-state")),n=b(t("store/projects")),u=b(t("services/application")),c=b(t("services/gui")),i=t("mixins"),d=b(t("components/HeaderItem.vue")),p=b(t("components/UserMessage.vue")),f=b(t("components/CatalogContextMenu.vue")),h=b(t("utils/getUniqueDomId")),g=t("utils/XHR"),_=t("core/i18n/i18n.service").t,a.default={name:"app",mixins:[i.resizeMixin],data:function(){return{customcredits:!1,current_custom_modal_content:null,language:null,cookie_law_buttonText:_("cookie_law.buttonText"),app:o.default,state:o.default.viewport,updatePreviousTitle:!1,header:_("main navigation")}},components:{HeaderItem:d.default,CookieLaw:r.default,userMessage:p.default,CatalogContextMenu:f.default},computed:{languages:function(){var e;return 1<(e=Array.isArray(this.appconfig.i18n)&&this.appconfig.i18n||[]).length&&e},dropdownParent:function(){return 768<=window.innerWidth},currentProject:function(){return n.default.getCurrentProject()},appconfig:function(){return u.default.getConfig()},isIframe:function(){return!!this.appconfig.group.layout.iframe},urls:function(){return this.appconfig.urls},powered_by:function(){return this.appconfig.group.powered_by},logo_url:function(){return this.currentProject.getThumbnail()||""+this.appconfig.mediaurl+this.appconfig.logo_img},project_title:function(){return this.currentProject.getState().name},user:function(){return this.appconfig.user&&this.appconfig.user.username?this.appconfig.user:null},login_url:function(){return this.appconfig.user.login_url},hasRelatedMaps:function(){return 1\n \n '+e.text+" \n "):e.text},resize:(m=w(function*(){var e;this.isIframe||(yield this.$nextTick(),e=0\n \n