{"version":3,"sources":["webpack:///./src/plugins/round.js","webpack:///./src/utils/HereMap.js","webpack:///./src/models/ManageErrorMessages.js","webpack:///./src/mixins/politicalDivisionMixin.js","webpack:///./src/helpers/firebaseDB.js","webpack:///./src/assets/images/portrait/small/user-avatar.png","webpack:///./src/assets/images/markers/visit_point.png","webpack:///./node_modules/firebase/storage/dist/index.esm.js","webpack:///./src/assets/images/svg-icons/battery-charging.svg","webpack:///./src/assets/images/svg-icons/battery-full.svg","webpack:///./src/utils/Here.js","webpack:///./src/assets/images/svg-icons/gps_on.svg","webpack:///./src/store/zonification/moduleZonificationState.js","webpack:///./src/store/zonification/moduleZonificationMutations.js","webpack:///./src/store/zonification/moduleZonificationActions.js","webpack:///./src/store/zonification/moduleZonificationGetters.js","webpack:///./src/store/zonification/moduleZonification.js","webpack:///./src/components/Maps/infowindowContent.js","webpack:///./src/assets/images/svg-icons/circle.svg","webpack:///./src/store/common/moduleCommonState.js","webpack:///./src/store/common/moduleCommonMutations.js","webpack:///./src/store/common/moduleCommonActions.js","webpack:///./src/store/common/moduleCommonGetters.js","webpack:///./src/store/common/moduleCommon.js","webpack:///./src/assets/images/svg-icons/gps_off.svg","webpack:///./src/assets/images/svg-icons/battery-warning.svg","webpack:///./src/components/zonification/FormGeo.vue?9429","webpack:///src/components/zonification/FormGeo.vue","webpack:///./src/components/zonification/FormGeo.vue?aeac","webpack:///./src/components/zonification/FormGeo.vue"],"names":["roundToTwo","num","Math","round","map","H","window","maptypes","platForm","createDefaultLayers","geoCoderService","getSearchService","marker","coords","behavior","ui","trafficLayer","lineString","routeLine","position","polyline","router","bboxCircle","routeOutline","readerArray","positionArray","coordsArray","markerArray","lineArray","scheduledRoutes","scheduledRoutesArrows","executedRoutes","executedRoutesArrows","groupOfMarkers","uiHereMap","lang","module","typeLang","UI","createDefault","removeControl","scalebar","getControl","setAlignment","mapsettings","MapSettingsControl","baseLayers","label","layer","raster","normal","satellite","terrain","layers","vector","traffic","trafficincidents","addControl","uiControlHereMap","undefined","initializeHereMap","data","Map","refs","zoom","center","lng","lat","addEventListener","getViewPort","resize","mapevents","Behavior","MapEvents","setMapType","type","activeTrafficLayer","addTrafficLayer","addLayer","removeLayer","setMapStyle","styleName","mapType","tiles","getMapTileService","createTileLayer","setBaseLayer","addMarkerHereMap","options","addMap","_opts","title","icon","draggable","drag","infoWindow","content","info","onClick","onDragend","constructor","console","warn","size","Object","keys","length","Icon","changeIcon","replace","opts","fillColor","strokeColor","w","h","Marker","volatility","addObject","addDraggableMarker","waypointsGenerator","possitionsArray","arrayWaPoint","i","push","addInfoBubble","html","setData","evt","setCenter","target","getGeometry","bubble","InfoBubble","getData","getBubbles","forEach","bub","removeBubble","addBubble","calculateHereRoute","waypts","origin","destination","logLengthPerPiece","ArrayofArray","routingParameters","routingMode","transportMode","return","onResult","result","routes","Group","sections","section","geo","LineString","fromFlexiblePolyline","Polyline","style","lineWidth","lineTailCap","lineHeadCap","routeArrows","lineDash","addObjects","idRoute","pedazo","slice","via","service","Url","MultiValueQueryParameter","getRoutingService","calculateRoute","err","Error","message","calculateRouteSnapToRoad","setPadding","getViewModel","setLookAtData","bounds","getBoundingBox","centerHereMap","setZoom","changeIconInMarkerHereMap","newIconMarker","setIcon","changeRouteProperties","strokeOpacity","id","index","elementRouteLine","setStyle","elementRouteArrows","fillOpacity","clearMap","removeObjects","getObjects","zoomMap","value","fitBoundsMarkerGroup","group","markerDraggable","ev","pointer","currentPointer","targetPosition","geoToScreen","math","Point","viewportX","x","viewportY","y","disable","enable","pos","location","setGeometry","screenToGeo","getCurrentPosition","navigator","geolocation","latitude","longitude","reverseGeocode","at","error","code","showGeoJSONData","geoJson","JSON","stringify","reader","geojson","Reader","disableLegacyMode","mapObject","Polygon","parseData","getLayer","removeGeoJsonLayer","selectTool","opc","global","drawPolygonHereMap","activeTab","addPolylineToMap","strokeWeight","point","pushPoint","thisObject","tab","cursor","document","querySelector","cont","event","circle","features","geometry","coordinates","callbackDraw","setMapViewBounds","bbox","Rect","addCircleToMap","radius","drawCircle","Circle","removeRoute","removeObject","removeMarker","addGroupOfMarkers","markerLocations","svgText","time","date","valueDistance","rasterNum","totalRaster","iconSvg","trim","makerObject","generateInfowindowRouteLineal","markers","hideMarkers","setVisibility","togglePolyline","flightPath","toggleVal","visible","enableMarkerLabel","val","text","iconSvgLabel","changeAuxiliaryRouteOptions","lineWaypointsStrokeColor","lineWaypointsStrokeOpacity","lineWaypointsStrokeWeight","addDomMarker","outerElement","createElement","innerElement","userSelect","webkitUserSelect","msUserSelect","mozUserSelect","color","backgroundColor","border","font","lineHeight","paddingTop","paddingLeft","width","height","marginTop","marginLeft","appendChild","innerHTML","domIcon","DomIcon","bearsMarker","DomMarker","addClickEvent","callbacFunction","ManageErrorMessages","that","this","errorMessage","$t","errors","$vs","notify","iconPack","reason","politicalDivisionMixin","computed","getPoliticalDivision","countryInfo","ARGENTINA","department","city","BRASIL","CHILE","COLOMBIA","COSTA_RICA","ECUADOR","GUATEMALA","MEXICO","PARAGUAY","PERU","normalizedCountry","selectedCountry","toUpperCase","selectedCountryInfo","firebase","database","uploadFileToFirebase","filed","path","user","User","getUser","userInfo","Promise","resolve","reject","storageRef","storage","ref","file","metadata","contentType","uniqueId","Date","getTime","uploadTask","child","company_id","name","put","on","TaskEvent","STATE_CHANGED","snapshot","progress","bytesTransferred","totalBytes","progressPercent","state","TaskState","PAUSED","RUNNING","getDownloadURL","then","downloadURL","urls","bucketPath","downloadFileFromFirebase","starsRef","url","catch","updateFirebaseMessage","key","resource_id","set","deleteFireabseMessage","remove","sendFirebaseResourceNotifications","notification","resourceId","eventId","uploadCompanyLogo","deleteFileToFirebase","fileName","desertRef","delete","removeFileFromFirebase","listAllFilesFromFirebaseFolder","folderName","listRef","listAll","listFiles","items","exports","Platform","apikey","process","currentLayer","zones","ADD_LAYER_ITEM","unshift","CURRENT_LAYER_ITEM","SET_LAYERS","UPDATE_LAYER","layerIndex","findIndex","l","assign","REMOVE_LAYER_ITEM","layerId","ItemIndex","splice","ADD_ZONE_ITEMS","CLEAN_ZONE_ITEMS","ADD_ZONE_CHILDRES_ITEMS","rows","children","r","cartodb_id","addLayerItem","commit","dispatch","Api","post","response","newLayer","fetchLayerListItems","get","fetchActivityById","itemId","updateLayerItem","status_id","removeLayerItem","removeRelationshipLayerResource","payload","zone_id","addZoneItems","addChildrenItems","createAssigZoneResource","updateAssigZoneResource","deleteAssigZoneResource","relationId","assignedZoneResourceById","getLayerById","isRegistered","namespaced","mutations","actions","getters","infowindoBatteryLevelIcon","currentLevel","batteryFull","batteryWarnig","batteryCharging","infowindoGpsStatusIcon","currentStatus","gpsOn","gpsOff","infowindowContentResource","dataObject","callback","$docFragment","createDocumentFragment","$infowindowDivContent","setAttribute","$contentHeader","$contentFotter","$contentRight","$contentLeft","$contentIcons","$title","$distance","$name","$events","$avatar","$batteryLevel","$gpsStatus","$button","username","hasOwn","img_url","require","battery","gps","className","cssText","e","textContent","lastname","events","distance","generateInfowindowContentSchedule","infoWindowData","init_hour","$visitPoint","$address","activity_name","visit_point_name","address","generateInfowindowContentVisitPoints","$city","$date","$hour","$rasterNum","dateText","hourText","distanceText","rasterText","of","infowindowContentResourceOnDemand","uid","infowindowContentLayerCarto","batteryIcon","level","transmissionIcon","status","gpsIcon","infoWindowContentResourceTracking","resource","tracking","callbackClick","$divBattery","$divTransmission","$divGps","$spanBattery","$spanBatteryText","$spanTransmission","$spanTransmissionText","$spanGps","$spanGpsText","positionrecord_id","email","active","countries","countries_sitidata","cities","departments","dataSelectVisitPoint","config_list","role","category","typology","ADD_COMPANY","item","resources","SET_DATA_SELECTS","SET_CITIES","SET_COUNTRIES","SET_COUNTRIES_SITIDATA","SET_DEPARTMENTS","REMOVE_RESOURCE","p","SET_CATEGORIES","categories","SET_ROLES_STATUS_CATEGORIES_TYPOLOGIES","fetchDataListResource","res","getCountries","country","world_code","only","fields","getCountriesByTokenSitiData","getDepartments","getDepartmentsByCityCountry","getAllCities","getCitiesByDeparment","departament","fetchResourceById","fetchDataSelectVisitPoint","fetchDataRoleStatusCategoryTypology","render","_vm","_h","$createElement","_c","_self","staticClass","directives","rawName","expression","attrs","model","formData","$$v","$set","has","_v","_s","countriesOptions","rtl","scopedSlots","_u","fn","search","searching","_e","selectedDepartment","n","toLowerCase","selectedCity","staticStyle","first","enableCoords","activePrompt","$event","cancelPrompt","acceptAlert","dataGeo","staticRenderFns","component"],"mappings":"otCAAO,SAASA,EAAWC,GAC1B,QAASC,KAAKC,MAAMF,EAAM,OAAS,OCIpC,IAAIG,EAAM,KACJC,EAAIC,OAAOD,EAEbE,EAAWC,OAASC,sBACpBC,EAAkBF,OAASG,mBAC3BC,EAAS,KACTC,EAAS,KACTC,EAAW,KACXC,EAAK,KACLC,EAAe,KACfC,EAAa,KACbC,EAAY,KACZC,EAAW,KACXC,EAAW,KACXC,EAAS,KACTC,EAAa,GACbC,EAAe,GACfC,EAAc,GACdC,EAAgB,GAChBC,EAAc,GACdC,EAAc,GACdC,EAAY,GACZC,EAAkB,GAClBC,EAAwB,GACxBC,EAAiB,GACjBC,EAAuB,GACvBC,EAAiB,GAErB,SAASC,EAAUC,EAAMC,GACxB,IAAIC,EAAW,QAEdA,EADY,OAATF,EACQ,QACQ,OAATA,EACC,QAEA,QAEZpB,EAAKV,EAAEU,GAAGuB,GAAGC,cAAcnC,EAAKG,EAAU8B,GAC1CtB,EAAGyB,cAAc,eACjB,IAAIC,EAAW1B,EAAG2B,WAAW,YAE7B,GADAD,EAASE,aAAa,eACP,SAAXP,EAAmB,CACtB,IAAIQ,EAAc,IAAIvC,EAAEU,GAAG8B,mBAAmB,CAC7CC,WAAY,CACX,CACCC,MAAO,SACPC,MAAOzC,EAAS0C,OAAOC,OAAO9C,KAE/B,CACC2C,MAAO,YACPC,MAAOzC,EAAS0C,OAAOE,UAAU/C,KAElC,CACC2C,MAAO,UACPC,MAAOzC,EAAS0C,OAAOG,QAAQhD,MAGjCiD,OAAQ,CACP,CACCN,MAAO,gBACPC,MAAOzC,EAAS+C,OAAOJ,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BACA,4CACA,oBAGA,OACA,aADA,SACA,GACA,6BACA,0DACA,6DAGA,mBAPA,SAOA,GACA,IACA,gEACA,0BAGA,aAbA,SAaA,GACA,GACA,8BAGA,kBAlBA,SAkBA,GACA,GACA,gCAIA,QAnFA,WAmFA,WACA,sBACA,oDACA,wBAEA,sBACA,kDACA,wBAEA,sBACA,wDACA,wBAEA,6DACA,YACA,qDACA,kBACA,oBACA,mBACA,8CACA,mDAIA,mBACA,uBAIA,UACA,iBADA,WAEA,iCACA,kDACA,eACA,iBAGA,iBACA,IADA,WAEA,OACA,8DACA,gEAGA,IAPA,SAOA,GACA,2BACA,qBACA,8BACA,gCAIA,SACA,YADA,WAEA,oBAEA,aAJA,WAKA,0BAEA,qBAPA,SAOA,OACA,0BACA,kCAGA,UAZA,SAYA,cACA,YACA,8CACA,OACA,gCAEA,kBACA,mEAEA,mBACA,uBAGA,eAzBA,SAyBA,cACA,YACA,iDACA,kBACA,oFAEA,mBACA,uBAGA,0BAnCA,SAmCA,GAEA,MACA,qMAEA,GACA,SAIA,aA7CA,SA6CA,gBAEA,GACA,QACA,SACA,8CACA,OACA,SACA,aACA,mBAEA,YACA,gFAEA,wBACA,6DACA,gDACA,2CACA,mBAIA,2BACA,uCACA,+BAEA,WAvEA,YAuEA,qCACA,mBACA,YACA,uDACA,kBACA,iBACA,uBACA,0CACA,mBAEA,sCACA,kBACA,cACA,gBACA,6DACA,KACA,sDACA,KACA,sDACA,YAGA,oCACA,uCACA,uCACA,qBAEA,mBAGA,MAFA,iBACA,sCACA,iBAGA,SAxGA,WAwGA,WACA,uBACA,oEACA,8BAQA,mBACA,YACA,yEACA,kBAEA,GADA,iBACA,eACA,8CAGA,yDAOA,OANA,uBACA,cACA,gBACA,sCACA,yDAKA,yDACA,kCACA,uBACA,wDACA,yDACA,6DACA,uCACA,4DACA,kBACA,cACA,+EACA,qCAGA,mBAGA,MAFA,iBACA,sCACA,iBA3CA,iBACA,gBACA,8DACA,+DA2CA,qBA1JA,SA0JA,GACA,iBACA,eACA,gBACA,SACA,+EACA,wBACA,6BACA,gCAGA,YArKA,WAsKA,0DACA,qDACA,4CACA,iDACA,sEACA,kDACA,sCACA,sEACA,4DAEA,aAhLA,WAiLA,yBACA,iBAEA,YApLA,WAoLA,WACA,oCACA,WACA,IACA,WACA,6BACA,6BACA,SACA,8BAEA,uBACA,oBACA,QC7fgW,I,YCO5VC,EAAY,eACd,EACAvC,EACAsC,GACA,EACA,KACA,KACA,MAIa,OAAAC,E","file":"js/chunk-4b668fed.1d98edb3.js","sourcesContent":["export function roundToTwo(num) {\n\treturn +(Math.round(num + \"e+2\") + \"e-2\");\n}\n","import platForm from \"./Here\";\nimport circle from \"@/assets/images/svg-icons/circle.svg\";\nimport {generateInfowindowRouteLineal} from \"../components/Maps/infowindowContent\";\nimport {roundToTwo} from \"../plugins/round\";\n\nlet map = null;\nconst H = window.H;\n// Obtain the default map types from the platform object\nlet maptypes = platForm.createDefaultLayers();\nlet geoCoderService = platForm.getSearchService();\nlet marker = null;\nlet coords = null;\nlet behavior = null;\nlet ui = null;\nlet trafficLayer = null;\nlet lineString = null;\nlet routeLine = null;\nlet position = null;\nlet polyline = null;\nlet router = null;\nlet bboxCircle = [];\nlet routeOutline = [];\nlet readerArray = [];\nlet positionArray = [];\nlet coordsArray = [];\nlet markerArray = [];\nlet lineArray = [];\nlet scheduledRoutes = [];\nlet scheduledRoutesArrows = [];\nlet executedRoutes = [];\nlet executedRoutesArrows = [];\nlet groupOfMarkers = [];\n\nfunction uiHereMap(lang, module) {\n\tlet typeLang = \"es-ES\";\n\tif (lang === \"en\") {\n\t\ttypeLang = \"en-US\";\n\t} else if (lang === \"pt\") {\n\t\ttypeLang = \"pt-PT\";\n\t} else {\n\t\ttypeLang = \"es-ES\";\n\t}\n\tui = H.ui.UI.createDefault(map, maptypes, typeLang);\n\tui.removeControl(\"mapsettings\");\n\tlet scalebar = ui.getControl(\"scalebar\");\n\tscalebar.setAlignment(\"bottom-left\");\n\tif (module !== \"maps\") {\n\t\tlet mapsettings = new H.ui.MapSettingsControl({\n\t\t\tbaseLayers: [\n\t\t\t\t{\n\t\t\t\t\tlabel: \"normal\",\n\t\t\t\t\tlayer: maptypes.raster.normal.map,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"satellite\",\n\t\t\t\t\tlayer: maptypes.raster.satellite.map,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"terrain\",\n\t\t\t\t\tlayer: maptypes.raster.terrain.map,\n\t\t\t\t},\n\t\t\t],\n\t\t\tlayers: [\n\t\t\t\t{\n\t\t\t\t\tlabel: \"layer.traffic\",\n\t\t\t\t\tlayer: maptypes.vector.normal.traffic,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: \"layer.incidents\",\n\t\t\t\t\tlayer: maptypes.vector.normal.trafficincidents,\n\t\t\t\t},\n\t\t\t],\n\t\t});\n\t\tui.addControl(\"customizedMapsettings\", mapsettings);\n\t}\n}\n\nexport function uiControlHereMap(lang, module) {\n\tif (module === null && ui != null && ui != undefined) {\n\t\tui.removeControl(\"customizedMapsettings\");\n\t\tui.removeControl(\"zoom\");\n\t\tui.removeControl(\"scalebar\");\n\t\tui = null;\n\t\tuiHereMap(lang, module);\n\t}\n}\n\nexport function initializeHereMap(data) {\n\t// Instantiate (and display) a map object:\n\tmap = new H.Map(data.refs, maptypes.vector.normal.map, {\n\t\tzoom: data.zoom,\n\t\tcenter: {lng: data.lng, lat: data.lat},\n\t});\n\taddEventListener(\"resize\", () => map.getViewPort().resize());\n\t// Agregar control de comportamiento\n\tbehavior = new H.mapevents.Behavior(new H.mapevents.MapEvents(map));\n\t// Agregar UI\n\tuiHereMap(data.lang, data.module);\n\treturn map;\n}\n\nexport function setMapType(type, activeTrafficLayer) {\n\tlet addTrafficLayer = () => {\n\t\ttrafficLayer = maptypes.vector.normal.traffic;\n\t\tmap.addLayer(trafficLayer);\n\t};\n\tswitch (type) {\n\t\tcase \"satellite\":\n\t\t\tmap.removeLayer(maptypes.raster.terrain.map);\n\t\t\tmap.removeLayer(maptypes.vector.normal.map);\n\t\t\tmap.addLayer(maptypes.raster.satellite.map);\n\t\t\tif (activeTrafficLayer) addTrafficLayer();\n\t\t\tbreak;\n\t\tcase \"terrain\":\n\t\t\tmap.removeLayer(maptypes.raster.satellite.map);\n\t\t\tmap.removeLayer(maptypes.vector.normal.map);\n\t\t\tmap.addLayer(maptypes.raster.terrain.map);\n\t\t\tif (activeTrafficLayer) addTrafficLayer();\n\t\t\tbreak;\n\t\tcase \"normal\":\n\t\t\tmap.removeLayer(maptypes.raster.satellite.map);\n\t\t\tmap.removeLayer(maptypes.raster.terrain.map);\n\t\t\tsetMapStyle(\"normal.day\", \"normal\");\n\t\t\tif (activeTrafficLayer) addTrafficLayer();\n\t\t\tbreak;\n\t\tcase \"traffic\":\n\t\t\taddTrafficLayer();\n\t\t\tbreak;\n\t\tcase \"traffic_clean\":\n\t\t\tif (trafficLayer) map.removeLayer(trafficLayer);\n\t\t\tbreak;\n\t}\n}\n\nexport function setMapStyle(styleName, mapType) {\n\tif (mapType === \"satellite\" || mapType === \"terrain\") {\n\t\tmap.removeLayer(maptypes.raster.satellite.map);\n\t\tmap.removeLayer(maptypes.raster.terrain.map);\n\t}\n\tlet tiles = platForm.getMapTileService({type: \"base\"});\n\tlet layer = tiles.createTileLayer(\"maptile\", styleName, 256, \"png\");\n\tmap.setBaseLayer(layer);\n}\n\nexport function addMarkerHereMap(lat, lng, options, addMap = true) {\n\tconst _opts = {\n\t\ttitle: \"Current Position\",\n\t\ticon: null,\n\t\tdraggable: options.drag,\n\t\tinfoWindow: {\n\t\t\tcontent: \"

Current address:
\" + lat + \", \" + lng + \"

\",\n\t\t},\n\t\tinfo: null,\n\t\tonClick: null,\n\t\tonDragend: null,\n\t};\n\tif (options) {\n\t\tif (options.constructor === {}.constructor) {\n\t\t\tlet size = Object.keys(options).length;\n\t\t\tif (size > 0) {\n\t\t\t\tif (options.title !== undefined) {\n\t\t\t\t\tif (options.title !== null) {\n\t\t\t\t\t\t_opts.title = options.title;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (options.icon !== undefined) {\n\t\t\t\t\tif (options.icon !== null) {\n\t\t\t\t\t\t_opts.icon = options.icon;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (options.draggable !== undefined) {\n\t\t\t\t\tif (options.draggable !== null) {\n\t\t\t\t\t\tif (options.draggable === true) {\n\t\t\t\t\t\t\t_opts.draggable = options.draggable;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (options.infoWindow !== undefined) {\n\t\t\t\t\tif (options.infoWindow !== null) {\n\t\t\t\t\t\t_opts.infoWindow = options.infoWindow;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (options.info !== undefined) {\n\t\t\t\t\tif (options.info !== null) {\n\t\t\t\t\t\t_opts.info = options.info;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (options.label !== undefined) {\n\t\t\t\t\tif (options.label !== null) {\n\t\t\t\t\t\t_opts.label = options.label;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (options.onClick !== undefined) {\n\t\t\t\t\tif (options.onClick !== null) {\n\t\t\t\t\t\tif (typeof options.onClick === \"function\") {\n\t\t\t\t\t\t\t_opts.onClick = options.onClick;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (options.onDragend != undefined) {\n\t\t\t\t\tif (options.onDragend != null) {\n\t\t\t\t\t\tif (typeof options.onDragend == \"function\") {\n\t\t\t\t\t\t\t_opts.onDragend = options.onDragend;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconsole.warn(\"addMarker: the options size is not correct\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn(\"addMarker: options is not a object\");\n\t\t\treturn false;\n\t\t}\n\t}\n\tlet icon = new H.map.Icon(\n\t\toptions.changeIcon\n\t\t\t? _opts.icon\n\t\t\t\t\t.replace(\"${ColorFill}\", options.opts.fillColor)\n\t\t\t\t\t.replace(\"${ColorStroke}\", options.opts.strokeColor)\n\t\t\t\t\t.replace(\"${WidthStroke}\", 1)\n\t\t\t: _opts.icon,\n\t\t{\n\t\t\tsize: {\n\t\t\t\tw: options.changeIcon ? 20 : 32,\n\t\t\t\th: options.changeIcon ? 20 : 32,\n\t\t\t},\n\t\t}\n\t);\n\tcoords = {lat, lng};\n\tmarker = new H.map.Marker(coords, {icon}, {volatility: true});\n\tmarker.draggable = _opts.draggable;\n\tmarker.info = _opts.info;\n\tmarker.label = _opts.label;\n\tif (addMap) map.addObject(marker);\n\tif (_opts.draggable === true) addDraggableMarker(marker, _opts);\n\treturn marker;\n}\n\nexport function waypointsGenerator(possitionsArray = []) {\n\tconst arrayWaPoint = [];\n\tfor (let i = 0; i < possitionsArray.length; i++) {\n\t\tarrayWaPoint.push(possitionsArray[i].lat + \",\" + possitionsArray[i].lng);\n\t}\n\treturn arrayWaPoint;\n}\n\nexport function addInfoBubble(marker, html) {\n\tmarker.setData(html);\n\tmarker.addEventListener(\n\t\t\"tap\",\n\t\tfunction (evt) {\n\t\t\tmap.setCenter(evt.target.getGeometry());\n\t\t\t// event target is the marker itself, group is a parent event target\n\t\t\t// for all objects that it contains\n\t\t\tlet bubble = new H.ui.InfoBubble(evt.target.getGeometry(), {\n\t\t\t\t// read custom data\n\t\t\t\tcontent: evt.target.getData(),\n\t\t\t});\n\t\t\t//remove infobubbles\n\t\t\tui.getBubbles().forEach((bub) => ui.removeBubble(bub));\n\t\t\t// show info bubble\n\t\t\tui.addBubble(bubble);\n\t\t},\n\t\tfalse\n\t);\n}\n\nexport function calculateHereRoute(possitionsArray = [], options) {\n\tconst waypts = waypointsGenerator(possitionsArray);\n\tlet origin = waypts[0];\n\tlet destination = waypts[waypts.length - 1];\n\tconst logLengthPerPiece = 200;\n\tlet ArrayofArray = [];\n\tlet routingParameters = {\n\t\troutingMode: \"fast\",\n\t\ttransportMode: \"car\",\n\t\t// The start point of the route:\n\t\torigin: origin,\n\t\t// The end point of the route:\n\t\tdestination: destination,\n\t\t// Include the route shape in the response\n\t\treturn: \"polyline\",\n\t};\n\tconst onResult = function (result) {\n\t\tscheduledRoutes = [];\n\t\tscheduledRoutesArrows = [];\n\t\t// ensure that at least one route was found\n\t\tif (result.routes.length) {\n\t\t\trouteLine = new H.map.Group();\n\t\t\tresult.routes[0].sections.forEach((section) => {\n\t\t\t\t// Create a linestring to use as a point source for the route line\n\t\t\t\tlineString = H.geo.LineString.fromFlexiblePolyline(section.polyline);\n\t\t\t\t// Create an outline for the route polyline:\n\t\t\t\trouteOutline = new H.map.Polyline(lineString, {\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tlineWidth: options.lineWidth,\n\t\t\t\t\t\tstrokeColor: options.strokeColor,\n\t\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tconst routeArrows = new H.map.Polyline(lineString, {\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tlineWidth: options.lineWidth,\n\t\t\t\t\t\tfillColor: \"white\",\n\t\t\t\t\t\tstrokeColor: \"rgba(255, 255, 255, 1)\",\n\t\t\t\t\t\tlineDash: [0, 2],\n\t\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\trouteLine.addObjects([routeOutline, routeArrows]);\n\t\t\t\trouteOutline.idRoute = \"RP\";\n\t\t\t\trouteArrows.idRoute = \"RP\";\n\t\t\t\tscheduledRoutes.push(routeOutline);\n\t\t\t\tscheduledRoutesArrows.push(routeArrows);\n\t\t\t\tmap.addObject(routeLine);\n\t\t\t});\n\t\t}\n\t};\n\t//This functionality is performed in this way due to waypoint limits and here maps has not yet provided a solution.\n\tfor (let i = 0; i < waypts.length; i += logLengthPerPiece) {\n\t\tlet pedazo = waypts.slice(i, i + logLengthPerPiece);\n\t\tArrayofArray.push(pedazo);\n\t}\n\tfor (let i = 0; i < ArrayofArray.length; i++) {\n\t\t(routingParameters.via = new H.service.Url.MultiValueQueryParameter(ArrayofArray[i])),\n\t\t\t// Get an instance of the routing service version 8:\n\t\t\t(router = platForm.getRoutingService(null, 8));\n\t\trouter.calculateRoute(routingParameters, onResult, (err) => {\n\t\t\tthrow new Error(err.message);\n\t\t});\n\t}\n}\n\nexport function calculateRouteSnapToRoad(possitionsArray = [], options) {\n\tconst waypts = waypointsGenerator(possitionsArray);\n\tlet origin = waypts[0];\n\tlet destination = waypts[waypts.length - 1];\n\tlet ArrayofArray = [];\n\tconst logLengthPerPiece = 200;\n\tlet routingParameters = {\n\t\troutingMode: \"fast\",\n\t\ttransportMode: \"pedestrian\",\n\t\torigin: origin,\n\t\tdestination: destination,\n\t\treturn: \"polyline\",\n\t};\n\tconst onResult = function (result) {\n\t\texecutedRoutes = [];\n\t\texecutedRoutesArrows = [];\n\t\t// ensure that at least one route was found\n\t\tif (result.routes.length) {\n\t\t\trouteLine = new H.map.Group();\n\t\t\tresult.routes[0].sections.forEach((section) => {\n\t\t\t\t// Create a linestring to use as a point source for the route line\n\t\t\t\tlineString = H.geo.LineString.fromFlexiblePolyline(section.polyline);\n\t\t\t\t// Create an outline for the route polyline:\n\t\t\t\trouteOutline = new H.map.Polyline(lineString, {\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tlineWidth: options.lineWidth,\n\t\t\t\t\t\tstrokeColor: options.strokeColor,\n\t\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tconst routeArrows = new H.map.Polyline(lineString, {\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\tlineWidth: options.lineWidth,\n\t\t\t\t\t\tfillColor: \"white\",\n\t\t\t\t\t\tstrokeColor: \"rgba(255, 255, 255, 1)\",\n\t\t\t\t\t\tlineDash: [0, 2],\n\t\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\trouteLine.addObjects([routeOutline, routeArrows]);\n\t\t\t\trouteOutline.idRoute = \"RE\";\n\t\t\t\trouteArrows.idRoute = \"RE\";\n\t\t\t\texecutedRoutes.push(routeOutline);\n\t\t\t\texecutedRoutesArrows.push(routeArrows);\n\t\t\t\tmap.addObject(routeLine);\n\t\t\t\tmap.getViewPort().setPadding(150, 10, 20, 10);\n\t\t\t\tmap.getViewPort().resize();\n\t\t\t\tmap.getViewModel().setLookAtData({\n\t\t\t\t\tbounds: routeLine.getBoundingBox(),\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n\t//This functionality is performed in this way due to waypoint limits and here maps has not yet provided a solution.\n\tfor (let i = 0; i < waypts.length; i += logLengthPerPiece) {\n\t\tlet pedazo = waypts.slice(i, i + logLengthPerPiece);\n\t\tArrayofArray.push(pedazo);\n\t}\n\tfor (let i = 0; i < ArrayofArray.length; i++) {\n\t\t(routingParameters.via = new H.service.Url.MultiValueQueryParameter(ArrayofArray[i])),\n\t\t\t// Get an instance of the routing service version 8:\n\t\t\t(router = platForm.getRoutingService(null, 8));\n\t\trouter.calculateRoute(routingParameters, onResult, (err) => {\n\t\t\tthrow new Error(err.message);\n\t\t});\n\t}\n}\n\nexport function centerHereMap(lat, lng, options) {\n\tif (map) {\n\t\tmap.setCenter({lat, lng});\n\t\tif (options) {\n\t\t\tif (options.constructor === {}.constructor) {\n\t\t\t\tlet size = Object.keys(options).length;\n\t\t\t\tif (size > 0) {\n\t\t\t\t\tif (options.zoom !== undefined && options.zoom !== null) {\n\t\t\t\t\t\tif (options.zoom >= 0 && options.zoom <= 18) {\n\t\t\t\t\t\t\tmap.setZoom(options.zoom);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconsole.warn(\"centerMap: the options size is not correct\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconsole.warn(\"centerMap: options is not a object\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport function changeIconInMarkerHereMap(marker, newIconMarker) {\n\tlet icon = new H.map.Icon(newIconMarker, {size: {w: 32, h: 32}});\n\tmarker.setIcon(icon);\n}\n\nexport function changeRouteProperties({strokeColor, strokeOpacity, lineWidth, id}) {\n\tif (id === \"RP\") {\n\t\tfor (let index = 0; index < scheduledRoutes.length; index++) {\n\t\t\tconst elementRouteLine = scheduledRoutes[index];\n\t\t\tif (elementRouteLine !== undefined && elementRouteLine.idRoute === id) {\n\t\t\t\telementRouteLine.setStyle({\n\t\t\t\t\tlineWidth,\n\t\t\t\t\tstrokeColor,\n\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t});\n\t\t\t\tmap.addObject(elementRouteLine);\n\t\t\t}\n\t\t}\n\t\tfor (let index = 0; index < scheduledRoutesArrows.length; index++) {\n\t\t\tconst elementRouteArrows = scheduledRoutesArrows[index];\n\t\t\tif (elementRouteArrows !== undefined && elementRouteArrows.idRoute === id) {\n\t\t\t\telementRouteArrows.setStyle({\n\t\t\t\t\tlineWidth,\n\t\t\t\t\tfillColor: \"white\",\n\t\t\t\t\tstrokeColor: \"rgba(255, 255, 255, 1)\",\n\t\t\t\t\tfillOpacity: strokeOpacity,\n\t\t\t\t\tlineDash: [0, 2],\n\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t});\n\t\t\t\tmap.addObject(elementRouteArrows);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tfor (let index = 0; index < executedRoutes.length; index++) {\n\t\t\tconst elementRouteLine = executedRoutes[index];\n\t\t\tif (elementRouteLine !== undefined && elementRouteLine.idRoute === id) {\n\t\t\t\telementRouteLine.setStyle({\n\t\t\t\t\tlineWidth,\n\t\t\t\t\tstrokeColor,\n\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t});\n\t\t\t\tmap.addObject(elementRouteLine);\n\t\t\t}\n\t\t}\n\t\tfor (let index = 0; index < executedRoutesArrows.length; index++) {\n\t\t\tconst elementRouteArrows = executedRoutesArrows[index];\n\t\t\tif (elementRouteArrows !== undefined && elementRouteArrows.idRoute === id) {\n\t\t\t\telementRouteArrows.setStyle({\n\t\t\t\t\tlineWidth,\n\t\t\t\t\tfillColor: \"white\",\n\t\t\t\t\tstrokeColor: \"rgba(255, 255, 255, 1)\",\n\t\t\t\t\tfillOpacity: strokeOpacity,\n\t\t\t\t\tlineDash: [0, 2],\n\t\t\t\t\tlineTailCap: \"arrow-tail\",\n\t\t\t\t\tlineHeadCap: \"arrow-head\",\n\t\t\t\t});\n\t\t\t\tmap.addObject(elementRouteArrows);\n\t\t\t}\n\t\t}\n\t}\n}\n\nexport function clearMap() {\n\tif (map) {\n\t\tmap.removeObjects(map.getObjects());\n\t\tui.getBubbles().forEach((bub) => ui.removeBubble(bub));\n\t}\n}\n\nexport function zoomMap(value) {\n\tmap.setZoom(value);\n}\n\nexport function fitBoundsMarkerGroup(markerArray = []) {\n\tlet group = new H.map.Group();\n\tgroup.addObjects(markerArray);\n\tmap.addObject(group);\n\tmap.getViewPort().setPadding(250, 250, 250, 250);\n\tmap.getViewPort().resize();\n\tmap.getViewModel().setLookAtData({bounds: group.getBoundingBox()});\n}\n\nexport function addDraggableMarker(markerDraggable, _opts) {\n\t// disable the default draggability of the underlying map\n\t// and calculate the offset between mouse and target's position\n\t// when starting to drag a marker object:\n\tmarkerDraggable.addEventListener(\n\t\t\"dragstart\",\n\t\tfunction (ev) {\n\t\t\tlet target = ev.target,\n\t\t\t\tpointer = ev.currentPointer;\n\t\t\tif (target instanceof H.map.Marker) {\n\t\t\t\tlet targetPosition = map.geoToScreen(target.getGeometry());\n\t\t\t\ttarget[\"offset\"] = new H.math.Point(\n\t\t\t\t\tpointer.viewportX - targetPosition.x,\n\t\t\t\t\tpointer.viewportY - targetPosition.y\n\t\t\t\t);\n\t\t\t\tbehavior.disable();\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n\t// re-enable the default draggability of the underlying map\n\t// when dragging has completed\n\tmarkerDraggable.addEventListener(\n\t\t\"dragend\",\n\t\tfunction (ev) {\n\t\t\tlet target = ev.target;\n\t\t\tif (target instanceof H.map.Marker) {\n\t\t\t\tbehavior.enable();\n\t\t\t}\n\t\t\tlet pos = {\n\t\t\t\tlat: markerDraggable.getGeometry().lat,\n\t\t\t\tlng: markerDraggable.getGeometry().lng,\n\t\t\t};\n\t\t\tconst location = \"\";\n\t\t\t_opts.onDragend(location, pos);\n\t\t},\n\t\tfalse\n\t);\n\t// Listen to the drag event and move the position of the marker\n\t// as necessary\n\tmarkerDraggable.addEventListener(\n\t\t\"drag\",\n\t\tfunction (ev) {\n\t\t\tlet target = ev.target,\n\t\t\t\tpointer = ev.currentPointer;\n\t\t\tif (target instanceof H.map.Marker) {\n\t\t\t\ttarget.setGeometry(\n\t\t\t\t\tmap.screenToGeo(pointer.viewportX - target[\"offset\"].x, pointer.viewportY - target[\"offset\"].y)\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\tfalse\n\t);\n}\n\nexport const reverseGeoCode = (coords) => {\n\tif (coords === undefined || coords === null) {\n\t\tconsole.warn(\"inverseGeocoder: missing parameter coords\");\n\t\treturn false;\n\t}\n\tif (coords.constructor != {}.constructor) {\n\t\tconsole.warn(\"inverseGeocoder: coords must be an Object\");\n\t\treturn false;\n\t}\n\tif (!coords.hasOwnProperty(\"lat\") && !coords.hasOwnProperty(\"lng\")) {\n\t\tconsole.warn(\"inverseGeocoder: missing lat or lng attributes\");\n\t\treturn false;\n\t}\n\treturn new Promise((resolve, reject) => {\n\t\tgeoCoderService.reverseGeocode(\n\t\t\t{\n\t\t\t\tat: coords.lat + \",\" + coords.lng,\n\t\t\t},\n\t\t\t(result) => {\n\t\t\t\tresolve(result);\n\t\t\t},\n\t\t\t(error) => {\n\t\t\t\tconsole.warn(\"inverseGeocoder was not successful for the following reason:\");\n\t\t\t\treject(error);\n\t\t\t}\n\t\t);\n\t});\n};\n\nexport function hereMapsFullScreenControl(ui) {\n\t// add custom UI control\n\tconst myCustomControl = new H.ui.Control();\n\tmyCustomControl.addClass(\"customControl\");\n\tui.addControl(\"myCustomControl\", myCustomControl);\n\t// Set the position of the control in the UI's layout\n\tmyCustomControl.setAlignment(H.ui.LayoutAlignment.TOP_RIGHT);\n\n\tconst myCustomPanel = new H.ui.base.OverlayPanel();\n\tmyCustomPanel.addClass(\"customPanel\");\n\tmyCustomControl.addChild(myCustomPanel);\n\n\t// store original styles\n\tconst mapDiv = ui.getMap().getElement();\n\tlet divStyle = mapDiv.style;\n\tif (mapDiv.runtimeStyle) {\n\t\tdivStyle = mapDiv.runtimeStyle;\n\t}\n\tconst originalPos = divStyle.position;\n\tlet originalWidth = divStyle.width;\n\tlet originalHeight = divStyle.height;\n\t// ie8 hack\n\tif (originalWidth === \"\") {\n\t\toriginalWidth = mapDiv.style.width;\n\t}\n\tif (originalHeight === \"\") {\n\t\toriginalHeight = mapDiv.style.height;\n\t}\n\tconst originalTop = divStyle.top;\n\tconst originalLeft = divStyle.left;\n\tconst originalZIndex = divStyle.zIndex;\n\tlet bodyStyle = document.body.style;\n\tif (document.body.runtimeStyle) {\n\t\tbodyStyle = document.body.runtimeStyle;\n\t}\n\tconst originalOverflow = bodyStyle.overflow;\n\n\tconst myCustomButton = new H.ui.base.PushButton({\n\t\tlabel: \"Full screen\",\n\t\tonStateChange: (evt) => {\n\t\t\t// OK, button state changed... if it's currently down\n\t\t\tif (myCustomButton.getState() === H.ui.base.Button.State.DOWN) {\n\t\t\t\t// go full screen\n\t\t\t\tmapDiv.style.position = \"fixed\";\n\t\t\t\tmapDiv.style.width = \"100%\";\n\t\t\t\tmapDiv.style.height = \"100%\";\n\t\t\t\tmapDiv.style.top = \"0\";\n\t\t\t\tmapDiv.style.left = \"0\";\n\t\t\t\tmapDiv.style.zIndex = \"100\";\n\t\t\t\tdocument.body.style.overflow = \"hidden\";\n\t\t\t} else {\n\t\t\t\t// exit full screen\n\t\t\t\tif (originalPos === \"\") {\n\t\t\t\t\tmapDiv.style.position = \"relative\";\n\t\t\t\t} else {\n\t\t\t\t\tmapDiv.style.position = originalPos;\n\t\t\t\t}\n\t\t\t\tmapDiv.style.width = originalWidth;\n\t\t\t\tmapDiv.style.height = originalHeight;\n\t\t\t\tmapDiv.style.top = originalTop;\n\t\t\t\tmapDiv.style.left = originalLeft;\n\t\t\t\tmapDiv.style.zIndex = originalZIndex;\n\t\t\t\tdocument.body.style.overflow = originalOverflow;\n\t\t\t}\n\t\t\tui.getMap().getViewPort().resize();\n\t\t},\n\t});\n\n\tmyCustomPanel.addChild(myCustomButton);\n\tmyCustomPanel.setState(H.ui.base.OverlayPanel.State.OPEN);\n}\n\nexport function getHereMapObj() {\n\treturn map;\n}\n\nexport const getCurrentPosition = () => {\n\tif (navigator.geolocation) {\n\t\tnavigator.geolocation.getCurrentPosition((position) => {\n\t\t\tcenterHereMap(position.coords.latitude, position.coords.longitude, null);\n\t\t\tzoomMap(11);\n\t\t\tgeoCoderService.reverseGeocode(\n\t\t\t\t{\n\t\t\t\t\tat: position.coords.latitude + \",\" + position.coords.longitude,\n\t\t\t\t},\n\t\t\t\t(result) => {\n\t\t\t\t\treturn result;\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tconsole.error(\"getCurrentPosition: Error code\", error.code);\n\t\t\t\t\tconsole.error(\"getCurrentPosition: Error message\", error.message);\n\t\t\t\t}\n\t\t\t);\n\t\t});\n\t} else {\n\t\tconsole.error(\"getCurrentPosition: Your browser doesnt support Geolocation\");\n\t}\n};\n\nexport function showGeoJSONData(geoJson) {\n\tlet data = JSON.stringify(geoJson);\n\tlet reader = new H.data.geojson.Reader(undefined, {\n\t\tdisableLegacyMode: true,\n\t\t// This function is called each time parser detects a new map object\n\t\tstyle: function (mapObject) {\n\t\t\tif (mapObject instanceof H.map.Polygon) {\n\t\t\t\tmapObject.setStyle({\n\t\t\t\t\tfillColor: \"rgba(255,248,0, 0.5)\",\n\t\t\t\t\tstrokeColor: \"#F4710C\",\n\t\t\t\t\tlineWidth: 2,\n\t\t\t\t});\n\t\t\t\tmapObject.addEventListener(\n\t\t\t\t\t\"tap\",\n\t\t\t\t\tfunction (evt) {\n\t\t\t\t\t\tposition = map.screenToGeo(evt.currentPointer.viewportX, evt.currentPointer.viewportY);\n\t\t\t\t\t\tmap.setCenter(position);\n\t\t\t\t\t\tlet bubble = new H.ui.InfoBubble(position, {\n\t\t\t\t\t\t\tcontent: mapObject[\"data\"][\"name\"],\n\t\t\t\t\t\t});\n\t\t\t\t\t\tui.getBubbles().forEach((bub) => ui.removeBubble(bub));\n\t\t\t\t\t\tui.addBubble(bubble);\n\t\t\t\t\t},\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t});\n\treader.parseData(data);\n\tlet layer = reader.getLayer();\n\treaderArray.push(layer);\n\tmap.addLayer(layer);\n}\n\nexport function removeGeoJsonLayer() {\n\tfor (let layer in readerArray) {\n\t\tmap.removeLayer(readerArray[layer]);\n\t\tdelete readerArray[layer];\n\t}\n}\n\nexport function removeGeoJsonLayerById() {\n\tfor (let layer in readerArray) {\n\t\tif (parseInt(layer) === readerArray.length - 1) {\n\t\t\tmap.removeLayer(readerArray[layer]);\n\t\t\tdelete readerArray[layer];\n\t\t}\n\t}\n}\n\nexport function selectTool(opc, global) {\n\tswitch (opc) {\n\t\tcase \"marker\":\n\t\t\tbreak;\n\t\tcase \"circle\":\n\t\t\tbreak;\n\t\tcase \"polygon\":\n\t\t\tdrawPolygonHereMap(global, global.activeTab);\n\t\tcase \"polyline\":\n\t\t\tbreak;\n\t\tcase \"rectangle\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tdrawPolygonHereMap(null, null);\n\t\t\tclearMap();\n\t\t\tbreak;\n\t}\n}\n\nexport function addPolylineToMap(\n\tdata,\n\topts = {\n\t\tstrokeColor: \"rgba(54,55,56,0.7)\",\n\t\tstrokeWeight: 3,\n\t\tstrokeOpacity: 1,\n\t}\n) {\n\tif (data.length > 0) {\n\t\tlineString = new H.geo.LineString();\n\t\tdata.forEach(function (point) {\n\t\t\tlineString.pushPoint(point);\n\t\t});\n\t\tpolyline = new H.map.Polyline(lineString, {\n\t\t\tstyle: {\n\t\t\t\tlineWidth: opts.strokeWeight,\n\t\t\t\tstrokeColor: opts.strokeColor,\n\t\t\t\tfillOpacity: opts.strokeOpacity,\n\t\t\t},\n\t\t});\n\t\tlineArray.push(polyline);\n\t\tmap.addObject(polyline);\n\t\treturn polyline;\n\t}\n}\n\nexport function drawPolygonHereMap(thisObject, tab) {\n\tmarkerArray = [];\n\tpositionArray = [];\n\tcoordsArray = [];\n\tconst cursor = document.querySelector(\".map\");\n\tif (tab === 1) {\n\t\tif (cursor != null) cursor.style.cursor = \"crosshair\";\n\t\tlet icon = null;\n\t\tlet marker = null;\n\t\tlet cont = 0;\n\t\tmap.addEventListener(\"tap\", (event) => {\n\t\t\tif (thisObject.activeTab === 1 && cursor.style.cursor !== \"default\") {\n\t\t\t\tposition = map.screenToGeo(event.currentPointer.viewportX, event.currentPointer.viewportY);\n\t\t\t\tpositionArray.push(position);\n\t\t\t\tcoordsArray.push([position.lng, position.lat]);\n\t\t\t\ticon = new H.map.Icon(circle, {size: {w: 8, h: 8}});\n\t\t\t\tmarker = new H.map.Marker(position, {icon});\n\t\t\t\tmarkerArray.push(marker);\n\t\t\t\tmap.addObject(marker);\n\t\t\t\taddPolylineToMap(positionArray);\n\t\t\t\tif (markerArray.length >= 3 && cont === 1) {\n\t\t\t\t\t// event listener for vertice markers group to change the cursor to pointer\n\t\t\t\t\tmarkerArray[0].addEventListener(\n\t\t\t\t\t\t\"pointerenter\",\n\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\tcursor.style.cursor = \"pointer\";\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttrue\n\t\t\t\t\t);\n\n\t\t\t\t\t// event listener for vertice markers group to change the cursor to default\n\t\t\t\t\tmarkerArray[0].addEventListener(\n\t\t\t\t\t\t\"pointerleave\",\n\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\tcursor.style.cursor = \"default\";\n\t\t\t\t\t\t},\n\t\t\t\t\t\ttrue\n\t\t\t\t\t);\n\n\t\t\t\t\tmarkerArray[0].addEventListener(\"tap\", function () {\n\t\t\t\t\t\tlet geoJson = {\n\t\t\t\t\t\t\ttype: \"FeatureCollection\",\n\t\t\t\t\t\t\tfeatures: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttype: \"Feature\",\n\t\t\t\t\t\t\t\t\tgeometry: {\n\t\t\t\t\t\t\t\t\t\ttype: \"Polygon\",\n\t\t\t\t\t\t\t\t\t\tcoordinates: [coordsArray],\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t};\n\t\t\t\t\t\tshowGeoJSONData(geoJson);\n\t\t\t\t\t\tthisObject.callbackDraw(geoJson[\"features\"][0][\"geometry\"]);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tcont++;\n\t\t\t}\n\t\t});\n\t} else {\n\t\tcursor.style.cursor = \"default\";\n\t}\n}\n\nexport function setMapViewBounds(coords) {\n\tlet bbox = new H.geo.Rect(\n\t\tcoords[\"properties\"][\"ymin\"],\n\t\tcoords[\"properties\"][\"xmin\"],\n\t\tcoords[\"properties\"][\"ymax\"],\n\t\tcoords[\"properties\"][\"xmax\"]\n\t);\n\tmap.getViewPort().setPadding(20, 10, 20, 10);\n\tmap.getViewPort().resize();\n\tmap.getViewModel().setLookAtData({\n\t\tbounds: bbox,\n\t});\n}\n\nexport function addCircleToMap(options = {center: {lat: 4.1156735, lng: -72.9301367}, radius: 200}) {\n\tlet drawCircle = new H.map.Circle(options.center, options.radius, {\n\t\tstyle: {\n\t\t\tstrokeColor: \"rgba(56, 120, 199, 1)\",\n\t\t\tlineWidth: 0.8,\n\t\t\tfillColor: \"rgba(255, 255, 0, 0.2)\",\n\t\t},\n\t});\n\tmap.addObject(drawCircle);\n\tbboxCircle.push(drawCircle);\n\tmap.getViewPort().setPadding(20, 20, 20, 20);\n\tmap.getViewPort().resize();\n\tmap.getViewModel().setLookAtData({bounds: drawCircle.getBoundingBox()});\n}\n\nexport function removeRoute() {\n\tif (routeOutline.length > 0) {\n\t\tfor (let i = 0; i <= routeOutline.length; i++) {\n\t\t\tmap.removeObject(routeOutline[i]);\n\t\t}\n\t\trouteOutline = [];\n\t}\n}\n\nexport function removeCircle() {\n\tif (bboxCircle.length > 0) {\n\t\tmap.removeObject(bboxCircle[0]);\n\t\tbboxCircle = [];\n\t}\n}\n\nexport function removeMarker(marker) {\n\tif (marker) {\n\t\tmap.removeObject(marker);\n\t\tui.getBubbles().forEach((bub) => ui.removeBubble(bub));\n\t}\n}\n\nexport function addGroupOfMarkers(\n\tmarkerLocations = [],\n\topts = {\n\t\tstrokeColor: \"#FF0000\",\n\t\tfillColor: \"#000000\",\n\t\tstrokeOpacity: 0.5,\n\t\tstrokeWeight: 8,\n\t\tlabel: false,\n\t}\n) {\n\tlet svgText = \"\";\n\tgroupOfMarkers = [];\n\tmarkerLocations.forEach(({lat, lng, time, date, valueDistance}, index) => {\n\t\tlet point = {\n\t\t\tlat: +lat,\n\t\t\tlng: +lng,\n\t\t\ttime,\n\t\t\tdate,\n\t\t\tvalueDistance,\n\t\t\trasterNum: index + 1,\n\t\t\ttotalRaster: markerLocations.length,\n\t\t};\n\t\tif (opts.label) {\n\t\t\tsvgText = \" \" + (index + 1);\n\t\t}\n\t\tpoint.valueDistance = roundToTwo(valueDistance);\n\t\tconst iconSvg =\n\t\t\t'' +\n\t\t\t'' +\n\t\t\t'' +\n\t\t\tsvgText +\n\t\t\t\"\".trim();\n\t\tconst makerObject = {\n\t\t\ttitle: \" \" + (index + 1),\n\t\t\ticon: iconSvg,\n\t\t\tchangeIcon: true,\n\t\t\topts,\n\t\t\tinfoWindow: {\n\t\t\t\tcontent: generateInfowindowRouteLineal(point, opts),\n\t\t\t},\n\t\t};\n\t\tlet markers = addMarkerHereMap(point.lat, point.lng, makerObject, true);\n\t\tgroupOfMarkers.push(markers);\n\t\taddInfoBubble(markers, makerObject.infoWindow.content);\n\t});\n}\n\n// Removes the markers from the map, but keeps them in the array.\nexport function hideMarkers() {\n\tfor (let i = 0; i < groupOfMarkers.length; i++) {\n\t\tgroupOfMarkers[i].setVisibility(false);\n\t}\n}\n\n// Hide o show and existing polyline object\nexport function togglePolyline(flightPath, toggleVal) {\n\tif (flightPath.visible && toggleVal) return;\n\tflightPath.setVisibility(toggleVal);\n}\n\n// Shows any markers currently in the array.\nexport function enableMarkerLabel(val) {\n\tfor (let i = 0; i < groupOfMarkers.length; i++) {\n\t\tconst opts = {\n\t\t\ttext: \" \" + (i + 1),\n\t\t\tstrokeColor: \"#FF0000\",\n\t\t\tfillColor: \"#000000\",\n\t\t\tstrokeOpacity: 0.5,\n\t\t\tstrokeWeight: 8,\n\t\t\tlabel: false,\n\t\t};\n\t\tif (val) {\n\t\t\tconst iconSvgLabel =\n\t\t\t\t'' +\n\t\t\t\t'' +\n\t\t\t\t'' +\n\t\t\t\topts.text +\n\t\t\t\t\"\".trim();\n\t\t\ticonSvgLabel\n\t\t\t\t.replace(\"${ColorFill}\", opts.fillColor)\n\t\t\t\t.replace(\"${ColorStroke}\", opts.strokeColor)\n\t\t\t\t.replace(\"${WidthStroke}\", \"1\");\n\t\t\tlet icon = new H.map.Icon(iconSvgLabel, {size: {w: 20, h: 20}});\n\t\t\tgroupOfMarkers[i].setIcon(icon);\n\t\t} else {\n\t\t\tconst iconSvg =\n\t\t\t\t'' +\n\t\t\t\t'' +\n\t\t\t\t\"\".trim();\n\t\t\ticonSvg\n\t\t\t\t.replace(\"${ColorFill}\", opts.fillColor)\n\t\t\t\t.replace(\"${ColorStroke}\", opts.strokeColor)\n\t\t\t\t.replace(\"${WidthStroke}\", \"1\");\n\t\t\tlet icon = new H.map.Icon(iconSvg, {size: {w: 20, h: 20}});\n\t\t\tgroupOfMarkers[i].setIcon(icon);\n\t\t}\n\t}\n}\n\n// Shows any markers currently in the array.\nexport function changeAuxiliaryRouteOptions(\n\tflightPath,\n\t{lineWaypointsStrokeColor, lineWaypointsStrokeOpacity, lineWaypointsStrokeWeight}\n) {\n\tflightPath.setStyle({\n\t\tstrokeColor: lineWaypointsStrokeColor,\n\t\tstrokeOpacity: lineWaypointsStrokeOpacity,\n\t\tstrokeWeight: lineWaypointsStrokeWeight,\n\t});\n}\n\nexport function ease(\n\tstartCoord = {lat: 0, lng: 0},\n\tdurationMs = 200,\n\tonStep = console.log,\n\tonComplete = function () {}\n) {\n\tlet forward = true;\n\tlet endCoord = map.getCenter().walk(Math.random() * 360, Math.random() * 450000);\n\tlet raf =\n\t\t\twindow.requestAnimationFrame ||\n\t\t\tfunction (f) {\n\t\t\t\twindow.setTimeout(f, 16);\n\t\t\t},\n\t\tcurrentValueLat = startCoord.lat,\n\t\tcurrentValueLng = startCoord.lng,\n\t\tstartPos = startCoord,\n\t\tendPos = endCoord,\n\t\tcurrentSinValue = 0;\n\n\tfunction step() {\n\t\tconst interval = setInterval(() => {\n\t\t\tmarker.setGeometry(endPos);\n\t\t\tforward = !forward;\n\t\t}, 3000);\n\t}\n\n\traf(step);\n}\n\nexport function addDomMarker(coords, label = \"\") {\n\tlet outerElement = document.createElement(\"div\"),\n\t\tinnerElement = document.createElement(\"div\");\n\touterElement.style.userSelect = \"none\";\n\touterElement.style.webkitUserSelect = \"none\";\n\touterElement.style.msUserSelect = \"none\";\n\touterElement.style.mozUserSelect = \"none\";\n\touterElement.style.cursor = \"default\";\n\tinnerElement.style.color = \"white\";\n\tinnerElement.style.backgroundColor = \"#2c2c2c\";\n\tinnerElement.style.border = \"2px solid #2c2c2c\";\n\tinnerElement.style.font = \"normal 12px arial\";\n\tinnerElement.style.lineHeight = \"12px\";\n\tinnerElement.style.paddingTop = \"2px\";\n\tinnerElement.style.paddingLeft = \"4px\";\n\tinnerElement.style.width = \"20px\";\n\tinnerElement.style.height = \"20px\";\n\tinnerElement.style.marginTop = \"-45px\";\n\tinnerElement.style.marginLeft = \"10px\";\n\touterElement.appendChild(innerElement);\n\t// Add text to the DOM element\n\tinnerElement.innerHTML = label;\n\tlet domIcon = new H.map.DomIcon(outerElement);\n\t// Marker for Chicago Bears home\n\tlet bearsMarker = new H.map.DomMarker(coords, {\n\t\ticon: domIcon,\n\t});\n\tmap.addObject(bearsMarker);\n}\n\nexport function addClickEvent(callbacFunction) {\n\tmap.addEventListener(\"tap\", (event) => {\n\t\tcallbacFunction && callbacFunction(event);\n\t});\n}\n","export default class ManageErrorMessages {\n\tconstructor({that, message, title}) {\n\t\tthis.that = that;\n\t\tthis.errorMessage = message || that.$t(\"ErrorMessage\");\n\t\tthis.title = title || that.$t(\"ErrorTitle\");\n\t}\n\n\tsetTitle(title) {\n\t\tthis.title = title;\n\t}\n\n\tsetErrorMessage(errorMessage) {\n\t\tconst errors = {\n\t\t\t\"auth/wrong-password\": this.that.$t(\"Login.ValidMessages.InvalidPassword\"),\n\t\t\t\"auth/user-not-found\": this.that.$t(\"Login.ValidMessages.UserNotFound\"),\n\t\t\t\"auth/too-many-requests\": this.that.$t(\"Login.ValidMessages.TooManyRequests\"),\n\t\t\t\"Resource are empty\": this.that.$t(\"Login.ValidMessages.UserNotFound\"),\n\t\t\t\"Resource is not ACTIVE\": this.that.$t(\"Login.Disabled\"),\n\t\t\t\"type file not valid\": this.that.$t(\"UploadFiles.InvalidFormatFile\"),\n\t\t\t\"storage/unauthorized\": this.that.$t(\"Zonification.UploadZones.Error.Permission\"),\n\t\t\t\"storage/canceled\": this.that.$t(\"Zonification.UploadZones.Error.Cancel\"),\n\t\t\t\"storage/unknown\": this.that.$t(\"Zonification.UploadZones.Error.Unknown\"),\n\t\t\t\"The cell_phone already registered for this company.\": this.that.$t(\n\t\t\t\t\"CreatePasswordVP.CellphoneAlreadyRegister\"\n\t\t\t),\n\t\t\t\"The cell_phone sent does not meet the characteristics of an cell_phone.\": this.that.$t(\n\t\t\t\t\"CreatePasswordVP.CellphoneNoValid\"\n\t\t\t),\n\t\t\t\"The visit_point_id already registered.\": this.that.$t(\"CreatePasswordVP.VisitPointAlreadyRegister\"),\n\t\t};\n\t\tthis.errorMessage = errors[errorMessage] ? errors[errorMessage] : this.that.$t(\"Error\");\n\t}\n\n\tshowMessage() {\n\t\tthis.that.$vs.notify({\n\t\t\ttime: 7000,\n\t\t\ttitle: this.title,\n\t\t\ttext: this.errorMessage,\n\t\t\ticonPack: \"feather\",\n\t\t\ticon: \"icon-alert-circle\",\n\t\t\tcolor: \"danger\",\n\t\t});\n\t}\n\n\tprocessError(err) {\n\t\tlet text = this.that.$t(\"ErrorMessage\");\n\t\tif (err.message === \"missing fields: ['address']\") {\n\t\t\ttext = this.that.$t(\"VisitPointObject.Create.ErrorFindAddress.Text\");\n\t\t}\n\t\tif (err.message === \"Not georreferencer address\") {\n\t\t\ttext = this.that.$t(\"ManualData.AddressCouldBeNotGeoreferenced\");\n\t\t}\n\t\tif (err.data) {\n\t\t\tif (err.data.reason === \"Sitidata api georeversed token not enabled for this company.\") {\n\t\t\t\ttext = this.that.$t(\"ManualData.SitidataGeoreverseToken\");\n\t\t\t} else if (err.data.reason === \"Sitidata api not enabled for this company.\") {\n\t\t\t\ttext = this.that.$t(\"MapModule.SitidataNoEnabled\");\n\t\t\t}\n\t\t}\n\t\tthis.that.$vs.notify({\n\t\t\tcolor: \"danger\",\n\t\t\ttitle: this.that.$t(\"MapModule.Georeferencer\"),\n\t\t\ttext,\n\t\t\ttime: 5000,\n\t\t});\n\t}\n}\n","export const politicalDivisionMixin = {\n\tcomputed: {\n\t\tgetPoliticalDivision() {\n\t\t\tconst countryInfo = {\n\t\t\t\tARGENTINA: {department: this.$t(\"Province\"), city: this.$t(\"Municipality\")},\n\t\t\t\tBRASIL: {department: this.$t(\"State\"), city: this.$t(\"City\")},\n\t\t\t\tCHILE: {department: this.$t(\"Region\"), city: this.$t(\"Commune\")},\n\t\t\t\tCOLOMBIA: {department: this.$t(\"Department\"), city: this.$t(\"City\")},\n\t\t\t\tCOSTA_RICA: {department: this.$t(\"Province\"), city: this.$t(\"Canton\")},\n\t\t\t\tECUADOR: {department: this.$t(\"Province\"), city: this.$t(\"Canton\")},\n\t\t\t\tGUATEMALA: {department: this.$t(\"Department\"), city: this.$t(\"Municipality\")},\n\t\t\t\tMEXICO: {department: this.$t(\"State\"), city: this.$t(\"Municipality\")},\n\t\t\t\tPARAGUAY: {department: this.$t(\"Department\"), city: this.$t(\"District\")},\n\t\t\t\tPERU: {department: this.$t(\"Region\"), city: this.$t(\"Province\")},\n\t\t\t};\n\t\t\tconst normalizedCountry =\n\t\t\t\tthis.selectedCountry != null && typeof this.selectedCountry === \"object\"\n\t\t\t\t\t? this.selectedCountry.value != null && this.selectedCountry.value != undefined\n\t\t\t\t\t\t? this.selectedCountry.value.toUpperCase().replace(\" \", \"_\")\n\t\t\t\t\t\t: \"\"\n\t\t\t\t\t: this.selectedCountry;\n\t\t\tconst selectedCountryInfo = countryInfo[normalizedCountry];\n\t\t\tif (!selectedCountryInfo) {\n\t\t\t\treturn countryInfo[\"COLOMBIA\"];\n\t\t\t}\n\t\t\treturn selectedCountryInfo;\n\t\t},\n\t},\n};\n","import firebase from \"firebase/app\";\nimport \"firebase/storage\";\nimport User from \"@/models/User.js\";\n\nconst database = firebase.database();\nconst settings = {\n\ttimestampsInSnapshots: true,\n};\nconst loadFirestore = () => {\n\tvar db = firebase.firestore();\n\treturn db.collection(\"cerberus_PositionRecord\").get();\n};\nconst getResourceTracking = async (positionrecordId, companyId) => {\n\tconst starCountRef = database.ref(\"tracking/\" + companyId + \"/\" + positionrecordId);\n\tstarCountRef.on(\"value\", (snapshot) => {\n\t\tconst data = snapshot.val();\n\t});\n};\n/**\n *\n * @param {File} filed is file to got forn input type file\n * @param {*} path is the directory path of the firebase\n * @returns\n */\nconst uploadFileToFirebase = async function (filed, path) {\n\tconst that = this;\n\tconst user = new User();\n\tconst userInfo = await user.getUser();\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst storageRef = firebase.storage().ref();\n\t\t// File or Blob named mountains.jpg\n\t\tconst file = filed;\n\t\t// Create the file metadata\n\t\tconst metadata = {\n\t\t\tcontentType: file.type,\n\t\t};\n\t\t// create unique identify date\n\t\tconst uniqueId = new Date().getTime();\n\t\t// Upload file and metadata to the object 'images/mountains.jpg'\n\t\tconst uploadTask = storageRef\n\t\t\t.child(`${userInfo.company_id}${path}${uniqueId}-${file.name}`)\n\t\t\t.put(file, metadata);\n\t\t// Listen for state changes, errors, and completion of the upload.\n\t\tuploadTask.on(\n\t\t\tfirebase.storage.TaskEvent.STATE_CHANGED, // or 'state_changed'\n\t\t\tfunction (snapshot) {\n\t\t\t\t// Get task progress, including the number of bytes uploaded and the total number of bytes to be uploaded\n\t\t\t\tlet progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100;\n\t\t\t\tthat.progressPercent = progress;\n\t\t\t\tswitch (snapshot.state) {\n\t\t\t\t\tcase firebase.storage.TaskState.PAUSED: // or 'paused'\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase firebase.storage.TaskState.RUNNING: // or 'running'\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t},\n\t\t\tfunction (error) {\n\t\t\t\t// A full list of error codes is available at\n\t\t\t\t// https://firebase.google.com/docs/storage/web/handle-errors\n\t\t\t\tswitch (error.code) {\n\t\t\t\t\tcase \"storage/unauthorized\":\n\t\t\t\t\t\t// User doesn't have permission to access the object\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/canceled\":\n\t\t\t\t\t\t// User canceled the upload\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unknown\":\n\t\t\t\t\t\t// Unknown error occurred, inspect error.serverResponse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treject(error);\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\t// Upload completed successfully, now we can get the download URL\n\t\t\t\tuploadTask.snapshot.ref.getDownloadURL().then(function (downloadURL) {\n\t\t\t\t\tconst urls = {\n\t\t\t\t\t\tdownloadURL,\n\t\t\t\t\t\tbucketPath: `${userInfo.company_id}${path}${uniqueId}-${file.name}`,\n\t\t\t\t\t};\n\t\t\t\t\tresolve(urls);\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t});\n};\nconst downloadFileFromFirebase = async function (path) {\n\tconst user = new User();\n\tconst userInfo = await user.getUser();\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst storageRef = firebase.storage().ref();\n\t\t// Create a reference to the file we want to download\n\t\tconst starsRef = storageRef.child(path);\n\t\t// Get the download URL\n\t\tstarsRef\n\t\t\t.getDownloadURL()\n\t\t\t.then(function (url) {\n\t\t\t\t// Insert url into an tag to \"download\"\n\t\t\t\tresolve(url);\n\t\t\t})\n\t\t\t.catch(function (error) {\n\t\t\t\t// A full list of error codes is available at\n\t\t\t\t// https://firebase.google.com/docs/storage/web/handle-errors\n\t\t\t\tswitch (error.code) {\n\t\t\t\t\tcase \"storage/object-not-found\":\n\t\t\t\t\t\t// File doesn't exist\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unauthorized\":\n\t\t\t\t\t\t// User doesn't have permission to access the object\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/canceled\":\n\t\t\t\t\t\t// User canceled the upload\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unknown\":\n\t\t\t\t\t\t// Unknown error occurred, inspect the server response\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treject(error);\n\t\t\t});\n\t});\n};\nconst downloadFileFromStorage = function (gsPath) {\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tvar storage = firebase.storage();\n\t\t// Create a reference from a Google Cloud Storage URI\n\t\tvar gsReference = storage.refFromURL(gsPath);\n\t\t// Get the download URL\n\t\tgsReference\n\t\t\t.getDownloadURL()\n\t\t\t.then(function (url) {\n\t\t\t\t// Insert url into an tag to \"download\"\n\t\t\t\tresolve(url);\n\t\t\t})\n\t\t\t.catch(function (error) {\n\t\t\t\t// A full list of error codes is available at\n\t\t\t\t// https://firebase.google.com/docs/storage/web/handle-errors\n\t\t\t\tswitch (error.code) {\n\t\t\t\t\tcase \"storage/object-not-found\":\n\t\t\t\t\t\t// File doesn't exist\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unauthorized\":\n\t\t\t\t\t\t// User doesn't have permission to access the object\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/canceled\":\n\t\t\t\t\t\t// User canceled the upload\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unknown\":\n\t\t\t\t\t\t// Unknown error occurred, inspect the server response\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treject(error);\n\t\t\t});\n\t});\n};\nconst getFirebaseMessageByResourceId = function (resourceid) {\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst database = firebase.database();\n\t\tconst starCountRef = database.ref(`messages/${resourceid}`).orderByChild(\"date\");\n\t\ttry {\n\t\t\tstarCountRef.once(\"value\", (snapshot) => {\n\t\t\t\tconst messages = [];\n\t\t\t\tsnapshot.forEach((childSnapshot) => {\n\t\t\t\t\t// key will be \"ada\" the first time and \"alan\" the second time\n\t\t\t\t\tlet key = childSnapshot.key;\n\t\t\t\t\t// childData will be the actual contents of the child\n\t\t\t\t\tlet childData = {...childSnapshot.val(), id: key};\n\t\t\t\t\tmessages.push(childData);\n\t\t\t\t});\n\t\t\t\tresolve(messages);\n\t\t\t});\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};\nconst updateFirebaseMessage = async function (message) {\n\tconst user = new User();\n\tconst userInfo = await user.getUser();\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst {key} = {...message};\n\t\tdelete message.key;\n\t\tconst database = firebase.database();\n\t\tdatabase.ref(`messages/${userInfo.company_id}/${message.resource_id}/${key}`).set(message);\n\t\t//ref(\"PIN/`-KrnO...Ho/PIN\").set(30);\n\t\ttry {\n\t\t\tresolve({message});\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};\nconst deleteFireabseMessage = async function (message) {\n\tconst user = new User();\n\tconst userInfo = await user.getUser();\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst {key} = {...message};\n\t\tdelete message.key;\n\t\tconst database = firebase.database();\n\t\tdatabase\n\t\t\t.ref(`messages/${userInfo.company_id}/${message.resource_id}/${key}`)\n\t\t\t.remove()\n\t\t\t.then(function () {\n\t\t\t\tresolve({message: \"Remove succeeded.\"});\n\t\t\t})\n\t\t\t.catch(function (error) {\n\t\t\t\treject(error);\n\t\t\t});\n\t});\n};\nconst sendFirebaseResourceNotifications = function (notification, resourceId, eventId) {\n\treturn new Promise(async function (resolve, reject) {\n\t\ttry {\n\t\t\tconst user = new User();\n\t\t\tconst userInfo = await user.getUser();\n\t\t\tawait firebase\n\t\t\t\t.database()\n\t\t\t\t.ref(`notification/${userInfo.company_id}/movil/${resourceId}/${eventId}`)\n\t\t\t\t.set(notification);\n\t\t\tresolve({notification});\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};\nconst uploadCompanyLogo = async function (filed, path) {\n\tconst that = this;\n\n\treturn new Promise(function (resolve, reject) {\n\t\t// Create a root reference\n\t\tconst storageRef = firebase.storage().ref();\n\t\t// File or Blob named mountains.jpg\n\t\tconst file = filed;\n\t\t// Create the file metadata\n\t\tconst metadata = {\n\t\t\tcontentType: file.type,\n\t\t};\n\t\t// create unique identify date\n\t\tconst uniqueId = new Date().getTime();\n\t\t// Upload file and metadata to the object 'images/mountains.jpg'\n\t\tconst uploadTask = storageRef.child(`${path}${uniqueId}-${file.name}`).put(file, metadata);\n\t\t// Listen for state changes, errors, and completion of the upload.\n\t\tuploadTask.on(\n\t\t\tfirebase.storage.TaskEvent.STATE_CHANGED, // or 'state_changed'\n\t\t\tfunction (snapshot) {\n\t\t\t\t// Get task progress, including the number of bytes uploaded and the total number of bytes to be uploaded\n\t\t\t\tlet progress = (snapshot.bytesTransferred / snapshot.totalBytes) * 100;\n\t\t\t\tthat.progressPercent = progress;\n\t\t\t\tswitch (snapshot.state) {\n\t\t\t\t\tcase firebase.storage.TaskState.PAUSED: // or 'paused'\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase firebase.storage.TaskState.RUNNING: // or 'running'\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t},\n\t\t\tfunction (error) {\n\t\t\t\t// A full list of error codes is available at\n\t\t\t\t// https://firebase.google.com/docs/storage/web/handle-errors\n\t\t\t\tswitch (error.code) {\n\t\t\t\t\tcase \"storage/unauthorized\":\n\t\t\t\t\t\t// User doesn't have permission to access the object\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/canceled\":\n\t\t\t\t\t\t// User canceled the upload\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"storage/unknown\":\n\t\t\t\t\t\t// Unknown error occurred, inspect error.serverResponse\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treject(error);\n\t\t\t},\n\t\t\tfunction () {\n\t\t\t\t// Upload completed successfully, now we can get the download URL\n\t\t\t\tuploadTask.snapshot.ref.getDownloadURL().then(function (downloadURL) {\n\t\t\t\t\tconst urls = {\n\t\t\t\t\t\tdownloadURL,\n\t\t\t\t\t\tbucketPath: `${path}${uniqueId}-${file.name}`,\n\t\t\t\t\t};\n\t\t\t\t\tresolve(urls);\n\t\t\t\t});\n\t\t\t}\n\t\t);\n\t});\n};\n\nconst deleteFileToFirebase = async function (path, fileName) {\n\tconst user = new User();\n\tconst userInfo = await user.getUser();\n\tconst storageRef = firebase.storage().ref();\n\t// Create a reference to the file to delete\n\tconst desertRef = await storageRef.child(`${userInfo.company_id}${path}${fileName}`);\n\tawait desertRef.getDownloadURL().then(() => {\n\t\tdesertRef\n\t\t\t.delete()\n\t\t\t.then(() => {\n\t\t\t\treturn {message: \"Remove succeeded.\"};\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tthrow new Error(error);\n\t\t\t});\n\t});\n};\n\nconst removeFileFromFirebase = function (bucketPath) {\n\treturn new Promise(async (resolve, reject) => {\n\t\tconst storageRef = firebase.storage().ref();\n\t\t// Create a reference to the file to delete\n\t\tconst desertRef = storageRef.child(bucketPath);\n\t\ttry {\n\t\t\t// Delete the file\n\t\t\tawait desertRef.delete();\n\t\t\tresolve(\"File deleted\");\n\t\t} catch (error) {\n\t\t\treject(new Error(\"Error delete\"));\n\t\t}\n\t});\n};\n\nconst listAllFilesFromFirebaseFolder = (folderName) => {\n\treturn new Promise(async (resolve, reject) => {\n\t\tconst storageRef = firebase.storage().ref();\n\t\t// Create a reference under which you want to list\n\t\tconst listRef = storageRef.child(folderName);\n\t\ttry {\n\t\t\t// Find all the prefixes and items.\n\t\t\tconst listFiles = await listRef.listAll();\n\t\t\tif (listFiles.items.length > 0) {\n\t\t\t\tresolve(listFiles.items);\n\t\t\t} else {\n\t\t\t\tresolve([]);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treject(new Error(\"Error delete\"));\n\t\t}\n\t});\n};\n\nexport {\n\tloadFirestore,\n\tgetResourceTracking,\n\tuploadFileToFirebase,\n\tdownloadFileFromFirebase,\n\tdownloadFileFromStorage,\n\tgetFirebaseMessageByResourceId,\n\tupdateFirebaseMessage,\n\tdeleteFireabseMessage,\n\tsendFirebaseResourceNotifications,\n\tuploadCompanyLogo,\n\tdeleteFileToFirebase,\n\tremoveFileFromFirebase,\n\tlistAllFilesFromFirebaseFolder,\n};\n","module.exports = __webpack_public_path__ + \"img/user-avatar.1a4644b2.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAlCAYAAAAjt+tHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEOElEQVRYhb2XT2zbdBTHP3ETK3ESk6Z/ks4VygZC49AFBFS0VJoEqTihSL0j7cJp044IgXbaZQfUy7jsgPh3QOLAqJDQSjo4MFp2WFEmJKCTpjC1KDusVI7rOa6TcKjtOW2d2FW7Jz398vv55X2/fr/3fv69SKfTAWB2djYKCIBoj1GOViygDZhAu1KpWACRTqfjgItA3FbRJiAcEXjbJmAChq1mpVKxIqVSyQGXANke4xxPBAxAB1R7NJ23jNvgo1vl6soRA3dJZqE4Zf9sA5Y39NJWubpSKBSQJIl4PH6kwIZhoOs6tXJ1JbNQnMDeBm/ixYFjAQf2+nTyTHCy3dHA4JZloaqqO4Yk4WI6WR4623VdJ9l5hrMj77C9vR327y7moctM0zRey51lZuxtdnZ2sCzrUH4ORcCyLCzLonSyzKnMaXLJE+i6/vQI6LpOLnmC5wZfBGBKKdFoNJ4eAU3TmFJK7rz8wru0Wi1M0wzty/e003WdRqNBq9Wi1Wp1Pet0OpROlt15PqVwKnOa+/W/iEQi7nokEiEWixGNRhkaGgpHQJIkXspOU1LmDnzuhN+RSzNXebi9sc/uUbPO1w8+8YPpHYFfHi4iD2R5r/i+rwNH8imFfErpWlteX+LTux/T7Dz2jYBvDkiSRCKR4Ns/P+f8jTnq2v636yXXVq9w+dZFHre2GRwc9LXrmYSyLJPP5/mncY8Li3Msry/1Ba5rG5y/Mcd3a1+SyWQYGRlBEPxh+laBKIqMjY3RjlpcvnWRH+9f97XVTJULi3PU1DXy+TyyLPclHKgMBUFw9zCXVHztUqJMSkyTTqcRRTGI6+DngK7rJGNpirnJnnZTSolmsxnUbTgC0+Nvda1d//sL5m9/iGY++RpOjL6KYRi02+1AfgNfuwzD4HXlTWB3r+dvf8TKxk0AltdvcmnmKsXcJNPjJZKxNIZhIElSX7+BImCaJrFYjDOjkyyvL3Hu+1l++/cnhoeHGR8fxxJMPvj5HNdWr6CZKmdGJ/ednn4SKAKiKPJs6nk++2OeH9a+IZFIoOQUt7xyuRyqqrJw7yvW1LsoiZMMNAeOjoBpmmgRjVX1P7LZLKlUap+NLMvE43Hq5gM2qYfOgZ7Woii6ZdWrvILaeTEFdu/rjmIYRl/WhxWPbxdT4Em7ZMBuuR0HCeda7kxtzHbUA65nFopTNZ/GpFAokM1mA4Ftbm5Sq9UOfGY3JjqevqBtT1TbYILu1kwAqJWrvwJ9STjgmYXiG/aSk197WzMDaAdpTt07/Fa5eqdXJDzgr9CdW/7NaZ/23Bm97dvvB5HwgL/sDfEeAge3573EJhYHUrZKW+Vq1UvCA160wTVbDQfIT/oS8CGRciIBeN9cIwR4YAIHkJBtEncAZ881dpMrMHgoAntISLY6x53Jbuj1MOChCXhIOEnplKpTYmYYcID/Abwf5ULlbGN9AAAAAElFTkSuQmCC\"","import '@firebase/storage';\n//# sourceMappingURL=index.esm.js.map\n","module.exports = __webpack_public_path__ + \"img/battery-charging.73f5ee2a.svg\";","module.exports = __webpack_public_path__ + \"img/battery-full.34986304.svg\";","// Initialize here\nconst platForm = new window.H.service.Platform({\n\tapikey: process.env.VUE_APP_HERE_MAP_API_KEY || \"\",\n});\nexport default platForm;\n","module.exports = __webpack_public_path__ + \"img/gps_on.bd2da762.svg\";","/*=========================================================================================\n File Name: moduleCalendarState.js\n Description: Calendar Module State\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nexport default {\n\tlayers: [],\n\tcurrentLayer: null,\n\tzones: [],\n};\n","/*=========================================================================================\n File Name: moduleActivityMutations.js\n Description: Activity Module Mutations\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Felix MAsa\n \n==========================================================================================*/\n\nexport default {\n\tADD_LAYER_ITEM(state, layer) {\n\t\tstate.layers.unshift(layer);\n\t},\n\tCURRENT_LAYER_ITEM(state, layer) {\n\t\tstate.currentLayer = layer;\n\t},\n\tSET_LAYERS(state, layers) {\n\t\tstate.layers = layers;\n\t},\n\tUPDATE_LAYER(state, layer) {\n\t\tconst layerIndex = state.layers.findIndex((l) => l.id === layer.id);\n\t\tObject.assign(state.layers[layerIndex], layer);\n\t},\n\tREMOVE_LAYER_ITEM(state, layerId) {\n\t\tconst ItemIndex = state.layers.findIndex((l) => l.id === layerId);\n\t\tstate.layers.splice(ItemIndex, 1);\n\t},\n\tADD_ZONE_ITEMS(state, data) {\n\t\tstate.zones.unshift(data);\n\t},\n\tCLEAN_ZONE_ITEMS(state) {\n\t\tstate.zones = [];\n\t},\n\tADD_ZONE_CHILDRES_ITEMS(state, {rows}) {\n\t\t/* const layerIndex = state.zones.findIndex((l) => l.id === layer.id)\n Object.assign(state.zones[layerIndex], layer) */\n\t\tstate.zones[0].children = rows.map((r) => {\n\t\t\treturn {\n\t\t\t\tid: r.cartodb_id,\n\t\t\t\tlabel: r.name,\n\t\t\t\tvalue: r,\n\t\t\t};\n\t\t});\n\t},\n};\n","/*=========================================================================================\n File Name: moduleActivityActions.js\n Description: Activity Module Actions\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Felix Masa\n==========================================================================================*/\n\nimport Api from \"@/helpers/api.js\";\n\nexport default {\n\taddLayerItem({commit, dispatch}, layer) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(\"/layer\", layer)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tconst newLayer = {name};\n\t\t\t\t\tcommit(\"CURRENT_LAYER_ITEM\", Object.assign(newLayer, {id: response.data.id}));\n\t\t\t\t\tcommit(\"ADD_LAYER_ITEM\", Object.assign(newLayer, {id: response.data.id}));\n\t\t\t\t\tresolve(response.data.id);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tfetchLayerListItems({commit}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.get(\"/layer\")\n\t\t\t\t.then((response) => {\n\t\t\t\t\tcommit(\"SET_LAYERS\", response.data);\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tfetchActivityById({commit}, itemId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.get(`/layer/${itemId}`)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tupdateLayerItem({commit}, {id, name, status_id}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.put(`/layer/${id}`, {name, status_id})\n\t\t\t\t.then((response) => {\n\t\t\t\t\tcommit(\"UPDATE_LAYER\", response.data);\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tremoveLayerItem({commit}, itemId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.delete(`/layer/${itemId}`)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tcommit(\"REMOVE_LAYER_ITEM\", itemId);\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tremoveRelationshipLayerResource({commit}, payload = {zone_id: []}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/resource/zone/delete`, payload)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\taddZoneItems({commit}, data) {\n\t\tcommit(\"ADD_ZONE_ITEMS\", data);\n\t},\n\taddChildrenItems({commit}, {rows}) {\n\t\tcommit(\"ADD_ZONE_CHILDRES_ITEMS\", {rows});\n\t},\n\tcreateAssigZoneResource({commit}, payload) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(\"/resourcezone\", payload)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tupdateAssigZoneResource({commit}, {resource_id, zone_id}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.put(`/resourcezone/${resource_id}`, {zone_id})\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tdeleteAssigZoneResource({commit}, relationId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.delete(`/resourcezone/${relationId}`)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response.data);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n\tassignedZoneResourceById({commit}, resourceId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.get(`/resourcezone/${resourceId}`)\n\t\t\t\t.then((response) => {\n\t\t\t\t\tresolve(response.data);\n\t\t\t\t})\n\t\t\t\t.catch((error) => {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t});\n\t},\n};\n","/*=========================================================================================\n File Name: moduleCalendarGetters.js\n Description: Calendar Module Getters\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nexport default {\n\tgetLayerById: (state) => () => state.currentLayer,\n};\n","/*=========================================================================================\n File Name: moduleDataList.js\n Description: Calendar Module\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nimport state from \"./moduleZonificationState.js\";\nimport mutations from \"./moduleZonificationMutations.js\";\nimport actions from \"./moduleZonificationActions.js\";\nimport getters from \"./moduleZonificationGetters.js\";\n\nexport default {\n\tisRegistered: false,\n\tnamespaced: true,\n\tstate,\n\tmutations,\n\tactions,\n\tgetters,\n};\n","import batteryCharging from \"@/assets/images/svg-icons/battery-charging.svg\";\nimport batteryFull from \"@/assets/images/svg-icons/battery-full.svg\";\nimport batteryWarnig from \"@/assets/images/svg-icons/battery-warning.svg\";\nimport gpsOn from \"@/assets/images/svg-icons/gps_on.svg\";\nimport gpsOff from \"@/assets/images/svg-icons/gps_off.svg\";\nimport {downloadFileFromFirebase} from \"../../helpers/firebaseDB\";\n\n/**\n * @description Determina el icono para la representacion del nivel de bateria en el infowindow del marker\n * @param {Number} currentLevel nivel de bateria del recurso\n */\nconst infowindoBatteryLevelIcon = (currentLevel = 0) => {\n\t//const currentLevel = this.resource_local.footer_text_1;\n\tif (currentLevel >= 60) {\n\t\treturn batteryFull;\n\t} else if (currentLevel < 60 && currentLevel >= 30) {\n\t\treturn batteryWarnig;\n\t} else {\n\t\treturn batteryCharging;\n\t}\n};\n\n/**\n * @description Determina el icono para la representacion del estado del gps en el infowindow del marker\n * @param {Number} currentStatus Estado del gps del recurso\n */\nconst infowindoGpsStatusIcon = (currentStatus = \"off\") => {\n\t//const currentStatus = this.resource_local.footer_text_1;\n\tif (currentStatus === \"on\") {\n\t\treturn gpsOn;\n\t} else {\n\t\treturn gpsOff;\n\t}\n};\n\n/**\n * @description Genera el contenido html del infowindow del marker\n * @param {Object} dataObject Json object con las propiedades de un recurso\n * @param {Function} callback funcion para recoger los datos del infowindow desde el componente que lo invoca\n */\nexport const infowindowContentResource = function (dataObject, callback) {\n\t// Diseño del contenido html del infowindows\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\t$infowindowDivContent.setAttribute(\"id\", `infoWindow-resource-${dataObject.id}`);\n\tlet $contentHeader = document.createElement(\"div\");\n\tlet $contentFotter = document.createElement(\"div\");\n\tlet $contentRight = document.createElement(\"div\");\n\tlet $contentLeft = document.createElement(\"div\");\n\tlet $contentIcons = document.createElement(\"div\");\n\tlet $title = document.createElement(\"h3\");\n\tlet $distance = document.createElement(\"h5\");\n\tlet $name = document.createElement(\"p\");\n\tlet $events = document.createElement(\"p\");\n\tlet $avatar = document.createElement(\"img\");\n\tlet $batteryLevel = document.createElement(\"img\");\n\tlet $gpsStatus = document.createElement(\"img\");\n\tlet $button = document.createElement(\"button\");\n\t// Set id and class attribite\n\t$title.setAttribute(\"class\", \"g-subtitle\");\n\t$contentHeader.setAttribute(\"id\", `infoWindow-${dataObject.username}`);\n\t$contentHeader.setAttribute(\"class\", \"g-label--normal\");\n\t$distance.setAttribute(\"class\", \"g-label--normal\");\n\t$button.setAttribute(\"id\", \"btn-with-loading\");\n\t$button.setAttribute(\n\t\t\"class\",\n\t\t\"vs-button vs-button-primary vs-button-filled small vs-con-loading__container includeIcon\"\n\t);\n\tif (Object.hasOwn(dataObject, \"img_url\") && dataObject.img_url) $avatar.setAttribute(\"src\", dataObject.img_url);\n\telse $avatar.setAttribute(\"src\", require(\"@/assets/images/portrait/small/user-avatar.png\"));\n\t$batteryLevel.setAttribute(\"src\", infowindoBatteryLevelIcon(dataObject.battery));\n\t$gpsStatus.setAttribute(\"src\", infowindoGpsStatusIcon(dataObject.gps));\n\t$avatar.className = \"infowindow-avatar\";\n\t// Set Css styles\n\t$contentHeader.style.cssText = `display: flex;\n flex-direction: column;\n align-items: center;\n border: 1px solid rgb(243, 243, 243);\n border-radius: 5px;\n text-align: center;`;\n\t$distance.style.cssText = \"color: green;\";\n\t$contentRight.style.cssText = \"margin-left: 0px;\";\n\t$contentIcons.style.cssText = `margin-top: 5px; display: flex; justify-content: center;`;\n\t$avatar.style.cssText = \"width: 65px;border-radius: 50%;margin: 10px\";\n\t$button.style.cssText = `\n margin-top: 5px;\n padding: 10px;\n font-family: 'Montserrat', Helvetica, Arial, sans-serif;\n font-size: 1rem;\n width: 150px;`;\n\t// Set button events\n\t$button.addEventListener(\"click\", function (e) {\n\t\tcallback(dataObject);\n\t});\n\t// Set content to elements\n\t$name.textContent = `${dataObject.name} ${dataObject.lastname}`.toUpperCase();\n\t$events.textContent = Object.hasOwn(dataObject, \"events\")\n\t\t? `${this.$t(\"Alarm.TotalVisit\")}: ${dataObject.events}`\n\t\t: \"\";\n\t$title.textContent = dataObject.username;\n\t$distance.textContent = Object.hasOwn(dataObject, \"distance\")\n\t\t? ` ${this.$t(\"OnDemand.Distance\")}: ${dataObject.distance} Km`\n\t\t: \"\";\n\t$button.textContent = `${this.$t(\"VisitPointObject.Assig\")}`;\n\t$contentRight.appendChild($title);\n\t$contentRight.appendChild($name);\n\t$contentRight.appendChild($events);\n\t$contentRight.appendChild($distance);\n\t$contentLeft.appendChild($avatar);\n\t$contentHeader.appendChild($contentLeft);\n\t$contentHeader.appendChild($contentRight);\n\t$contentHeader.appendChild($button);\n\t$docFragment.appendChild($contentHeader);\n\t$docFragment.appendChild($contentFotter);\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\n\nexport const generateInfowindowContentSchedule = (infoWindowData) => {\n\t// Diseño del contenido html del infowindows\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\t$infowindowDivContent.setAttribute(\"id\", \"infoWindow\");\n\t$infowindowDivContent.style.cssText = \"text-align: center\";\n\tlet $title = document.createElement(\"h4\");\n\t$title.textContent = `Start at ${infoWindowData.init_hour}`;\n\tlet $name = document.createElement(\"p\");\n\tlet $visitPoint = document.createElement(\"p\");\n\tlet $address = document.createElement(\"p\");\n\t$name.textContent = `${infoWindowData.activity_name}`;\n\t$visitPoint.textContent = `${infoWindowData.visit_point_name}`;\n\t$address.textContent = `${infoWindowData.address}`;\n\t$docFragment.appendChild($title);\n\t$docFragment.appendChild($name);\n\t$docFragment.appendChild($visitPoint);\n\t$docFragment.appendChild($address);\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\nexport const generateInfowindowContentVisitPoints = (infoWindowData) => {\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\tlet $title = document.createElement(\"h4\");\n\tlet $name = document.createElement(\"p\");\n\tlet $city = document.createElement(\"p\");\n\tlet $address = document.createElement(\"p\");\n\t$infowindowDivContent.setAttribute(\"id\", `infoWindow-vp-${infoWindowData.id}`);\n\t$infowindowDivContent.style.cssText = \"text-align: center; width:150px; padding: 5px\";\n\t$title.textContent = `${infoWindowData.name}`;\n\t$city.textContent = `${infoWindowData.city}`;\n\t$address.textContent = `${infoWindowData.address}`;\n\t$docFragment.appendChild($title);\n\t$docFragment.appendChild($name);\n\t$docFragment.appendChild($city);\n\t$docFragment.appendChild($address);\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\n\nconst getResourcePhoto = async (img_url) => {\n\tconst url = img_url;\n\tif (!url) {\n\t\treturn require(\"@/assets/images/portrait/small/user-avatar.png\");\n\t}\n\tconst publicUrl = await downloadFileFromFirebase(url);\n\treturn publicUrl;\n};\n\nexport const generateInfowindowRouteLineal = (infoWindowData, options) => {\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\tlet $date = document.createElement(\"p\");\n\tlet $hour = document.createElement(\"p\");\n\tlet $distance = document.createElement(\"span\");\n\tlet $rasterNum = document.createElement(\"span\");\n\n\t$rasterNum.setAttribute(\"class\", \"flex items-center w-full\");\n\n\t$date.innerHTML = `${options.dateText}: ${infoWindowData.date}`;\n\t$hour.innerHTML = `${options.hourText}: ${infoWindowData.time}`;\n\t$distance.innerHTML = `${options.distanceText}: ${\n\t\tinfoWindowData.valueDistance + \" \" + \"Km\"\n\t}`;\n\t$rasterNum.innerHTML = `${\n\t\toptions.rasterText\n\t}:
${\n\t\tinfoWindowData.rasterNum + \" \" + options.of + \" \" + infoWindowData.totalRaster\n\t}
`;\n\n\t$docFragment.appendChild($date);\n\t$docFragment.appendChild($hour);\n\t$docFragment.appendChild($distance);\n\t$docFragment.appendChild($rasterNum);\n\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\n\n/**\n * @description Genera el contenido html del infowindow del marker\n * @param {Object} dataObject Json object con las propiedades de un recurso\n * @param {Function} callback funcion para recoger los datos del infowindow desde el componente que lo invoca\n */\nexport const infowindowContentResourceOnDemand = function (dataObject) {\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\t$infowindowDivContent.setAttribute(\"id\", `infoWindow-resource-${dataObject.uid}`);\n\tlet $contentHeader = document.createElement(\"div\");\n\tlet $contentFotter = document.createElement(\"div\");\n\tlet $contentRight = document.createElement(\"div\");\n\tlet $contentLeft = document.createElement(\"div\");\n\tlet $contentIcons = document.createElement(\"div\");\n\tlet $title = document.createElement(\"h3\");\n\tlet $name = document.createElement(\"p\");\n\tlet $avatar = document.createElement(\"img\");\n\t$contentHeader.setAttribute(\"id\", `infoWindow-${dataObject.username}`);\n\tif (Object.hasOwn(dataObject, \"img_url\") && dataObject.img_url) $avatar.setAttribute(\"src\", dataObject.img_url);\n\telse $avatar.setAttribute(\"src\", require(\"@/assets/images/portrait/small/user-avatar.png\"));\n\t$avatar.className = \"infowindow-avatar\";\n\t// Set Css styles\n\t$contentHeader.style.cssText = `display: flex;\n flex-direction: column;\n align-items: center;\n border: 1px solid rgb(243, 243, 243);\n border-radius: 5px;\n padding: 10px;\n text-align: center;`;\n\t$contentRight.style.cssText = \"margin-left: 0px;\";\n\t$contentIcons.style.cssText = `margin-top: 10px;\n display: flex;\n justify-content: center;`;\n\t$avatar.style.cssText = \"width: 75px; height: 75px; border-radius: 50%;margin: 10px\";\n\t// Set content to elements\n\t$name.textContent = `${dataObject.name} ${dataObject.lastname}`;\n\t$title.textContent = dataObject.username;\n\t$contentRight.appendChild($title);\n\t$contentRight.appendChild($name);\n\t$contentLeft.appendChild($avatar);\n\t$contentHeader.appendChild($contentLeft);\n\t$contentHeader.appendChild($contentRight);\n\t$docFragment.appendChild($contentHeader);\n\t$docFragment.appendChild($contentFotter);\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\nexport const infowindowContentLayerCarto = function (data) {\n\t// Diseño del contenido html del infowindows\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\t$infowindowDivContent.setAttribute(\"class\", `widget`);\n\tlet $title = document.createElement(\"h2\");\n\t$title.setAttribute(\"class\", \"g-subtitle\");\n\t$title.textContent = data.name;\n\t$infowindowDivContent.appendChild($title);\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\nconst batteryIcon = (level) => {\n\tif (level >= 60) {\n\t\treturn ``;\n\t} else if (level < 60 && level >= 30) {\n\t\treturn ``;\n\t} else {\n\t\treturn ``;\n\t}\n};\nconst transmissionIcon = (status) =>\n\t``;\n\nconst gpsIcon = (status) =>\n\t`gps_fixed`;\n\nexport const infoWindowContentResourceTracking = function (resource, tracking, callbackClick) {\n\t// Diseño del contenido html del infowindows\n\tlet color = \"success\";\n\tlet $divBattery = document.createElement(\"div\");\n\tlet $divTransmission = document.createElement(\"div\");\n\tlet $divGps = document.createElement(\"div\");\n\n\tlet $spanBattery = document.createElement(\"span\");\n\tlet $spanBatteryText = document.createElement(\"span\");\n\tlet $spanTransmission = document.createElement(\"span\");\n\tlet $spanTransmissionText = document.createElement(\"span\");\n\tlet $spanGps = document.createElement(\"span\");\n\tlet $spanGpsText = document.createElement(\"span\");\n\n\tlet $docFragment = document.createDocumentFragment();\n\tlet $infowindowDivContent = document.createElement(\"div\");\n\t$infowindowDivContent.setAttribute(\"id\", `infoWindow-resource-${tracking.positionrecord_id}`);\n\n\tlet $contentHeader = document.createElement(\"div\");\n\tlet $contentFotter = document.createElement(\"div\");\n\n\tlet $contentRight = document.createElement(\"div\");\n\tlet $contentLeft = document.createElement(\"div\");\n\tlet $contentIcons = document.createElement(\"div\");\n\n\tlet $title = document.createElement(\"h2\");\n\n\tlet $name = document.createElement(\"p\");\n\tlet $avatar = document.createElement(\"img\");\n\n\t// Set id and class attribite\n\t$contentHeader.setAttribute(\"id\", `infoWindow-${resource.username}`);\n\t$spanBattery.setAttribute(\"id\", `span-battery-${tracking.positionrecord_id}`);\n\t$spanTransmission.setAttribute(\"id\", `span-transmission-${tracking.positionrecord_id}`);\n\t$spanGps.setAttribute(\"id\", `span-gps-${tracking.positionrecord_id}`);\n\n\t$spanBatteryText.setAttribute(\"id\", `span-battery-text-${tracking.positionrecord_id}`);\n\t$spanTransmissionText.setAttribute(\"id\", `span-transmission-text-${tracking.positionrecord_id}`);\n\t$spanGpsText.setAttribute(\"id\", `span-gps-text-${tracking.positionrecord_id}`);\n\n\tif (Object.hasOwn(resource, \"img_url\") && resource.img_url) $avatar.setAttribute(\"src\", resource.img_url);\n\telse $avatar.setAttribute(\"src\", require(\"@/assets/images/portrait/small/user-avatar.png\"));\n\n\t$avatar.className = \"infowindow-avatar\";\n\n\t// Set Css styles\n\t$contentHeader.style.cssText = `\n padding: 10px;\n text-align: center;`;\n\n\t$contentRight.style.cssText = \"margin-left: 0px;\";\n\t$contentIcons.style.cssText = `\n\tmargin: 10px 0px 10px 0px;\n display: flex;\n justify-content: space-around;`;\n\n\t$avatar.style.cssText = \"width: 75px; height: 75px; border-radius: 50%;margin: 10px\";\n\t$divBattery.style.cssText =\n\t\t\"display: flex; align-items: center; width: auto; margin: 1rem; flex-direction: column;\";\n\t$divTransmission.style.cssText =\n\t\t\"display: flex; align-items: center; width: auto; margin: 1rem; flex-direction: column;\";\n\t$divGps.style.cssText = \"display: flex; align-items: center; width: auto; margin: 1rem; flex-direction: column;\";\n\n\t$title.setAttribute(\"class\", \"font-bold\");\n\t$spanBattery.setAttribute(\"class\", \"feather-icon select-none relative mr-1\");\n\t$spanTransmission.setAttribute(\"class\", \"feather-icon select-none relative mr-1\");\n\t$spanGps.setAttribute(\"class\", \"feather-icon select-none relative mr-1\");\n\n\t$spanBatteryText.setAttribute(\"class\", \"text-sm\");\n\t$spanTransmissionText.setAttribute(\"class\", \"text-sm\");\n\t$spanGpsText.setAttribute(\"class\", \"text-sm\");\n\n\t// Set content to elements\n\t$name.textContent = `${resource.email}`;\n\t$title.textContent = resource.username;\n\t$spanBatteryText.textContent = tracking.battery + \"%\";\n\t$spanTransmissionText.textContent = tracking.active ? this.$t(\"MapModule.OnLine\") : this.$t(\"MapModule.OffLine\");\n\t$spanGpsText.textContent =\n\t\ttracking.gps === \"on\"\n\t\t\t? this.$t(\"StatusMobile.ListStatusMobile.Active\")\n\t\t\t: this.$t(\"StatusMobile.ListStatusMobile.Disabled\");\n\t$spanBattery.innerHTML = batteryIcon(+tracking.battery);\n\t$spanTransmission.innerHTML = transmissionIcon(tracking.active);\n\t$spanGps.innerHTML = gpsIcon(tracking.gps);\n\n\t$contentRight.appendChild($title);\n\t$contentRight.appendChild($name);\n\n\t$divBattery.appendChild($spanBattery);\n\t$divBattery.appendChild($spanBatteryText);\n\n\t$divTransmission.appendChild($spanTransmission);\n\t$divTransmission.appendChild($spanTransmissionText);\n\n\t$divGps.appendChild($spanGps);\n\t$divGps.appendChild($spanGpsText);\n\n\t$contentIcons.appendChild($divTransmission);\n\t$contentIcons.appendChild($divBattery);\n\t$contentIcons.appendChild($divGps);\n\t$contentLeft.appendChild($avatar);\n\n\t$contentHeader.appendChild($contentLeft);\n\t$contentHeader.appendChild($contentRight);\n\t$contentHeader.appendChild($contentIcons);\n\n\t$docFragment.appendChild($contentHeader);\n\t$docFragment.appendChild($contentFotter);\n\n\t$infowindowDivContent.appendChild($docFragment);\n\treturn $infowindowDivContent;\n};\n","module.exports = __webpack_public_path__ + \"img/circle.049ffb9e.svg\";","/*=========================================================================================\n File Name: moduleCompanyState.js\n Description: Calendar Module State\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nexport default {\n\tcountries: [],\n\tcountries_sitidata: [],\n\tcities: [],\n\tdepartments: [],\n\tdataSelectVisitPoint: [],\n\tconfig_list: [],\n\trole: [],\n\tstatus: [],\n\tcategory: [],\n\ttypology: [],\n};\n","/*=========================================================================================\n File Name: moduleCompanyMutations.js\n Description: Company Module Mutations\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nexport default {\n\tADD_COMPANY(state, item) {\n\t\tstate.resources.unshift(item);\n\t},\n\tSET_DATA_SELECTS(state, data) {\n\t\tstate.dataSelectVisitPoint = data;\n\t},\n\tSET_CITIES(state, data) {\n\t\tstate.cities = data;\n\t},\n\tSET_COUNTRIES(state, data) {\n\t\tstate.countries = data;\n\t},\n\tSET_COUNTRIES_SITIDATA(state, data) {\n\t\tstate.countries_sitidata = data;\n\t},\n\tSET_DEPARTMENTS(state, data) {\n\t\tstate.departments = data;\n\t},\n\tREMOVE_RESOURCE(state, itemId) {\n\t\tconst ItemIndex = state.resources.findIndex((p) => p.id === itemId);\n\t\tstate.resources.splice(ItemIndex, 1);\n\t},\n\t// categories\n\tSET_CATEGORIES(state, categories) {\n\t\t//state.categories = categories\n\t},\n\t// categories\n\tSET_ROLES_STATUS_CATEGORIES_TYPOLOGIES(state, data) {\n\t\tconst {role, status, category, typology} = data;\n\t\tstate.role = role ? role : [];\n\t\tstate.status = status ? status : [];\n\t\tstate.category = category ? category : [];\n\t\tstate.typology = typology ? typology : [];\n\t},\n};\n","/*=========================================================================================\n File Name: moduleCommonActions.js\n Description: Calendar Module Actions\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nimport Api from \"@/helpers/api.js\";\n\nexport default {\n\tfetchDataListResource({commit}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.get(\"/resource\")\n\t\t\t\t.then((res) => {\n\t\t\t\t\tcommit(\"SET_RESOURCES\", res.data);\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\t/**\n\t *\n\t * @param {*} param0\n\t */\n\tgetCountries({commit}) {\n\t\tconst payload = {\n\t\t\tcountry: \"\",\n\t\t\tdepartment: \"\",\n\t\t\tcity: \"\",\n\t\t\tworld_code: \"\",\n\t\t\tonly: \"country_name\",\n\t\t\tfields: [],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_COUNTRIES\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\tgetCountriesByTokenSitiData({commit}) {\n\t\tconst payload = {\n\t\t\tcountry: \"\",\n\t\t\tdepartment: \"\",\n\t\t\tcity: \"\",\n\t\t\tworld_code: \"\",\n\t\t\tonly: \"country_name_sitidata\",\n\t\t\tfields: [],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_COUNTRIES_SITIDATA\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\tgetDepartments({commit}, country) {\n\t\tconst payload = {\n\t\t\tcountry: country.name,\n\t\t\tdepartment: \"\",\n\t\t\tcity: \"\",\n\t\t\tonly: \"department_name\",\n\t\t\tworld_code: \"\",\n\t\t\tfields: [],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_DEPARTMENTS\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\tgetDepartmentsByCityCountry({commit}, data) {\n\t\tconst payload = {\n\t\t\tcountry: data.country,\n\t\t\tdepartment: \"\",\n\t\t\tcity: data.city,\n\t\t\tonly: \"department_name\",\n\t\t\tworld_code: \"\",\n\t\t\tfields: [],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_DEPARTMENTS\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\t/**\n\t *\n\t * @param {*} param0\n\t * @param {*} resourceId\n\t */\n\tgetAllCities({commit}, country) {\n\t\tconst payload = {\n\t\t\tcountry: country.name,\n\t\t\tdepartment: \"\",\n\t\t\tcity: \"\",\n\t\t\tworld_code: \"\",\n\t\t\tfields: [\"city_name\", \"city_id\", \"country_name\"],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_CITIES\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\t/**\n\t * @description Request a divipola para obtener las ciudades por departamento\n\t * @param {*} param0\n\t * @param {*} departament\n\t */\n\tgetCitiesByDeparment({commit}, departament) {\n\t\tconst payload = {\n\t\t\tcountry: departament.country || \"\",\n\t\t\tdepartment: departament.name,\n\t\t\tcity: \"\",\n\t\t\tworld_code: \"\",\n\t\t\tonly: \"city_name\",\n\t\t\tfields: [\"city_name\", \"department_name\"],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(`/divipola`, payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t\tcommit(\"SET_CITIES\", res.data);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\tfetchResourceById({commit}, resourceId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.get(`/resource/${resourceId}`)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\tfetchDataSelectVisitPoint({commit}) {\n\t\tconst payload = {\n\t\t\trole: [],\n\t\t\tstatus: [],\n\t\t\tcategory: \"VISIT_POINT\",\n\t\t\ttypology: [],\n\t\t};\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(\"/role/status/category/typology\", payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tcommit(\"SET_DATA_SELECTS\", res.data);\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n\t/**\n\t *\n\t * @param {*} param0\n\t * @param {*} category \"RESOURCE\", \"VISIT_POINT\",\n\t */\n\tfetchDataRoleStatusCategoryTypology({commit}, payload = {role: [], status: [], category: \"\", typology: []}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tApi.post(\"/role/status/category/typology\", payload)\n\t\t\t\t.then((res) => {\n\t\t\t\t\tcommit(\"SET_ROLES_STATUS_CATEGORIES_TYPOLOGIES\", res.data);\n\t\t\t\t\tresolve(res);\n\t\t\t\t})\n\t\t\t\t.catch((err) => {\n\t\t\t\t\treject(err);\n\t\t\t\t});\n\t\t});\n\t},\n};\n","/*=========================================================================================\n File Name: moduleCompanyGetters.js\n Description: Company Module Getters\n ----------------------------------------------------------------------------------------\n Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template\n Author: Pixinvent\n Author URL: http://www.themeforest.net/user/pixinvent\n==========================================================================================*/\n\nexport default {\n\t//getItem: state => (companyId) => state.companies.find((company) => company.id == companyId),\n\t//getAllItem: state => () => state.companies,\n};\n","import state from \"./moduleCommonState.js\";\nimport mutations from \"./moduleCommonMutations.js\";\nimport actions from \"./moduleCommonActions.js\";\nimport getters from \"./moduleCommonGetters.js\";\n\nexport default {\n\tisRegistered: false,\n\tnamespaced: true,\n\tstate,\n\tmutations,\n\tactions,\n\tgetters,\n};\n","module.exports = __webpack_public_path__ + \"img/gps_off.2952131b.svg\";","module.exports = __webpack_public_path__ + \"img/battery-warning.c9a7db9b.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col md:w-1/1 w-full\"},[_c('vs-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"w-full\",attrs:{\"label\":_vm.$t('Address'),\"name\":\"address\",\"id\":\"address\"},model:{value:(_vm.formData.address),callback:function ($$v) {_vm.$set(_vm.formData, \"address\", $$v)},expression:\"formData.address\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('address')),expression:\"errors.has('address')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.$t(\"GroupValidMessages.ItemAddress\")))])],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col md:w-1/1 w-full\"},[_c('div',{staticClass:\"mt-1\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(_vm._s(_vm.$t(\"Country\")))]),_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"country\",\"clearable\":false,\"options\":_vm.countriesOptions,\"dir\":_vm.$vs.rtl ? 'rtl' : 'ltr',\"disabled\":_vm.formData.address === '' || _vm.formData.address === null || _vm.formData.address === undefined},scopedSlots:_vm._u([{key:\"no-options\",fn:function(ref){\nvar search = ref.search;\nvar searching = ref.searching;\nreturn [(searching)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t(\"general.NoResultsFoundFor\") + \" \")),_c('em',[_vm._v(_vm._s(search))])]:_vm._e()]}}]),model:{value:(_vm.selectedCountry),callback:function ($$v) {_vm.selectedCountry=$$v},expression:\"selectedCountry\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('country')),expression:\"errors.has('country')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.$t(\"VisitPointObject.Create.ValidMessages.Country\")))])],1)]),_c('div',{staticClass:\"vx-col md:w-1/1 w-full\"},[_c('div',{staticClass:\"mt-1\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(_vm._s(_vm.getPoliticalDivision.department))]),_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"departments\",\"clearable\":false,\"options\":_vm.departments,\"dir\":_vm.$vs.rtl ? 'rtl' : 'ltr',\"loading\":_vm.departments.length <= 0 && _vm.selectedCountry.value != '' ? true : false,\"disabled\":_vm.departments.length <= 0 ||\n\t\t\t\t\t\t_vm.formData.address === '' ||\n\t\t\t\t\t\t_vm.formData.address === null ||\n\t\t\t\t\t\t_vm.formData.address === undefined},scopedSlots:_vm._u([{key:\"no-options\",fn:function(ref){\n\t\t\t\t\t\tvar search = ref.search;\n\t\t\t\t\t\tvar searching = ref.searching;\nreturn [(searching)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t(\"general.NoResultsFoundFor\") + \" \")),_c('em',[_vm._v(_vm._s(search))])]:_vm._e()]}}]),model:{value:(_vm.selectedDepartment),callback:function ($$v) {_vm.selectedDepartment=$$v},expression:\"selectedDepartment\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('departments')),expression:\"errors.has('departments')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.$t(\"ValidateField\", {n: _vm.getPoliticalDivision.department.toLowerCase()})))])],1)]),_c('div',{staticClass:\"vx-col md:w-1/1 w-full\"},[_c('div',{staticClass:\"mt-1 mb-1\"},[_c('label',{staticClass:\"vs-input--label\"},[_vm._v(_vm._s(_vm.getPoliticalDivision.city))]),_c('v-select',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"cities\",\"clearable\":false,\"options\":_vm.cities,\"dir\":_vm.$vs.rtl ? 'rtl' : 'ltr',\"loading\":_vm.cities.length <= 0 && _vm.selectedDepartment && _vm.selectedCountry.value != '' ? true : false,\"disabled\":_vm.cities.length <= 0 ||\n\t\t\t\t\t\t_vm.formData.address === '' ||\n\t\t\t\t\t\t_vm.formData.address === null ||\n\t\t\t\t\t\t_vm.formData.address === undefined},scopedSlots:_vm._u([{key:\"no-options\",fn:function(ref){\n\t\t\t\t\t\tvar search = ref.search;\n\t\t\t\t\t\tvar searching = ref.searching;\nreturn [(searching)?[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.$t(\"general.NoResultsFoundFor\") + \" \")),_c('em',[_vm._v(_vm._s(search))])]:_vm._e()]}}]),model:{value:(_vm.selectedCity),callback:function ($$v) {_vm.selectedCity=$$v},expression:\"selectedCity\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('cities')),expression:\"errors.has('cities')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.$t(\"ValidateField\", {n: _vm.getPoliticalDivision.city.toLowerCase()})))])],1)])]),_c('div',{staticClass:\"vx-row\",staticStyle:{\"display\":\"none\"}},[_c('div',{staticClass:\"vx-col md:w-1/2 w-full\"},[_c('vs-input',{ref:\"cy\",staticClass:\"w-full mb-2\",attrs:{\"label\":_vm.$t('MapModule.Latitude'),\"name\":\"cy\",\"id\":\"cy\"},model:{value:(_vm.formData.cy),callback:function ($$v) {_vm.$set(_vm.formData, \"cy\", $$v)},expression:\"formData.cy\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('cy')),expression:\"errors.has('cy')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"cy\")))])],1),_c('div',{staticClass:\"vx-col md:w-1/2 w-full\"},[_c('vs-input',{ref:\"cx\",staticClass:\"w-full mb-2\",attrs:{\"label\":_vm.$t('MapModule.Longitude'),\"name\":\"cx\",\"id\":\"cx\"},model:{value:(_vm.formData.cx),callback:function ($$v) {_vm.$set(_vm.formData, \"cx\", $$v)},expression:\"formData.cx\"}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.errors.has('cx')),expression:\"errors.has('cx')\"}],staticClass:\"text-danger text-sm\"},[_vm._v(_vm._s(_vm.errors.first(\"cx\")))])],1)]),_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col md:w-2/2 w-full\"},[_c('vs-input',{ref:\"coords\",staticClass:\"w-full mb-2\",attrs:{\"label\":_vm.$t('MapModule.Coordinates'),\"name\":\"coords\",\"id\":\"coords\",\"disabled\":!_vm.enableCoords},model:{value:(_vm.coords),callback:function ($$v) {_vm.coords=$$v},expression:\"coords\"}})],1)]),_c('vs-prompt',{attrs:{\"title\":\"\",\"active\":_vm.activePrompt},on:{\"update:active\":function($event){_vm.activePrompt=$event},\"cancel\":_vm.cancelPrompt,\"accept\":_vm.acceptAlert,\"close\":_vm.cancelPrompt}},[_c('div',{staticClass:\"con-exemple-prompt\"},[_c('p',[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.$t(\"Zonification.FormGeo.FindCoords\"))+\"\\n\\t\\t\\t\")]),_c('vs-input',{staticClass:\"mt-3 w-full mb-4\",attrs:{\"placeholder\":\"Code\",\"vs-placeholder\":\"Code\"},model:{value:(_vm.dataGeo.address1),callback:function ($$v) {_vm.$set(_vm.dataGeo, \"address1\", $$v)},expression:\"dataGeo.address1\"}}),_c('p',[_vm._v(_vm._s(_vm.$t(\"Zonification.FormGeo.AskUseDirection\")))])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGeo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormGeo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FormGeo.vue?vue&type=template&id=79cd1c7a&\"\nimport script from \"./FormGeo.vue?vue&type=script&lang=js&\"\nexport * from \"./FormGeo.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}