1"use strict";(self["webpackChunkcrm"]=self["webpackChunkcrm"]||[]).push([[8586],{38586(e,t,o){o.r(t),o.d(t,{default:()=>M});var a=()=>o(18249),i=()=>o(37024),r=()=>o(91071),n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("div",{directives:[{name:"show",rawName:"v-show",value:!e.unUsableGeocode,expression:"!unUsableGeocode"}],staticStyle:{border:"1px solid rgb(163 163 163)","border-radius":"4px"},style:{height:this.mapHeight+"px",cursor:this.activeGoogleMapExternalLinking&&this.usableAddress?"pointer":"auto"},attrs:{id:e.idComputed},on:{click:e.openGoogleMap}}),e.unUsableGeocode?o("div",{staticClass:"d-flex align-items-center justify-content-center",staticStyle:{border:"1px solid rgb(163 163 163)","border-radius":"4px"},style:{height:this.mapHeight+"px"}},[o("div",{staticClass:"text-center"},[o("v-img",{staticClass:"d-inline-block",attrs:{height:"160",width:"160",src:e.getSrcIconImg("mapNoData.png")}}),o("div",{staticStyle:{"font-size":"1.2rem"}},[e._v(e._s(e.msg("NoAddressRecognized")))])],1)]):e._e()])},s=[],d=o(41034),l=(o(62062),o(18111),o(61701),o(69112),o(2892),o(79432),o(26099),o(95353)),u=o(53481),c=o.n(u),p=o(50684);const m={name:"appMap",data:function(){return{loaded:!1,computationLoaded:!0,dataMap:[],map:null,mapCenter:{lat:48.8589466,lng:2.2769956},cardPinSelectedDialog:!1,cardPinPersonSelected:null,googleMarkerArr:[],listeners:{},currentMarker:null}},props:{mapType:{required:!1,default:"crmInternalMap",type:String},fullAddress:{required:!1,default:null,type:String},zip:{required:!1,default:null,type:String},city:{required:!1,default:null,type:String},geocode:{required:!1,default:null,type:Object|String},activeDraggable:{required:!1,default:!1,type:Boolean},activeGoogleMapExternalLinking:{required:!1,default:!1,type:Boolean},activeMouseZooming:{required:!1,default:!1,type:Boolean},mapHeight:{required:!1,default:250,type:Number},zoom:{required:!1,default:18,type:Number},minZoom:{required:!1,default:17,type:Number},maxZoom:{required:!1,default:19,type:Number}},methods:(0,d.A)((0,d.A)((0,d.A)({},(0,l.i0)("crossEntity",["getAllEntitiesGeocoded","trackGeocodeBatch","launchAndTrackGeocodeBatch","batchConvertPhoneToFormattedPhone"])),(0,l.i0)("map",["getDistanceGeocode","getExternalDistance"])),{},{loadData:function(){"crmInternalMap"===this.mapType?this.loadDataInternalMap():"googleMap"===this.mapType&&this.loadDataGoogleMap()},loadDataInternalMap:function(){try{this.initInternalMap()}catch(e){console.error("Erreur lors du chargement des données:",e)}},loadDataGoogleMap:function(){try{this.loaded=!1,this.initGoogleMap(),this.buildMarker()}catch(e){console.error("Erreur lors du chargement des données:",e)}finally{this.loaded=!0}},initInternalMap:function(){if(!this.unUsableGeocode)try{this.map=c().map(this.idComputed).setView(this.geocodeComputed,this.zoom),delete c().Icon.Default.prototype._getIconUrl,c().Icon.Default.mergeOptions({iconRetinaUrl:a(),iconUrl:i(),shadowUrl:r()}),(0,p.H)({minZoom:this.minZoom,maxZoom:this.maxZoom}).addTo(this.map),this.activeDraggable||this.map.dragging.disable(),this.activeMouseZooming||this.map.scrollWheelZoom.disable(),this.currentMarker=c().marker(this.geocodeComputed).addTo(this.map)}catch(e){console.error(e)}finally{this.loaded=!0}},updateInternalMap:function(){if(!this.unUsableGeocode&&this.map)try{var e=this.geocodeComputed;if(!e||!e.lat||!e.lng)return;this.map.setView(e,this.zoom),this.currentMarker&&this.currentMarker.remove(),this.currentMarker=c().marker(e).addTo(this.map)}catch(t){console.error("Erreur lors de la mise à jour de la carte :",t)}},initGoogleMap:function(){this.map=new window.google.maps.Map(document.getElementById(this.idComputed),{center:this.geocodeComputed?this.geocodeComputed:this.mapCenter,zoom:this.geocodeComputed?this.zoom:7,maxZoom:this.maxZoom,minZoom:this.minZoom,streetViewControl:!!this.geocodeComputed,mapTypeControl:!0,fullscreenControl:!!this.geocodeComputed,zoomControl:!!this.geocodeComputed,disableDefaultUI:!this.geocodeComputed,draggable:!!this.geocodeComputed,gestureHandling:this.geocodeComputed?"auto":"none"})},buildMarker:function(){var e=this;if(!this.unUsableGeocode){var t=new window.google.maps.Marker({position:this.geocodeComputed,map:this.map,title:""});t.addListener("click",function(){e.map.setCenter(e.geocodeComputed)}),this.map.setOptions({center:this.geocodeComputed,zoom:17,maxZoom:20,minZoom:3,streetViewControl:!0,mapTypeControl:!0,fullscreenControl:!0,zoomControl:!0,gestureHandling:"auto",disableDefaultUI:!1,draggable:!0})}},getSrcIconImg:function(e){return o(96774)("./"+e)},openGoogleMap:function(){if(this.activeGoogleMapExternalLinking&&this.usableAddress){var e="https://maps.google.com/maps?q="+this.usableAddress;
1window.open(e,"_blank")}}}),beforeDestroy:function(){this.map&&(this.map.remove(),this.map=null),this.currentMarker=null,this.googleMarkerArr=[]},watch:{geocode:function(){var e=this;"crmInternalMap"!==this.mapType||this.loaded?"crmInternalMap"===this.mapType&&this.loaded?this.updateInternalMap():"googleMap"===this.mapType&&this.buildMarker():this.$nextTick(function(){e.initInternalMap()})}},computed:(0,d.A)((0,d.A)((0,d.A)({},(0,l.L8)("dynabuilder",["isBuilderMode"])),(0,l.L8)("translator",["msg"])),{},{unUsableGeocode:function(){return!this.geocode||!this.geocodeComputed.lat||!this.geocodeComputed.lng},usableAddress:function(){return this.fullAddress?this.fullAddress:this.geocodeComputed?this.geocodeComputed.lat+", "+this.geocodeComputed.lng:""},idComputed:function(){return"miniMapDisplay_"+Math.floor(9999999*Math.random())},geocodeComputed:function(){if(!this.geocode)return null;if("string"===typeof this.geocode){var e=JSON.parse(this.geocode);return e||null}return this.geocode}}),mounted:function(){this.isBuilderMode||this.loaded||this.loadData()}},h=m;var g=o(81656),f=(0,g.A)(h,n,s,!1,null,"35a2f2b6",null);const M=f.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.