You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
136 KiB

2 years ago
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.placesInstantsearchWidget=e():t.placesInstantsearchWidget=e()}(window,function(){return r={},i.m=n=[function(t,e,n){"use strict";var r,i=n(2);function s(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var n=this.mixin({},t),r=this;return this.each(n,function(t,e){t&&(r.isArray(t)?n[e]=[].concat(t):r.isObject(t)&&(n[e]=r.cloneDeep(t)))}),n},error:function(t){throw new Error(t)},every:function(n,r){var i=!0;return n?(this.each(n,function(t,e){i=i&&(r.call(null,t,e,n)&&i)}),!!i):i},any:function(n,r){var i=!1;return n&&this.each(n,function(t,e){if(r.call(null,t,e,n))return!(i=!0)}),i},getUniqueId:(r=0,function(){return r++}),templatify:function(t){if(this.isFunction(t))return t;var e=i.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return(n?"":".")+t+e},escapeHighlightedString:function(t,e,n){e=e||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(e)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var o=document.createElement("div");return o.appendChild(document.createTextNode(t)),o.innerHTML.replace(RegExp(s(r.innerHTML),"g"),e).replace(RegExp(s(i.innerHTML),"g"),n)}}},function(t,e,n){"use strict";function r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function O(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){var e,n,r;e=i,r=o[n=t],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(o,t))})}return i}var C={},S={};e.a=function(t){var e,n,r,i,o,s,a,c,u,l,h,p,f,d,g,m,v,y,b,w,x,_;return e=O(O({},C),t),n=e.hitsPerPage,r=e.postcodeSearch,i=e.aroundLatLng,o=e.aroundRadius,s=e.aroundLatLngViaIP,a=e.insideBoundingBox,c=e.insidePolygon,u=e.getRankingInfo,l=e.countries,h=e.language,p=e.type,f={countries:l,hitsPerPage:n||5,language:h||navigator.language.split("-")[0],type:p},Array.isArray(l)&&(f.countries=f.countries.map(function(t){return t.toLowerCase()})),"string"==typeof f.language&&(f.language=f.language.toLowerCase()),i?f.aroundLatLng=i:void 0!==s&&(f.aroundLatLngViaIP=s),r&&(f.restrictSearchableAttributes="postcode"),C=O(O({},f),{},{aroundRadius:o,insideBoundingBox:a,insidePolygon:c,getRankingInfo:u}),d=O(O({},S),t),g=d.useDeviceLocation,m=void 0!==g&&g,v=d.computeQueryParams,y=void 0===v?function(t){return t}:v,b=d.formatInputValue,w=d.onHits,x=void 0===w?function(){}:w,_=d.onError,S={useDeviceLocation:m,computeQueryParams:y,formatInputValue:b,onHits:x,onError:void 0===_?function(t){throw t}:_,onRateLimitReached:d.onRateLimitReached,onInvalidCredentials:d.onInvalidCredentials},{params:C,controls:S}}},function(t,e,n){"use strict";t.exports={element:null}},function(t,e){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=function(t,e,n){if("[object Function]"!==a.call(e))throw new TypeError("iterator must be a function");var r=t.length;if(r===+r)for(var i=0;i<r;i++)e.call(n
//# sourceMappingURL=placesInstantsearchWidget.min.js.map