1(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1211:function(e,t,n){"use strict";n(23),n(53),n(7),n(22),n(99),n(70),n(59),n(40),n(16),n(18),n(28),n(10),n(34),n(691),n(66),n(100),n(225);var o=n(1),r=n(182),l=function(e,t,n,o){return new(n||(n=Promise))((function(r,l){function c(e){try{m(o.next(e))}catch(e){l(e)}}function d(e){try{m(o.throw(e))}catch(e){l(e)}}function m(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,d)}m((o=o.apply(e,t||[])).next())}))},c=o.default.extend({name:"GoogleMaps",props:{id:{type:String,default:"maps-container"},deviceName:{type:String,default:""},localizeMeText:{type:String,default:"Zlokalizuj mnie"},markersInfo:{type:Array,required:!1,default:function(){return[]}},portal:{type:String,default:"plush",validator:function(e){return["plush","plus","cp"].includes(e)}},singleMarkersIcon:{type:Array,required:!1},defaultSingleMarkersIcon:{type:String,required:!1},markersIcon:{type:String,default:"https://api.plus.pl/jcr/files/file/adp/files/images_lp/plus/mapa-salonow/m1.webp"},mapCenter:{type:Object,default:function(){return{centerLat:51.976,centerLng:19.636}}},mapOptions:{type:Object,default:function(){return{}}},geolocationIcon:{type:String,default:"https://api.plus.pl/jcr/files/file/adp/files/images_lp/plus/mapa-salonow/geolocalizationIcon.webp"},mapId:{type:String,default:"3b8a13b6549c5a89",required:!1},overlayMaps:{type:Array,required:!1,default:function(){return[]}},inputName:{type:String,default:"City"},inputId:{type:String,default:"insertCityInput"},inputPlaceholder:{type:String,default:"Wpisz miasto"},inputClass:{type:String,default:"insertCity"},chooseButton:{type:Boolean,default:!1},defaultOverlay:{type:Number,default:0}},components:{InputField:r.a},data:function(){return{map:"",arrayOfLayers:[],inputValue:"",isLocalized:!1,markers:[],markerCluster:null,places:[],displayingResult:!1,infoWindow:null,keyboardActiveKey:-1}},mounted:function(){var e=this,t=setInterval((function(){void 0!==window.google&&(e.markersInfo.length||e.overlayMaps.length)&&(clearInterval(t),e.initMap())}),500)},beforeDestroy:function(){this.markerCluster&&this.markerCluster.clearMarkers(),this.infoWindow&&this.infoWindow.close(),this.map&&window.google&&(this.map=null),delete window.google},methods:{initMap:function(){var e=this,t=Object.assign({center:new window.google.maps.LatLng(this.mapCenter.centerLat,this.mapCenter.centerLng),mapId:this.mapId,zoom:6,minZoom:6,gestureHandling:"cooperative"},this.mapOptions);this.map=new window.google.maps.Map(this.$refs.googleMap,t),this.infoWindow||(this.infoWindow=new window.google.maps.InfoWindow),this.markersInfo.length&&this.createAndSetMarkers(),this.overlayMaps.length&&(this.overlayMaps.forEach((function(t){e.arrayOfLayers.push(e.createLayer(t.code,t.style))})),this.setOverlay(this.defaultOverlay))},createAndSetMarkers:function(){var e=this,t=this.markersInfo.map((function(e){return{lat:null==e?void 0:e.lat,lng:null==e?void 0:e.lng}}));(this.markers&&this.markers.length||this.markerCluster)&&this.clearMarkers(),this.markers=t.map((function(t,i){var n=document.createElement("img");n.src=e.setIcon(e.markersInfo[i].type);var marker=new window.google.maps.marker.AdvancedMarkerElement({position:t,content:n,map:e.map,gmpClickable:!0});return marker.addEventListener("gmp-click",(function(){e.infoWindow.close();var t=e.selectTooltip(i);e.infoWindow.setContent(t),e.infoWindow.open(e.map,marker)})),marker})),this.markerCluster=new markerClusterer.MarkerClusterer({algorithm:new markerClusterer.SuperClusterAlgorithm({radius:100,maxZoom:16}),map:this.map,markers:this.markers,renderer:{render:function(t){var n=t.markers,o=t._position,r=t.count,l=document.createElement("div");l.style="display: flex; align-items: center; justify-content: center; position: relative;";var c=document.createElement("img");c.src=e.markersIcon,l.appendChild(c);var d=document.createElement("span");return d.innerHTML=n.length.toString(),d.style="color: #fff; position: absolute; font-weight: 700",l.appendChild(d),new window.google.maps.marker.AdvancedMarkerElement({position:o,content:l,title:n.length.toString(),zIndex:r})}}})}
1,clearMarkers:function(){this.markers.forEach((function(marker){marker.setMap(null)})),this.markers=[],this.markerCluster.clearMarkers()},selectTooltip:function(i){return"plush"===this.portal?'\n <div class="windowInfoContainer ">\n <strong id="location-name">'.concat(this.markersInfo[i].name,"</strong>\n ").concat(this.cityStreet(i),"\n </div>"):'\n <div class="windowInfoContainer d-flex flex-direction-column">\n <strong id="location-name">Punkt sprzedaży Plus i Polsat Box</strong>\n <div class="content">\n <div class="left-container">\n <div class="address">\n '.concat(this.cityStreet(i),'\n </div>\n <div class="phone">\n ').concat(this.phoneInfo(i),'\n </div>\n <div class="business-hours-week">\n ').concat(this.businessHoursWeek(i),"\n </div>\n\n ").concat(this.disabilityIcons(i),"\n\n </div>\n </div>\n </div>\n ").concat(this.additionalButton(i),"\n ")},selectPlace:function(e){return l(this,void 0,void 0,regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.displayingResult=!0,this.inputValue=e.mainText+(e.secondaryText?", "+e.secondaryText:""),n=e.toPlace(),t.next=5,n.fetchFields({fields:["viewport","location"]});case 5:this.markersInfo.length&&this.createAndSetMarkers(),(o=document.createElement("img")).src=this.geolocationIcon,this.markers.push(new window.google.maps.marker.AdvancedMarkerElement({position:n.location,map:this.map,content:o})),(null==n?void 0:n.location)&&(null==n?void 0:n.viewport)?(this.map.fitBounds(n.viewport),this.map.setZoom(12)):console.warn("Brak lokalizacji lub viewportu"),this.places=[],this.displayingResult=!1;case 12:case"end":return t.stop()}}),t,this)})))},autoCompleteInput:function(e){return l(this,void 0,void 0,regeneratorRuntime.mark((function t(){var data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.google.maps.places.AutocompleteSuggestion.fetchAutocompleteSuggestions({input:e,language:"pl"});case 2:data=t.sent,this.places=data.suggestions;case 4:case"end":return t.stop()}}),t,this)})))},inputFocus:function(){var e=document.getElementById("insertCityInput").value;this.$nextTick((function(){document.getElementById("insertCityInput").value=e}))},cityStreet:function(e){var t=this.markersInfo[e]||{},n=t.street,o=t.city,r=t.nameCH,l="";return r&&(l+="<p>".concat(r,"</p>")),o&&(l+="<p>".concat(n||"","</p><p>").concat(o,"</p>")),l},businessHoursWeek:function(e){var t,n=this.markersInfo[e]||{},o=n.businessHoursWeek,r=n.businessHoursWeekend,l=n.businessHoursWeekendSunday,c=n.sellingtypes;return t=this.checkIsOpen(o,r,l)?'<p class="hours-open">Teraz otwarte</p>':'<p class="hours-close">Teraz zamkniÄte</p>',o?'\n <br/>\n <div class="hours">\n '.concat(t,"\n <p> pn-pt: <strong>").concat(o,"</strong></p>\n <p> sob: <strong>").concat(r,"</strong></p>\n <p> niedz: <strong>").concat(l,'</strong></p>\n </div>\n <br/>\n <div class="selling-types">\n <p> usÅugi: ').concat(c,"</p>\n </div>\n <br/>\n "):""},phoneInfo:function(e){var t=this.markersInfo[e]||{},n=t.phoneOne,o=t.phoneTwo,r="";return n&&(r+="<span>".concat(n,"</span>")),n&&o&&(r+="<span>, </span>"),o&&(r+="<span>".concat(o,"</span>")),n||o?"<p>tel: ".concat(r,"</p>"):""},disabilityIcons:function(i){var e=this,t=this.markersInfo[i].types.includes(18)?'<span class="img-wrapper__facility-mobility-disability"><img width="30px" height="30px" src="https://api.plus.pl//file/files/file/images_lp/plus/mapa-salonow/udogodnienie_niepelnosprawnosc_ruchowa.webp"></span>':"",n=[18,21].some((function(t){return e.markersInfo[i].types.includes(t)}))?'<span class="img-wrapper__facility-deaf-non-speaking"><img width="30px" height="30px" src="https://api.plus.pl/file/files/file/images_lp/plus/mapa-salonow/udogodnienie_nieslyszacy_niemowiacy.webp"></span>':"",o=[18,20].some((function(t){return e.markersInfo[i].types.includes(t)}))?'<span class="img-wrapper__facility_sign_language_translator"><img width="30px" height="30px" src="https://api.plus.pl/file/files/file/images_lp/plus/mapa-salonow/udogodnienie_tlumacz_jezyka_migowego.webp"></span>':"";return""!==t&&""!==n&&""!==o?'\n <div class="disabilities">\n <div class="disabilities-icons">\n '.concat(t,"\n ").concat(n,"\n ").concat(o,"\n </div>\n </div>"):""},additionalButton:function(i){if(!this.chooseButton)return"";var e=JSON.stringify(this.markersInfo[i]).replaceAll('"',"|");return"\n <br />\n <br />\n <button onclick=\"window.dispatchEvent(new CustomEvent('posData-changed', {\n detail: {\n storage: '".concat(e,'\'\n }\n }));"\n class="v-btn primary btn-bottom mb-3">\n Wybierz salon\n </button>')},handleLocationError:function(e,t,n){t.setPosition(n),t.setContent(e?"BÅÄ
d: UsÅuga geolokalizacji nie powiodÅa siÄ.":"BÅÄ
d: Twoja przeglÄ
darka nie wspiera geolokalizacji."),t.open(this.map)},localizeMe:function(){var e=this;navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){var n={lat:t.coords.latitude,lng:t.coords.longitude};e.markersInfo.length&&e.createAndSetMarkers();var o=document.createElement("img");o.src=e.geolocationIcon,e.markers.push(new window.google.maps.marker.AdvancedMarkerElement({position:n,map:e.map,content:o})),e.isLocalized||(e.isLocalized=!0),e.map.setCenter(n),e.map.setZoom(15)}),(function(){e.handleLocationError(!0,infoWindow,e.map.getCenter())})):this.handleLocationError(!1,infoWindow,this.map.getCenter())},setIcon:function(e){var t=this.singleMarkersIcon.find((function(t){return t.type===e}));return"https://api.plus.pl/jcr/files/file/adp/files/images_lp/plus/mapa-salonow/".concat(void 0===t?this.defaultSingleMarkersIcon:null==t?void 0:t.link)},createLayer:function(e,style){return new window.google.maps.ImageMapType({getTileUrl:function(t,n){return"https://gms.plus.pl/service/wmts?LAYER=".concat(e,"&STYLE=").concat(style,"&TILEMATRIXSET=EPSG:900913&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&FORMAT=image/png8&TILEMATRIX=EPSG:900913:").concat(n,"&TILECOL=").concat(t.x,"&TILEROW=").concat(t.y
1)},tileSize:new window.google.maps.Size(256,256),isPng:!0})},setOverlay:function(e){var t=this;if(this.arrayOfLayers.forEach((function(e,n){e.opacity=0,t.map.overlayMapTypes.setAt(n,e)})),!(this.arrayOfLayers.length<=e)){var n=this.arrayOfLayers[e];n.opacity=.65,this.map.overlayMapTypes.setAt(e,n)}},checkIsOpen:function(e,t,n){var o=(new Date).getDay(),r=(new Date).getHours(),l=(new Date).getMinutes();switch(!0){case 0===o:return c(n,r,l);case 6===o:return c(t,r,l);default:return c(e,r,l)}function c(e,t,n){var o=e.split(/[-:]/);return t>+o[0]&&t<+o[2]||(t===+o[0]&&n>=+o[1]||t===+o[2]&&n<=+o[3])}},wcagKeyDown:function(){this.places.length&&(this.keyboardActiveKey>=this.places.length||(this.keyboardActiveKey+=1))},wcagKeyUp:function(){this.places.length&&0!==this.keyboardActiveKey&&(this.keyboardActiveKey-=1)},wcagChoose:function(){this.selectPlace(this.places[this.keyboardActiveKey].placePrediction),this.keyboardActiveKey=-1}},watch:{inputValue:{handler:function(e){this.keyboardActiveKey=-1,this.displayingResult||this.autoCompleteInput(e)}}}}),d=(n(2292),n(2293),n(2)),component=Object(d.a)(c,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"row pt-10 google-maps",attrs:{id:[e.id]}},[t("div",{staticClass:"col-12 col-md-4 col-lg-4 mb-4"},[e._t("before-input"),e._v(" "),t("div",{staticClass:"flex flex-direction-column"},[t("div",{staticClass:"dropdown-wrapper",on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.wcagKeyUp.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.wcagKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.wcagChoose.apply(null,arguments))}]}},[t("InputField",{ref:"mapInput",class:["maps-field",e.inputClass],attrs:{id:e.inputId,type:"text",name:e.inputName,label:e.inputPlaceholder,autocomplete:"off",validation:"",role:"combobox","aria-controls":"".concat(e.inputId,"-listbox"),"aria-autocomplete":"list","aria-expanded":e.places.length>0,"aria-activedescendant":e.keyboardActiveKey>=0?"".concat(e.inputId,"-option-").concat(e.keyboardActiveKey):null},on:{focus:e.inputFocus},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),t("ul",{directives:[{name:"show",rawName:"v-show",value:e.places.length>0&&""!=e.inputValue,expression:"places.length > 0 && inputValue != ''"}],staticClass:"dropdown-places",attrs:{id:"".concat(e.inputId,"-listbox"),role:"listbox"}},e._l(e.places,(function(n,i){return t("li",{key:i,class:{active:e.keyboardActiveKey===i},attrs:{id:"".concat(e.inputId,"-option-").concat(i),role:"option","aria-selected":e.keyboardActiveKey===i},on:{click:function(t){return e.selectPlace(n.placePrediction)}}},[t("strong",[e._v(e._s(n.placePrediction.mainText))]),e._v(" "),n.placePrediction.secondaryText?t("small",[e._v(e._s(n.placePrediction.secondaryText))]):e._e()])})),0)],1),e._v(" "),t("div",{staticClass:"location-btn mt-3",attrs:{role:"button",tabindex:"0","aria-label":"Zlokalizuj mnie"},on:{click:e.localizeMe,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.localizeMe.apply(null,arguments)}}},[e._v("\n "+e._s(e.localizeMeText)+"\n ")])]),e._v(" "),e._t("after-input")],2),e._v(" "),t("div",{staticClass:"col-12 col-md-8 col-lg-8 mb-4"},[e._t("before-map"),e._v(" "),t("div",{ref:"googleMap",staticClass:"map",attrs:{role:"application","aria-label":"Interaktywna mapa zasiÄgu internetu"}}),e._v(" "),e._t("after-map")],2)])}),[],!1,null,"53075ad1",null);t.a=component.exports},1716:function(e,t,n){e.exports={}},1717:function(e,t,n){e.exports={}},2292:function(e,t,n){"use strict";n(1716)},2293:function(e,t,n){"use strict";n(1717)}}]);
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.