1(window.wpJsonpPaskit=window.wpJsonpPaskit||[]).push([[20],{80:(function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var scriptjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),scriptjs__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(scriptjs__WEBPACK_IMPORTED_MODULE_0__);/*! 2 * @pixelunion/pxs-map v2.0.7 3 * (c) 2020 Pixel Union 4 */function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread()}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}function _iterableToArray(iter){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(iter))return Array.from(iter)}function _unsupportedIterableToArray(o,minLen){if(o){if(typeof o=="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function getDecimalDegrees(){for(var firstComponent=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,secondComponent=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,thirdComponent=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,fourthComponent=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,directions={N:1,E:1,S:-1,W:-1},decimalDegrees=0,components=[firstComponent,secondComponent,thirdComponent,fourthComponent],i=0;i<components.length;i++){var component=components[i];component&&(Number.isNaN(parseFloat(component))?decimalDegrees*=directions[component]:decimalDegrees+=parseFloat(component)/Math.pow(60,i))}return decimalDegrees}function getLatitudeLongitude(address){var latLongDegreesMinutesSeconds=/^([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2})(?:'[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:"[ ]?| )?(N|E|S|W) ?([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2})(?:'[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:"[ ]?| )?(N|E|S|W)$/g,latLongDegreesMinutes=/^([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:'[ ]?| )?(N|E|S|W) ?([0-9]{1,3})(?:°[ ]?| )([0-9]{1,2}(?:\.[0-9]+)?)(?:'[ ]?| )?(N|E|S|W)$/g,latLongDegrees=/^([-|+]?[0-9]{1,3}(?:\.[0-9]+)?)(?:°[ ]?| )?(N|E|S|W)?,? ?([-|+]?[0-9]{1,3}(?:\.[0-9]+)?)(?:°[ ]?| )?(N|E|S|W)?$/g,latLongFormats=[latLongDegreesMinutesSeconds,latLongDegreesMinutes,latLongDegrees],latLongMatches=latLongFormats.map(function(latLongFormat){return address.match(latLongFormat)}),latLongMatch=latLongMatches.reduce(function(accumulator,value,index){if(!accumulator&&value){var latLongResult=latLongFormats[index].exec(address),lat=latLongResult.slice(1,latLongResult.length/2+1),lng=latLongResult.slice(latLongResult.length/2+1,latLongResult.length);return{lat:lat,lng:lng}}return accumulator},null);return new Promise(function(resolve,reject){if(latLongMatch){var latDecimalDegrees=getDecimalDegrees.apply(void 0,_toConsumableArray(latLongMatch.lat)),longDecimalDegrees=getDecimalDegrees.apply(void 0,_toConsumableArray(latLongMatch.lng));resolve({lat:latDecimalDegrees,lng:longDecimalDegrees})}else{var geocoder=new google.maps.Geocoder;geocoder.geocode({address:address},function(results,status){status!==google.maps.GeocoderStatus.OK||!results[0]?reject(status):resolve(results[0].geometry.location)})}})}function getMapStyles(colors){return colors?[{elementType:"geometry",stylers:[{color:colors.e}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:colors.a}]},{elementType:"labels.text.stroke",stylers:[{color:colors.e}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.country",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:colors.d}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:colors.c}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:colors.b}]}
4,{featureType:"road.highway.controlled_access",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:colors.b}]},{featureType:"road.local",elementType:"labels.text.stroke",stylers:[{color:colors.e}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{color:colors.f}]}]:[]}function createMap(options){var container=options.container,address=options.address,zoom=options.zoom,colors=options.colors;return getLatitudeLongitude(address).then(function(latLong){var map=new google.maps.Map(container,{center:latLong,clickableIcons:!1,disableDefaultUI:!0,disableDoubleClickZoom:!0,gestureHandling:"none",keyboardShortcuts:!1,maxZoom:zoom,minZoom:zoom,scrollWheel:!1,styles:getMapStyles(colors),zoom:zoom,zoomControl:!1});new google.maps.Marker({clickable:!1,map:map,position:map.getCenter()}),map.panBy(0,0)}).catch(function(status){var usageLimits="https://developers.google.com/maps/faq#usagelimits",errorMessage;switch(status){case"ZERO_RESULTS":errorMessage="<p>Unable to find the address:</p> ".concat(address);break;case"OVER_QUERY_LIMIT":errorMessage='\n <p>Unable to load Google Maps, you have reached your usage limit.</p>\n <p>\n Please visit\n <a href="'.concat(usageLimits,'" target="_blank">').concat(usageLimits,"</a>\n for more details.\n </p>\n ");break;default:errorMessage="Unable to load Google Maps.";break}throw errorMessage})}function displayErrorInThemeEditor(container,errorMessage){var isThemeEditor=window.Shopify&&window.Shopify.designMode;isThemeEditor&&(container.innerHTML='<div class="map-error-message">'.concat(errorMessage,"</div>"))}var PxsMap=function PxsMap2(section){var _this=this;_classCallCheck(this,PxsMap2),this.map=null;var el=section.el.querySelector("[data-map]"),container=el.querySelector("[data-map-container]"),settings=section.data,address=settings.address,colors=settings.colors,apiKey=settings.api_key,zoom=Number.isNaN(settings.zoom)?13:11+parseInt(settings.zoom,10);apiKey&&(window.googleMaps===void 0?scriptjs__WEBPACK_IMPORTED_MODULE_0___default()("https://maps.googleapis.com/maps/api/js?key=".concat(apiKey),function(){window.googleMaps=!0,createMap({container:container,address:address,zoom:zoom,colors:colors}).then(function(map){_this.map=map}).catch(function(error){return displayErrorInThemeEditor(container,error)})}):createMap({container:container,address:address,zoom:zoom,colors:colors}).then(function(map){_this.map=map}).catch(function(error){return displayErrorInThemeEditor(container,error)}))};__webpack_exports__.default=PxsMap})}]); 5//# sourceMappingURL=/cdn/shop/t/10/assets/PXSMap.bundle.js.map?v=45387401502934308121601740389
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.